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

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --bg-primary: #04060a;
  --bg-secondary: #080c16;
  --bg-tertiary: #111625;
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --primary: #ff2a2a;
  --primary-rgb: 255, 42, 42;
  --primary-light: #ff5555;
  --primary-dark: #cc0000;
  --secondary: #1a1a2e;
  --secondary-rgb: 26, 26, 46;
  --accent: #ff6b6b;
  --accent-rgb: 255, 107, 107;
  --grad-hero: linear-gradient(135deg, #ff2a2a 0%, #cc0000 40%, #990000 100%);
  --grad-red: linear-gradient(90deg, #ff3333 0%, #cc0000 100%);
  --grad-red-glow: linear-gradient(135deg, #ff5555 0%, #ff2a2a 50%, #cc0000 100%);
  --glass-bg: rgba(17, 22, 37, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --container-width: 1280px;
  --header-height: 80px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-primary); color: var(--color-text-primary); font-family: var(--font-body); overflow-x: hidden; }
body { position: relative; overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }
::selection { background: rgba(255, 42, 42, 0.3); color: #fff; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* ======================= */
/* PRELOADER               */
/* ======================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-shield {
  margin-bottom: 1.5rem;
  animation: pulseShield 1.5s ease-in-out infinite;
}
.preloader-shield svg {
  filter: drop-shadow(0 0 20px rgba(255, 42, 42, 0.5));
}
.preloader-shield-path {
  animation: drawShield 2s ease-in-out infinite;
}
@keyframes drawShield {
  0% { stroke-dashoffset: 400; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -400; }
}
@keyframes pulseShield {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.preloader-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulseText 1.5s ease-in-out infinite alternate;
}
@keyframes pulseText { 0% { opacity: 0.5; } 100% { opacity: 1; } }

/* ======================= */
/* BACKGROUND EFFECTS      */
/* ======================= */
.bg-glowing-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.12; mix-blend-mode: screen; animation: floatOrb 25s infinite alternate ease-in-out; }
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, #ff2a2a 0%, transparent 70%); top: -250px; right: -150px; }
.orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, #990000 0%, transparent 70%); bottom: -200px; left: -150px; animation-duration: 30s; animation-delay: -5s; }
.orb-3 { width: 500px; height: 500px; background: radial-gradient(circle, #ff6b6b 0%, transparent 70%); top: 50%; left: 40%; opacity: 0.06; animation-duration: 20s; animation-delay: -10s; }
@keyframes floatOrb { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,-50px) scale(1.15); } 100% { transform: translate(-50px,60px) scale(0.9); } }

.cyber-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,42,42,0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,42,42,0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift { 0% { background-position: 0 0; } 100% { background-position: 50px 50px; } }

/* Floating Particles Canvas */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Mouse Glow */
.mouse-follower {
  position: fixed; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb),0.08) 0%, rgba(var(--primary-rgb),0.02) 40%, transparent 70%);
  transform: translate(-50%,-50%); pointer-events: none; z-index: 9999;
  mix-blend-mode: screen; opacity: 0;
  transition: opacity 0.3s ease;
}

/* ======================= */
/* TYPOGRAPHY              */
/* ======================= */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; color: var(--color-text-primary); line-height: 1.2; }
p { color: var(--color-text-secondary); font-size: 1.05rem; }

/* ======================= */
/* UTILITIES               */
/* ======================= */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }

.text-gradient {
  background: var(--grad-red-glow);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% 200%;
  animation: shimmerGradient 4s ease-in-out infinite;
}
@keyframes shimmerGradient { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.glass-card::after {
  content: '';
  position: absolute; inset: -1px;
  background: conic-gradient(from 0deg, #ff3333, #cc0000, #ff6b6b, #ff3333);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: rotateGradient 3s linear infinite;
}
.glass-card:hover::after { opacity: 0.5; }
@keyframes rotateGradient {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Internal card content z-index fix */
.glass-card > * { position: relative; z-index: 1; }

/* Spotlight effect on card hover */
.card-spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1;
  border-radius: 20px;
}

/* ======================= */
/* BUTTONS                 */
/* ======================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--grad-red); color: #ffffff;
  font-family: var(--font-heading); font-weight: 600;
  padding: 0.9rem 2rem; border-radius: 50px; border: none;
  cursor: pointer; text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(var(--primary-rgb),0.3), 0 4px 15px rgba(0,0,0,0.3);
  position: relative; overflow: hidden; z-index: 1;
  letter-spacing: 0.02em;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #cc0000, #ff3333);
  opacity: 0; transition: opacity 0.4s; z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 40px rgba(var(--primary-rgb),0.5), 0 8px 25px rgba(0,0,0,0.4);
  color: #fff;
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: transparent; color: var(--color-text-primary);
  font-family: var(--font-heading); font-weight: 600;
  padding: 0.9rem 2rem; border-radius: 50px;
  border: 1px solid var(--primary); cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(var(--primary-rgb),0.1);
  position: relative; overflow: hidden;
}
.btn-secondary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(var(--primary-rgb),0.05);
  opacity: 0; transition: opacity 0.3s;
}
.btn-secondary:hover::before { opacity: 1; }
.btn-secondary:hover {
  box-shadow: 0 0 25px rgba(var(--primary-rgb),0.3);
  transform: translateY(-4px);
  border-color: var(--primary);
  text-shadow: 0 0 8px rgba(var(--primary-rgb),0.3);
}

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.badge-red { background: rgba(255,42,42,0.12); color: #ff3333; border-color: rgba(255,42,42,0.25); box-shadow: 0 0 12px rgba(255,42,42,0.08); }
.badge-crimson { background: rgba(204,0,0,0.12); color: #ff5555; border-color: rgba(204,0,0,0.25); }
.badge-dark { background: rgba(255,107,107,0.12); color: #ff6b6b; border-color: rgba(255,107,107,0.25); }

/* ======================= */
/* NAVIGATION              */
/* ======================= */
header.header-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  z-index: 1000; transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}
header.header-nav.scrolled {
  background: rgba(4,6,10,0.85); border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  height: 70px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; text-decoration: none; gap: 0.6rem; }
.nav-logo-shield { transition: var(--transition-smooth); }
.nav-logo:hover .nav-logo-shield { filter: drop-shadow(0 0 15px rgba(255,42,42,0.7)); transform: rotate(5deg) scale(1.05); }
.nav-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }
.nav-logo-text span { color: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-link {
  color: var(--color-text-secondary); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative; padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active { color: var(--primary); text-shadow: 0 0 12px rgba(var(--primary-rgb),0.4); }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--grad-red); transition: var(--transition-smooth);
  box-shadow: 0 0 8px rgba(var(--primary-rgb),0.4);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  width: 260px;
  background: rgba(17,22,37,0.9); border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 14px; padding: 0.8rem 0;
  opacity: 0; pointer-events: none;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(10px) scale(1);
}
.nav-dropdown-item a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.5rem; color: var(--color-text-secondary);
  font-size: 0.9rem; transition: var(--transition-fast);
  border-left: 2px solid transparent;
}
.nav-dropdown-item a:hover {
  background: rgba(var(--primary-rgb),0.05); color: var(--primary);
  border-left-color: var(--primary);
}

.nav-actions { display: flex; align-items: center; gap: 1.2rem; }
.nav-search-btn {
  background: transparent; border: none; color: var(--color-text-secondary);
  font-size: 1.1rem; cursor: pointer; transition: var(--transition-fast);
  position: relative;
}
.nav-search-btn:hover { color: var(--primary); transform: scale(1.1); }

/* Search Overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(4,6,10,0.97);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  z-index: 1100; display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: var(--transition-smooth);
}
.search-overlay.active { opacity: 1; pointer-events: auto; }
.search-overlay-close {
  position: absolute; top: 2rem; right: 2rem;
  background: transparent; border: none; color: var(--color-text-muted);
  font-size: 2rem; cursor: pointer; transition: var(--transition-fast);
}
.search-overlay-close:hover { color: var(--primary); transform: rotate(90deg); }
.search-container { width: 100%; max-width: 600px; padding: 0 2rem; text-align: center; }
.search-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 2px solid var(--glass-border); color: var(--color-text-primary);
  font-family: var(--font-heading); font-size: 2rem;
  padding: 0.8rem 0; outline: none; text-align: center;
  transition: var(--transition-smooth);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 4px 20px -10px var(--primary); }

/* Burger Menu */
.burger-menu {
  display: none; flex-direction: column; justify-content: space-between;
  width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 1001;
}
.burger-line { width: 100%; height: 2px; background: var(--color-text-primary); border-radius: 2px; transition: var(--transition-smooth); }
.burger-menu.active .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-menu.active .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-menu.active .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ======================= */
/* HERO                    */
/* ======================= */
section.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  perspective: 1000px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 3rem; width: 100%;
}
.hero-content { z-index: 10; }

.hero-pre {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,42,42,0.08); border: 1px solid rgba(255,42,42,0.15);
  padding: 0.45rem 1.2rem; border-radius: 50px;
  color: var(--primary); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-pre .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); position: relative;
}
.hero-pre .pulse-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 1px solid var(--primary);
  animation: pingDot 1.5s infinite;
}
@keyframes pingDot { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

.hero-title { font-size: 3.8rem; line-height: 1.08; margin-bottom: 1.5rem; }
.hero-title .typed-cursor {
  display: inline-block; width: 3px; height: 0.9em;
  background: var(--primary); margin-left: 4px;
  animation: blink 0.8s infinite; vertical-align: middle;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc { font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 540px; line-height: 1.7; }
.hero-ctas { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 3.5rem; }

.hero-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.hero-feat-item { display: flex; align-items: center; gap: 0.8rem; }
.hero-feat-item i { color: var(--primary); font-size: 1.2rem; filter: drop-shadow(0 0 6px rgba(var(--primary-rgb),0.5)); }
.hero-feat-text h4 { font-size: 0.95rem; font-weight: 600; }
.hero-feat-text p { font-size: 0.8rem; color: var(--color-text-muted); }

/* ======================= */
/* HERO 3D LOGO CONTAINER  */
/* ======================= */
.hero-logo-container {
  position: relative;
  height: 550px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

#logoCanvas3d {
  width: 100%;
  height: 100%;
  outline: none;
  position: relative;
  z-index: 5;
}

.hero-logo-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,42,42,0.15) 0%, rgba(204,0,0,0.05) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Animated orbit rings */
.hero-logo-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 2;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 42, 42, 0.1);
}

.ring-1 {
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  animation: ringRotate1 20s linear infinite;
  border-style: dashed;
  border-color: rgba(255, 42, 42, 0.08);
}
.ring-2 {
  width: 80%;
  height: 80%;
  top: 10%; left: 10%;
  animation: ringRotate2 15s linear infinite reverse;
  border-style: dotted;
  border-color: rgba(255, 85, 85, 0.1);
}
.ring-3 {
  width: 60%;
  height: 60%;
  top: 20%; left: 20%;
  animation: ringRotate3 12s linear infinite;
  border-color: rgba(204, 0, 0, 0.12);
}

@keyframes ringRotate1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ringRotate2 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ringRotate3 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Animated Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  animation: bounceDown 2s infinite;
}
.scroll-indicator-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(var(--primary-rgb),0.3);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator-mouse::after {
  content: '';
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--primary);
  border-radius: 3px;
  animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(12px); } }
@keyframes bounceDown { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
.scroll-indicator span {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--color-text-muted);
}

/* ======================= */
/* STATS                   */
/* ======================= */
section.stats-section { padding: 4rem 0; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item {
  padding: 2.5rem 1.5rem; text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 25%; height: 50%;
  width: 1px; background: var(--glass-border);
}
.stat-item:hover { background: rgba(var(--primary-rgb),0.03); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; justify-content: center; align-items: center;
  margin: 0 auto 1rem; font-size: 1.3rem;
  background: rgba(var(--primary-rgb),0.08);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb),0.15);
  transition: var(--transition-smooth);
}
.stat-item:hover .stat-icon { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px rgba(var(--primary-rgb),0.2); }
.stat-val {
  font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
  line-height: 1; margin-bottom: 0.5rem;
  background: var(--grad-red-glow); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  display: inline-block;
}
.stat-lbl { font-size: 0.9rem; color: var(--color-text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* ======================= */
/* SECTIONS                */
/* ======================= */
section.section-space { padding: 8rem 0; position: relative; }

/* Animated Section Divider */
.section-divider {
  width: 100%; height: 1px; position: relative; overflow: visible;
  background: var(--glass-border);
}
.section-divider::after {
  content: '';
  position: absolute; top: -1px; left: -100%;
  width: 80px; height: 3px;
  background: var(--grad-red);
  animation: slideLine 4s linear infinite;
  box-shadow: 0 0 15px var(--primary);
}
@keyframes slideLine { 0% { left: -80px; } 100% { left: 100%; } }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 5rem; }
.section-pre {
  color: var(--primary); font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem; display: inline-block;
  position: relative;
}
.section-pre::before, .section-pre::after {
  content: ''; position: absolute; top: 50%;
  width: 30px; height: 1px; background: var(--primary);
}
.section-pre::before { left: -40px; }
.section-pre::after { right: -40px; }
.section-title { font-size: 2.8rem; margin-bottom: 1rem; }
.section-desc { font-size: 1.1rem; }

/* ======================= */
/* PATHWAY CARDS (3D)      */
/* ======================= */
.pathway-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; perspective: 1000px; }
.pathway-card {
  padding: 2.5rem 2rem; cursor: pointer;
  display: flex; flex-direction: column; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.03,0.98,0.52,0.99), box-shadow 0.5s ease;
}
.pathway-icon-wrapper {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 2rem; font-size: 1.8rem;
  transition: var(--transition-smooth);
  position: relative;
}
.pathway-icon-wrapper::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 14px; opacity: 0;
  transition: opacity 0.3s;
}
.p-icon-red { background: rgba(255,42,42,0.08); color: var(--primary); border: 1px solid rgba(255,42,42,0.15); }
.p-icon-red::after { box-shadow: 0 0 25px rgba(255,42,42,0.3); }
.p-icon-crimson { background: rgba(204,0,0,0.08); color: #cc0000; border: 1px solid rgba(204,0,0,0.15); }
.p-icon-crimson::after { box-shadow: 0 0 25px rgba(204,0,0,0.3); }
.p-icon-dark { background: rgba(255,107,107,0.08); color: #ff6b6b; border: 1px solid rgba(255,107,107,0.15); }
.p-icon-dark::after { box-shadow: 0 0 25px rgba(255,107,107,0.3); }
.p-icon-ember { background: rgba(255,140,0,0.08); color: #ff8c00; border: 1px solid rgba(255,140,0,0.15); }
.p-icon-ember::after { box-shadow: 0 0 25px rgba(255,140,0,0.3); }

.pathway-card:hover .pathway-icon-wrapper::after { opacity: 1; }
.pathway-card:hover .pathway-icon-wrapper { transform: scale(1.15) rotate(8deg); }
.pathway-card h3 { font-size: 1.3rem; margin-bottom: 1rem; transition: var(--transition-fast); }
.pathway-card p { font-size: 0.92rem; margin-bottom: 2rem; flex-grow: 1; }
.pathway-jobs { margin-bottom: 2.5rem; }
.pathway-jobs li {
  font-size: 0.88rem; color: var(--color-text-secondary);
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
  transition: var(--transition-fast);
}
.pathway-card:hover .pathway-jobs li { color: var(--color-text-primary); }
.pathway-jobs li i { font-size: 0.7rem; color: var(--color-text-muted); transition: var(--transition-fast); }
.pathway-card:hover .pathway-jobs li i { color: var(--primary); }
.pathway-link {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--color-text-primary);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  transition: var(--transition-fast);
}
.pathway-link i { font-size: 0.8rem; transition: var(--transition-smooth); }

.pathway-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(var(--primary-rgb),0.06);
}
.pathway-card:hover h3 { color: var(--primary); }
.pathway-card:hover .pathway-link { color: var(--primary); }
.pathway-card:hover .pathway-link i { transform: translateX(6px); }

/* ======================= */
/* COURSES SECTION         */
/* ======================= */
.course-filters { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 4rem; flex-wrap: wrap; }
.filter-btn {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
  padding: 0.6rem 1.5rem; border-radius: 50px;
  font-family: var(--font-heading); font-weight: 500; font-size: 0.88rem;
  cursor: pointer; transition: var(--transition-smooth);
  position: relative; overflow: hidden;
}
.filter-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-red);
  opacity: 0; transition: opacity 0.3s; z-index: -1;
}
.filter-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--color-text-primary); transform: translateY(-2px); }
.filter-btn.active {
  color: #ffffff; border-color: transparent;
  box-shadow: 0 0 20px rgba(var(--primary-rgb),0.25);
  font-weight: 600;
}
.filter-btn.active::before { opacity: 1; }

.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; perspective: 1200px; }

.course-card {
  display: flex; flex-direction: column; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.03,0.98,0.52,0.99), box-shadow 0.5s ease;
}

.course-img-placeholder {
  height: 200px;
  background: radial-gradient(circle at 70% 30%, rgba(var(--primary-rgb),0.08) 0%, rgba(var(--primary-rgb),0.03) 50%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--glass-border);
  display: flex; justify-content: center; align-items: center;
  position: relative; overflow: hidden;
}
.course-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(var(--primary-rgb),0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  animation: meshDrift 10s linear infinite;
}
@keyframes meshDrift { 0% { background-position: 0 0; } 100% { background-position: 16px 16px; } }

.course-img-placeholder i {
  font-size: 3.5rem; color: rgba(255,255,255,0.06);
  transition: var(--transition-smooth);
  z-index: 1;
}
.course-badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.5rem; z-index: 2; }
.course-card-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.course-title { font-size: 1.2rem; margin-bottom: 0.8rem; transition: var(--transition-fast); }
.course-desc { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: 1.5rem; flex-grow: 1; }
.course-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.2rem; margin-bottom: 1.5rem;
  font-size: 0.85rem; color: var(--color-text-muted);
}
.course-meta span { display: flex; align-items: center; gap: 0.4rem; }
.course-meta i { color: var(--primary); }
.course-footer { display: flex; align-items: center; justify-content: space-between; }
.course-price { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.course-price span { font-size: 0.75rem; font-weight: 500; color: var(--color-text-muted); display: block; }
.course-more-btn {
  background: transparent; border: none; color: var(--primary);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
  transition: var(--transition-fast);
}
.course-more-btn i { transition: var(--transition-fast); }
.course-more-btn:hover { color: var(--color-text-primary); }
.course-more-btn:hover i { transform: translateX(5px); }

.course-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 25px rgba(var(--primary-rgb),0.06); }
.course-card:hover .course-title { color: var(--primary); }
.course-card:hover .course-img-placeholder i { color: rgba(var(--primary-rgb),0.2); transform: scale(1.2) rotate(-5deg); }

/* ======================= */
/* SHOWCASE / LABS         */
/* ======================= */
.showcase-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 4rem; align-items: center; }
.showcase-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  height: 480px; display: flex; justify-content: center; align-items: center;
}

.lab-schematic { width: 90%; height: 90%; position: relative; display: flex; justify-content: center; align-items: center; }
.wireframe-box {
  width: 260px; height: 190px;
  border: 1px dashed rgba(var(--primary-rgb),0.4);
  border-radius: 14px; position: relative;
  animation: pulseWireframe 3s infinite ease-in-out;
  transform-style: preserve-3d;
}
.wireframe-box::before {
  content: ''; position: absolute; top: -18px; left: 20px;
  width: 65px; height: 32px;
  background: rgba(204,0,0,0.1);
  border: 1px solid rgba(204,0,0,0.4);
  border-radius: 6px;
}
.wireframe-box::after {
  content: ''; position: absolute; bottom: -22px; right: 30px;
  width: 95px; height: 42px;
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 6px;
}
@keyframes pulseWireframe {
  0%,100% { border-color: rgba(var(--primary-rgb),0.3); box-shadow: inset 0 0 15px rgba(var(--primary-rgb),0.02); }
  50% { border-color: rgba(var(--primary-rgb),0.7); box-shadow: inset 0 0 25px rgba(var(--primary-rgb),0.08); }
}
.wireframe-orb {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(var(--primary-rgb),0.3);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: orbOrbit 6s infinite linear;
}
@keyframes orbOrbit { 0% { transform: rotate(0deg) translateX(75px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(75px) rotate(-360deg); } }
.wireframe-lines { position: absolute; inset: 0; pointer-events: none; }
.wireframe-lines::before {
  content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.wireframe-lines::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, #cc0000, transparent);
}

.showcase-content h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.showcase-content p { margin-bottom: 2rem; }
.feature-check-list { margin-bottom: 2.5rem; }
.feature-check-list li { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.2rem; }
.feature-check-list li i { color: var(--primary); font-size: 1rem; margin-top: 0.3rem; filter: drop-shadow(0 0 5px rgba(var(--primary-rgb),0.4)); }
.feature-check-list li h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.2rem; }
.feature-check-list li p { font-size: 0.88rem; margin: 0; }

/* ======================= */
/* CONTACT                 */
/* ======================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.contact-info-panel h2 { font-size: 2.8rem; margin-bottom: 1.5rem; }
.contact-info-panel > p { margin-bottom: 3rem; }
.contact-methods { display: flex; flex-direction: column; gap: 2rem; }
.contact-method-item { display: flex; align-items: center; gap: 1.5rem; transition: var(--transition-fast); }
.contact-method-item:hover { transform: translateX(8px); }
.contact-method-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,42,42,0.08); border: 1px solid rgba(255,42,42,0.15);
  display: flex; justify-content: center; align-items: center;
  font-size: 1.2rem; color: var(--primary);
  filter: drop-shadow(0 0 5px rgba(var(--primary-rgb),0.2));
  transition: var(--transition-smooth);
  flex-shrink: 0;
}
.contact-method-item:hover .contact-method-icon {
  background: rgba(var(--primary-rgb),0.15);
  box-shadow: 0 0 20px rgba(var(--primary-rgb),0.2);
  transform: rotate(5deg) scale(1.05);
}
.contact-method-details h4 {
  font-size: 0.82rem; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem;
}
.contact-method-details p {
  font-size: 1.05rem; color: var(--color-text-primary);
  font-family: var(--font-heading); font-weight: 500; margin: 0;
}

.contact-form-card { padding: 3rem; }
.form-title { font-size: 1.6rem; margin-bottom: 2rem; text-align: center; }
.form-group-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.form-group { position: relative; margin-bottom: 1.8rem; }
.form-control {
  width: 100%; background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border); color: var(--color-text-primary);
  padding: 0.9rem 1.2rem; border-radius: 10px; outline: none;
  font-size: 0.95rem; transition: var(--transition-smooth);
}
.form-control:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 20px rgba(var(--primary-rgb),0.12);
}
select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.2rem center; background-size: 1.2rem;
  padding-right: 3rem;
}
select.form-control option { background: var(--bg-secondary); color: var(--color-text-primary); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-label {
  position: absolute; top: 0.9rem; left: 1.2rem;
  color: var(--color-text-muted); font-size: 0.95rem;
  pointer-events: none; transition: var(--transition-smooth);
}
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -0.6rem; left: 0.8rem; font-size: 0.75rem;
  color: var(--primary); background: var(--bg-secondary);
  padding: 0 0.4rem; border-radius: 4px; font-weight: 600;
}
.form-submit-btn { width: 100%; justify-content: center; margin-top: 1rem; }
.form-alert {
  padding: 1rem; border-radius: 10px; margin-bottom: 1.5rem;
  font-size: 0.9rem; display: none; align-items: center; gap: 0.8rem;
}
.form-alert-success {
  background: rgba(0,208,132,0.1); border: 1px solid rgba(0,208,132,0.3); color: #00d084;
}

/* ======================= */
/* FOOTER                  */
/* ======================= */
footer.footer {
  background: var(--bg-primary); border-top: 1px solid var(--glass-border);
  padding: 6rem 0 3rem; position: relative; z-index: 10;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { font-size: 0.92rem; margin: 1.5rem 0; max-width: 280px; }
.footer-socials { display: flex; gap: 1rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  display: flex; justify-content: center; align-items: center;
  color: var(--color-text-secondary); font-size: 1rem;
  transition: var(--transition-smooth);
}
.social-link:hover {
  background: var(--grad-red); color: #ffffff;
  border-color: transparent; transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 0 20px rgba(var(--primary-rgb),0.3);
}
.footer-column h4 {
  font-size: 1.05rem; margin-bottom: 1.8rem; position: relative; padding-bottom: 0.6rem;
}
.footer-column h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 35px; height: 2px; background: var(--grad-red);
  box-shadow: 0 0 8px rgba(var(--primary-rgb),0.3);
}
.footer-links li { margin-bottom: 0.9rem; }
.footer-links a {
  color: var(--color-text-secondary); font-size: 0.92rem;
  transition: var(--transition-fast); display: inline-block;
}
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-partners { display: flex; flex-wrap: wrap; gap: 1rem; }
.partner-logo {
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
  border-radius: 10px; display: flex; justify-content: center; align-items: center;
  height: 50px; transition: var(--transition-smooth);
}
.partner-logo img { max-height: 24px; width: auto; opacity: 0.35; filter: grayscale(1) brightness(1.5); transition: var(--transition-fast); }
.partner-logo:hover { border-color: rgba(var(--primary-rgb),0.3); background: rgba(var(--primary-rgb),0.03); transform: translateY(-3px); }
.partner-logo:hover img { opacity: 1; filter: grayscale(0); }

.footer-bottom {
  border-top: 1px solid var(--glass-border); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--color-text-muted);
}
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { color: var(--color-text-muted); transition: var(--transition-fast); }
.footer-legal-links a:hover { color: var(--primary); }

/* ======================= */
/* REVEAL ANIMATION STATES */
/* ======================= */
.reveal-up { opacity: 0; transform: translateY(60px) scale(0.97); transition: all 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-up.revealed { opacity: 1; transform: translateY(0) scale(1); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: all 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: all 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* ======================= */
/* RESPONSIVE              */
/* ======================= */
@media (max-width: 1200px) {
  :root { --container-width: 960px; }
  .hero-title { font-size: 3rem; }
  .pathway-grid { grid-template-columns: repeat(2,1fr); }
  .courses-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 3rem; }
}
@media (max-width: 991px) {
  :root { --container-width: 720px; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-logo-container { height: 400px; order: -1; }
  .hero-features { width: 100%; max-width: 600px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:not(:last-child)::after { display: none; }
  .showcase-grid { grid-template-columns: 1fr; gap: 4rem; }
  .showcase-visual { height: 350px; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .scroll-indicator { display: none; }
  .hero-logo-rings { width: 300px; height: 300px; }
}
@media (max-width: 768px) {
  :root { --container-width: 540px; }
  .burger-menu { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-height); left: -100%;
    width: 100%; height: calc(100vh - var(--header-height));
    background: rgba(4,6,10,0.98); backdrop-filter: blur(25px);
    flex-direction: column; padding: 3rem 2rem; gap: 2rem;
    transition: var(--transition-smooth); border-top: 1px solid var(--glass-border);
    overflow-y: auto;
  }
  .nav-menu.active { left: 0; }
  .nav-dropdown-menu {
    position: static; transform: none; width: 100%; opacity: 1;
    pointer-events: auto; background: transparent; border: none;
    box-shadow: none; padding: 0.5rem 0 0 1.5rem; display: none;
  }
  .nav-dropdown.active .nav-dropdown-menu { display: block; }
  .nav-link { font-size: 1.15rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
  .hero-features { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .section-title { font-size: 2.2rem; }
  .section-pre::before, .section-pre::after { display: none; }
  .pathway-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 2rem 1.5rem; }
  .form-group-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}
@media (max-width: 480px) {
  :root { --container-width: 100%; }
  .container { padding: 0 1.25rem; }
  .hero-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-logo-container { height: 300px; }
  .hero-logo-rings { width: 250px; height: 250px; }
}
