/* ============================================================
   AKSHAT MOHANTY PORTFOLIO — style.css
   Reverted to 21/8/26 Design: Cream & Dark Charcoal Aesthetic
   Landing Hero Section Intact (Dark WebGL Canvas)
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* 21/8/26 Color Palette */
  --bg:          #F5F3ED; /* Clean Warm Cream */
  --bg-card:     #FBFBF9; /* Crisp Warm Surface */
  --bg-card-2:   #EBE7DE; /* Secondary Surface */
  --border:      rgba(26, 26, 26, 0.08);
  --border-hover:rgba(26, 26, 26, 0.20);
  --cream:       #1A1A1A; /* Deep Dark Charcoal */
  --cream-dim:   #4A4A4A; /* Slate Body Text */
  --cream-muted: #807C75; /* Muted Meta Text */
  --accent:      #267044; /* Emerald Green Accent */
  --accent-warm: #32945a; /* Vibrant Mint Green */
  --accent-soft: rgba(38, 112, 68, 0.09);
  --white:       #FFFFFF;

  /* Hero Specific Dark Tokens (Preserved for Landing) */
  --bg-dark-hero: #0C1017;
  --hero-white:   #FFFFFF;
  --hero-muted:   rgba(255, 255, 255, 0.65);

  /* Typography */
  --font-head:   'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:   'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* Spacing */
  --section-gap: clamp(80px, 10vw, 130px);
  --container:   1200px;
  --radius:      16px;
  --radius-sm:   8px;

  /* Transitions */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --dur:         0.5s;
}

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

::selection {
  background-color: #2a523a;
  color: #FFFFFF;
}

::-moz-selection {
  background-color: #2a523a;
  color: #FFFFFF;
}

html {
  background-color: var(--bg);
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── UTILITIES ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section {
  padding: var(--section-gap) 0;
}

/* ── REDESIGNED ACCENT LABELS ──────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(38, 112, 68, 0.08);
  border: 1px solid rgba(38, 112, 68, 0.22);
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(38, 112, 68, 0.06);
}

.label::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(38, 112, 68, 0.7);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.section-title em {
  font-style: italic;
  background: linear-gradient(135deg, #3da868 0%, #267044 50%, #164328 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

/* ── SHINY TEXT EFFECT (OFFICIAL REACTBITS IMPLEMENTATION) ── */
.shiny-text {
  color: var(--cream);
  display: inline-block;
  background-image: linear-gradient(
    120deg,
    var(--cream) 0%,
    var(--cream) 35%,
    #ffffff 50%,
    var(--cream) 65%,
    var(--cream) 100%
  );
  background-size: 200% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: background-position;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 40px;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  background: rgba(26, 26, 26, 0.04);
}

/* ── REDESIGNED ACCENT BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 15.5px;
}

.btn--primary {
  background: linear-gradient(135deg, #32945a 0%, #267044 100%);
  color: var(--white);
  border-color: rgba(38, 112, 68, 0.85);
  box-shadow: 0 6px 20px rgba(38, 112, 68, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #267044 0%, #1c5433 100%);
  border-color: #1c5433;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(38, 112, 68, 0.40);
}

.btn--outline {
  background: #ffffff;
  color: var(--cream);
  border-color: var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(38, 112, 68, 0.15);
}

/* ── FIXED NAV (WHITE WITH SUBTLE TRANSPARENCY & BLUR) ────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: all var(--dur) var(--ease);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
  flex-shrink: 0;
}

.nav__cube {
  width: 20px;
  height: 22px;
  color: var(--cream);
  transition: transform var(--dur) var(--ease);
}

.nav__logo:hover .nav__cube {
  transform: rotate(-15deg) scale(1.1);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  max-width: 580px;
  margin: 0 auto;
}

.nav__actions {
  flex-shrink: 0;
}

.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--cream);
  font-weight: 600;
}

/* ── ANIMATED FLOWING RAINBOW WAVE FOR ACTIVE NAV LINK ────── */
@keyframes rainbowFlow {
  0%   { color: #FF1E56; -webkit-text-fill-color: #FF1E56; }
  17%  { color: #FF7B00; -webkit-text-fill-color: #FF7B00; }
  33%  { color: #FFD000; -webkit-text-fill-color: #FFD000; }
  50%  { color: #00E676; -webkit-text-fill-color: #00E676; }
  67%  { color: #00B0FF; -webkit-text-fill-color: #00B0FF; }
  83%  { color: #9D00FF; -webkit-text-fill-color: #9D00FF; }
  100% { color: #FF1E56; -webkit-text-fill-color: #FF1E56; }
}

/* ── ANIMATED RAINBOW BORDER FLOW ────────────────────────── */
@keyframes rainbowBorderFlow {
  0%   { border-color: #FF1E56; box-shadow: 0 0 6px rgba(255, 30, 86, 0.15), 0 2px 4px rgba(255, 30, 86, 0.08); }
  17%  { border-color: #FF7B00; box-shadow: 0 0 6px rgba(255, 123, 0, 0.15), 0 2px 4px rgba(255, 123, 0, 0.08); }
  33%  { border-color: #FFD000; box-shadow: 0 0 6px rgba(255, 208, 0, 0.15), 0 2px 4px rgba(255, 208, 0, 0.08); }
  50%  { border-color: #00E676; box-shadow: 0 0 6px rgba(0, 230, 118, 0.15), 0 2px 4px rgba(0, 230, 118, 0.08); }
  67%  { border-color: #00B0FF; box-shadow: 0 0 6px rgba(0, 176, 255, 0.15), 0 2px 4px rgba(0, 176, 255, 0.08); }
  83%  { border-color: #9D00FF; box-shadow: 0 0 6px rgba(157, 0, 255, 0.15), 0 2px 4px rgba(157, 0, 255, 0.08); }
  100% { border-color: #FF1E56; box-shadow: 0 0 6px rgba(255, 30, 86, 0.15), 0 2px 4px rgba(255, 30, 86, 0.08); }
}

.nav__links a.active,
.nav__mobile-link.active {
  font-weight: 700 !important;
}

.nav__links a.active .letter-swap__front,
.nav__links a.active .letter-swap__back,
.nav__mobile-link.active .letter-swap__front,
.nav__mobile-link.active .letter-swap__back {
  animation: rainbowFlow 3s linear infinite !important;
  animation-delay: calc(var(--char-index, 0) * -0.28s) !important;
  font-weight: 700 !important;
}

/* 3D In-and-Out Flip Animation on Section Change */
@keyframes charFlipInAndOut {
  0% {
    transform: rotateX(0deg) translateY(0);
  }
  45% {
    transform: rotateX(90deg) translateY(-8px) scale(0.9);
    opacity: 0.2;
  }
  55% {
    transform: rotateX(-90deg) translateY(8px) scale(0.9);
    opacity: 0.2;
  }
  100% {
    transform: rotateX(0deg) translateY(0) scale(1);
    opacity: 1;
  }
}

.nav__links a.section-flip .letter-swap__char,
.nav__mobile-link.section-flip .letter-swap__char {
  animation: charFlipInAndOut 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards !important;
  animation-delay: calc(var(--char-index, 0) * 35ms) !important;
}

/* 3D Letter Swap */
.letter-swap {
  display: inline-flex;
  align-items: center;
  overflow: visible;
  perspective: 700px;
  line-height: 1;
  pointer-events: none;
}

.letter-swap__char {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  transition-delay: calc(var(--char-index, 0) * 22ms);
  will-change: transform;
}

.letter-swap__space {
  width: 0.3em;
}

.letter-swap__front,
.letter-swap__back {
  display: inline-block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: color 0.3s ease;
}

.letter-swap__front {
  transform: translateZ(0.55em);
  color: var(--cream-dim);
}

.letter-swap__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateX(-90deg) translateZ(0.55em);
  color: var(--cream);
  font-weight: 600;
}

.nav__links a:hover .letter-swap__char,
.nav__mobile-link:hover .letter-swap__char,
.nav__actions .btn:hover .letter-swap__char {
  transform: rotateX(90deg);
}

.nav__links a:hover .letter-swap__front {
  color: var(--cream);
}

.nav .btn--outline {
  background: #ffffff;
  color: var(--cream);
  border-color: var(--border-hover);
  transition: all 0.3s var(--ease);
}

.nav .btn--outline:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 112, 68, 0.12);
}

/* ── BORDER GLOW COMPONENT (REACTBITS BORDER GLOW) ─────────── */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 28px;
  --glow-padding: 40px;
  --cone-spread: 25;
  --fill-opacity: 0.5;

  position: relative;
  border-radius: var(--border-radius, 28px);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  background: var(--card-bg, #ffffff);
  overflow: visible;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.border-glow-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 20px rgba(168, 85, 247, 0.28),
    0 2px 10px rgba(6, 182, 212, 0.22);
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.2s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Colored mesh-gradient border */
.border-glow-card::before {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card-bg, #ffffff) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 65%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(335, 100%, 60%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(160, 100%, 50%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 55%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 60%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(280, 100%, 65%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(320, 100%, 60%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-base, linear-gradient(#a855f7 0 100%)) border-box;

  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 20) * 1%),
      transparent calc((100 - var(--cone-spread) - 20) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 20) * 1%),
      transparent calc((100 - var(--cone-spread) - 20) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* Colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  -webkit-mask-composite: source-out, destination-over, destination-over, destination-over, destination-over, destination-over;
  opacity: calc(var(--fill-opacity, 0.5) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* Outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding, 40px) * -1);
  pointer-events: none;
  z-index: 1;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding, 40px);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(40deg 80% 80% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%));
}

.border-glow-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  z-index: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav__burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px clamp(20px, 5vw, 48px);
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--cream-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav__mobile-link:hover {
  color: var(--cream);
}

/* ── HERO: CURSOR ORIGIN EXPERIENCE (DARK CANVAS PRESERVED) ─── */
.hero-origin {
  position: relative;
  height: 100svh;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark-hero);
}

.origin-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.origin-shader-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 900ms ease-out;
}

.origin-shader-canvas.loaded {
  opacity: 1;
}

.origin-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.origin-curve-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.origin-curve-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.origin-crosshair-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.origin-crosshair-wrap.revealed {
  opacity: 1;
}

.crosshair-v {
  position: absolute;
  top: -50vh;
  height: 200vh;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  will-change: transform;
}

.crosshair-h {
  position: absolute;
  left: -50vw;
  width: 200vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  will-change: transform;
}

.origin-grid-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr auto 1fr;
}

.origin-hero-content {
  grid-column: 2 / span 2;
  grid-row: 2;
  align-self: center;
  max-width: 520px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease) 300ms, transform 700ms var(--ease) 300ms;
}

.origin-hero-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

.origin-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  margin-bottom: 24px;
}

.origin-brand-cube {
  height: 26px;
  width: auto;
  color: #FFFFFF;
}

.origin-brand-text {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #FFFFFF;
}

.origin-title {
  font-family: var(--font-head);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-wrap: balance;
}

.origin-desc {
  font-size: clamp(15px, 1.25vw, 17px);
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.65;
  margin-bottom: 0;
  text-wrap: balance;
}

/* ── ABOUT SECTION (21/8/26 ORIGINAL) ──────────────────────── */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}

.about__bio {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: 20px;
}

.about__bio:last-of-type {
  margin-bottom: 32px;
}

.about__bio strong {
  color: var(--cream);
  font-weight: 600;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.about__fact {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.fact-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.fact-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--cream-muted);
}

.skills {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.skills-header {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.skills-subhead {
  font-size: 15.5px;
  color: var(--cream-dim);
  margin-top: 10px;
  max-width: 640px;
  line-height: 1.6;
}

/* ── 3D SKILLS CAROUSEL (REACT SLIDES INSPIRED) ─────────────── */
.skills-carousel {
  position: relative;
  width: 100%;
  padding: 10px 0 20px 0;
  overflow: hidden;
}

.carousel__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.carousel__container {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 380px;
  perspective: 1200px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.carousel__slide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.45s ease;
  will-change: transform, opacity, filter;
  cursor: pointer;
}

.carousel__slide-item.is-active {
  cursor: default;
}

.carousel__slide-item.is-hidden {
  pointer-events: none;
  opacity: 0;
}

/* Skill Carousel Card — Luxury Atmospheric Mesh & Glassmorphism */
.skill-carousel-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28),
              0 2px 10px rgba(0, 0, 0, 0.12),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
  transition: border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              transform 0.4s var(--ease);
}

/* Ambient Corner Aura Glow */
.skill-carousel-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.55;
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 1;
}

.carousel__slide-item.is-active .skill-carousel-card::before {
  opacity: 0.9;
  transform: scale(1.1);
}

/* Subtle Card Bottom-Left Counter Glow */
.skill-carousel-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.35;
  transition: opacity 0.45s ease;
  z-index: 1;
}

.carousel__slide-item.is-active .skill-carousel-card::after {
  opacity: 0.65;
}

/* ── INDIVIDUAL CARD ATMOSPHERIC GRADIENTS ───────────────────── */

/* Slide 1: Frontend — Emerald & Sage Aurora */
.carousel__slide-item[data-index="0"] .skill-carousel-card {
  background: radial-gradient(130% 120% at 85% 15%, rgba(42, 145, 85, 0.38) 0%, rgba(18, 52, 32, 0.25) 40%, rgba(10, 16, 12, 0.96) 80%),
              linear-gradient(150deg, #142018 0%, #0d1410 50%, #070a08 100%);
  border-color: rgba(65, 175, 105, 0.24);
}
.carousel__slide-item[data-index="0"] .skill-carousel-card::before {
  background: radial-gradient(circle, rgba(55, 195, 115, 0.55) 0%, transparent 70%);
}
.carousel__slide-item[data-index="0"] .skill-carousel-card::after {
  background: radial-gradient(circle, rgba(38, 112, 68, 0.45) 0%, transparent 70%);
}
.carousel__slide-item[data-index="0"].is-active .skill-carousel-card {
  border-color: rgba(75, 205, 125, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42),
              0 0 35px rgba(42, 145, 85, 0.22),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.28);
}

/* Slide 2: Backend — Deep Indigo & Electric Cobalt */
.carousel__slide-item[data-index="1"] .skill-carousel-card {
  background: radial-gradient(130% 120% at 85% 15%, rgba(60, 115, 200, 0.38) 0%, rgba(22, 42, 75, 0.25) 40%, rgba(10, 14, 22, 0.96) 80%),
              linear-gradient(150deg, #131b28 0%, #0c111a 50%, #06090e 100%);
  border-color: rgba(80, 145, 225, 0.24);
}
.carousel__slide-item[data-index="1"] .skill-carousel-card::before {
  background: radial-gradient(circle, rgba(70, 145, 255, 0.55) 0%, transparent 70%);
}
.carousel__slide-item[data-index="1"] .skill-carousel-card::after {
  background: radial-gradient(circle, rgba(45, 95, 180, 0.45) 0%, transparent 70%);
}
.carousel__slide-item[data-index="1"].is-active .skill-carousel-card {
  border-color: rgba(95, 165, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42),
              0 0 35px rgba(60, 115, 200, 0.22),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.28);
}

/* Slide 3: Database & Cloud — Topaz Amber & Warm Bronze */
.carousel__slide-item[data-index="2"] .skill-carousel-card {
  background: radial-gradient(130% 120% at 85% 15%, rgba(210, 125, 45, 0.36) 0%, rgba(65, 38, 16, 0.25) 40%, rgba(18, 12, 8, 0.96) 80%),
              linear-gradient(150deg, #201710 0%, #140e0a 50%, #0b0705 100%);
  border-color: rgba(230, 145, 65, 0.24);
}
.carousel__slide-item[data-index="2"] .skill-carousel-card::before {
  background: radial-gradient(circle, rgba(245, 150, 50, 0.52) 0%, transparent 70%);
}
.carousel__slide-item[data-index="2"] .skill-carousel-card::after {
  background: radial-gradient(circle, rgba(190, 105, 30, 0.45) 0%, transparent 70%);
}
.carousel__slide-item[data-index="2"].is-active .skill-carousel-card {
  border-color: rgba(255, 170, 80, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42),
              0 0 35px rgba(210, 125, 45, 0.22),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.28);
}

/* Slide 4: AI & Intelligent — Violet Orchid & Cyber Magenta */
.carousel__slide-item[data-index="3"] .skill-carousel-card {
  background: radial-gradient(130% 120% at 85% 15%, rgba(155, 75, 205, 0.38) 0%, rgba(48, 22, 70, 0.25) 40%, rgba(16, 9, 22, 0.96) 80%),
              linear-gradient(150deg, #1c1125 0%, #120a18 50%, #09050d 100%);
  border-color: rgba(175, 95, 225, 0.24);
}
.carousel__slide-item[data-index="3"] .skill-carousel-card::before {
  background: radial-gradient(circle, rgba(190, 100, 245, 0.55) 0%, transparent 70%);
}
.carousel__slide-item[data-index="3"] .skill-carousel-card::after {
  background: radial-gradient(circle, rgba(135, 60, 185, 0.45) 0%, transparent 70%);
}
.carousel__slide-item[data-index="3"].is-active .skill-carousel-card {
  border-color: rgba(200, 120, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42),
              0 0 35px rgba(155, 75, 205, 0.22),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.28);
}

/* Slide 5: DevOps & Infra — Radiant Cyan & Deep Marine Teal */
.carousel__slide-item[data-index="4"] .skill-carousel-card {
  background: radial-gradient(130% 120% at 85% 15%, rgba(38, 160, 170, 0.38) 0%, rgba(16, 48, 55, 0.25) 40%, rgba(8, 16, 18, 0.96) 80%),
              linear-gradient(150deg, #111e20 0%, #0b1315 50%, #05090a 100%);
  border-color: rgba(60, 185, 195, 0.24);
}
.carousel__slide-item[data-index="4"] .skill-carousel-card::before {
  background: radial-gradient(circle, rgba(50, 195, 210, 0.55) 0%, transparent 70%);
}
.carousel__slide-item[data-index="4"] .skill-carousel-card::after {
  background: radial-gradient(circle, rgba(30, 135, 145, 0.45) 0%, transparent 70%);
}
.carousel__slide-item[data-index="4"].is-active .skill-carousel-card {
  border-color: rgba(75, 215, 230, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42),
              0 0 35px rgba(38, 160, 170, 0.22),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.28);
}

/* Slide 6: WebGL & Performance — Sunset Coral & Crimson Glow */
.carousel__slide-item[data-index="5"] .skill-carousel-card {
  background: radial-gradient(130% 120% at 85% 15%, rgba(215, 85, 90, 0.38) 0%, rgba(65, 24, 28, 0.25) 40%, rgba(18, 8, 10, 0.96) 80%),
              linear-gradient(150deg, #221215 0%, #150a0d 50%, #0b0506 100%);
  border-color: rgba(235, 105, 115, 0.24);
}
.carousel__slide-item[data-index="5"] .skill-carousel-card::before {
  background: radial-gradient(circle, rgba(250, 100, 110, 0.55) 0%, transparent 70%);
}
.carousel__slide-item[data-index="5"] .skill-carousel-card::after {
  background: radial-gradient(circle, rgba(190, 65, 75, 0.45) 0%, transparent 70%);
}
.carousel__slide-item[data-index="5"].is-active .skill-carousel-card {
  border-color: rgba(255, 125, 135, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42),
              0 0 35px rgba(215, 85, 90, 0.22),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.28);
}

/* Card Content Typography & Tags */
.skill-carousel-card__header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.skill-carousel-card__title {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.skill-carousel-card__desc {
  position: relative;
  z-index: 2;
  font-size: 14.5px;
  color: #E2E2E8;
  line-height: 1.65;
  margin: 12px 0 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.skill-carousel-card__tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.skill-carousel-card .skill-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #F4F4F6;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.skill-carousel-card .skill-pill:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Side Action Buttons */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 18, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: all 0.25s var(--ease);
}

.carousel__btn--prev {
  left: 20px;
}

.carousel__btn--next {
  right: 20px;
}

.carousel__btn:hover {
  background: rgba(32, 32, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.carousel__btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Dots Navigation */
.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel__dot:hover {
  background: rgba(26, 26, 26, 0.45);
}

.carousel__dot.active {
  width: 28px;
  border-radius: 9999px;
  background: #111111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Handling */
@media (max-width: 900px) {
  .carousel__container {
    max-width: 480px;
    height: 380px;
  }
  .carousel__btn--prev {
    left: 4px;
  }
  .carousel__btn--next {
    right: 4px;
  }
}

@media (max-width: 640px) {
  .carousel__container {
    max-width: calc(100% - 24px);
    height: 410px;
  }
  .skill-carousel-card {
    padding: 26px 20px;
    border-radius: 22px;
  }
  .skill-carousel-card__title {
    font-size: 20px;
  }
  .carousel__btn {
    width: 40px;
    height: 40px;
  }
  .carousel__btn--prev {
    left: -4px;
  }
  .carousel__btn--next {
    right: -4px;
  }
}

/* ── PROJECTS (CLEAN AESTHETIC 3-CARD SHOWCASE) ─────────────── */
.projects {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.projects-header {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.projects-subhead {
  font-size: 15.5px;
  color: var(--cream-dim);
  margin-top: 10px;
  max-width: 620px;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* ── EXACT DRIBBLE TILES REPRESENTATION ─────────────────────── */
.project-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 32px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  min-height: 520px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(26, 26, 26, 0.04), 0 2px 8px rgba(26, 26, 26, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.project-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(26, 26, 26, 0.2);
  box-shadow: 0 24px 64px rgba(26, 26, 26, 0.09), 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* Atmospheric Sunburst Background */
.project-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.project-tile__aura {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-tile:hover .project-tile__aura {
  transform: scale(1.04);
}

/* Tile Content Container (All Text & Buttons Inside) */
.project-tile__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 36px 32px 32px 32px;
  box-sizing: border-box;
}

.project-tile__top {
  display: flex;
  flex-direction: column;
}

.project-tile__title {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111111;
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.project-tile__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
  max-width: 95%;
}

.project-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.proj-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(26, 26, 26, 0.04);
  color: #374151;
  border: 1px solid rgba(26, 26, 26, 0.08);
  transition: all 0.2s ease;
}

.proj-pill:hover {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
}

/* Tile Bottom Actions (Inside the Tile) */
.project-tile__bottom {
  margin-top: 140px;
  display: flex;
  flex-direction: column;
}

.project-tile__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.tile-btn--github {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1A1A1A;
  border: 1px solid rgba(26, 26, 26, 0.12);
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tile-btn--github:hover {
  background: #FFFFFF;
  border-color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.tile-btn--live {
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  flex: 1.2;
}

.tile-btn--live:hover {
  background: #262626;
  border-color: #262626;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-tile {
    min-height: 480px;
    border-radius: 26px;
  }
  .project-tile__content {
    padding: 28px 24px 24px 24px;
  }
  .project-tile__bottom {
    margin-top: 100px;
  }
}

/* ── EDUCATION SECTION (MODERN CARD GRID REDESIGN) ──────────────────── */
.education {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ── EDUCATION SECTION (LUMINOUS LIQUID ETHER TILES) ──────────────────── */
.education {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.education ::selection,
#education ::selection,
.skills ::selection,
#skills ::selection {
  background-color: #FFFFFF;
  color: #000000;
}

.education ::-moz-selection,
#education ::-moz-selection,
.skills ::-moz-selection,
#skills ::-moz-selection {
  background-color: #FFFFFF;
  color: #000000;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.edu-card {
  position: relative;
  background: #0D0D11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
}

.edu-card:hover {
  transform: translateZ(0);
}

/* Liquid Ether Canvas Background */
.edu-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  transform: translateZ(0);
  transition: opacity 0.4s ease;
}

.edu-card:hover .edu-card__bg {
  opacity: 1;
}

.liquid-ether-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.liquid-ether-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Card Content Layer */
.edu-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(18, 18, 22, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
}

.edu-card__title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0;
}

.edu-card__org {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #E4E4E7;
  margin: 0;
  letter-spacing: -0.01em;
}

.edu-card__desc {
  font-size: 14.5px;
  color: #A1A1AA;
  line-height: 1.65;
  margin: 4px 0 0 0;
}

/* Skills Tag Pills inside Liquid Ether Edu Card */
.edu-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.edu-card .skill-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #E4E4E7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.edu-card .skill-pill:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .edu-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .edu-card__content {
    padding: 18px 16px;
  }
}

/* ── CONTACT SECTION (MODERN REDESIGN) ────────────────────── */
.contact {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.contact__wrapper {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.contact__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--cream);
}

.contact__text {
  font-size: 16px;
  color: var(--cream-dim);
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--bg-card);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.15);
  margin-top: 8px;
}

.contact__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.25);
  gap: 14px;
}

.contact__btn svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__btn:hover svg {
  transform: translateX(2px);
}

.contact__social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--cream-muted);
  background: var(--bg);
  transition: all var(--dur) var(--ease);
}

.social-link--github:hover {
  border-color: #0a0a0a;
  color: #0a0a0a;
  background: rgba(10, 10, 10, 0.08);
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.22);
}

.social-link--linkedin:hover {
  border-color: #0db8de;
  color: #0db8de;
  background: rgba(13, 184, 222, 0.09);
  box-shadow: 0 4px 16px rgba(13, 184, 222, 0.32);
}

.social-link--x:hover {
  border-color: #0a0a0a;
  color: #0a0a0a;
  background: rgba(10, 10, 10, 0.08);
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.22);
}

@media (max-width: 640px) {
  .contact__btn {
    padding: 14px 28px;
    font-size: 14px;
  }
}

/* ── FOOTER (21/8/26 ORIGINAL) ──────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--cream);
  z-index: 2;
}

.footer__cube {
  width: 18px;
  height: 18px;
  color: var(--cream);
}

.footer__copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Share Tech Mono', 'Orbitron', monospace;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--cream-muted);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }
  .footer__copy {
    position: static;
    transform: none;
    white-space: normal;
  }
}

/* ── CINEMATIC SECTION FADE-IN & SLIDE-UP ANIMATIONS ───────── */
.animate-in,
.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-in.visible,
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__actions {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .skills__grid {
    grid-template-columns: 1fr;
  }
  .about__facts {
    grid-template-columns: 1fr;
  }
  .origin-grid-container {
    grid-template-columns: 1fr;
  }
  .origin-hero-content {
    grid-column: 1;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .contact__social { flex-wrap: wrap; }
  .origin-title { font-size: clamp(34px, 10vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
  .origin-shader-canvas,
  .origin-hero-content,
  .origin-crosshair-wrap,
  .origin-scroll-hint {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

