/* =============================================================================
   THEME TOKENS
   ========================================================================== */
:root {
  --bg:        #080b16;
  --bg-soft:   #0c1020;
  --panel:     rgba(255, 255, 255, 0.04);
  --panel-brd: rgba(255, 255, 255, 0.09);
  --text:      #e7e9f3;
  --muted:     #8b90a8;
  --accent:    #6d5efc;
  --accent-2:  #21d4fd;
  --accent-3:  #ff5fa2;
  --grad:      linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3));
  --radius:    18px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================================================================
   RESET / BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(110% 70% at 50% -10%, #141a33 0%, transparent 55%),
    linear-gradient(180deg, #0b1022 0%, #080b16 50%, #05070f 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

h1, h2, h3, .nav-logo, .hero-eyebrow, .section-index {
  font-family: "Space Grotesk", sans-serif;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

::selection { background: var(--accent); color: #fff; }

/* =============================================================================
   BACKGROUND CANVAS
   ========================================================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}
body::after { /* vignette + grain feel */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(125% 80% at 50% 0%, transparent 45%, rgba(5,7,15,0.9) 100%),
    linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px) 0 0 / 100% 54px,
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px) 0 0 / 54px 100%;
}

/* Aurora glow blobs */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; filter: blur(110px); }
.aurora .blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora .b1 { width: 42vw; height: 42vw; background: #5b4ee0; top: -12vw; left: -6vw; opacity: 0.3; animation: drift1 20s ease-in-out infinite; }
.aurora .b2 { width: 38vw; height: 38vw; background: #1aa6cc; bottom: -14vw; right: -8vw; opacity: 0.26; animation: drift2 24s ease-in-out infinite; }
.aurora .b3 { width: 30vw; height: 30vw; background: #c44d86; top: 45%; left: 58%; opacity: 0.16; animation: drift3 28s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw, -5vw) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw, 4vw) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .aurora .blob { animation: none; } }

/* =============================================================================
   LOADER
   ========================================================================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent-2);
  border-right-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.loader-text {
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* =============================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 1000;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(255,255,255,0.6);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
}
.cursor-ring.hover { width: 56px; height: 56px; background: rgba(255,255,255,0.12); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* =============================================================================
   SCROLL PROGRESS
   ========================================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 500;
  box-shadow: 0 0 12px rgba(109,94,252,0.7);
}

/* =============================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  transition: padding 0.4s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  padding: 14px clamp(20px, 5vw, 60px);
  background: rgba(5,6,10,0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-brd);
}
.nav-logo { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent-2); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 0.92rem; color: var(--muted); position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--grad); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================================
   LAYOUT
   ========================================================================== */
main { position: relative; z-index: 1; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 40px);
}
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 48px; }
.section-index { font-size: 1rem; color: var(--accent-2); font-weight: 600; }
.section-index.center { display: block; text-align: center; margin-bottom: 10px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em;
}
.section-title::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: clamp(40px, 14vw, 200px); height: 1px; margin-left: 22px;
  background: linear-gradient(90deg, var(--panel-brd), transparent);
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: 100px clamp(20px, 5vw, 40px) 0;
  position: relative;
}
.hero-inner {
  display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 50px; align-items: center; width: 100%;
}
.hero-greet { color: var(--muted); font-size: 1.05rem; margin-bottom: 4px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-2); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.78rem; margin-bottom: 22px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(33,212,253,0.08); border: 1px solid rgba(33,212,253,0.25);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none;
  box-shadow: 0 0 0 0 rgba(61,220,132,0.7); animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.6); } 70%,100% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } }

.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-badge {
  font-size: 0.82rem; padding: 7px 14px; border-radius: 10px; color: var(--text);
  background: var(--panel); border: 1px solid var(--panel-brd);
  transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.hero-badge:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-2); }

/* Glass profile card */
.hero-card {
  position: relative; border-radius: 22px; padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--panel-brd); backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
  overflow: hidden; transform-style: preserve-3d; will-change: transform;
  animation: floatCard 7s ease-in-out infinite;
}
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-card, .hero-name { animation: none; }
}
.card-glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--grad); filter: blur(60px); opacity: 0.35; top: -60px; right: -50px;
}
.card-top { display: flex; align-items: center; gap: 14px; position: relative; }
.card-top .card-eyebrow { margin: 0; }

.card-facts { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }
.card-fact { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.92rem; }
.card-fi {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 9px; color: var(--accent-2);
  background: rgba(255,255,255,0.05); border: 1px solid var(--panel-brd);
}
.card-fi svg { width: 15px; height: 15px; }
.card-stackline { font-size: 0.82rem; color: var(--accent-2); letter-spacing: 0.01em; font-weight: 500; }
.card-monogram {
  width: 60px; height: 60px; border-radius: 16px; flex: none;
  display: grid; place-items: center; font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.5rem; color: #fff; background: var(--grad);
  box-shadow: 0 8px 24px -6px rgba(109,94,252,0.7);
}
.card-eyebrow { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 3px; }
.card-name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.18rem; line-height: 1.2; }
.card-role { color: var(--accent); font-size: 0.9rem; font-weight: 500; }
.card-loc { color: var(--muted); font-size: 0.86rem; margin-top: 16px; }
.card-divider { height: 1px; background: var(--panel-brd); margin: 16px 0; }
.card-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.card-stack span {
  font-size: 0.74rem; color: var(--accent-2); background: rgba(33,212,253,0.08);
  padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(33,212,253,0.18);
}
.card-status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 0.82rem; color: var(--text);
}

/* Tech marquee */
.marquee {
  position: relative; overflow: hidden; width: 100%; padding: 22px 0;
  border-top: 1px solid var(--panel-brd); border-bottom: 1px solid var(--panel-brd);
  background: rgba(255,255,255,0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scrollX 30s linear infinite; }
.marquee-track span {
  font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 600;
  color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px;
}
.marquee-track span::after { content: "•"; color: var(--accent); font-size: 1rem; }
@keyframes scrollX { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.edu-card {
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius);
  padding: 26px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.edu-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.edu-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(109,94,252,0.12); border: 1px solid rgba(109,94,252,0.3);
  color: var(--accent-2); margin-bottom: 16px;
}
.edu-icon svg { width: 20px; height: 20px; }
.edu-degree { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.edu-school { color: var(--accent-2); font-size: 0.92rem; }
.edu-period { color: var(--muted); font-size: 0.84rem; margin-top: 6px; }
.hero-name {
  font-size: clamp(2.8rem, 9vw, 6.5rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em;
  background: linear-gradient(110deg, #ffffff 0%, #d6dcff 22%, #21d4fd 45%, #6d5efc 68%, #ff5fa2 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 34px rgba(109,94,252,0.28));
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.hero-role {
  font-size: clamp(1.3rem, 4vw, 2.4rem); font-weight: 500; color: var(--muted);
  margin-top: 8px; letter-spacing: -0.01em;
}
.hero-role-title { color: var(--text); }
.hero-role span[data-company] { color: var(--accent); }
.hero-tagline {
  max-width: 560px; margin-top: 24px; font-size: 1.1rem; color: var(--muted);
}
.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-social { display: flex; gap: 14px; margin-top: 34px; }
.hero-social.center { justify-content: center; margin-top: 40px; }

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint span {
  width: 22px; height: 36px; border: 1.5px solid var(--panel-brd); border-radius: 12px;
  position: relative;
}
.scroll-hint span::before {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--accent-2);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 20px; } }

/* =============================================================================
   BUTTONS / SOCIAL
   ========================================================================== */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  border: 1px solid transparent;
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; margin-top: 12px; }
.btn-primary {
  background: var(--grad); color: #fff; background-size: 200% 200%;
  box-shadow: 0 10px 30px -10px rgba(109,94,252,0.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(109,94,252,0.8); background-position: 100% 0; }
.btn-ghost { border-color: var(--panel-brd); color: var(--text); background: var(--panel); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent-2); color: var(--accent-2); }

.social-link {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--panel-brd);
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s;
  color: var(--muted);
}
.social-link:hover { transform: translateY(-4px); color: var(--accent-2); border-color: var(--accent-2); }
.social-link svg { width: 20px; height: 20px; }

/* =============================================================================
   ABOUT
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* Text column with gradient accent rail */
.about-text { position: relative; padding-left: 26px; }
.about-text::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--accent-2), var(--accent), var(--accent-3));
}
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }
.about-text p.lead {
  color: var(--text); font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 500;
  line-height: 1.45; margin-bottom: 22px; letter-spacing: -0.01em;
}
.about-text p strong, .about-text b { color: var(--text); font-weight: 600; }

/* Highlight cards (2×2) */
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.highlight-card {
  position: relative; background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: 16px; padding: 22px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.highlight-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(120% 100% at 0% 0%, rgba(109,94,252,0.16), transparent 70%);
}
.highlight-card:hover { transform: translateY(-6px); border-color: rgba(109,94,252,0.45); }
.highlight-card:hover::after { opacity: 1; }
.highlight-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 14px; color: var(--accent-2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--panel-brd);
}
.highlight-icon svg { width: 22px; height: 22px; }
.highlight-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.02rem; margin-bottom: 6px; }
.highlight-text { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* Stats strip (horizontal) */
.about-stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 40px;
}
.stat {
  background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 26px 28px; text-align: center;
  backdrop-filter: blur(8px); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat-value {
  font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* =============================================================================
   TIMELINE
   ========================================================================== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-3), transparent);
}
.tl-item { position: relative; padding: 0 0 42px 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(109,94,252,0.15);
}
.tl-period {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 6px;
}
.tl-role { font-size: 1.3rem; font-weight: 600; }
.tl-company { color: var(--accent); font-weight: 500; }
.tl-summary { color: var(--muted); margin: 8px 0 12px; }
.tl-points { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tl-points li { color: var(--muted); position: relative; padding-left: 20px; font-size: 0.96rem; }
.tl-points li::before { content: "▹"; position: absolute; left: 0; color: var(--accent-2); }

/* =============================================================================
   SKILLS
   ========================================================================== */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.skill-cat { margin-bottom: 26px; }
.skill-cat h3 { font-size: 1rem; color: var(--text); margin-bottom: 12px; font-weight: 600; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  padding: 7px 15px; border-radius: 999px; font-size: 0.86rem;
  background: var(--panel); border: 1px solid var(--panel-brd); color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s, border-color 0.2s, background 0.2s;
}
.skill-tag:hover { transform: translateY(-3px); color: #fff; border-color: var(--accent-2); background: rgba(33,212,253,0.1); }

.skills-sphere { position: relative; height: 420px; display: grid; place-items: center; }
#sphere-canvas { width: 100%; height: 100%; cursor: grab; }
#sphere-canvas:active { cursor: grabbing; }
.sphere-hint {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  opacity: 0.6;
}

/* =============================================================================
   PROJECTS
   ========================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.project-card {
  position: relative; background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 30px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d; will-change: transform;
}
.project-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(109,94,252,0.18), transparent 60%);
}
.project-card:hover { border-color: rgba(109,94,252,0.5); box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7); }
.project-card:hover::before { opacity: 1; }
.project-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 20px; color: #fff;
}
.project-icon svg { width: 22px; height: 22px; }
.project-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.project-desc { color: var(--muted); font-size: 0.96rem; margin-bottom: 18px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span {
  font-size: 0.76rem; color: var(--accent-2); background: rgba(33,212,253,0.08);
  padding: 4px 10px; border-radius: 6px;
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 0.9rem; color: var(--accent); font-weight: 600;
}
.project-link:hover { gap: 10px; }

/* =============================================================================
   CONTACT / FOOTER
   ========================================================================== */
.contact { text-align: center; max-width: 720px; }
.contact-title {
  font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px;
}
.contact-text { color: var(--muted); font-size: 1.1rem; margin: 0 auto 14px; max-width: 480px; }

.footer {
  text-align: center; padding: 40px 20px; color: var(--muted); font-size: 0.85rem;
  border-top: 1px solid var(--panel-brd);
}
.footer .heart { color: var(--accent-2); }

/* =============================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .about-grid, .skills-grid, .hero-inner { grid-template-columns: 1fr; }
  .hero-inner { gap: 36px; }
  .hero-card { max-width: 420px; }
  .skills-sphere { height: 340px; }
  .nav-links {
    position: fixed; inset: 0 0 0 30%; flex-direction: column; justify-content: center;
    gap: 28px; padding: 40px; background: rgba(8,9,16,0.85); backdrop-filter: blur(18px);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 300; }
}
@media (max-width: 520px) {
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; text-align: center; }
  .about-highlights { grid-template-columns: 1fr; }
}
