/* ==========================================================================
   FIREZA LUXURY DESIGN SYSTEM — 2026 FESTIVE EDITION
   Ultra-Premium Dark Luxury Palette, Metallic Gold Hierarchy, Glassmorphism
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     1. COLOR SYSTEM (Deep Obsidian & Metallic Gold Luxury)
     ------------------------------------------------------------------------ */
  /* Background Obsidian & Slate Hierarchy */
  --bg-space: #05070B;
  --bg-deep: #070A10;
  --bg-navy-darkest: #0A0E17;
  --bg-navy-dark: #0F1523;
  --bg-navy-surface: #141C2E;
  --bg-navy-card: rgba(18, 26, 44, 0.72);
  --bg-navy-card-hover: rgba(26, 37, 60, 0.85);

  /* Metallic Gold Palette (High-end Champagne to Deep Amber Gold) */
  --color-gold-50: #FFFDF5;
  --color-gold-100: #FEF8E2;
  --color-gold-200: #FDEEBE;
  --color-gold-300: #FCD87D;
  --color-gold-400: #FBBF24;
  --color-gold-500: #F59E0B;
  --color-gold-600: #D97706;
  --color-gold-700: #B45309;
  --color-gold-800: #92400E;
  --color-gold-900: #78350F;

  /* Luxury Accents */
  --color-crimson: #E11D48;
  --color-crimson-light: #FB7185;
  --color-amber: #F59E0B;
  --color-emerald: #10B981;
  --color-emerald-light: #34D399;
  --color-emerald-dark: #059669;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #128C7E;

  /* Typography Text Hierarchy */
  --text-pure: #FFFFFF;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-gold-accent: #FDE68A;

  /* Borders & Dividers */
  --border-gold-subtle: rgba(245, 158, 11, 0.18);
  --border-gold-medium: rgba(245, 158, 11, 0.35);
  --border-gold-glow: rgba(251, 191, 36, 0.6);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-light: rgba(255, 255, 255, 0.12);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  --grad-gold-metallic: linear-gradient(135deg, #FFFBEB 0%, #FDE047 30%, #F59E0B 70%, #B45309 100%);
  --grad-hero: radial-gradient(circle at 50% 25%, rgba(245, 158, 11, 0.12) 0%, rgba(15, 21, 35, 0.98) 65%, #05070B 100%);
  --grad-card: linear-gradient(180deg, rgba(24, 34, 56, 0.8) 0%, rgba(11, 16, 28, 0.95) 100%);
  --grad-card-hover: linear-gradient(180deg, rgba(32, 45, 74, 0.9) 0%, rgba(15, 22, 38, 0.98) 100%);
  --grad-whatsapp: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  --grad-flame: linear-gradient(90deg, #BE123C 0%, #E11D48 50%, #F59E0B 100%);
  --grad-atmospheric: radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.08) 0%, rgba(15, 21, 35, 0.6) 60%, transparent 100%);

  /* Shadows & Ambient Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 24px 50px rgba(0, 0, 0, 0.8);
  --shadow-gold-glow: 0 0 24px rgba(245, 158, 11, 0.22);
  --shadow-gold-glow-lg: 0 0 40px rgba(245, 158, 11, 0.35);
  --shadow-whatsapp: 0 6px 20px rgba(37, 211, 102, 0.35);

  /* ------------------------------------------------------------------------
     2. TYPOGRAPHY & SPACING TOKENS
     ------------------------------------------------------------------------ */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tamil: 'Mukta Malar', 'Noto Sans Tamil', 'Latha', sans-serif;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Apple-Grade Spring & Cinematic Motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 160ms var(--ease-spring);
  --transition-normal: 280ms var(--ease-spring);
  --transition-smooth: 450ms var(--ease-smooth);
  --transition-cinema: 800ms var(--ease-out-quint);

  /* Layout Dimensions */
  --header-height: 72px;
  --bottom-nav-height: 64px;
  --container-max: 1240px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. CSS RESET & GLOBAL BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #03050A;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, #03050A 0%, #070B13 35%, #05070C 70%, #03050A 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Film Grain Noise Overlay (Prevents digital banding) */
.film-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scroll Progress Bar at the top of viewport */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-gold);
  z-index: 100;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
  transition: width 80ms ease-out;
  pointer-events: none;
}

/* Base Headings & Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-pure);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Layout & Alignment Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.d-flex { display: flex !important; }
.justify-center { justify-content: center !important; }
.align-center { align-items: center !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.w-100 { width: 100% !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

/* Utility Colors & Fonts */
.text-gold { color: var(--color-gold-400) !important; }
.text-gold-light { color: var(--color-gold-300) !important; }
.text-green { color: var(--color-emerald-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.font-tamil { font-family: var(--font-tamil); }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.45);
}

