/* ============================================================
   MSTP — Maktronics Student Technology Parliamentary
   Core Design System
   Navy Blue + Gold + Electric Cyan Theme
   ============================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  /* Primary Palette — derived from logo */
  --navy-deep: #070d1f;
  --navy-dark: #0a1628;
  --navy-mid: #1a2744;
  --navy-light: #2c3e6b;
  --navy-muted: #3d5185;

  /* Gold / Brass Accents — from laurel wreath */
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #a68a3a;
  --gold-glow: rgba(201, 168, 76, 0.4);

  /* Cyan Tech Accent */
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.35);

  /* Purple Accent */
  --purple: #7c3aed;
  --purple-light: #a855f7;

  /* Neutrals */
  --white: #ffffff;
  --text-primary: #e8eaf6;
  --text-secondary: #9fa8c7;
  --text-muted: #6b7394;
  --bg-body: var(--navy-deep);
  --bg-card: rgba(26, 39, 68, 0.6);
  --bg-card-hover: rgba(44, 62, 107, 0.7);
  --border-glass: rgba(201, 168, 76, 0.15);
  --border-glass-hover: rgba(201, 168, 76, 0.35);

  /* Glassmorphism */
  --glass-bg: rgba(10, 22, 40, 0.65);
  --glass-blur: 20px;
  --glass-border: 1px solid var(--border-glass);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  --grad-hero: linear-gradient(135deg, #070d1f 0%, #0f1b3d 25%, #1a2744 50%, #162040 75%, #070d1f 100%);
  --grad-cyan-purple: linear-gradient(135deg, var(--cyan), var(--purple));
  --grad-navbar: rgba(7, 13, 31, 0.85);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px var(--gold-glow);
  --shadow-cyan: 0 4px 20px var(--cyan-glow);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1240px;

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

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-back: -1;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-loader: 500;
}

/* ── Light Theme Override ── */
[data-theme="light"] {
  --navy-deep: #f0f2f8;
  --navy-dark: #e4e8f2;
  --navy-mid: #d0d6e6;
  --navy-light: #b8c2d8;
  --bg-body: #f0f2f8;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --grad-navbar: rgba(240, 242, 248, 0.88);
  --text-primary: #1a2744;
  --text-secondary: #3d5185;
  --text-muted: #6b7394;
  --border-glass: rgba(26, 39, 68, 0.12);
  --border-glass-hover: rgba(26, 39, 68, 0.25);
  --grad-hero: linear-gradient(135deg, #e8ecf4 0%, #d8dff0 25%, #cdd5e8 50%, #d8dff0 75%, #e8ecf4 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section ── */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: var(--radius-full);
}

.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
}

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cyan-text {
  color: var(--cyan);
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-gold);
  z-index: calc(var(--z-sticky) + 1);
  transition: none;
}

/* ── Loading Screen ── */
.loader-screen {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 100px;
  height: 100px;
  animation: logoPulse 1.5s ease-in-out infinite;
}

.loader-bar-track {
  width: 200px;
  height: 4px;
  background: var(--navy-mid);
  border-radius: var(--radius-full);
  margin-top: 30px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--grad-gold);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.loader-text {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--grad-navbar);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-glass);
  z-index: var(--z-sticky);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  background: rgba(7, 13, 31, 0.95);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 242, 248, 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.nav-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: background var(--transition-fast), color var(--transition-fast);
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  justify-content: center;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

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

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

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-cyan {
  background: var(--grad-cyan-purple);
  color: var(--white);
  box-shadow: var(--shadow-cyan);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--cyan-glow);
}

.btn-glow {
  background: var(--grad-gold);
  color: var(--navy-deep);
  animation: neonPulse 2s ease-in-out infinite;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.05rem;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

/* 3D tilt card — JS adds transform */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card .tilt-content {
  transform: translateZ(30px);
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Particle Canvas ── */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  max-width: 850px;
}

.hero-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-title .gold-text {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 36px;
  min-height: 2.2em;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator .arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* ── Stats Section ── */
.stats-section {
  position: relative;
  padding: 60px 0;
  background: rgba(10, 22, 40, 0.5);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

[data-theme="light"] .stats-section {
  background: rgba(255, 255, 255, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Ministry Cards ── */
.ministry-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ministry-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: all var(--transition-base);
}

.ministry-card:hover .card-icon {
  background: rgba(201, 168, 76, 0.2);
  box-shadow: var(--shadow-gold);
  transform: scale(1.1);
}

.ministry-card h4 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.ministry-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.ministry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.ministry-card:hover::after {
  transform: scaleX(1);
}

/* ── Events Cards ── */
.event-card {
  position: relative;
  overflow: hidden;
}

.event-date {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.event-card h4 {
  margin-bottom: 8px;
}

.event-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ── Testimonial Slider ── */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--gold);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: scale(1.2);
}

/* ── FAQ Accordion ── */
.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  background: rgba(7, 13, 31, 0.9);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px;
}

[data-theme="light"] .footer {
  background: rgba(26, 39, 68, 0.95);
  --text-primary: #e8eaf6;
  --text-secondary: #9fa8c7;
  --text-muted: #6b7394;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand img {
  width: 56px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--gold);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--navy-mid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
  position: relative;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ff6b6b;
}

.modal h3 {
  margin-bottom: 8px;
}

.modal p {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.form-control.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

.form-control.error + .form-error {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad-gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-gold);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Page Header (inner pages) ── */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
}

.page-header h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.page-header p {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.page-header .breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-header .breadcrumb a {
  color: var(--gold);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--navy-deep);
  box-shadow: 0 0 12px var(--gold-glow);
  z-index: 2;
}

.timeline-card {
  max-width: 450px;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  background: var(--glass-bg);
  transition: all var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.badge-cyan {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.badge-purple {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--navy-mid);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--grad-gold);
  transition: width 1s ease;
  width: 0;
}

/* ── Masonry Gallery ── */
.masonry-grid {
  columns: 3;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-dot {
    left: 16px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 4px;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-glass);
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .hamburger {
    display: flex;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .masonry-grid {
    columns: 2;
  }

  .modal {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .masonry-grid {
    columns: 1;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 0 16px;
  }
}
