/* ============================================================
   SANJANATAI HARSHVARDHAN JADHAV — DESIGN SYSTEM
   Premium Political Website — Maharashtra, India
   ============================================================ */

@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=Outfit:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Primary Palette */
  --saffron:        #FF8C00;
  --saffron-light:  #FFA940;
  --saffron-dark:   #E07000;
  --maroon:         #800020;
  --maroon-deep:    #5C0015;
  --maroon-light:   #A0304A;
  --ivory:          #FFFFF0;
  --ivory-warm:     #F5F0E8;
  --ivory-dark:     #E8E0D0;
  --gold:           #D4AF37;
  --gold-light:     #E8C860;
  --gold-dark:      #B8941E;

  /* Neutral */
  --dark:           #1A0A10;
  --dark-soft:      #2A1520;
  --text-primary:   #1A0A10;
  --text-secondary: #5A3040;
  --text-light:     #FFFFF0;
  --text-muted:     #8A6070;

  /* Glass */
  --glass-bg:       rgba(255, 255, 240, 0.08);
  --glass-border:   rgba(212, 175, 55, 0.25);
  --glass-shadow:   rgba(128, 0, 32, 0.15);

  /* Typography */
  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Outfit', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad:    100px;
  --container-max:  1200px;

  /* Transitions */
  --ease-smooth:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:    cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-cinematic: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── 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);
  color: var(--text-primary);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--maroon);
  color: var(--gold-light);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ivory-warm);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--maroon), var(--saffron));
  border-radius: 4px;
}

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

a {
  color: var(--maroon);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}
a:hover {
  color: var(--saffron);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--maroon-deep);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

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

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

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--maroon));
  border-radius: 2px;
}

.section-title p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Paithani Saree Border Motif ───────────────────────────── */
.paithani-border {
  position: relative;
}
.paithani-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 8px,
    transparent 8px, transparent 12px,
    var(--maroon) 12px, var(--maroon) 20px,
    transparent 20px, transparent 24px,
    var(--saffron) 24px, var(--saffron) 32px,
    transparent 32px, transparent 36px
  );
}
.paithani-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--saffron) 0px, var(--saffron) 8px,
    transparent 8px, transparent 12px,
    var(--maroon) 12px, var(--maroon) 20px,
    transparent 20px, transparent 24px,
    var(--gold) 24px, var(--gold) 32px,
    transparent 32px, transparent 36px
  );
}

/* ── Rangoli Dot Accent ────────────────────────────────────── */
.rangoli-accent {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}
.rangoli-accent span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.rangoli-accent span:nth-child(2) { background: var(--maroon); width: 8px; height: 8px; }
.rangoli-accent span:nth-child(4) { background: var(--saffron); }
.rangoli-accent span:nth-child(3) {
  width: 20px;
  height: 20px;
  background: none;
  border: 2px solid var(--gold);
  position: relative;
}
.rangoli-accent span:nth-child(3)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border: 1px solid var(--maroon);
}

/* ── Fabric Texture Overlay ────────────────────────────────── */
.fabric-texture {
  position: relative;
}
.fabric-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212,175,55,0.03) 2px, rgba(212,175,55,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(128,0,32,0.02) 2px, rgba(128,0,32,0.02) 4px);
  pointer-events: none;
  z-index: 1;
}

/* ── Glassmorphism Card ────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Dark glass variant */
.glass-card-dark {
  background: rgba(26, 10, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  color: var(--text-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(26, 10, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--maroon-deep);
  border: 2px solid var(--gold);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  color: var(--ivory);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease-smooth), left 0.3s var(--ease-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

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

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s var(--ease-smooth);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--dark) 40%, var(--maroon) 100%);
}

.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 140, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(128, 0, 32, 0.2) 0%, transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
}

.hero-text {
  color: var(--text-light);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.5s forwards;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 240, 0.7);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.7s forwards;
}

.hero-vision {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.9s forwards;
  min-height: 2.6rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 1.1s forwards;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 1s 0.4s forwards;
}

.hero-portrait img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.3);
}

.hero-portrait::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  bottom: 12px;
  left: 12px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 22px;
  z-index: -1;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--maroon-deep);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
  color: var(--maroon-deep);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
  color: var(--gold);
}

.btn-maroon {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--ivory);
}
.btn-maroon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.4);
  color: var(--ivory);
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--maroon-deep), var(--dark));
  padding: 50px 0;
  position: relative;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212,175,55,0.03) 2px, rgba(212,175,55,0.03) 4px);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  color: var(--text-light);
}

.stat-item {
  position: relative;
  padding: 20px;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(transparent, var(--gold), transparent);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 240, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Initiative Cards ──────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.initiative-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.initiative-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-smooth);
}

.initiative-card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.initiative-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--maroon-deep);
}

.initiative-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.initiative-card .card-link {
  font-weight: 600;
  color: var(--saffron-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.initiative-card .card-link::after {
  content: '→';
  transition: transform 0.3s;
}

.initiative-card:hover .card-link::after {
  transform: translateX(6px);
}

.initiative-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--maroon));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-smooth);
}

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

/* ── Timeline ──────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--maroon), var(--saffron));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 50px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 50px;
}

.timeline-dot {
  position: absolute;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--maroon);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, var(--dark), var(--maroon-deep));
  color: var(--text-light);
  padding: 60px 0 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--maroon), var(--gold), var(--saffron));
}

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

.footer-brand h3 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 240, 0.6);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer h4 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 240, 0.6);
  font-size: 0.9rem;
  transition: all 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255, 255, 240, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

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

/* ── Access Portal ─────────────────────────────────────────── */
.access-portal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--dark) 50%, var(--maroon) 100%);
  position: relative;
  overflow: hidden;
}

.access-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, var(--saffron) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--maroon-light) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 40px 40px;
  animation: patternFloat 20s linear infinite;
}

@keyframes patternFloat {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-20px, -20px); }
  100% { transform: translate(0, 0); }
}

.access-panel {
  width: 100%;
  max-width: 440px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.access-lotus {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  position: relative;
}

.access-lotus svg {
  width: 100%;
  height: 100%;
}

.access-panel h1 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.access-panel .subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 240, 0.5);
  margin-bottom: 36px;
}

.pin-inputs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.pin-inputs input {
  width: 56px;
  height: 64px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 255, 240, 0.05);
  border: 2px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s var(--ease-smooth);
  caret-color: var(--gold);
}

.pin-inputs input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 240, 0.08);
}

.pin-inputs input.error {
  border-color: #ff4444;
  animation: shake 0.5s;
}

.pin-inputs input.success {
  border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
}

.access-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 240, 0.35);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ── Page Transition Overlay ───────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  pointer-events: none;
}

.page-transition .panel {
  flex: 1;
  background: var(--maroon-deep);
  transform: scaleY(0);
  transform-origin: bottom;
}

.page-transition.active .panel {
  animation: panelUp 0.5s var(--ease-cinematic) forwards;
}

.page-transition.active .panel:nth-child(2) { animation-delay: 0.08s; }
.page-transition.active .panel:nth-child(3) { animation-delay: 0.16s; }
.page-transition.active .panel:nth-child(4) { animation-delay: 0.24s; }

@keyframes panelUp {
  0%   { transform: scaleY(0); transform-origin: bottom; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  50.1%{ transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-15px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.85; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll reveal classes (JS-driven) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-children .reveal {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(26, 10, 16, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

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

.gallery-item .overlay span {
  color: var(--ivory);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Gallery filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--maroon);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.filter-tab:hover,
.filter-tab.active {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--maroon-deep);
  border-color: transparent;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 240, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* ── Contact Form ──────────────────────────────────────────── */
.form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--ivory-dark);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s var(--ease-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group label {
  position: absolute;
  left: 20px;
  top: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
  background: var(--ivory);
  padding: 0 6px;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -8px;
  font-size: 0.8rem;
  color: var(--gold-dark);
}

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

/* ── Map Container ─────────────────────────────────────────── */
.map-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.map-container svg {
  width: 100%;
  height: auto;
}

.map-pulse {
  animation: mapPulse 2s ease-in-out infinite;
}

@keyframes mapPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.02); }
}

/* ── Background Variants ──────────────────────────────────── */
.bg-ivory      { background: var(--ivory); }
.bg-warm       { background: var(--ivory-warm); }
.bg-dark       { background: var(--dark); color: var(--text-light); }
.bg-maroon     { background: var(--maroon-deep); color: var(--text-light); }
.bg-gradient   { background: linear-gradient(135deg, var(--ivory), var(--ivory-warm)); }

.bg-dark h2, .bg-dark h3, .bg-maroon h2, .bg-maroon h3 {
  color: var(--gold);
}
.bg-dark p, .bg-maroon p {
  color: rgba(255, 255, 240, 0.7);
}

/* ── Achievement Cards ─────────────────────────────────────── */
.achievement-card {
  perspective: 1000px;
  cursor: pointer;
}

.achievement-card-inner {
  position: relative;
  width: 100%;
  min-height: 200px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.achievement-card:hover .achievement-card-inner {
  transform: rotateY(180deg);
}

.achievement-card-front,
.achievement-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.achievement-card-front {
  background: rgba(255, 255, 240, 0.85);
  border: 1px solid var(--glass-border);
}

.achievement-card-back {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--ivory);
  transform: rotateY(180deg);
}

.achievement-card-back h4 {
  color: var(--gold);
}

/* ── Parallax Section ──────────────────────────────────────── */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 120px 0;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92, 0, 21, 0.88), rgba(26, 10, 16, 0.92));
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

/* ── Vision Cards ──────────────────────────────────────────── */
.vision-pillar {
  text-align: center;
  padding: 40px 24px;
}

.vision-pillar .pillar-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,140,0,0.12), rgba(212,175,55,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  transition: all 0.4s var(--ease-smooth);
  border: 2px solid rgba(212, 175, 55, 0.2);
}

.vision-pillar:hover .pillar-icon {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  transform: scale(1.1) rotate(-5deg);
  border-color: transparent;
}

.vision-pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.vision-pillar p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-portrait {
    order: -1;
  }

  .hero-portrait img {
    max-width: 340px;
  }

  .hero-vision {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--gold);
    padding-top: 16px;
  }

  .hero-cta {
    justify-content: center;
  }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

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

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

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px !important;
    padding-right: 20px !important;
  }

  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26, 10, 16, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 4px;
    transition: right 0.4s var(--ease-smooth);
    z-index: 999;
  }

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

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .hero-portrait img {
    max-width: 280px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }

  .access-panel {
    padding: 36px 24px;
  }

  .pin-inputs input {
    width: 48px;
    height: 56px;
    font-size: 1.3rem;
  }

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

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

  .stat-item::after {
    display: none;
  }

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

  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* ── Print Styles ──────────────────────────────────────────── */
@media print {
  .navbar, .page-transition, .hero-bg-canvas {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
