:root {
      --bg-obsidian: #071b27;
      --bg-card: rgba(15, 15, 20, 0.72);
      --crimson-primary: #dc2626;
      --crimson-bright: #ef4444;
      --crimson-deep: #7f1d1d;
      --border-subtle: rgba(255, 255, 255, 0.08);
    }

    * {
      box-sizing: border-box;
    }
    html {
    overflow-x: clip;
    max-width: 100%;
}
    body {
      background-color: var(--bg-obsidian);
      color: #f4f4f5;
      font-family: 'Inter', sans-serif;
      overflow-x: clip;
    }

    h1, h2, h3, .font-display {
      font-family: 'Space Grotesk', sans-serif;
    }

    .font-mono-code {
      font-family: 'JetBrains Mono', monospace;
    }

    /* Scroll Progress Bar */
    #scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      width: 0%;
      background: linear-gradient(90deg,  #1E7EA0, #4DB6D6, #A9E4F7);
      box-shadow: 0 0 12px rgba(77, 182, 214, 0.8);
      z-index: 100;
      transition: width 0.08s linear;
    }

    /* Ambient Grid & Blood Red Aurora */
    .bg-grid {
      background-size: 48px 48px;
      background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
      mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
    }

    .aurora-blob {
      position: fixed;
      border-radius: 9999px;
     
      will-change: transform;
      pointer-events: none;
      z-index: -2;
      opacity: 0.35;
      animation: auroraFloat 14s ease-in-out infinite alternate;
    }

    .aurora-1 {
      width: 540px;
      height: 540px;
      top: -140px;
      left: -100px;
      background: radial-gradient(circle, rgba(30, 126, 160, 0.55), transparent 70%);
    }

    .aurora-2 {
      width: 480px;
      height: 480px;
      top: 15%;
      right: -120px;
      background: radial-gradient(circle, rgba(153, 27, 27, 0.5), transparent 70%);
      animation-delay: -5s;
    }

    .aurora-3 {
      width: 420px;
      height: 420px;
      bottom: -100px;
      left: 30%;
      background: radial-gradient(circle, rgba(77, 182, 214, 0.3), transparent 70%);
      animation-delay: -9s;
    }

    @keyframes auroraFloat {
      0% { transform: translate(0px, 0px) scale(1); }
      50% { transform: translate(35px, -25px) scale(1.08); }
      100% { transform: translate(-25px, 30px) scale(0.95); }
    }

    /* Cursor Spotlight */
    #cursor-spotlight {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
        rgba(30, 126, 160, 0.12),
        transparent 45%
      );
      transition: background 0.1s ease;
    }

    /* Kinetic Hero Text Reveal */
    .reveal-line {
      overflow: hidden;
    }

    .reveal-inner {
      display: inline-block;
      transform: translateY(110%);
      opacity: 0;
      animation: textRevealUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.22s; }
    .delay-3 { animation-delay: 0.34s; }
    .delay-4 { animation-delay: 0.46s; }

    @keyframes textRevealUp {
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    /* Scroll Triggered Reveal */
    .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
    .scroll-reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* 3D Kinetic Orb */
    .orb-stage {
      perspective: 1000px;
    }

    .crimson-orb-wrap {
      position: relative;
      width: 240px;
      height: 240px;
      transform-style: preserve-3d;
      transition: transform 0.15s ease-out;
    }

    .crimson-orb-core {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), rgba(30, 126, 160, 0.45) 40%, #450a0a 85%, #090203 100%);
  box-shadow:
    0 0 65px rgba(30, 126, 160, 0.55),
    inset -16px -18px 34px rgba(0, 0, 0, 0.9),
    inset 14px 14px 28px rgba(254, 202, 202, 0.45);
  animation: orbPulse 5s ease-in-out infinite;
}

.crimson-orb-core::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(169, 228, 247, 0.65) 25%, transparent 50%, rgba(30, 126, 160, 0.5) 75%, transparent 100%);
  filter: blur(18px);
  animation: spinSwirl 8s linear infinite;
}

.crimson-orb-core::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 18%;
  width: 42%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.65), transparent 75%);
  transform: rotate(-28deg);
}

@keyframes spinSwirl {
  to { transform: rotate(360deg); }
}

    .orb-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 1.5px solid rgba(77, 182, 214, 0.38);
      box-shadow: 0 0 18px rgba(30, 126, 160, 0.25);
      
    }

    .orb-ring-1 {
      transform: rotateX(68deg) rotateY(18deg);
      animation: spinRing1 10s linear infinite;
    }

    .orb-ring-2 {
      inset: -12px;
      border-color: rgba(169, 228, 247, 0.22);
      border-style: dashed;
      transform: rotateX(-55deg) rotateY(35deg);
      animation: spinRing2 14s linear infinite reverse;
    }

    @keyframes orbPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.04); }
    }

    @keyframes spinRing1 {
      from { transform: rotateX(68deg) rotateY(18deg) rotateZ(0deg); }
      to { transform: rotateX(68deg) rotateY(18deg) rotateZ(360deg); }
    }

    @keyframes spinRing2 {
      from { transform: rotateX(-55deg) rotateY(35deg) rotateZ(0deg); }
      to { transform: rotateX(-55deg) rotateY(35deg) rotateZ(360deg); }
    }

    /* Glassmorphic Card & 3D Tilt */
   .glass-card {
    background: rgba(11, 36, 52, 0.88);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease-out;
}

    .project-card:hover {
      border-color: rgba(77, 182, 214, 0.55);
      box-shadow: 0 18px 45px -15px rgba(30, 126, 160, 0.35), 0 0 22px rgba(30, 126, 160, 0.18);
    }

    .project-card .thumb-img {
      transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .project-card:hover .thumb-img {
      transform: scale(1.06);
    }

    /* Magnetic Button */
    .magnetic-btn {
      position: relative;
      transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease, background-color 0.25s ease;
    }

    /* Marquee */
    .marquee-track {
      display: flex;
      width: max-content;
      animation: marqueeScroll 28s linear infinite;
    }

    .marquee-wrap:hover .marquee-track {
      animation-play-state: paused;
    }

    @keyframes marqueeScroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* Social Link Button Sweep */
    .social-btn {
      position: relative;
      overflow: hidden;
      transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .social-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(30, 126, 160, 0.16), transparent);
      transform: translateX(-100%);
      transition: transform 0.45s ease;
    }

    .social-btn:hover::before {
      transform: translateX(100%);
    }

    .social-btn:hover {
      transform: translateY(-2px);
      border-color: rgba(77, 182, 214, 0.6);
      box-shadow: 0 8px 24px -8px rgba(30, 126, 160, 0.45);
    }

    /* Custom Scrollbar */
    #projects {
    scroll-margin-top: 100px;
}

    #about, #stack, #connect, #contact {
    scroll-margin-top: 100px;
  }
 

.python-float {
  animation: pythonFloat 4.5s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(circle, #000 46%, transparent 70%);
  mask-image: radial-gradient(circle, #000 46%, transparent 70%);
}

@keyframes pythonFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%      { transform: translateY(-10px) scale(1.03); }
}
#crimson-orb:hover .python-float {
  filter: brightness(1.3) saturate(1.4);
  transition: filter 0.3s ease;
}

#crimson-orb:hover .orb-ring {
  border-color: rgba(169, 228, 247, 0.85);
  box-shadow: 0 0 28px rgba(77, 182, 214, 0.75);
}

#crimson-orb:hover .orb-ring-1 {
  animation-duration: 3.5s;
}

#crimson-orb:hover .orb-ring-2 {
  animation-duration: 4.5s;
}

#orb-stage:hover > div:first-child {
  background-color: rgba(30, 126, 160, 0.55);
  transform: scale(1.25);
  transition: all 0.35s ease;
}
.aurora-wave {
  animation: waveDrift 14s ease-in-out infinite alternate;
}

@keyframes waveDrift {
  0%   { transform: translateX(-2%) translateY(0px) scaleY(1); }
  50%  { transform: translateX(2%) translateY(-18px) scaleY(1.06); }
  100% { transform: translateX(-1%) translateY(12px) scaleY(0.97); }
}
