/* ─── RESET & VARS ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0d12;
  --surface:  #111520;
  --surface2: #161b27;
  --border:   rgba(255,255,255,0.07);
  --accent:   #00e5c0;
  --accent2:  #7b5ea7;
  --text:     #e8eaf0;
  --muted:    #7a8295;
  --radius:   14px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise grain overlay */
.noise {
  position: fixed; inset: 0; z-index: 999; 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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
}

/* ─── SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── NAV ──────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,13,18,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.5); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800; letter-spacing: -1px;
  color: var(--text);
}
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; letter-spacing: 0.03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .25s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-menu a {
  padding: 14px 24px; font-size: 15px; color: var(--muted);
  text-decoration: none; display: block;
  border-bottom: 1px solid var(--border);
  transition: color .2s, background .2s;
}
.mobile-menu a:hover { color: var(--accent); background: rgba(0,229,192,.05); }
.mobile-menu.open { display: flex; }
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ─── CONTAINER ────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 100px 24px; }

/* ─── SECTION COMMON ───────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--accent);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #7b5ea7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── HERO ─────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding: 100px 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.b1 { width: 480px; height: 480px; background: var(--accent); top: -100px; right: -80px; animation-delay: 0s; }
.b2 { width: 320px; height: 320px; background: #7b5ea7; bottom: 100px; right: 200px; animation-delay: 2s; }
.b3 { width: 220px; height: 220px; background: #0ea5e9; top: 200px; right: 400px; animation-delay: 4s; }
@keyframes blobFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(20px, -30px) scale(1.08); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto;
}
.hero-eyebrow { margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--accent); border: 1px solid rgba(0,229,192,.3);
  background: rgba(0,229,192,.06);
  padding: 6px 14px; border-radius: 40px;
}
.badge::before {
  content: ''; display: block; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}
.hero-name {
  display: flex; flex-direction: column;
  font-family: var(--font-head);
  font-size: clamp(68px, 10vw, 128px);
  font-weight: 800; line-height: .95;
  letter-spacing: -4px;
  margin-bottom: 24px;
}
.hero-name .l1 { color: var(--text); }
.hero-name .l2 {
  background: linear-gradient(135deg, var(--accent) 0%, #7b5ea7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cursor-blink {
  -webkit-text-fill-color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-role {
  font-size: clamp(14px, 2vw, 18px); color: var(--muted);
  letter-spacing: .05em; margin-bottom: 20px;
  font-weight: 300;
}
.sep { color: var(--accent); margin: 0 6px; }
.hero-sub {
  font-size: 16px; color: var(--muted); line-height: 1.7;
  max-width: 500px; margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0a0d12;
  font-family: var(--font-head); font-weight: 700;
  font-size: 14px; letter-spacing: .03em;
  padding: 13px 28px; border-radius: 8px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 24px rgba(0,229,192,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 32px rgba(0,229,192,.4); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-head); font-weight: 600;
  font-size: 14px; letter-spacing: .03em;
  padding: 12px 24px; border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 16px; margin-top: 32px; }

.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-l { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.stat-div { width: 1px; height: 40px; background: var(--border); }

.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: .1em;
  animation: fadeIn 2s ease 1s both;
}
.scroll-line {
  width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim { 0%{opacity:0;transform:scaleY(0);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(1);transform-origin:bottom} }
@keyframes fadeIn { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* ─── ABOUT ────────────────────────────────────── */
#about { background: var(--surface); }
.about-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--muted); margin-bottom: 20px; font-size: 16px;
}
.about-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(0,229,192,.25);
  color: var(--accent); background: rgba(0,229,192,.06);
}
.about-card-inner {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.about-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7b5ea7);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 24px; font-weight: 800; color: #0a0d12;
  margin-bottom: 24px;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(0,229,192,0.15), 0 8px 32px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.about-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.info-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); }
.info-val { color: var(--text); font-weight: 500; }
.info-val a { color: var(--accent); text-decoration: none; }
.info-val a:hover { text-decoration: underline; }
.about-achievements { margin-top: 20px; }
.ach {
  font-size: 13px; color: var(--muted);
  padding: 8px 0; border-top: 1px solid var(--border);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ─── SKILLS ───────────────────────────────────── */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: default;
}
.skill-card:hover {
  border-color: rgba(0,229,192,.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.skill-icon { font-size: 28px; margin-bottom: 14px; }
.skill-card h3 {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  margin-bottom: 14px; color: var(--text);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  font-size: 12px; font-family: var(--font-mono);
  padding: 4px 10px; border-radius: 5px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.skill-card:hover .skill-tags span {
  color: var(--accent); border-color: rgba(0,229,192,.2);
  background: rgba(0,229,192,.05);
}
@media (max-width: 860px) { .skills-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .skills-grid { grid-template-columns: 1fr; } }

/* ─── EXPERIENCE ───────────────────────────────── */
#experience { background: var(--surface); }
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 2px; background: linear-gradient(var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.tl-dot {
  position: absolute; left: -38px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,229,192,.15);
}
.tl-content {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.tl-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.tl-role {
  font-family: var(--font-head); font-size: 20px;
  font-weight: 700; color: var(--text);
}
.tl-org { color: var(--accent); font-size: 14px; margin-top: 4px; }
.tl-date {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); white-space: nowrap;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--border);
}
.tl-desc { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.tl-bullets { padding-left: 20px; color: var(--muted); font-size: 14px; }
.tl-bullets li { margin-bottom: 8px; }
.tl-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tl-stack span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 5px;
  background: rgba(0,229,192,.07);
  border: 1px solid rgba(0,229,192,.2);
  color: var(--accent);
}

/* ─── PROJECTS ─────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0,229,192,.04), rgba(123,94,167,.04));
  border-color: rgba(0,229,192,.15);
}
.project-card:hover {
  border-color: rgba(0,229,192,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.project-meta { display: flex; justify-content: space-between; align-items: center; }
.project-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: .08em;
}
.project-year { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.project-card h3 {
  font-family: var(--font-head); font-size: 22px;
  font-weight: 700; color: var(--text);
}
.project-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.project-highlights {
  padding-left: 18px; color: var(--muted); font-size: 14px;
}
.project-highlights li { margin-bottom: 8px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.project-stack span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 5px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--muted);
}
.project-links { display: flex; gap: 12px; margin-top: 4px; }
.proj-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--accent); text-decoration: none;
  font-weight: 500;
  transition: opacity .2s;
}
.proj-link:hover { opacity: .7; }
.project-card.coming-soon {
  border-style: dashed; border-color: rgba(255,255,255,.08);
  background: transparent;
}
.cs-inner {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 12px; padding: 24px 0;
}
.cs-icon { font-size: 36px; }
.cs-inner h3 {
  font-family: var(--font-head); font-size: 18px;
  font-weight: 700; color: var(--muted);
}
.cs-inner p { font-size: 14px; color: rgba(122,130,149,.7); }
@media (max-width: 860px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
}

/* ─── CONTACT ──────────────────────────────────── */
#contact {
  background: var(--surface);
  position: relative; overflow: hidden;
}
#contact::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,192,.08), transparent 70%);
  top: -200px; right: -100px; pointer-events: none;
}
.contact-inner {
  max-width: 700px; margin: 0 auto; text-align: center;
}
.contact-title { margin-left: auto; margin-right: auto; }
.contact-sub { color: var(--muted); font-size: 17px; margin-bottom: 48px; margin-top: -24px; }
.contact-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 28px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
  min-width: 240px;
}
.contact-card:hover { border-color: rgba(0,229,192,.3); transform: translateY(-3px); }
.cc-icon { font-size: 22px; }
.cc-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.cc-val { font-size: 14px; color: var(--text); font-weight: 500; }

/* ─── FOOTER ───────────────────────────────────── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  text-align: center; padding: 32px 24px;
  font-size: 14px; color: var(--muted);
}
.footer-sub { font-size: 12px; margin-top: 6px; opacity: .6; }

/* ─── ANIMATIONS ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
  .hero-name { letter-spacing: -2px; }
  .hero-stats { gap: 20px; }
  .stat-n { font-size: 28px; }
}

/* ─── HERO PHOTO CIRCLE ─────────────────────────── */
.hero-photo-circle {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(0,229,192,0.12), 0 0 40px rgba(0,229,192,0.2);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
  position: relative;
}
.hero-photo-circle img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.hero-photo-circle::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(0,229,192,0.4);
  animation: pulse-ring 2.5s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.15; }
}
