/* ============================================
   AJAY KUMAR BHALLA — GOVERNANCE DESIGN SYSTEM
   Institutional | Structured | Authoritative
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette — Governance */
  --navy-900: #0a1128;
  --navy-800: #0f1a36;
  --navy-700: #152244;
  --navy-600: #1c2d56;
  --navy-500: #243b6e;
  --charcoal-900: #1a1a2e;
  --charcoal-800: #22223b;
  --charcoal-700: #2b2d42;
  --charcoal-600: #3d3d5c;
  --charcoal-500: #4a4e69;
  
  /* Accent — Saffron / Gold */
  --saffron-500: #c4922a;
  --saffron-400: #d4a843;
  --saffron-300: #e0be6a;
  --gold-500: #b8860b;
  --gold-400: #d4a843;
  --gold-300: #e8c97a;
  --gold-200: #f0dca8;
  --gold-100: #faf0d7;
  
  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f7f4;
  --cream: #f0ece3;
  --gray-100: #e8e6e1;
  --gray-200: #d4d0c8;
  --gray-300: #b8b4aa;
  --gray-400: #8e8a80;
  --gray-500: #6b6760;
  --gray-600: #4a4740;
  --gray-700: #333028;
  --gray-800: #1e1c18;
  --black: #0d0c0a;
  
  /* Status */
  --success: #2a9d63;
  --error: #c44536;
  --info: #3a86c4;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 12rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 17, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 17, 40, 0.1);
  --shadow-lg: 0 8px 32px rgba(10, 17, 40, 0.14);
  --shadow-xl: 0 16px 48px rgba(10, 17, 40, 0.18);
  --shadow-gold: 0 4px 20px rgba(196, 146, 42, 0.15);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-light: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 20px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
  --duration-slower: 1000ms;
  
  /* Layout */
  --max-width: 1400px;
  --nav-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-700);
  background-color: var(--off-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-smooth);
}

ul, ol { list-style: none; }

/* --- Typography System --- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 0.5rem, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy-900);
}

.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-800);
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw + 0.25rem, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-800);
}

.heading-3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw + 0.1rem, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal-700);
}

.heading-4 {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal-700);
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw + 0.2rem, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.body-lg {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.body-sm {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-500);
}

.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron-500);
}

.label-gold {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron-500);
  border: 1px solid rgba(196, 146, 42, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(196, 146, 42, 0.06);
}

/* --- Navigation --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2xl);
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 17, 40, 0.06);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.main-nav.scrolled {
  background: rgba(248, 247, 244, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.nav-brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron-500);
  display: block;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--saffron-500);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-900);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  padding: 10px 24px !important;
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-smooth) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  transition: all var(--duration-normal) var(--ease-out);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-sm {
  padding: var(--space-4xl) 0;
}

.section-lg {
  padding: var(--space-6xl) 0;
}

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-charcoal {
  background: var(--charcoal-800);
  color: var(--white);
}

.section-cream {
  background: var(--cream);
}

.section-gradient {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--cream) 100%);
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.gap-3xl { gap: var(--space-3xl); }

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: start;
}

.grid-asymmetric-reverse {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Text alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Margin */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* --- Card Components --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 17, 40, 0.04);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-glass {
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.card-accent {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border-left: 4px solid var(--saffron-500);
  box-shadow: var(--shadow-sm);
}

.card-numbered {
  position: relative;
  padding-top: var(--space-3xl);
}

.card-numbered .card-number {
  position: absolute;
  top: var(--space-xl);
  left: var(--space-xl);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(196, 146, 42, 0.12);
  line-height: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  letter-spacing: 0.03em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(10, 17, 40, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 17, 40, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--saffron-500), var(--gold-400));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 146, 42, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid rgba(10, 17, 40, 0.15);
}

.btn-outline:hover {
  border-color: var(--navy-800);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- Dividers / Decoration --- */
.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron-500), var(--gold-300));
  border-radius: 2px;
}

.divider-gold-center {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron-500), var(--gold-300));
  border-radius: 2px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-4xl);
}

.section-header .overline {
  margin-bottom: var(--space-md);
}

.section-header .divider-gold,
.section-header .divider-gold-center {
  margin-top: var(--space-lg);
}

.section-header .subtitle {
  margin-top: var(--space-lg);
  max-width: 640px;
}

.section-header.text-center .subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Image Containers --- */
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
}

.img-frame-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame-wide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}

.img-frame-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-accent {
  position: relative;
}

.img-accent::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(196, 146, 42, 0.2);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* --- Stat Counter --- */
.stat-block {
  text-align: center;
  padding: var(--space-xl);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
}

.stat-number-gold {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--saffron-500), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: var(--space-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--saffron-500), var(--gold-300), rgba(196, 146, 42, 0.1));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--saffron-500);
  border-radius: 50%;
  border: 3px solid var(--off-white);
  box-shadow: 0 0 0 2px var(--saffron-500);
}

.timeline-year {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--saffron-500);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: var(--space-xs);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Quote Block --- */
.quote-block {
  position: relative;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) var(--space-3xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--saffron-500);
  box-shadow: var(--shadow-sm);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(196, 146, 42, 0.2);
  line-height: 1;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.8;
}

.quote-author {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* --- Page Hero --- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-5xl)) 0 var(--space-5xl);
  background: var(--navy-900);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(196, 146, 42, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(36, 59, 110, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .overline {
  color: var(--gold-300);
}

.page-hero .display-lg,
.page-hero .display-xl {
  color: var(--white);
}

.page-hero .subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero .divider-gold {
  opacity: 0.7;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb .sep { opacity: 0.3; }
.breadcrumb .current { color: var(--gold-300); }

/* --- Footer --- */
.mega-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-5xl) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-4xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-brand-icon {
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xl);
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--duration-fast) var(--ease-smooth);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--saffron-500);
  border-color: var(--saffron-500);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.footer-col ul li a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.88rem;
}

.footer-contact-item .icon {
  color: var(--saffron-500);
  font-size: 0.85rem;
  margin-top: 2px;
  min-width: 20px;
}

.footer-newsletter {
  margin-top: var(--space-lg);
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer-newsletter input:focus {
  border-color: var(--saffron-500);
}

.footer-newsletter button {
  margin-top: var(--space-sm);
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--saffron-500), var(--gold-400));
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.footer-newsletter button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: var(--gold-300);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-bottom a:hover {
  color: var(--saffron-500);
}

.footer-credit {
  text-align: center;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 999;
  border: none;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out), 
              transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out), 
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out), 
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--duration-slow) var(--ease-out), 
              transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out), 
              transform var(--duration-slow) var(--ease-out);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-asymmetric,
  .grid-asymmetric-reverse {
    grid-template-columns: 1fr;
  }
  
  :root {
    --nav-height: 70px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--off-white);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    transition: right var(--duration-normal) var(--ease-out);
    z-index: 999;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-hamburger {
    display: flex;
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --space-5xl: 5rem;
    --space-6xl: 7rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .container,
  .container-narrow,
  .container-wide {
    padding: 0 var(--space-lg);
  }
  
  .card { padding: var(--space-xl); }
  .card-glass { padding: var(--space-xl); }
  .card-dark { padding: var(--space-xl); }
  
  .section { padding: var(--space-4xl) 0; }
  .section-lg { padding: var(--space-5xl) 0; }
}

@media (max-width: 480px) {
  :root {
    --space-4xl: 3rem;
    --space-5xl: 4rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }
  
  .main-nav {
    padding: 0 var(--space-lg);
  }
}

/* --- Code Lock Page Specific --- */
.lock-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
}

.lock-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lock-bg canvas {
  width: 100%;
  height: 100%;
}

.lock-panel {
  position: relative;
  z-index: 2;
  width: 420px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.lock-emblem {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(135deg, rgba(196, 146, 42, 0.2), rgba(196, 146, 42, 0.05));
  border: 1px solid rgba(196, 146, 42, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-emblem svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1.5;
}

.lock-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.lock-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-2xl);
}

.lock-input-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.lock-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.15em;
  outline: none;
  text-align: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.lock-input:focus {
  border-color: var(--saffron-500);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(196, 146, 42, 0.15);
}

.lock-input.error {
  border-color: var(--error);
  animation: lockShake 0.5s var(--ease-out);
}

.lock-input.success {
  border-color: var(--success);
  background: rgba(42, 157, 99, 0.1);
}

.lock-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--saffron-500), var(--gold-400));
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.lock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 146, 42, 0.3);
}

.lock-error-msg {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.lock-error-msg.show {
  opacity: 1;
}

.lock-success-msg {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.lock-success-msg.show {
  opacity: 1;
}

.lock-page.unlocking {
  animation: lockFadeOut 1s var(--ease-out) forwards;
  animation-delay: 0.8s;
}

@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

@keyframes lockFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
  }
}

/* Pulse animation for emblem */
@keyframes emblemPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 146, 42, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(196, 146, 42, 0); }
}

.lock-emblem {
  animation: emblemPulse 3s var(--ease-smooth) infinite;
}

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--saffron-500);
  box-shadow: 0 0 0 3px rgba(196, 146, 42, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
