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

:root {
  --bg-dark: #000000;
  --bg-card: rgba(18, 18, 22, 0.65);
  --bg-card-hover: rgba(28, 28, 35, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.25);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent-cyan: #38bdf8;
  --accent-white: #ffffff;
  --accent-glow: 0 0 20px rgba(255, 255, 255, 0.15);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* --- ORBITRON 3-SECOND INTRO OVERLAY --- */
#netflix-intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: auto;
  animation: netflixOverlayFadeOut 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 3.0s;
}

.netflix-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.netflix-text {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 12px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 45%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.7));
  animation: avengersTitleZoom 3.0s ease-in-out forwards;
  will-change: transform, opacity, filter;
}

@keyframes avengersTitleZoom {
  0% {
    opacity: 0;
    transform: scale(0.3);
    filter: blur(16px);
    letter-spacing: 2px;
  }
  45% {
    opacity: 1;
    transform: scale(1.0);
    filter: blur(0px) drop-shadow(0 0 45px rgba(255, 255, 255, 0.9));
    letter-spacing: 12px;
  }
  75% {
    opacity: 1;
    transform: scale(1.06);
    filter: blur(0px) drop-shadow(0 0 60px rgba(255, 255, 255, 1));
    letter-spacing: 14px;
  }
  100% {
    opacity: 0;
    transform: scale(4.2);
    filter: blur(24px);
    letter-spacing: 32px;
  }
}

@keyframes netflixOverlayFadeOut {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Subtle Grid Background Pattern */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Background Interactive Particle Canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* --- INTRO FRAME ANIMATION SECTION --- */
#intro-scroll-container {
  height: 350vh; /* Scroll length for the 207 frame animation intro */
  position: relative;
  width: 100%;
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#hero-canvas.faded {
  opacity: 0;
  pointer-events: none;
}

/* --- FUTURISTIC HERO HUD OVERLAY (Strict Z-Index & Click Isolation) --- */
#hero-hud-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 50;
  pointer-events: none !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 110px 5% 40px;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  opacity: 1;
  transform: translateY(0);
}

#hero-hud-overlay.scrolled-out {
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none !important;
  visibility: hidden !important;
}

/* HUD LEFT: IDENTITY PANEL */
.hud-left {
  max-width: 480px;
  pointer-events: auto !important;
  position: relative;
  z-index: 60;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hud-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.hud-bar-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 24px;
  width: 100%;
}

.hud-bar-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hud-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, #ffffff 100%);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hud-bar-percent {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.hud-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hud-tags-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hud-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  pointer-events: auto !important;
  position: relative;
  z-index: 100;
}

/* HUD RIGHT: SYSTEM OVERVIEW PANEL */
.hud-right {
  pointer-events: auto !important;
  position: relative;
  z-index: 60;
}

.hud-panel {
  width: 320px;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(56, 189, 248, 0.05);
  position: relative;
}

.hud-panel-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.hud-info-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hud-bullet {
  color: var(--accent-cyan);
  font-weight: 700;
}

.hud-key {
  color: var(--text-muted);
}

.hud-val {
  color: #ffffff;
  font-weight: 600;
}

.hud-cursor {
  animation: blinkCursor 1s infinite;
  color: var(--accent-cyan);
  font-weight: 700;
}

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

/* BOTTOM CENTER: SCROLL TO EXPLORE INDICATOR */
.hud-bottom-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  opacity: 0.9;
  pointer-events: none !important;
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--accent-cyan);
  border-radius: 99px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: #ffffff;
  border-radius: 99px;
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* --- 100% TRANSPARENT HEADER NAVBAR --- */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.nav-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.intro-logo-img {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
  animation: logoPulse 2s infinite ease-in-out;
}

.hud-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.9)); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.nav-links a:hover {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.status-badge:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* --- MAIN CONTENT CONTAINER --- */
main {
  position: relative;
  z-index: 100 !important;
}

/* BALANCED OPTIMIZED SECTION SPACING */
.section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 32px;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  padding-top: 100px;
  padding-bottom: 40px;
  position: relative;
  z-index: 100 !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
}

/* --- HIGH-PRIORITY 100% RELIABLE BUTTON STYLES --- */
.btn-primary {
  padding: 13px 26px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff;
  cursor: pointer !important;
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
  user-select: none;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer !important;
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
  user-select: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* HERO RIGHT: CINEMATIC TECH SHOWCASE */
.tech-showcase-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  pointer-events: auto !important;
  z-index: 500 !important;
  transition: all 0.4s ease;
}

.tech-showcase-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.avatar-frame {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  box-shadow: var(--accent-glow);
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
  pointer-events: auto !important;
  z-index: 500 !important;
}

.avatar-icon {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  pointer-events: none;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: spinRing 4s linear infinite;
  transition: border-color 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

.reactor-ring-inner {
  position: absolute;
  inset: 6px;
  border: 1.5px dotted rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  animation: spinRingReverse 3s linear infinite;
  transition: border-color 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

.reactor-core-glow {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  opacity: 0.5;
  animation: reactorPulse 2s ease-in-out infinite alternate;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Arc Reactor Hover State & Active State (Minimal Elegant Cyan Glow & Active Motion) */
.avatar-frame:hover,
.avatar-frame.active-reactor {
  transform: scale(1.04) !important;
  border-color: rgba(56, 189, 248, 0.8) !important;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 
    0 0 18px rgba(56, 189, 248, 0.3),
    inset 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

.avatar-frame:hover .avatar-ring,
.avatar-frame.active-reactor .avatar-ring {
  inset: -6px !important;
  border-color: rgba(56, 189, 248, 0.8) !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5)) !important;
}

.avatar-frame:hover .reactor-ring-inner,
.avatar-frame.active-reactor .reactor-ring-inner {
  inset: 6px !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4)) !important;
}

.avatar-frame:hover .reactor-core-glow,
.avatar-frame.active-reactor .reactor-core-glow {
  opacity: 0.75 !important;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%) !important;
}

.avatar-frame:hover .avatar-icon,
.avatar-frame.active-reactor .avatar-icon {
  color: #ffffff !important;
  transform: scale(1.05) !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes reactorPulse {
  0% {
    transform: scale(0.94);
    opacity: 0.35;
  }
  100% {
    transform: scale(1.06);
    opacity: 0.65;
  }
}

.showcase-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-main);
}

.showcase-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-tags-mini {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.tag-mini {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.about-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.philosophy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.philosophy-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.philosophy-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.philosophy-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.philosophy-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- QUICK STATS GRID --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- EDUCATION SECTION --- */
.education-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.edu-main h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.edu-main p {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 6px;
}

.edu-year {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.edu-meta {
  display: flex;
  gap: 24px;
}

.meta-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 14px;
  text-align: center;
}

.meta-box-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-box-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --- MOUSE-DIRECTION CONTROLLED EXPERIENCE TIMELINE --- */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.horizontal-timeline-card {
  width: 370px;
  flex-shrink: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  user-select: none;
}

.horizontal-timeline-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  background: var(--bg-card-hover);
}

.timeline-num-badge {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
}

.role-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-top: 6px;
}

.company-name {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 600;
  margin-top: 4px;
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  display: inline-block;
  margin-top: 8px;
}

.responsibility-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.responsibility-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 16px;
  line-height: 1.45;
}

.responsibility-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #ffffff;
}

/* --- 3D INTERACTIVE TECH GLOBE SPHERE --- */
.tech-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 600;
}

.tech-globe-wrapper {
  width: 100%;
  height: 520px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

#tech-globe-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-globe-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  padding: 7px 16px;
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tech-globe-tag:hover, .tech-globe-tag.active-hover {
  z-index: 9999 !important;
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 10px 30px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.4) !important;
}

.tech-globe-tag.dimmed {
  opacity: 0.12 !important;
  pointer-events: none;
}

/* --- FEATURED PROJECTS --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* FREELANCE WORK - SINGLE LINE (4 COLUMNS) ON DESKTOP */
#freelance .projects-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

#freelance .project-card {
  padding: 24px 20px;
}

@media (max-width: 1100px) {
  #freelance .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-folder-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.project-link {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #ffffff;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-top: 14px;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.project-tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* --- AWARDS & CERTIFICATIONS SECTION STYLES --- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.award-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.award-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.award-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  flex-shrink: 0;
}

.award-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-main);
}

.award-org {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- CERTIFICATIONS INTERACTIVE ACCORDION GRID --- */
.cert-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.cert-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 22px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  align-self: start;
}

.cert-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.cert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.cert-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-ribbon-icon {
  color: #ffffff;
  flex-shrink: 0;
  opacity: 0.9;
}

.cert-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.cert-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-count-badge {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.cert-chevron {
  color: var(--text-dim);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-card.open .cert-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.cert-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.cert-card.open .cert-card-body {
  max-height: 300px;
  opacity: 1;
  margin-top: 18px;
}

.cert-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-item:hover {
  color: #ffffff;
  padding-left: 6px;
}

/* --- COMMUNITIES & CONTACT --- */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.community-pill {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.community-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

/* CONTACT SECTION & FORMSPREE FORM */
.contact-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-form {
  max-width: 580px;
  margin: 28px auto 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 110px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
}

footer p {
  margin-top: 6px;
}

/* --- EXCELLENT COMPREHENSIVE RESPONSIVE DESIGN AUDIT --- */

/* TABLETS (768px to 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #hero-hud-overlay {
    padding: 100px 30px 40px;
  }
}

/* MOBILE PHONES & SMALL TABLETS (under 768px) */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 75px;
    left: 20px;
    right: 20px;
    background: rgba(10, 12, 18, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 1001;
  }
  .nav-links.active {
    display: flex;
  }
  .status-badge {
    padding: 5px 12px;
    font-size: 0.75rem;
  }
  
  .navbar {
    width: calc(100% - 24px);
    top: 16px;
  }

  /* HUD Overlay Mobile Centering */
  #hero-hud-overlay {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 85px 16px 30px;
  }

  .hud-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hud-name {
    font-size: 2.2rem;
    letter-spacing: 2px;
  }

  .hud-bar-line {
    max-width: 240px;
    margin: 8px auto 16px;
  }

  .hud-subtitle {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .hud-tags-row {
    justify-content: center;
    font-size: 0.75rem;
  }

  .hud-buttons {
    justify-content: center;
  }

  .hud-panel {
    width: 100%;
    max-width: 320px;
    padding: 18px;
    margin: 0 auto;
  }

  .hud-bottom-scroll {
    bottom: 12px;
    font-size: 0.7rem;
  }

  /* Main Sections Mobile */
  .section {
    padding: 45px 16px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 90px;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .education-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .edu-meta {
    width: 100%;
    justify-content: space-between;
  }

  .tech-globe-wrapper {
    height: 380px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    padding: 32px 18px;
  }

  .horizontal-timeline-card {
    width: 310px;
    padding: 20px;
  }
}

/* SMALL MOBILE PHONES (< 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .status-badge {
    font-size: 0.7rem;
  }
  .hud-name {
    font-size: 1.85rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
