/* ==========================================================================
   KALASTAMBH OFFICIAL WEBSITE STYLESHEET (css/style.css)
   Pages:
   1. index.html (Landing Page: Madhya Pradesh Art Festival 5.0)
   2. project-e-tiger.html (Project E-Tiger Movement)
   3. overseas-education.html (Kalastambh Overseas Education)
   4. gallery.html (Past Editions & World Records Photo Gallery)
   ========================================================================== */

:root {
  --bg-dark: #0b1120;
  --bg-card: #111827;
  --bg-surface: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-orange: #f97316;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --border-color: rgba(148, 163, 184, 0.18);
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  display: block;
  font-weight: 700;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

/* Hero Banner */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 55%),
              radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.14), transparent 50%);
  border-bottom: 1px solid var(--border-color);
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.15rem;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 760px;
  margin-bottom: 2rem;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.5);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.45);
}

.btn-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.45);
}

.btn-outline {
  background: rgba(30, 41, 59, 0.7);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Grid & Cards */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 720px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

/* Gallery Grid */
.gallery-section {
  position: relative;
  min-height: 60vh;
}

.gallery-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.09), transparent 34%),
    var(--bg-dark);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.gallery-loader-mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.5rem;
  border: 2px solid rgba(245, 158, 11, 0.25);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  color: var(--accent-gold);
  font-size: 1.6rem;
  font-weight: 800;
  animation: gallery-loader-spin 1.1s linear infinite;
}

.gallery-loader-brand {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.gallery-loader-message {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@keyframes gallery-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-loader-mark {
    animation-duration: 3s;
  }
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-row {
  display: flex;
  gap: 1.5rem;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 0 0 auto;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
}

.gallery-caption {
  padding: 1.15rem;
}

/* Footer */
.site-footer {
  background: #070b14;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .cta-group .btn {
    width: 100%;
  }
}
