/* ============================================================
   MIRZAPUR CITY PORTAL — GLOBAL DESIGN SYSTEM
   Dark Glassmorphism + Temple Gold + Ganga Blue
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

/* ─── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
  /* Backgrounds */
  --bg-base:        #0B0F1A;
  --bg-deep:        #131826;
  --bg-surface:     #1A2035;
  --bg-elevated:    #1E2640;

  /* Accent Colors */
  --gold-light:     #F4C542;
  --gold-main:      #D4AF37;
  --gold-dark:      #A8861F;
  --gold-glow:      rgba(212, 175, 55, 0.25);

  --blue-light:     #4FA9D8;
  --blue-main:      #2E6F95;
  --blue-dark:      #1A4A6B;
  --blue-glow:      rgba(78, 169, 216, 0.2);

  --maroon-main:    #8B2E2E;
  --maroon-light:   #B34040;
  --maroon-glow:    rgba(139, 46, 46, 0.25);

  --green-main:     #2E7D5A;
  --green-light:    #3DA876;
  --green-glow:     rgba(46, 125, 90, 0.2);

  /* Text */
  --text-primary:   #F5F1E8;
  --text-secondary: #B8B0A0;
  --text-muted:     #7A7060;
  --text-gold:      #D4AF37;

  /* Glass System */
  --glass-bg:       rgba(255, 255, 255, 0.07);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-border:   rgba(255, 255, 255, 0.12);
  --glass-border-gold: rgba(212, 175, 55, 0.3);
  --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.6);
  --glass-blur:     blur(20px);
  --glass-blur-light: blur(12px);

  /* Typography */
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', -apple-system, sans-serif;
  --font-devanagari:'Noto Sans Devanagari', sans-serif;

  /* Font Sizes (fluid) */
  --fs-xs:    clamp(0.7rem,  1vw,   0.8rem);
  --fs-sm:    clamp(0.85rem, 1.2vw, 0.95rem);
  --fs-base:  clamp(0.95rem, 1.4vw, 1.05rem);
  --fs-md:    clamp(1.05rem, 1.6vw, 1.2rem);
  --fs-lg:    clamp(1.2rem,  2vw,   1.5rem);
  --fs-xl:    clamp(1.5rem,  2.5vw, 2rem);
  --fs-2xl:   clamp(2rem,    3.5vw, 3rem);
  --fs-3xl:   clamp(2.5rem,  5vw,   4.5rem);
  --fs-4xl:   clamp(3rem,    7vw,   6rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:  200ms;
  --duration-base:  350ms;
  --duration-slow:  600ms;

  /* Z-index layers */
  --z-orbs:    0;
  --z-content: 10;
  --z-card:    20;
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ─── Page Wrapper ──────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* ─── Global Background Gradient ───────────────────────────── */
.site-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 10%, #1a2340 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 80% 80%, #0d1520 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  z-index: -1;
}

/* ─── Glow Orbs Container ───────────────────────────────────── */
.orbs-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-orbs);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
}

.orb--gold {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-main) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation: orbDriftGold 35s ease-in-out infinite alternate;
}

.orb--blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue-main) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation: orbDriftBlue 28s ease-in-out infinite alternate;
}

.orb--maroon {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--maroon-main) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  opacity: 0.12;
  animation: orbDriftMaroon 40s ease-in-out infinite alternate;
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-size: var(--fs-4xl);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.heading-lg {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text-primary);
}

.heading-md {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.heading-sm {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.text-gold { color: var(--gold-main); }
.text-blue { color: var(--blue-light); }
.text-maroon { color: var(--maroon-light); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #6DC5E8 0%, var(--blue-light) 50%, var(--blue-main) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.devanagari {
  font-family: var(--font-devanagari);
}

/* ─── Glass Card System ─────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-gold);
  box-shadow: var(--glass-shadow-hover), 0 0 40px var(--gold-glow);
  transform: translateY(-6px) scale(1.01);
}

.glass-card--gold {
  border-color: var(--glass-border-gold);
  box-shadow: var(--glass-shadow), 0 0 20px var(--gold-glow);
}

.glass-card--blue {
  border-color: rgba(78, 169, 216, 0.25);
  box-shadow: var(--glass-shadow), 0 0 20px var(--blue-glow);
}

.glass-card--sm {
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
}

/* ─── Container & Grid ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container--wide {
  max-width: 1440px;
}

.container--narrow {
  max-width: 900px;
}

.grid {
  display: grid;
  gap: var(--sp-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ─── Section Spacing ───────────────────────────────────────── */
.section {
  padding: var(--sp-24) 0;
  position: relative;
  z-index: var(--z-content);
}

.section--sm { padding: var(--sp-16) 0; }
.section--lg { padding: var(--sp-32) 0; }

.section__header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.section__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: var(--sp-3);
  display: block;
}

.section__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.section__subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
  margin: var(--sp-4) auto;
  border-radius: var(--radius-full);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
  color: #0B0F1A;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

.btn--ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
}

.btn--ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn--blue {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-main));
  color: #fff;
  box-shadow: 0 4px 20px var(--blue-glow);
}

.btn--blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(78, 169, 216, 0.4);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--fs-base);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-xs);
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

/* ─── Badge / Tag ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--gold {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
}

.badge--blue {
  background: rgba(78, 169, 216, 0.12);
  border: 1px solid rgba(78, 169, 216, 0.25);
  color: var(--blue-light);
}

.badge--maroon {
  background: rgba(139, 46, 46, 0.15);
  border: 1px solid rgba(139, 46, 46, 0.3);
  color: var(--maroon-light);
}

.badge--green {
  background: rgba(46, 125, 90, 0.12);
  border: 1px solid rgba(46, 125, 90, 0.3);
  color: var(--green-light);
}

/* ─── Icon wrapper ──────────────────────────────────────────── */
.icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.icon-wrap--gold {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.icon-wrap--blue {
  background: rgba(78, 169, 216, 0.1);
  border: 1px solid rgba(78, 169, 216, 0.2);
}

/* ─── Section Label Stripe ──────────────────────────────────── */
.label-stripe {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.label-stripe::before,
.label-stripe::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3));
}

.label-stripe::after {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent);
}

/* ─── Hero Section Base ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 15, 26, 0.3) 0%,
    rgba(11, 15, 26, 0.5) 50%,
    rgba(11, 15, 26, 0.9) 100%);
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
}

/* ─── Page Hero (non-homepage) ──────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-16);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,26,0.4) 0%, rgba(11,15,26,0.85) 100%);
}

.page-hero__content {
  position: relative;
  z-index: var(--z-content);
}

/* ─── Stat Counter Items ────────────────────────────────────── */
.stat-item {
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-item__label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

@media (max-width: 768px) {
  :root {
    --sp-24: 4rem;
    --sp-32: 5rem;
  }
  .container { padding: 0 var(--sp-4); }
  .grid--4,
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .grid--auto { grid-template-columns: 1fr; }
  .section { padding: var(--sp-16) 0; }
}

@media (max-width: 480px) {
  :root {
    --sp-16: 3rem;
    --sp-20: 4rem;
    --sp-24: 3.5rem;
  }
  .container { padding: 0 var(--sp-4); }
}

/* ─── Utility classes ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.mt-auto { margin-top: auto; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.p-4 { padding: var(--sp-4); }
.p-6 { padding: var(--sp-6); }
.p-8 { padding: var(--sp-8); }
.rounded-full { border-radius: var(--radius-full); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
