/* =========================
   GOOGLE FONTS
   (Recommended to load via <head> instead of @import)
========================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

/* =========================
   ROOT VARIABLES
========================= */
:root {
  --brand-blue: #0052FF;
  --brand-indigo: #6366F1;
  --deep-slate: #020617;
}

/* =========================
   BASE STYLES
========================= */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
  color: #1E293B;
  overflow-x: hidden;
  background-color: #ffffff;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* =========================
   HEADER / GLASS UI
========================= */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  will-change: transform, opacity;
}

/* =========================
   MEGA MENU & DROPDOWNS
========================= */
.mega-menu,
.auth-dropdown,
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: transform, opacity;
}

.mega-menu-trigger:hover .mega-menu,
.auth-trigger:hover .auth-dropdown,
.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item-hover:hover {
  background: #F8FAFC;
}

/* =========================
   CUSTOM SCROLLBAR
========================= */
.custom-scrollbar::-webkit-scrollbar,
#code-stream::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
#code-stream::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

/* =========================
   HERO BACKGROUND
========================= */
.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(0, 82, 255, 0.03) 50%,
    transparent 100%
  );
  filter: blur(80px);
  z-index: 0;
}

.grid-container {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: 0;
}

.dotted-bg {
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-title {
  letter-spacing: -0.04em;
  line-height: 1;
}

/* =========================
   REVEAL ANIMATIONS
========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FLOAT ANIMATION
========================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* =========================
   FEATURE CARDS
========================= */
.feature-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-indigo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
}

/* =========================
   TEXT EFFECTS
========================= */
.text-gradient {
  background: linear-gradient(135deg, #0052FF 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.iridescent-text {
  background: linear-gradient(90deg, #ffffff, #94a3b8, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* =========================
   MODULE ICON
========================= */
.module-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 24px;
}

/* =========================
   LOGO CAROUSEL
========================= */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-track {
  display: flex;
  width: calc(250px * 12);
  animation: scroll 30s linear infinite;
}

.logo-item {
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* =========================
   TERMINAL UI
========================= */
.terminal-container {
  background: #020617;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #6366F1;
  animation: cursor-blink 1s infinite;
  vertical-align: middle;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* =========================
   PRISM UI
========================= */
.prism-card {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(30, 41, 59, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.prism-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.prism-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

/* =========================
   GLASS BUTTON
========================= */
.glass-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}


   #progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: transparent; z-index: 1000; }
        #progress-bar { height: 100%; background: linear-gradient(to right, #4f46e5, #9333ea); width: 0%; }

        .adsense-unit {
            background: #f8fafc;
            border: 1px dashed #cbd5e1;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin: 2rem 0;
        }

        .sticky-column { position: sticky; top: 100px; }
        .editorial-shadow { box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.05); }
        .section-anchor { scroll-margin-top: 120px; }
        
        .nav-link.active {
            color: #4f46e5;
            border-left-color: #4f46e5;
            background: linear-gradient(to right, rgba(79, 70, 229, 0.05), transparent);
        }

        .gsap-reveal { opacity: 0; transform: translateY(30px); }
        
        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        .animate-float { animation: float 5s ease-in-out infinite; }

        details summary::-webkit-details-marker { display: none; }