:root {
  --bg: #080c10;
  --bg2: #0d1117;
  --bg3: #111820;
  --cyan: #00e5ff;
  --cyan2: #00b4cc;
  --green: #39ff8b;
  --yellow: #ffd166;
  --red: #ff4d6d;
  --text: #c9d1d9;
  --text2: #8b949e;
  --border: rgba(0, 229, 255, .12);
  --card: rgba(13, 17, 23, .85);
  --mono: 'Space Mono', monospace;
  --sans: 'Syne', sans-serif;
  --glow: 0 0 24px rgba(0, 229, 255, .3);
  --glow-sm: 0 0 10px rgba(0, 229, 255, .2);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--cyan2);
  border-radius: 9px;
}

#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .2s, height .2s, opacity .2s;
  mix-blend-mode: screen;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 229, 255, .5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all .15s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: .4;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(8, 12, 16, .8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 2px;
}

.nav-logo span {
  color: var(--text2);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .25s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 1px;
  background: var(--cyan);
  transition: .3s;
}

#hero {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 60px 60px;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--cyan);
}

.hero-name {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-name .first {
  color: var(--text);
}

.hero-name .last {
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 229, 255, .4);
}

.hero-role {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
}

.hero-role .typed-text {
  color: var(--green);
}

.hero-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan), var(--glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .25s;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 16px;
  transition: all .25s;
}

.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.photo-frame {
  position: relative;
  width: 340px;
  height: 380px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  filter: grayscale(20%) contrast(1.05);
  position: relative;
  z-index: 2;
}

.photo-frame::before {
  display: none;
}

.photo-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 3;
  background: var(--bg2);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  box-shadow: var(--glow-sm);
}

.photo-badge span {
  display: block;
  color: var(--text2);
  font-size: 10px;
  margin-top: 2px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: .15;
  z-index: 0;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  top: -100px;
  right: -100px;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: var(--green);
  bottom: 0;
  left: -150px;
}

section {
  position: relative;
  z-index: 1;
  padding: 100px 60px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 60px;
}

#skills {
  background: var(--bg2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.skill-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card-icon {
  font-size: 24px;
  color: var(--cyan);
  margin-bottom: 16px;
}

.skill-card h4 {
  font-size: 14px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--mono);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(0, 229, 255, .08);
  border: 1px solid rgba(0, 229, 255, .2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  transition: all .2s;
}

.skill-tag:hover {
  background: rgba(0, 229, 255, .18);
}

.skill-tag.green {
  color: var(--green);
  background: rgba(57, 255, 139, .08);
  border-color: rgba(57, 255, 139, .2);
}

.skill-tag.green:hover {
  background: rgba(57, 255, 139, .18);
}

.skill-tag.yellow {
  color: var(--yellow);
  background: rgba(255, 209, 102, .08);
  border-color: rgba(255, 209, 102, .2);
}

.skill-tag.yellow:hover {
  background: rgba(255, 209, 102, .18);
}

.skill-tag.red {
  color: var(--red);
  background: rgba(255, 77, 109, .08);
  border-color: rgba(255, 77, 109, .2);
}

.skill-tag.soft {
  color: var(--text2);
  background: rgba(139, 148, 158, .08);
  border-color: rgba(139, 148, 158, .2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, .04) 0%, transparent 60%);
  opacity: 0;
  transition: .3s;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), var(--glow-sm);
}

.project-card:hover::after {
  opacity: 1;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-icon {
  font-size: 28px;
  color: var(--cyan);
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 14px;
  transition: all .2s;
}

.project-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.project-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
}

.project-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  flex: 1;
}

.project-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-card ul li {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.project-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 10px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tech-badge {
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 229, 255, .06);
  border: 1px solid rgba(0, 229, 255, .15);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
}

#training {
  background: var(--bg2);
}

.training-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  max-width: 820px;
  transition: all .3s;
}

.training-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-sm);
}

.training-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(0, 229, 255, .1);
  border: 1px solid rgba(0, 229, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cyan);
}

.training-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.training-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.training-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.training-card ul li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.training-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 10px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cert-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .3s;
}

.cert-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255, 209, 102, .1);
  border: 1px solid rgba(255, 209, 102, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--yellow);
}

.cert-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cert-card span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
}

#contact {
  background: var(--bg2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: all .25s;
}

.contact-item:hover {
  border-color: var(--cyan);
}

.contact-item i {
  color: var(--cyan);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.contact-item a,
.contact-item span {
  font-size: 14px;
  color: var(--text);
}

.contact-item a:hover {
  color: var(--cyan);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .25s;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text2);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  margin-top: -8px;
  display: none;
}

.form-success-msg {
  display: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  padding: 10px;
  border: 1px solid var(--green);
  border-radius: 6px;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
}

footer span {
  color: var(--cyan);
}

footer .heart {
  color: var(--red);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#btt {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--bg2);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s;
  box-shadow: var(--glow-sm);
}

#btt.show {
  opacity: 1;
  transform: translateY(0);
}

#btt:hover {
  background: var(--cyan);
  color: var(--bg);
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width:900px) {
  nav {
    padding: 18px 24px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg2);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  #hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px;
    text-align: center;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto 40px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-right {
    margin-top: 40px;
  }

  .photo-frame {
    width: 260px;
    height: 300px;
  }

  section {
    padding: 70px 24px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 30px 24px;
  }
}

/* ─── Education Timeline ─── */
#education {
  background: var(--bg2);
}

.education-timeline {
  position: relative;
  padding-left: 40px;
  max-width: 820px;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 229, 255, .2), transparent);
}

.edu-item {
  position: relative;
  padding-bottom: 48px;
}

.edu-item:last-child {
  padding-bottom: 0;
}

.edu-marker {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg2);
  border: 3px solid var(--cyan);
  box-shadow: var(--glow-sm);
  z-index: 2;
}

.edu-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.edu-place {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-place i {
  color: var(--cyan);
  font-size: 12px;
}

.edu-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

@media (max-width:500px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}