/* ==========================================================================
   TOP 10 GORAKHPUR - BASE DESIGN SYSTEM & CSS VARIABLES
   Predominantly light, editorial magazine elegance with dark cinematic contrast
   ========================================================================== */

:root {
  /* Brand Color Palette - Extracted directly from official Top 10 Gorakhpur Emblem */
  --color-navy: #081938;         /* Deep Navy from 'Gorakhpur' bold typography & outer border */
  --color-navy-dark: #040D1D;    /* Midnight shade for contrast */
  --color-navy-light: #0E2756;   /* Rich navy variant */
  --color-blue: #1256A0;         /* Royal Blue from outer ring and secondary badge */
  --color-blue-light: #0284C7;   /* Tech Sky Blue from code badge and timeline */
  --color-blue-tint: #EBF4FC;    /* Soft blue tint background */
  
  /* 3D Radiant Orange & Gold - From the 3D '10' and Orbital Ring */
  --color-orange: #FF6B00;       /* Core radiant orange */
  --color-orange-gold: #FFA000;  /* 3D highlight and bevel gold */
  --color-orange-hover: #E05A00; /* Deep orange hover state */
  --color-orange-glow: rgba(255, 107, 0, 0.35); /* Neon orange glow */
  --color-gold: #FFB800;         /* Top reflection gold */
  
  /* Ruby Red Accent - From the Play Button inside 'Top', Temple Flag & Map Pin */
  --color-red: #E5252A;          /* Vibrant Ruby Red */
  --color-red-hover: #C81A1F;
  --color-red-glow: rgba(229, 37, 42, 0.35);
  --color-red-tint: #FEE2E2;

  /* Tech Cyan - From Code Badge '</>' and Editing Timeline */
  --color-cyan: #0284C7;
  --color-cyan-light: #38BDF8;

  /* Surfaces & Editorial Backgrounds */
  --color-white: #FFFFFF;
  --color-offwhite: #F8FAFC;
  --color-cream: #FAF9F6;
  --color-dark-text: #081938;
  --color-muted-text: #475569;
  --color-light-text: #64748B;
  --color-border: #E2E8F0;
  --color-border-light: rgba(226, 232, 240, 0.6);
  --color-card-bg: #FFFFFF;

  /* Gradients */
  --gradient-orange: linear-gradient(135deg, #FF6B00 0%, #FFA000 100%);
  --gradient-orange-shine: linear-gradient(135deg, #FFA000 0%, #FF6B00 50%, #E05A00 100%);
  --gradient-navy: linear-gradient(135deg, #081938 0%, #1256A0 100%);
  --gradient-red-orange: linear-gradient(135deg, #E5252A 0%, #FF6B00 100%);
  --gradient-hero: linear-gradient(180deg, rgba(8, 25, 56, 0.72) 0%, rgba(8, 25, 56, 0.88) 100%);

  /* Glassmorphism Tokens */
  --glass-bg-light: rgba(255, 255, 255, 0.92);
  --glass-border-light: rgba(255, 255, 255, 0.6);
  --glass-bg-dark: rgba(8, 25, 56, 0.9);
  --glass-border-dark: rgba(255, 107, 0, 0.2);

  /* Typography - Matching Official Logo Modern Geometry */
  --font-display: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Cinzel', serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(8, 25, 56, 0.05);
  --shadow-md: 0 4px 14px rgba(8, 25, 56, 0.08), 0 2px 6px rgba(8, 25, 56, 0.04);
  --shadow-lg: 0 12px 32px rgba(8, 25, 56, 0.12), 0 4px 10px rgba(8, 25, 56, 0.05);
  --shadow-xl: 0 24px 52px rgba(8, 25, 56, 0.16), 0 8px 18px rgba(8, 25, 56, 0.08);
  --shadow-orange: 0 8px 24px rgba(255, 107, 0, 0.35);
  --shadow-card-hover: 0 20px 42px rgba(18, 86, 160, 0.14);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-cinematic);

  /* Layout Spacing */
  --max-width: 1360px;
  --container-padding: 2rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: initial; /* Controlled by Lenis smooth scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-offwhite);
  color: var(--color-dark-text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings with Editorial Elegance */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; }
h4 { font-size: 1.25rem; font-weight: 700; }

.accent-orange {
  color: var(--color-orange);
}

.accent-blue {
  color: var(--color-blue);
}

.hero-3d-text {
  background: linear-gradient(135deg, #FFB800 0%, #FF6600 50%, #FF3D00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 102, 0, 0.45));
  display: inline-block;
}

p {
  color: var(--color-muted-text);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-muted-text);
  line-height: 1.7;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-orange);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-offwhite);
}
::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

/* Scroll Progress Bar at very top */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
  z-index: 10000;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* Interactive Custom Cursor (Desktop Only) */
.custom-cursor {
  position: fixed;
  top: -100px;
  left: -100px;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.25s var(--ease-smooth), height 0.25s var(--ease-smooth), background-color 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}

.custom-cursor-dot {
  position: fixed;
  top: -100px;
  left: -100px;
  width: 6px;
  height: 6px;
  background-color: var(--color-orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-cursor.hover {
  width: 54px;
  height: 54px;
  background-color: rgba(242, 140, 0, 0.15);
  border-color: var(--color-orange);
}

/* Section Header Shared Utility */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-orange);
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.28);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-muted-text);
}

/* Selection Color */
::selection {
  background-color: var(--color-orange);
  color: var(--color-white);
}

/* Accessibility: Focus indicator */
:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}
