/* ============================================================
   SHREESH NALAWADE — PORTFOLIO DESIGN SYSTEM v4.0
   Palette: Dark Plum + Deep Crimson + Steel Blue + Ice White
   Extracted from reference: #211828, #49273F, #706F8B,
   #8097B7, #E1FDFE, #77080E
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #211828;
  color: #E1FDFE;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #211828; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #77080E, #49273F);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #9a0a12; }

::selection { background: rgba(119, 8, 14, 0.45); color: #E1FDFE; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* --- CSS VARIABLES --- */
:root {
  /* Palette from reference image */
  --bg-deep:      #211828;   /* Darkest — main background */
  --bg-mid:       #2a1e33;   /* Slightly lighter plum */
  --bg-card:      #30243a;   /* Card surfaces */
  --bg-card-hover:#3a2e46;   /* Card hover */
  --plum:         #49273F;   /* Rich plum — borders, accents */
  --plum-light:   #5a3452;   /* Lighter plum */

  /* Steel & Neutrals */
  --steel:        #706F8B;   /* Muted steel — secondary text */
  --steel-blue:   #8097B7;   /* Cool blue — subtle accents */
  --steel-light:  #9AADC4;   /* Lighter steel blue */

  /* Whites */
  --ice:          #E1FDFE;   /* Ice white — primary text */
  --ice-dim:      #c0d8da;   /* Dimmed ice — body text */
  --ice-muted:    #8a9ea0;   /* Very muted ice */

  /* Reds — Crimson */
  --crimson:      #77080E;   /* Deep crimson — primary accent */
  --crimson-bright:#9a0a12;  /* Brighter crimson — hover */
  --crimson-glow: #b81018;   /* Glowing crimson — highlights */
  --blood:        #570008;   /* Darkest red — shadows */

  /* Semantic aliases */
  --text-primary:   #E1FDFE;
  --text-secondary: #8097B7;
  --text-muted:     #706F8B;
  --text-accent:    #9a0a12;

  /* Glows — subtle and warm */
  --glow-sm:    0 0 15px rgba(119, 8, 14, 0.2), 0 0 30px rgba(119, 8, 14, 0.06);
  --glow-md:    0 0 20px rgba(119, 8, 14, 0.25), 0 0 50px rgba(119, 8, 14, 0.1);
  --glow-lg:    0 0 30px rgba(119, 8, 14, 0.3), 0 0 80px rgba(119, 8, 14, 0.12);
  --glow-text:  0 0 10px rgba(154, 10, 18, 0.5), 0 0 25px rgba(119, 8, 14, 0.2);

  /* Typography */
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --font-accent:  'Bebas Neue', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container-max: 1400px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Borders */
  --border-subtle: 1px solid rgba(73, 39, 63, 0.4);
  --border-card:   1px solid rgba(73, 39, 63, 0.5);
  --border-accent: 1px solid rgba(119, 8, 14, 0.3);
  --border-steel:  1px solid rgba(128, 151, 183, 0.15);

  /* Glass */
  --glass-bg: rgba(33, 24, 40, 0.7);
  --glass-border: rgba(73, 39, 63, 0.35);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .three-canvas, #particles-canvas { display: none !important; }
}


/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at center, #2a1e33 0%, #211828 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.2vw, 16px);
  color: var(--crimson-bright);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 30px;
  opacity: 0;
  animation: preloaderFadeIn 0.5s 0.2s forwards;
}

.preloader-bar-track {
  width: clamp(200px, 30vw, 400px);
  height: 2px;
  background: rgba(73, 39, 63, 0.4);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blood), var(--crimson), var(--crimson-bright));
  width: 0%;
  border-radius: 1px;
  box-shadow: 0 0 20px rgba(119, 8, 14, 0.6);
  transition: width 0.3s var(--ease-smooth);
}

.preloader-percent {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.2em;
  margin-top: 15px;
  opacity: 0;
  animation: preloaderFadeIn 0.5s 0.4s forwards;
}

@keyframes preloaderFadeIn { to { opacity: 1; } }

.preloader-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: rgba(119, 8, 14, 0.15);
  border-style: solid;
  border-width: 0;
}
.preloader-corner--tl { top: 30px; left: 30px; border-top-width: 1px; border-left-width: 1px; }
.preloader-corner--tr { top: 30px; right: 30px; border-top-width: 1px; border-right-width: 1px; }
.preloader-corner--bl { bottom: 30px; left: 30px; border-bottom-width: 1px; border-left-width: 1px; }
.preloader-corner--br { bottom: 30px; right: 30px; border-bottom-width: 1px; border-right-width: 1px; }


/* ============================================================
   CUSTOM CURSOR (ALWAYS ON & HIGHEST Z-INDEX)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--crimson-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999 !important;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  box-shadow: 0 0 12px rgba(154, 10, 18, 0.7);
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(128, 151, 183, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998 !important;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s, opacity 0.3s;
}

.cursor-dot.hovering { width: 14px; height: 14px; background: rgba(154, 10, 18, 0.6); }
.cursor-ring.hovering { width: 60px; height: 60px; border-color: rgba(119, 8, 14, 0.5); }

.cursor-label {
  position: fixed;
  pointer-events: none;
  z-index: 999999 !important;
  transform: translate(15px, 15px);
  background: rgba(14, 10, 18, 0.9);
  border: 1px solid rgba(154, 10, 18, 0.5);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  white-space: nowrap;
  text-shadow: var(--glow-text);
}
.cursor-label.visible { opacity: 1; }

@media (hover: none), (max-width: 767px) {
  .cursor-dot, .cursor-ring, .cursor-label { display: none !important; }
}


/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.3s;
}

#main-nav.scrolled {
  background: rgba(33, 24, 40, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 12px 40px;
  border-bottom: 1px solid rgba(73, 39, 63, 0.3);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ice);
  position: relative;
}

.nav-logo .red { color: var(--crimson-bright); }

.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--crimson), var(--steel-blue));
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover, .nav-link.active { color: var(--crimson-bright); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 9100;
}

.nav-hamburger span {
  width: 100%;
  height: 2px;
  background: var(--crimson-bright);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 9050;
  background: rgba(33, 24, 40, 0.97);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.nav-mobile-overlay.open { opacity: 1; visibility: visible; }
.nav-mobile-overlay .nav-link { font-size: 18px; letter-spacing: 0.2em; }

@media (max-width: 768px) {
  #main-nav { padding: 16px 20px; }
  #main-nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.section-label {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--crimson), var(--plum));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ice);
  margin-bottom: 20px;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--crimson-bright) 0%, var(--crimson-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--steel);
  max-width: 600px;
  line-height: 1.7;
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.012) 2px,
    rgba(0, 0, 0, 0.012) 4px
  );
  opacity: 0.15;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 50%, rgba(33, 24, 40, 0.6) 100%);
}


/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #211828;
}

/* Animated Hero Photo Background */
.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(115%) brightness(40%) saturate(85%);
  mix-blend-mode: luminosity;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 0.2s ease-out, filter 0.5s ease;
  animation: heroPhotoBreath 14s ease-in-out infinite alternate;
}

@keyframes heroPhotoBreath {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-10px, -8px); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(33, 24, 40, 0.45) 0%, rgba(33, 24, 40, 0.95) 100%),
    linear-gradient(180deg, rgba(33, 24, 40, 0.6) 0%, rgba(33, 24, 40, 0.2) 50%, #211828 100%);
}

.hero-scan-beam {
  display: none;
}


#hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 8, 14, 0.05) 0%, rgba(73, 39, 63, 0.03) 40%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroOrbPulse 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroOrbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Perspective Cyber Grid Overlay */
.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(128, 151, 183, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154, 10, 18, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 80%);
  transform: perspective(500px) rotateX(45deg);
  transform-origin: center 70%;
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 60px; }
}


.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1vw, 16px);
  color: var(--crimson-bright);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  text-shadow: var(--glow-text);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 130px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ice);
  margin-bottom: 12px;
}

.hero-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-lastname {
  color: #E1FDFE;
  background: linear-gradient(135deg, #E1FDFE 0%, #9A0A12 50%, #E1FDFE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(154, 10, 18, 0.25));
  display: block;
  font-weight: 900;
  letter-spacing: -0.01em;
}


.hero-roles {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.1vw, 18px);
  color: var(--steel-blue);
  letter-spacing: 0.1em;
  min-height: 28px;
  margin-bottom: 40px;
}

.hero-roles .typed-cursor {
  color: var(--crimson-bright);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
  opacity: 0;
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--blood) 100%);
  color: var(--ice);
  border: 1px solid rgba(119, 8, 14, 0.7);
  box-shadow: 0 4px 15px rgba(119, 8, 14, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--crimson-bright) 0%, var(--crimson) 100%);
  border-color: var(--crimson-bright);
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(73, 39, 63, 0.15);
  color: var(--steel-blue);
  border: 1px solid rgba(128, 151, 183, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--steel-blue);
  color: var(--ice);
  background: rgba(128, 151, 183, 0.1);
  box-shadow: 0 0 15px rgba(128, 151, 183, 0.1);
  transform: translateY(-2px);
}

/* --- Hero Socials --- */
.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
}

.hero-social-link {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(73, 39, 63, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out-expo);
  color: var(--steel);
  background: rgba(73, 39, 63, 0.1);
}

.hero-social-link svg { width: 18px; height: 18px; }

.hero-social-link:hover {
  border-color: var(--crimson);
  color: var(--crimson-bright);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
  background: rgba(119, 8, 14, 0.08);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1s 3s forwards;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--crimson), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


/* ============================================================
   SECTION BACKGROUNDS — Varied depth, same palette family
   ============================================================ */
#about {
  background: linear-gradient(180deg, #211828 0%, #251c30 40%, #271e32 100%);
  position: relative;
}
#about::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 8, 14, 0.035) 0%, transparent 65%);
  top: 15%;
  right: -120px;
  pointer-events: none;
}

#experience {
  background: linear-gradient(180deg, #271e32 0%, #241a2e 50%, #211828 100%);
  position: relative;
}
#experience::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 151, 183, 0.025) 0%, transparent 60%);
  top: 30%;
  left: -100px;
  pointer-events: none;
}

#skills {
  background: linear-gradient(180deg, #211828 0%, #261d30 30%, #2a1e35 50%, #261d30 70%, #211828 100%);
  position: relative;
}

#projects {
  background: linear-gradient(180deg, #211828 0%, #241a2e 30%, #271e32 50%, #241a2e 70%, #211828 100%);
  position: relative;
}

#certifications {
  background: linear-gradient(180deg, #211828 0%, #251c30 40%, #241a2e 100%);
  position: relative;
}
#certifications::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 8, 14, 0.025) 0%, transparent 60%);
  bottom: 20%;
  right: -100px;
  pointer-events: none;
}

#education {
  background: linear-gradient(180deg, #241a2e 0%, #211828 100%);
}

#contact {
  background: linear-gradient(180deg, #211828 0%, #251c30 30%, #2a1e35 50%, #251c30 70%, #211828 100%);
  position: relative;
}
#contact::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 8, 14, 0.025) 0%, rgba(73, 39, 63, 0.02) 40%, transparent 65%);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.about-text p {
  color: var(--ice-dim);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-text .highlight-word {
  color: var(--crimson-bright);
  font-weight: 700;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat-card {
  background: var(--bg-card);
  border: var(--border-card);
  padding: clamp(20px, 2vw, 28px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  border-radius: var(--radius-md);
}

.about-stat-card:hover {
  border-color: rgba(119, 8, 14, 0.3);
  box-shadow: var(--glow-sm);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.about-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--plum), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.about-stat-card:hover::before { opacity: 1; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--crimson-bright), var(--steel-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.75vw, 12px);
  color: var(--steel);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .about-stats-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 14px;
  width: 1px;
  background: linear-gradient(to bottom, var(--crimson), var(--plum), var(--plum-light), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 12px rgba(119, 8, 14, 0.6);
  z-index: 2;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(119, 8, 14, 0.3);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0; }
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--crimson-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--bg-card);
  border: var(--border-card);
  padding: clamp(24px, 2.5vw, 36px);
  transition: all 0.4s var(--ease-out-expo);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.timeline-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--crimson), var(--plum), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.timeline-card:hover {
  border-color: rgba(73, 39, 63, 0.7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}
.timeline-card:hover::after { opacity: 1; }

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 800;
  color: var(--ice);
  margin-bottom: 4px;
}

.timeline-card .company {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 13px);
  color: var(--crimson-bright);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-card .company .location { color: var(--steel); }

.timeline-card p {
  color: var(--ice-dim);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.7;
  margin-bottom: 8px;
}

.timeline-card .metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.metric-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--steel-blue);
  background: rgba(128, 151, 183, 0.08);
  border: 1px solid rgba(128, 151, 183, 0.18);
  padding: 5px 12px;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel);
  border: 1px solid rgba(73, 39, 63, 0.4);
  padding: 4px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s;
  border-radius: var(--radius-sm);
  background: rgba(73, 39, 63, 0.1);
}

.tech-tag:hover {
  border-color: rgba(119, 8, 14, 0.3);
  color: var(--ice-dim);
  background: rgba(119, 8, 14, 0.06);
}


/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-constellation {
  position: relative;
  width: 100%;
  min-height: 500px;
  margin: 40px 0;
}

#skills-canvas {
  width: 100%;
  height: 500px;
  display: block;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.skill-category {
  background: var(--bg-card);
  border: var(--border-card);
  padding: clamp(24px, 2vw, 32px);
  transition: all 0.4s var(--ease-out-expo);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--plum), var(--steel-blue));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.skill-category:hover {
  border-color: rgba(73, 39, 63, 0.7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.skill-category:hover::before {
  transform: scaleX(1);
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-category-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(119, 8, 14, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson-bright);
  font-size: 18px;
  background: rgba(119, 8, 14, 0.06);
}

.skill-category-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--ice);
  letter-spacing: -0.01em;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-blue);
  background: rgba(73, 39, 63, 0.15);
  border: 1px solid rgba(73, 39, 63, 0.35);
  padding: 6px 14px;
  letter-spacing: 0.03em;
  transition: all 0.3s;
  border-radius: var(--radius-sm);
}

.skill-item:hover {
  background: rgba(119, 8, 14, 0.1);
  border-color: rgba(119, 8, 14, 0.25);
  color: var(--ice);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}


/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: var(--border-card);
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(40px);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  align-items: stretch;
}

.project-card:hover {
  border-color: rgba(128, 151, 183, 0.4);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(154, 10, 18, 0.15);
  transform: translateY(-4px);
}

@media (max-width: 992px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}


.project-image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: var(--bg-mid);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-image img { transform: scale(1.05); }

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(33, 24, 40, 0.4) 0%, transparent 60%);
  z-index: 2;
}

.project-image .project-number {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: rgba(119, 8, 14, 0.12);
  z-index: 3;
  line-height: 1;
}

.project-info {
  padding: clamp(30px, 3vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 12px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 800;
  color: var(--ice);
  margin-bottom: 12px;
  line-height: 1.15;
}

.project-desc {
  color: var(--ice-dim);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.project-metric { text-align: left; }

.project-metric-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--crimson-bright), var(--steel-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.project-metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--steel);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) { direction: ltr; }
  .project-image { min-height: 200px; }
}


/* ============================================================
   CERTIFICATIONS SECTION
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.cert-card {
  background: var(--bg-card);
  border: var(--border-card);
  padding: clamp(20px, 2vw, 28px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  border-radius: var(--radius-md);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--plum), var(--steel-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.cert-card:hover {
  border-color: rgba(73, 39, 63, 0.7);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.cert-card:hover::before { transform: scaleX(1); }

.cert-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--steel-blue);
  opacity: 0.7;
}

.cert-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(13px, 1vw, 16px);
  color: var(--ice);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cert-score {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--crimson-bright), var(--steel-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   EDUCATION SECTION
   ============================================================ */
.education-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  border: var(--border-card);
  padding: clamp(28px, 2.5vw, 40px);
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
  border-radius: var(--radius-lg);
}

.edu-card:hover {
  border-color: rgba(73, 39, 63, 0.7);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.edu-card .year-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel-blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  border: 1px solid rgba(128, 151, 183, 0.2);
  padding: 4px 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: rgba(128, 151, 183, 0.06);
}

.edu-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 800;
  color: var(--ice);
  margin-bottom: 6px;
}

.edu-card .degree {
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--ice-dim);
  margin-bottom: 4px;
}

.edu-card .grade {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--crimson-bright);
  margin-top: 8px;
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  color: var(--ice);
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-info h2 .highlight {
  background: linear-gradient(135deg, var(--crimson-bright), var(--crimson-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  color: var(--ice-dim);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--steel-blue);
  font-family: var(--font-mono);
  font-size: clamp(12px, 0.9vw, 14px);
  transition: color 0.3s, transform 0.3s;
  letter-spacing: 0.05em;
}

.contact-link-item:hover {
  color: var(--ice);
  transform: translateX(6px);
}

.contact-link-item svg {
  width: 20px;
  height: 20px;
  color: var(--steel-blue);
  flex-shrink: 0;
  transition: color 0.3s;
}

.contact-link-item:hover svg { color: var(--crimson-bright); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group { position: relative; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: var(--border-card);
  padding: 16px 20px;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  outline: none;
  resize: vertical;
  border-radius: var(--radius-md);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(119, 8, 14, 0.4);
  box-shadow: 0 0 20px rgba(119, 8, 14, 0.1);
  background: var(--bg-card-hover);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.form-group textarea { min-height: 140px; }

.form-submit { align-self: flex-start; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: linear-gradient(180deg, #211828 0%, #1a1220 100%);
  border-top: 1px solid rgba(73, 39, 63, 0.3);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.1em;
}

.footer-left .red { color: var(--crimson-bright); }

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-social {
  color: var(--steel);
  transition: color 0.3s, transform 0.3s;
}

.footer-social:hover {
  color: var(--crimson-bright);
  transform: translateY(-2px);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-signal {
  text-align: center;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(119, 8, 14, 0.15);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }
.is-visible { opacity: 1; transform: translate(0) scale(1); }

.glass-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73, 39, 63, 0.4), transparent);
  margin: 0;
}

.glow-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--plum), transparent);
  margin-bottom: 24px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .hero-name { font-size: clamp(36px, 12vw, 56px); }
  .section-title { font-size: clamp(28px, 8vw, 40px); }
  .btn { padding: 12px 24px; font-size: 11px; }
  .certs-grid { grid-template-columns: 1fr; }
  .education-cards { grid-template-columns: 1fr; }
}

@media (min-width: 1921px) {
  :root { --container-max: 1600px; }
  html { font-size: 17px; }
}

@media (min-width: 2560px) {
  :root { --container-max: 1800px; }
  html { font-size: 18px; }
}


/* ============================================================
   ADVANCED 3D EFFECTS & INTERACTIVE FX
   ============================================================ */

/* 3D Perspective Card Container */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.tilt-card * {
  transform-style: preserve-3d;
}

/* 3D Layer Elevation */
.layer-depth-sm { transform: translateZ(15px); }
.layer-depth-md { transform: translateZ(30px); }
.layer-depth-lg { transform: translateZ(45px); }

/* Glare Spotlight Overlay */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(225, 253, 254, 0.12),
    rgba(154, 10, 18, 0.08) 40%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  mix-blend-mode: overlay;
}

.tilt-card:hover .card-glare {
  opacity: 1;
}

/* Glowing Border Pulse Beam */
.project-card, .skill-category, .timeline-card, .about-stat-card, .cert-card, .edu-card {
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    var(--glow-angle, 135deg),
    transparent 20%,
    rgba(154, 10, 18, 0.5) 50%,
    rgba(128, 151, 183, 0.5) 70%,
    transparent 90%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 4;
}

.project-card:hover::before,
.skill-category:hover::before {
  opacity: 1;
}

/* SFX Floating Toggle Widget */
#sfx-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(33, 24, 40, 0.85);
  border: 1px solid rgba(128, 151, 183, 0.25);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#sfx-toggle-btn:hover {
  border-color: var(--crimson-bright);
  color: var(--ice);
  box-shadow: 0 0 20px rgba(154, 10, 18, 0.3);
  transform: translateY(-2px);
}

.sfx-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sfx-wave-bar {
  width: 2px;
  height: 100%;
  background: var(--crimson-bright);
  border-radius: 1px;
  animation: wavePulse 1.2s infinite ease-in-out alternate;
}

.sfx-wave-bar:nth-child(1) { animation-delay: 0s; }
.sfx-wave-bar:nth-child(2) { animation-delay: 0.2s; }
.sfx-wave-bar:nth-child(3) { animation-delay: 0.4s; }

#sfx-toggle-btn.muted .sfx-wave-bar {
  animation: none;
  height: 3px;
  background: var(--steel);
}

@keyframes wavePulse {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Cyber Text Glitch Effect */
.glitch-hover {
  position: relative;
  display: inline-block;
}

.glitch-hover:hover {
  animation: glitchAnim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glitchAnim {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); text-shadow: 2px 0 #9A0A12, -2px 0 #8097B7; }
  40% { transform: translate(-2px, -2px); text-shadow: -2px 0 #9A0A12, 2px 0 #8097B7; }
  60% { transform: translate(2px, 2px); text-shadow: 2px 0 #8097B7, -2px 0 #9A0A12; }
  80% { transform: translate(2px, -2px); text-shadow: -1px 0 #9A0A12, 1px 0 #8097B7; }
  100% { transform: translate(0); text-shadow: none; }
}

/* Terminal Nav Button */
.terminal-nav-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--crimson-bright);
  background: rgba(154, 10, 18, 0.12);
  border: 1px solid rgba(154, 10, 18, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
  transition: all 0.3s var(--ease-out-expo);
  margin-left: 8px;
}

.terminal-nav-btn:hover {
  background: var(--crimson-bright);
  color: var(--ice);
  box-shadow: 0 0 15px rgba(154, 10, 18, 0.5);
  transform: translateY(-1px);
}

/* Cyber Terminal Modal Overlay */
.terminal-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(14, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.terminal-modal.active {
  opacity: 1;
  visibility: visible;
}



.terminal-container {
  width: 100%;
  max-width: 760px;
  height: 480px;
  background: #16101c;
  border: 1px solid rgba(128, 151, 183, 0.25);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(154, 10, 18, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #211828;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(73, 39, 63, 0.4);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}
.dot-close { background: #e74c3c; }
.dot-min { background: #f1c40f; }
.dot-max { background: #2ecc71; }

.terminal-title {
  font-size: 11px;
  color: var(--steel-blue);
  letter-spacing: 0.1em;
}

.terminal-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ice);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-line { word-break: break-word; }
.terminal-line .green { color: #2ecc71; font-weight: 700; }
.terminal-line .cyan { color: #8097B7; font-weight: 700; }
.terminal-line .crimson { color: #9A0A12; font-weight: 700; }
.terminal-line .yellow { color: #f1c40f; }

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #1c1424;
  border-top: 1px solid rgba(73, 39, 63, 0.4);
  gap: 10px;
}

.terminal-prompt {
  color: var(--crimson-bright);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Project Detail Showcase Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  background: rgba(14, 10, 18, 0.92);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.project-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.modal-open {
  overflow: hidden !important;
}



.project-modal-content {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  background: #1a1222;
  border: 1px solid rgba(128, 151, 183, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(154, 10, 18, 0.3);
  overflow-y: auto;
  padding: 36px;
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(154, 10, 18, 0.2);
  border: 1px solid rgba(154, 10, 18, 0.4);
  color: var(--ice);
  font-size: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.3s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: var(--crimson-bright);
  color: #fff;
  transform: scale(1.1);
}

.modal-header-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--crimson-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--ice);
  margin-bottom: 16px;
  font-weight: 800;
}

.modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--steel);
  margin-bottom: 28px;
}

/* Media Showcase Grid & Video */
.modal-media-section {
  margin: 24px 0;
}

.project-video-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(128, 151, 183, 0.2);
  margin-bottom: 20px;
}

.project-video-box video {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: contain;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery-img-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(128, 151, 183, 0.2);
  background: #120b18;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-img-wrapper:hover img {
  transform: scale(1.06);
}

.gallery-img-label {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-blue);
  background: rgba(22, 16, 28, 0.9);
}

/* ============================================================
   BATTLESTATION & BIO HUB STYLES
   ============================================================ */
.battlestation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.battlestation-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(128, 151, 183, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.battlestation-card:hover {
  border-color: var(--crimson-bright);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(154, 10, 18, 0.3);
  transform: translateY(-6px);
  background: rgba(33, 24, 40, 0.85);
}

.hotspot-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--crimson-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hotspot-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.hotspot-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--ice);
  margin-bottom: 8px;
}

.hotspot-desc {
  font-size: 13px;
  color: var(--ice-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hotspot-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.battlestation-card:hover .hotspot-cta {
  color: var(--ice);
}

/* Draggable Badges */
.draggable-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(22, 16, 28, 0.85);
  border: 1px dashed rgba(128, 151, 183, 0.4);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ice);
  cursor: grab !important;
  user-select: none;
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.draggable-badge:active {
  cursor: grabbing !important;
  transform: scale(1.05);
  border-color: var(--crimson-bright);
  box-shadow: 0 0 20px rgba(154, 10, 18, 0.4);
}

/* Real-Time RGB Theme Modes */
body.rgb-stealth {
  --crimson-bright: #777777;
  --crimson: #444444;
  --steel-blue: #999999;
}

body.rgb-stealth .hero-lastname {
  background: linear-gradient(135deg, #ffffff 0%, #666666 100%) !important;
  -webkit-background-clip: text !important;
}

body.rgb-cyber-white {
  --crimson-bright: #E1FDFE;
  --crimson: #8097B7;
  --steel-blue: #E1FDFE;
}

body.rgb-cyber-white .hero-lastname {
  background: linear-gradient(135deg, #ffffff 0%, #8097B7 100%) !important;
  -webkit-background-clip: text !important;
}



