* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
  --day-sky-top: #6fb8e8;
  --day-sky-bottom: #ffd89b;
  --night-sky-top: #0a1128;
  --night-sky-bottom: #1b2a4a;
  --ganga-teal: #1c6e6e;
  --diya-glow: #ff9d3d;
  --gold: #d9a13b;
  --gold-light: #f0c168;
  --card-bg: #17181c;
  --border-subtle: rgba(217, 161, 59, 0.16);
  --text-primary: #ece9e2;
  --text-secondary: #9d9890;
  --transition-speed: 1.4s;
}

body {
  background: #0e0f12;
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ---------- Navbar ---------- */
.gg-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px;
  background: rgba(14, 15, 18, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.back-link:hover { color: var(--gold-light); }

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-brand .saffron { color: #ff6f00; }
.nav-brand .gold { color: #ffab00; }
.nav-brand .green { color: #4caf50; }

/* ---------- Immersive Ghat Scene ---------- */
.ghat-scene {
  position: relative;
  height: 640px;
  overflow: hidden;
}

/* Sky */
.sky-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--day-sky-top) 0%, var(--day-sky-bottom) 100%);
  transition: background var(--transition-speed) ease;
}

.ghat-scene.night .sky-layer {
  background: linear-gradient(180deg, var(--night-sky-top) 0%, var(--night-sky-bottom) 100%);
}

.celestial-body {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  top: 60px;
  right: 10%;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.sun {
  background: radial-gradient(circle, #fff6d0, #ffcf5c);
  box-shadow: 0 0 60px 20px rgba(255, 207, 92, 0.5);
  opacity: 1;
}

.moon {
  background: radial-gradient(circle, #f4f4f8, #cfd4e0);
  box-shadow: 0 0 40px 14px rgba(207, 212, 224, 0.35);
  opacity: 0;
  transform: scale(0.8);
}

.ghat-scene.night .sun { opacity: 0; transform: scale(0.7); }
.ghat-scene.night .moon { opacity: 1; transform: scale(1); }

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 10%, #fff, transparent),
    radial-gradient(1px 1px at 80% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 35% 40%, #fff, transparent),
    radial-gradient(1px 1px at 90% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 25%, #fff, transparent),
    radial-gradient(1px 1px at 10% 45%, #fff, transparent);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}
.ghat-scene.night .stars { opacity: 1; }

/* Ghat Silhouette */
.ghat-silhouette {
  position: absolute;
  bottom: 190px;
  left: 0;
  right: 0;
  height: 160px;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,0.55) 60%),
    repeating-linear-gradient(90deg, rgba(20,15,10,0.9) 0 40px, rgba(35,25,18,0.9) 40px 80px);
  clip-path: polygon(0% 100%, 0% 40%, 5% 30%, 10% 45%, 15% 20%, 22% 40%, 28% 15%, 35% 42%, 42% 25%, 50% 45%, 58% 18%, 65% 40%, 72% 22%, 80% 44%, 88% 15%, 95% 38%, 100% 25%, 100% 100%);
}

/* River */
.river-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 190px;
  background: linear-gradient(180deg, var(--ganga-teal), #0c3939);
  overflow: hidden;
}

.river-shimmer {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(255,255,255,0.06) 0px,
    rgba(255,255,255,0.06) 2px,
    transparent 2px,
    transparent 40px
  );
  animation: shimmer-move 6s linear infinite;
}

@keyframes shimmer-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(80px); }
}

.boat {
  position: absolute;
  bottom: 60px;
  left: -60px;
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  animation: boat-float 22s linear infinite, boat-bob 3s ease-in-out infinite;
}

@keyframes boat-float {
  0% { left: -60px; }
  100% { left: 105%; }
}
@keyframes boat-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

.diya {
  position: absolute;
  bottom: 30px;
  font-size: 1.3rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  filter: drop-shadow(0 0 10px var(--diya-glow));
  animation: diya-drift 14s linear infinite;
}
.ghat-scene.night .diya { opacity: 1; }

.diya1 { left: 20%; animation-delay: 0s; }
.diya2 { left: 50%; animation-delay: 4s; }
.diya3 { left: 75%; animation-delay: 8s; }

@keyframes diya-drift {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(30px) translateY(-4px); }
  100% { transform: translateX(60px) translateY(0); }
}

/* Overlay Content */
.scene-overlay-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 70px 20px 0;
  color: #fff;
}

.section-badge {
  display: inline-block;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.scene-overlay-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.hero-text {
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.7;
  font-size: 0.96rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.toggle-row {
  display: flex;
  justify-content: center;
}

.daynight-toggle {
  display: inline-flex;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 5px;
  backdrop-filter: blur(8px);
}

.toggle-option {
  background: transparent;
  border: none;
  color: #fff;
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-option.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1c1408;
}

/* ---------- Ghats Info Section ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.ghat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.ghat-card {
  background: linear-gradient(160deg, var(--card-bg), #101114);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 20px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease;
}

.ghat-card:hover, .ghat-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}

.ghat-card-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.ghat-card-location {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold-light);
  background: rgba(217, 161, 59, 0.1);
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ghat-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ghat-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ghat-card-cta {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* ---------- Ghat Modal ---------- */
.ghat-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 4, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ghat-modal-overlay.active { display: flex; }

.ghat-modal {
  background: linear-gradient(160deg, var(--card-bg), #101114);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px 30px;
  position: relative;
  animation: modal-pop 0.25s ease;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.ghat-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}
.ghat-modal-close:hover { background: rgba(255,255,255,0.15); }

.ghat-modal-icon { font-size: 2.8rem; margin-bottom: 10px; }

.ghat-modal-location {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold-light);
  background: rgba(217, 161, 59, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ghat-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ghat-modal-desc {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  font-size: 0.93rem;
}

.ghat-modal-section {
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.ghat-modal-section h4 {
  font-size: 0.88rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.ghat-modal-section p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ghat-modal-timing {
  margin-top: 18px;
  background: rgba(217, 161, 59, 0.08);
  border: 1px solid rgba(217, 161, 59, 0.22);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Footer ---------- */
.gg-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .ghat-scene { height: 560px; }
  .scene-overlay-content h1 { font-size: 1.5rem; }
  .celestial-body { width: 50px; height: 50px; right: 8%; top: 40px; }
}