/* ============================================================
   DARK GLOSSY PORTFOLIO — Modern Vine-Connected Theme
   Premium dark UI · Neon accents · Animated text · Vine stem
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============ DESIGN TOKENS ============ */
:root {
  /* Deep dark palette */
  --bg-dark: #0B0F1A;
  --bg-card: #121826;
  --bg0: #030308;
  --bg1: #07070f;
  --bg2: #0c0c1a;

  /* Text */
  --text: #f0f2ff;
  --text-dim: rgba(240, 242, 255, 0.6);
  --muted-color: rgba(240, 242, 255, 0.45);

  /* Neon accents */
  --accent-violet: #8b5cf6;
  --accent-cyan: #06d6a0;
  --accent-rose: #f472b6;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --primary: #7C3AED;
  --cyan: #06B6D4;
  --emerald: #14F195;
  --violet: #8B5CF6;

  /* Reusable gradients */
  --grad-neon: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  --grad-neon-hot: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
  --grad-neon-cool: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  --grad-rainbow: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan), var(--accent-rose), var(--accent-amber), var(--accent-violet));
  
  /* Glass surfaces */
  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-bg-hover: rgba(255, 255, 255, 0.065);
  --glass-stroke: rgba(255, 255, 255, 0.07);
  --glass-stroke-hover: rgba(255, 255, 255, 0.15);
  --glass-blur: 24px;
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Glossy sheen (top highlight) */
  --gloss-sheen: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.02) 25%,
    rgba(255, 255, 255, 0) 50%
  );

  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.65);
  --shadow-glow-v: 0 0 40px rgba(139, 92, 246, 0.12);
  --shadow-glow-c: 0 0 40px rgba(6, 214, 160, 0.10);

  /* Geometry */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1140px;

  /* Vine / stem */
  --vine-color: rgba(139, 92, 246, 0.35);
  --vine-glow: rgba(139, 92, 246, 0.25);
  --leaf-size: 14px;

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.4);

  /* Scroll-reactive background colors (Premium Black & Lightblue) */
  --bg-dyn-1: rgba(0, 150, 255, 0.16);
  --bg-dyn-2: rgba(0, 100, 255, 0.10);
  --bg-dyn-3: rgba(50, 130, 255, 0.08);
  --bg-dyn-4: rgba(0, 0, 0, 0.05);
}

/* ============ CUSTOM CURSOR ============ */

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.1s ease-out;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    mix-blend-mode: difference;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    background: var(--cyan);
    opacity: 0.6;
    transition: transform 0.05s linear, background 0.3s, box-shadow 0.3s;
}

.cursor-trail:nth-child(3) { background: #06d6a0; width: 10px; opacity: 0.8; box-shadow: 0 0 15px #06d6a0; }
.cursor-trail:nth-child(4) { background: #118ab2; width: 8px; opacity: 0.7; box-shadow: 0 0 12px #118ab2; }
.cursor-trail:nth-child(5) { background: #073b4c; width: 6px; opacity: 0.6; box-shadow: 0 0 10px #073b4c; }
.cursor-trail:nth-child(6) { background: #7209b7; width: 5px; opacity: 0.5; box-shadow: 0 0 8px #7209b7; }
.cursor-trail:nth-child(7) { background: #b5179e; width: 4px; opacity: 0.4; box-shadow: 0 0 6px #b5179e; }
.cursor-trail:nth-child(8) { background: #f72585; width: 3px; opacity: 0.3; box-shadow: 0 0 5px #f72585; }

/* Hover state for links/buttons */
body.cursor-hover .cursor-dot {
    width: 4px;
    height: 4px;
    opacity: 0.8;
}

body.cursor-hover .cursor-trail {
    opacity: 1;
    filter: brightness(1.5);
}

/* ============ TRANSITION OVERLAY ============ */

.transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: linear-gradient(135deg, rgba(11, 15, 26, 0.95), rgba(3, 3, 8, 0.98));
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-text {
    font-size: clamp(3rem, 15vw, 10rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.05em;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.transition-overlay.animate .transition-text {
    opacity: 1;
    transform: scale(1);
    animation: text-pop 1s ease-in-out forwards;
}

@keyframes text-pop {
    0% { opacity: 0; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.05); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.2); }
}

.transition-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--grad-neon);
    box-shadow: 0 0 30px var(--accent-cyan), -10px 0 50px var(--accent-purple);
}

.transition-overlay.animate {
    animation: transition-sweep 1s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

@keyframes transition-sweep {
    0% { transform: translateX(-100%); }
    45% { transform: translateX(0); }
    55% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ============ PRELOADER ============ */



.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #030308;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.preloader--hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__content {
    text-align: center;
    position: relative;
}

.preloader__text {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.preloader__text.active {
    opacity: 1;
    transform: translateY(0);
}

.preloader__percent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-top: 2rem;
    opacity: 0.8;
}

.preloader__bar {
    width: 0;
    height: 2px;
    background: var(--grad-neon);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    transition: width 2.5s ease-in-out;
}

.preloader--active .preloader__bar {
    width: 200px;
}

/* ============ RESET ============ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll snap */
body { scroll-snap-type: y mandatory; overflow-y: auto; }
section { scroll-snap-align: start; scroll-snap-stop: always; }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ PREMIUM FUTURISTIC BACKGROUND ============ */

.bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; background: #030308; }

/* Aurora Lights */
.aurora {
    position: absolute; width: 150%; height: 150%; top: -25%; left: -25%;
    background: 
        radial-gradient(circle at 20% 30%, var(--bg-dyn-1) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, var(--bg-dyn-2) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, var(--bg-dyn-3) 0%, transparent 70%);
    filter: blur(140px);
    animation: aurora-float 30s ease-in-out infinite alternate, color-cycle 20s infinite linear;
}

@keyframes color-cycle {
    0%, 100% { filter: blur(140px) hue-rotate(0deg) saturate(1); }
    50% { filter: blur(140px) hue-rotate(60deg) saturate(1.5); }
}

@keyframes aurora-float { 0% { transform: rotate(0deg) scale(1); } 100% { transform: rotate(15deg) scale(1.2); } }

/* Floating Blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35; animation: blob-float 35s infinite alternate; }
.blob-1 { width: 600px; height: 600px; background: #7C3AED; top: -10%; left: -10%; animation-delay: 0s; }
.blob-2 { width: 700px; height: 700px; background: #1e3a8a; bottom: -10%; right: -10%; animation-delay: -5s; }
.blob-3 { width: 500px; height: 500px; background: #064e3b; top: 40%; left: 30%; animation-delay: -10s; }
@keyframes blob-float { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(80px, 40px) scale(1.05); } 66% { transform: translate(-40px, 80px) scale(0.95); } 100% { transform: translate(0, 0) scale(1); } }

/* Grid/Mesh Overlay — Interactive Sparse Version */
.grid-overlay {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(circle at var(--grid-mouse-x, 50%) var(--grid-mouse-y, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 60%);
    animation: grid-move 150s linear infinite;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
    transition: transform 0.2s ease-out;
}

@keyframes grid-move { 0% { background-position: 0 0; } 100% { background-position: 1000px 1000px; } }



/* Noise Texture */
.noise { position: absolute; inset: 0; background-image: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.05; pointer-events: none; mix-blend-mode: overlay; }
.vignette { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.4) 100%); pointer-events: none; }

/* Stars */
.stars {
    position: absolute; inset: 0;
    background-image: radial-gradient(1px 1px at 10% 10%, #fff, transparent), radial-gradient(1px 1px at 20% 50%, #fff, transparent), radial-gradient(2px 2px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(2px 2px at 80% 40%, #fff, transparent);
    background-size: 200px 200px; opacity: 0.2; animation: stars-flicker 4s infinite;
}
@keyframes stars-flicker { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.4; } }

/* Spotlight movement (from script) */
.spotlight { position: fixed; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: 5; mix-blend-mode: overlay; animation: spotlight-pulse 8s infinite alternate; }
@keyframes spotlight-pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 0.8; } }

/* Vertical Line Decor */
.vertical-line { position: fixed; left: 1.5rem; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent); z-index: 10; }
.line-dot { position: absolute; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; left: -2.5px; box-shadow: 0 0 10px var(--cyan); animation: dotPulse 3s infinite alternate ease-in-out; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 10px var(--cyan); } 50% { box-shadow: 0 0 20px var(--cyan); } }
@keyframes dot-slide { 0% { top: 20%; } 100% { top: 80%; } }


/* ============ UTILITIES ============ */

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  padding: .75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: 12px;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; outline: none; box-shadow: var(--focus-ring); }

.pad { padding: 1.5rem; }
.pad-sm { padding: 1rem; }
.mt  { margin-top: 1rem; }
.mt-xl { margin-top: 3.5rem; }
.mb-sm { margin-bottom: .75rem; }
.muted { color: var(--text-dim); }
.small { font-size: .875rem; }

/* =============================================================
   VINE / STEM CONNECTOR — Leaves connected through stem
   ============================================================= */

/* The main vertical vine stem */
main#main {
  position: relative;
}

main#main::before {
  content: "";
  position: fixed;
  top: 70px;
  bottom: 30px;
  left: max(1.5rem, calc((100vw - var(--container)) / 2 - 32px));
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--vine-color) 5%,
    rgba(6,214,160,.25) 25%,
    var(--vine-color) 50%,
    rgba(244,114,182,.2) 75%,
    rgba(6,214,160,.2) 90%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  animation: vineGlow 4s ease-in-out infinite;
}

/* Flowing light particle on the stem */
main#main::after {
  content: "";
  position: fixed;
  left: max(1.5rem, calc((100vw - var(--container)) / 2 - 32px));
  top: 70px;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--accent-cyan), transparent);
  pointer-events: none;
  z-index: 3;
  animation: vineParticle 5s ease-in-out infinite;
  filter: blur(1px);
  opacity: .8;
}

/* Leaf node at each section — the "leaf" connecting to the vine */
section {
  position: relative;
}

/* Leaf circle */
section::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 2.5rem;
  width: var(--leaf-size);
  height: var(--leaf-size);
  border-radius: 50%;
  background: var(--grad-neon);
  box-shadow:
    0 0 12px rgba(139,92,246,.5),
    0 0 4px rgba(6,214,160,.4),
    inset 0 1px 2px rgba(255,255,255,.3);
  z-index: 3;
  animation: leafPulse 3s ease-in-out infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Leaf branch — small line connecting node to section */
section::after {
  content: "";
  position: absolute;
  left: -20px;
  top: calc(2.5rem + 6px);
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--vine-color), rgba(139,92,246,.08));
  z-index: 2;
  border-radius: 2px;
  transition: width .3s ease, opacity .3s ease;
  opacity: .7;
}

section > * {
  position: relative;
  z-index: 4;
}

/* Leaf grows on hover */
section:hover::before {
  transform: scale(1.3);
  box-shadow:
    0 0 20px rgba(139,92,246,.6),
    0 0 8px rgba(6,214,160,.5),
    inset 0 1px 2px rgba(255,255,255,.3);
}
section:hover::after {
  width: 38px;
  opacity: 1;
}

/* Hide vine on mobile */
@media (max-width: 900px) {
  main#main::before,
  main#main::after { display: none; }
  section::before,
  section::after   { display: none; }
}

/* ============ GLASS CARD SYSTEM ============ */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
}

/* Glossy sheen overlay */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--gloss-sheen);
  z-index: 1;
}

/* Mouse light effect within cards */
.glass::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 2;
    pointer-events: none;
}
.glass:hover::after { opacity: 1; }

/* Shared transitions */
.glass, .chip, .tag, .btn, .project,
.cert, .contact-item, .stat,
.upload__drop, .icon-btn {
  transition:
    transform .3s cubic-bezier(.34,1.56,.64,1),
    background .25s ease,
    box-shadow .3s ease,
    border-color .25s ease;
  transform: translateZ(0);
}

/* Glass hover */
.glass:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-v);
  border-color: var(--glass-stroke-hover);
  background: var(--glass-bg-hover);
}

@media (hover: none) {
  .glass:hover, .btn:hover, .chip:hover, .tag:hover,
  .icon-btn:hover, .contact-item:hover, .cert:hover,
  .upload__drop:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
}

/* ============ HERO ============ */

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 0 4rem; /* Increased top padding to clear fixed header */
}


.hero__content {
  padding: 3rem 2.5rem;
  width: min(900px, 100%);
  text-align: center;
  overflow: visible;
}
.hero__content::after { display: none; }

/* ---- Animated hero title ---- */
.hero__title {
  margin: .8rem 0 .7rem;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
}

/* Each letter wrapper for animation */
.hero__title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(40deg);
  animation: letterReveal .6s cubic-bezier(.23,1,.32,1) forwards;
}

/* Gradient text with shimmer */
.text-grad {
  position: relative;
  /* Fallback: works when text is NOT split into .letter spans */
  background: var(--grad-rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShimmer 6s linear infinite;
}

/* When JS splits into .letter spans (inline-block), 
   background-clip:text on parent breaks. 
   So each letter gets its own gradient. */
.text-grad .letter {
  background: var(--grad-rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: letterReveal .6s cubic-bezier(.23,1,.32,1) forwards,
             rainbowShimmer 6s linear infinite;
}

/* Glowing underline for name */
.text-grad::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-neon);
  box-shadow: 0 0 14px rgba(139,92,246,.5);
  animation: underlineGlow 2s ease-in-out infinite alternate;
}

.hero__subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 630px;
  margin-inline: auto;
  font-weight: 300;
}

/* Subtitle word-by-word fade */
.hero__subtitle .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: wordFade .5s ease forwards;
}

/* Welcome typing */
.welcome {
  margin: .75rem 0 0;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: .08em;
  font-size: .85rem;
  text-transform: uppercase;
}
.welcome__prefix { color: var(--text-dim); }
.welcome__type {
  display: inline-block; position: relative;
  color: var(--accent-cyan);
  clip-path: inset(0 100% 0 0);
  animation: welcomeReveal 2.1s ease forwards;
}
.welcome__type::after {
  content: "";
  position: absolute; right: -3px; top: 0;
  width: 2px; height: 100%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: caretBlink .65s step-end infinite, caretFade 2.15s ease forwards;
}

/* Pill */
.pill {
  display: inline-flex; align-items: center;
  gap: .55rem; padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(139,92,246,.18);
  background: rgba(139,92,246,.05);
  color: var(--text-dim);
  font-weight: 500; font-size: .85rem;
  letter-spacing: .02em;
}
.pill__spark {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6,214,160,.6), 0 0 4px rgba(6,214,160,.9);
  animation: sparkPulse 2s ease-in-out infinite;
}

/* CTA */
.hero__cta {
  display: flex; gap: .85rem; flex-wrap: wrap;
  margin-top: 1.75rem; justify-content: center;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: .55rem;
  height: 46px; padding: 0 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-stroke);
  background: var(--glass-bg);
  color: var(--text);
  font-weight: 600; font-size: .9rem;
  cursor: pointer;
  position: relative; overflow: hidden;
  letter-spacing: .01em;
}
/* Sweep shine */
.btn::before {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transition: left .5s ease;
}
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.3); }

.btn--primary {
  border: none;
  background: var(--grad-neon);
  color: #030308;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(139,92,246,.3), 0 2px 8px rgba(6,214,160,.2);
}
.btn--primary:hover {
  box-shadow: 0 6px 32px rgba(139,92,246,.45), 0 4px 14px rgba(6,214,160,.3);
  filter: brightness(1.1);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.18);
}

/* ============ SECTIONS ============ */

.section {
  min-height: calc(100vh - 70px);
  padding: 3.5rem 0 2rem;
  display: flex; flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.section__header { margin-bottom: 1.75rem; }

.section__title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  position: relative;
  display: inline-block;
}

/* Animated gradient underline */
.section__title::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 0;
  width: 55px; height: 3px;
  border-radius: 3px;
  background: var(--grad-neon);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(139,92,246,.4);
  animation: lineShimmer 3s ease-in-out infinite;
}

/* Animated letters in section titles */
.section__title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.23,1,.32,1);
}
.section__title .letter.visible {
  opacity: 1;
  transform: translateY(0);
}

.section__subtitle {
  margin: .6rem 0 0;
  color: var(--text-dim);
  line-height: 1.65;
  font-weight: 300;
}

/* ============ GRIDS ============ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ============ TYPOGRAPHY ============ */

.h3 {
  margin: 0 0 .85rem;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -.01em;
}

.mini-title {
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: .5rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'JetBrains Mono', monospace;
}

/* ============ ABOUT — Timeline ============ */

.timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline__item { display: flex; gap: .85rem; align-items: flex-start; }

/* ============ HEADER / NAV ============ */

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0;
  transition: padding 0.3s ease, background 0.3s ease;
}

.header--scrolled {
  padding: 0.75rem 0;
  background: rgba(3, 3, 8, 0.5);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}

.brand {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.brand:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.brand__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3b82f6; /* Cyan/Blue from image */
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}
.brand__text { 
    font-weight: 800; 
    font-size: 1rem; 
    letter-spacing: -0.02em;
    color: #fff;
}

.nav__links {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.nav__links a {
  font-weight: 600; font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.nav__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav__links a.is-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.25); /* More solid violet like image */
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.timeline__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad-neon);
  box-shadow: 0 0 10px rgba(139,92,246,.4);
  margin-top: .35rem;
  flex: 0 0 auto;
  animation: dotPulse 3s ease-in-out infinite;
}

.timeline__title { font-weight: 700; }
.timeline__text  { color: var(--text-dim); margin-top: .2rem; line-height: 1.55; font-weight: 300; }

/* ============ Quick Links / Chips ============ */

.quick-links { display: flex; flex-wrap: wrap; gap: .6rem; }

.chip {
  display: inline-flex; align-items: center;
  gap: .5rem; padding: .5rem .85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-stroke);
  background: var(--glass-bg);
  color: var(--text-dim);
  font-weight: 600; font-size: .9rem;
  position: relative; overflow: hidden;
}
.chip:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(139,92,246,.3);
  background: rgba(139,92,246,.08);
  box-shadow: 0 0 20px rgba(139,92,246,.1);
}

/* ============ SKILLS ============ */

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.tag {
  display: inline-flex;
  padding: .4rem .7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-stroke);
  background: var(--glass-bg);
  color: var(--text-dim);
  font-weight: 600; font-size: .82rem;
  transition: all .25s ease;
  font-family: 'JetBrains Mono', monospace;
}
.tag:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(6,214,160,.3);
  background: rgba(6,214,160,.07);
  box-shadow: 0 0 14px rgba(6,214,160,.08);
}

/* Category-specific tag accents */
.tag[data-type="lang"] { border-color: rgba(139, 92, 246, 0.2); }
.tag[data-type="front"] { border-color: rgba(6, 214, 160, 0.2); }
.tag[data-type="back"] { border-color: rgba(244, 114, 182, 0.2); }
.tag[data-type="db"] { border-color: rgba(59, 130, 246, 0.2); }
.tag[data-type="ds"] { border-color: rgba(245, 158, 11, 0.2); }
.tag[data-type="ai"] { border-color: rgba(217, 70, 239, 0.2); }
.tag[data-type="tool"] { border-color: rgba(255, 255, 255, 0.15); }
.tag[data-type="core"] { border-color: rgba(139, 92, 246, 0.2); }
.tag[data-type="deploy"] { border-color: rgba(6, 214, 160, 0.2); }

/* Hover states for specific types */
.tag[data-type="lang"]:hover { border-color: var(--accent-violet); box-shadow: 0 0 12px rgba(139, 92, 246, 0.25); }
.tag[data-type="front"]:hover { border-color: var(--accent-cyan); box-shadow: 0 0 12px rgba(6, 214, 160, 0.25); }
.tag[data-type="back"]:hover { border-color: var(--accent-rose); box-shadow: 0 0 12px rgba(244, 114, 182, 0.25); }
.tag[data-type="db"]:hover { border-color: var(--accent-blue); box-shadow: 0 0 12px rgba(59, 130, 246, 0.25); }
.tag[data-type="ds"]:hover { border-color: var(--accent-amber); box-shadow: 0 0 12px rgba(245, 158, 11, 0.25); }
.tag[data-type="ai"]:hover { border-color: #d946ef; box-shadow: 0 0 12px rgba(217, 70, 239, 0.25); }
.tag[data-type="deploy"]:hover { border-color: var(--accent-cyan); box-shadow: 0 0 12px rgba(6, 214, 160, 0.25); }

.list {
  margin: .25rem 0 0; padding-left: 1.2rem;
  color: var(--text-dim); line-height: 1.7; font-weight: 300;
}
.list li { margin: .4rem 0; }
.list li::marker { color: var(--accent-violet); }

/* ============ PROJECTS ============ */

.projects { display: grid; gap: 1.25rem; }

/* Two-column layout for project cards */
.projects--grid {
  grid-template-columns: repeat(2, 1fr);
}

.project__top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}

.badge {
  display: inline-flex; align-items: center;
  padding: .35rem .7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(139,92,246,.2);
  background: rgba(139,92,246,.07);
  color: var(--accent-violet);
  font-weight: 700; font-size: .78rem;
  letter-spacing: .02em;
  font-family: 'JetBrains Mono', monospace;
}

/* Tab Navigation */
.project-tabs {
  margin-top: 1rem;
}

.tabs-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-pill);
  margin-inline: auto;
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.tabs-nav::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */

.tab-btn {
  background: transparent;
  border: none;
  padding: .6rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  z-index: 2;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.is-active {
  color: #030308;
}

.tab-indicator {
  position: absolute;
  height: calc(100% - 1rem);
  background: var(--grad-neon);
  border-radius: var(--radius-pill);
  z-index: 1;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 15px rgba(139,92,246,.3);
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: panelFade .4s ease forwards;
}

.tab-panel.is-active {
  display: block;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Category styling (hidden when in tabs) */
.projects-category {
  margin-top: 0;
}

.category-title {
  display: none; /* Hidden in tabbed view */
}

/* Badge variants */
.badge--warning {
  border-color: rgba(245, 158, 11, .3);
  background: rgba(245, 158, 11, .08);
  color: var(--accent-amber);
}

.badge--info {
  border-color: rgba(59, 130, 246, .3);
  background: rgba(59, 130, 246, .08);
  color: var(--accent-blue);
}

.badge--success {
  border-color: rgba(6, 214, 160, .3);
  background: rgba(6, 214, 160, .08);
  color: var(--accent-cyan);
}

.badge--glow {
  border-color: rgba(139, 92, 246, .4);
  background: rgba(139, 92, 246, .1);
  color: var(--text);
  box-shadow: 0 0 12px rgba(139, 92, 246, .2);
  animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.02); }
}


/* "In Progress" status badge variant */
.badge--status {
  border-color: rgba(6,214,160,.25);
  background: rgba(6,214,160,.08);
  color: var(--accent-cyan);
  position: relative;
  padding-left: 1.4rem;
}
.badge--status::before {
  content: "";
  position: absolute;
  left: .55rem; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: statusBlink 1.5s ease-in-out infinite;
}

.project__grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.project__actions {
  display: flex; gap: .75rem;
  flex-wrap: wrap; margin-top: 1.25rem;
}

/* Project card number */
.project { counter-increment: project; }
.project .h3 { position: relative; }

/* Upcoming Project Styling */
.project.upcoming {
  border-style: dashed;
  opacity: .85;
}

.project.upcoming:hover {
  opacity: 1;
  border-style: solid;
}

/* ============ CERTIFICATIONS ============ */

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
}

.cert-card__image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--glass-stroke);
}

.cert-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.23,1,.32,1);
}

.cert-card:hover .cert-card__image img {
  transform: scale(1.08);
}

.cert-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 8, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease, background .3s ease;
  z-index: 2;
}

/* Glossy sheen for the overlay */
.cert-card__overlay::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gloss-sheen);
  pointer-events: none;
}

.cert-card:hover .cert-card__overlay {
  opacity: 1;
}

.cert-card__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cert-card__content .h3 {
  margin-bottom: .25rem;
}

.btn--mini {
  height: 36px;
  padding: 0 .85rem;
  font-size: .78rem;
  border-radius: 10px;
}

.upload { margin-top: .85rem; display: flex; flex-direction: column; gap: .85rem; }

.upload__drop {
  position: relative; display: block;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(139,92,246,.22);
  background: rgba(139,92,246,.03);
  cursor: pointer; text-align: center;
  transition: all .3s ease;
}
.upload__drop:hover {
  border-color: rgba(139,92,246,.4);
  background: rgba(139,92,246,.06);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139,92,246,.08);
}
.upload__drop input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.upload__title { font-weight: 700; }
.upload__hint  { color: var(--text-dim); margin-top: .3rem; font-size: .82rem; font-weight: 300; }
.upload__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Cert cards */
.certs { display: grid; gap: .75rem; margin-top: .85rem; }

.cert {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center; gap: .85rem;
  padding: .85rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-stroke);
  background: var(--glass-bg);
  transition: all .25s ease;
}
.cert:hover {
  transform: translateY(-2px);
  border-color: var(--glass-stroke-hover);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-md);
}

.cert__thumb {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--glass-stroke);
  background: var(--glass-bg);
  overflow: hidden;
  display: grid; place-items: center;
}
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cert__meta { min-width: 0; }
.cert__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert__sub  { color: var(--text-dim); font-weight: 500; font-size: .82rem; margin-top: .15rem; }
.cert__actions { display: flex; gap: .5rem; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-stroke);
  background: var(--glass-bg);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s ease;
}
.icon-btn:hover {
  background: rgba(139,92,246,.08);
  border-color: rgba(139,92,246,.25);
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(139,92,246,.1);
}

/* ============ ACHIEVEMENTS ============ */

.achievements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: achievement;
}
.achievements .glass { counter-increment: achievement; }
.achievements .glass .h3::before {
  content: "0" counter(achievement);
  display: block;
  font-size: 2rem; font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .4rem;
  opacity: .5;
}

/* ============ CONTACT ============ */

.field { display: grid; gap: .5rem; margin-top: .9rem; }
.field label { color: var(--text-dim); font-weight: 600; font-size: .9rem; }

input, textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--glass-stroke);
  background: rgba(255,255,255,.025);
  padding: .85rem 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(139,92,246,.35);
  background: rgba(139,92,246,.03);
  box-shadow: 0 0 0 3px rgba(139,92,246,.1), 0 0 16px rgba(139,92,246,.05);
}
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: rgba(240,242,255,.2); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  margin: 1.25rem 0;
}

.contact-list { display: grid; gap: .75rem; margin-top: .85rem; }

.contact-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: .85rem; padding: .9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-stroke);
  background: var(--glass-bg);
  transition: all .25s ease;
}
.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--glass-stroke-hover);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow-v);
}
.contact-item__k { color: var(--text-dim); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; font-family: 'JetBrains Mono', monospace; }
.contact-item__v { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ FOOTER ============ */

.footer { padding: 2rem 0 2.5rem; }

.footer__inner {
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.footer__inner::after { display: none; }

.footer__left  { display: flex; flex-direction: column; gap: .35rem; }
.footer__right { display: flex; align-items: center; gap: .5rem; }
.footer__right a { transition: color .25s; }
.footer__right a:hover { color: var(--accent-violet); }

/* ============ TOAST ============ */

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  z-index: 60;
  min-width: min(480px, calc(100% - 2rem));
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-stroke);
  background: rgba(7,7,15,.88);
  color: var(--text);
  box-shadow: var(--shadow-lg), var(--shadow-glow-v);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  font-weight: 500; text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============ SCROLL REVEAL (JS applies) ============ */

.reveal-hidden {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.23,1,.32,1);
}
.reveal-hidden.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ KEYFRAMES ============ */

@keyframes welcomeReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes caretFade { to { opacity: 0; } }

/* Letter-by-letter hero reveal */
@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Word fade for subtitle */
@keyframes wordFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rainbow gradient shimmer on name */
@keyframes rainbowShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Underline glow */
@keyframes underlineGlow {
  0%   { box-shadow: 0 0 8px  rgba(139,92,246,.3); width: 40%; }
  100% { box-shadow: 0 0 18px rgba(6,214,160,.4); width: 100%; }
}

/* Section title line shimmer */
@keyframes lineShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Border spin for glass cards */
@keyframes borderSpin {
  to { transform: rotate(360deg); }
}

@keyframes gridPan {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-64px,32px,0); }
}

/* Vine / stem */
@keyframes vineGlow {
  0%, 100% { opacity: .45; }
  50%      { opacity: .85; }
}
@keyframes vineParticle {
  0%   { top: 70px;  opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { top: calc(100vh - 40px); opacity: 0; }
}
@keyframes leafPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* Pulse / glow */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(139,92,246,.4), 0 0 4px rgba(6,214,160,.3); }
  50%      { box-shadow: 0 0 18px rgba(139,92,246,.6), 0 0 8px rgba(6,214,160,.5); }
}
@keyframes sparkPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(6,214,160,.5); transform: scale(1); }
  50%      { box-shadow: 0 0 14px rgba(6,214,160,.8); transform: scale(1.2); }
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  body::before, body::after,
  .grid, .orb,
  main#main::before, main#main::after,
  section::before, section::after,
  .welcome__type, .welcome__type::after,
  .brand__dot, .pill__spark,
  .timeline__dot, .text-grad,
  .badge--status::before,
  .hero__title .letter,
  .hero__subtitle .word,
  .section__title .letter {
    animation: none !important;
  }
  .hero__title .letter,
  .hero__subtitle .word,
  .section__title .letter {
    opacity: 1 !important;
    transform: none !important;
  }
  .glass::after { display: none; }
  .reveal-hidden { opacity: 1; transform: none; }
}

/* ============ ACHIEVEMENTS ============ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.achieve-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.achieve-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-stroke);
}

.achieve-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--glass-stroke);
}

.achieve-card__images:has(.achieve-img:only-child) {
  grid-template-columns: 1fr;
}

.achieve-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}

.achieve-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.achieve-img:hover img {
  transform: scale(1.08);
}

.img-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: .65rem;
  padding: .3rem .5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: 0;
  transition: opacity .3s ease;
}

.achieve-img:hover .img-label {
  opacity: 1;
}

.achieve-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .achievements { grid-template-columns: 1fr; }
  .project__grid { grid-template-columns: 1fr; }
  .projects--grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    top: 64px;
    width: min(var(--container), calc(100% - 2rem));
    flex-wrap: wrap; justify-content: center;
    padding: .85rem;
    border-radius: var(--radius-lg);
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
    background: rgba(7,7,15,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
  }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .contact-item { grid-template-columns: 1fr; }

  .pad { padding: 1.15rem; }
  .hero__content { padding: 1.5rem 1rem; }
  .section__title { font-size: 1.5rem; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .section { padding: 2.5rem 0 1.5rem; }
}

@media (max-width: 420px) {
  .pill { font-size: .76rem; padding: .4rem .7rem; }
  .nav__links a { font-size: .8rem; }
  .tab-btn { padding: .5rem 1rem; font-size: .85rem; }
  .tabs-nav { gap: .25rem; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: .9rem; }
}

