/* Root Variables & Colors */
:root {
  --saffron: #FF9933;
  --deep-red: #8B0000;
  --gold: #FFD700;
  --gold-accent: #DAA520;
  --dark-bg: #0A0000;
  --text-light: #FDF5E6;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-hindi: 'Yatra One', 'Rozha One', serif;
}

/* Base Styles & Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Typography Utilities */
h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
}

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

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

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

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 80px 0;
  position: relative;
}

/* Cinematic Transitions */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--dark-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 153, 51, 0.3);
  border-radius: 50%;
  border-top-color: var(--saffron);
  animation: spin 1s ease-in-out infinite;
}

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

/* --- 1. HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/temple_rays.png') no-repeat center center/cover;
  z-index: 0;
  opacity: 0.6;
}

.durga-idol {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 90vh; /* Adjust based on image aspect ratio */
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(255, 153, 51, 0.4));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -10vh;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--saffron), #E67300);
  color: #fff;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.6);
}

/* Floating Diyas Animation */
.diya-container {
  position: absolute;
  bottom: 10%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: 3;
  pointer-events: none;
}

.diya {
  width: 80px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  mix-blend-mode: screen;
}

.diya:nth-child(2) {
  animation-delay: 1.5s;
  width: 100px;
}
.diya:nth-child(3) {
  animation-delay: 0.5s;
}

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

/* Detailed Particle/Smoke */
.smoke-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(10,0,0,1) 0%, rgba(10,0,0,0) 100%);
  z-index: 2;
}


/* --- 3D LION PARALLAX --- */
.lion-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
}

.lion-wrapper {
  position: absolute;
  top: 50%;
  left: -20%; /* Starting position off-screen left */
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.lion-img {
  height: 120%;
  max-width: none;
  object-fit: cover;
  mix-blend-mode: screen; /* To remove black background */
  filter: drop-shadow(0 0 20px rgba(255, 153, 51, 0.2));
  /* Breathing animation */
  animation: breathe 6s ease-in-out infinite;
}

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

.lion-text-overlay {
  position: relative;
  z-index: 2;
  width: 50%;
  margin-left: auto;
  padding: 40px;
  background: rgba(139, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-right: 5%;
}


/* --- 2. INVITATION SECTION --- */
.invitation {
  background: linear-gradient(to bottom, #0A0000, #1a0000);
}

.invite-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.invite-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('../images/mandala_pattern.png') no-repeat center/cover;
  opacity: 0.1;
  z-index: 0;
  mix-blend-mode: screen;
}

.invite-content {
  position: relative;
  z-index: 1;
}

.hindi-text {
  font-size: 2rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 20px 0;
}


/* --- 3. EVENT DETAILS --- */
.event-details {
  background-color: var(--dark-bg);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.detail-card {
  background: linear-gradient(145deg, #150000, #0a0000);
  border: 1px solid #330000;
  padding: 40px 20px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.detail-card:hover {
  transform: translateY(-10px);
  border-color: var(--saffron);
}

.detail-card i, .detail-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.detail-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--saffron);
}

.detail-card p {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
}

/* --- 4. LOCATION --- */
.location-section {
  position: relative;
  padding: 100px 0;
}

.location-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('../images/venue_garden.png') no-repeat center/cover;
  opacity: 0.3;
  z-index: 0;
}

.location-content {
  background: rgba(10, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 50px;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.map-placeholder {
  width: 100%;
  height: 250px;
  background: #222;
  border-radius: 10px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  color: #888;
}

/* --- 5. FAMILY & 6. CONTACT --- */
.family-contact {
  background: linear-gradient(to top, #0A0000, #1a0000);
  padding-bottom: 100px;
}

.family-block {
  text-align: center;
  margin-bottom: 60px;
}

.family-block h2 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid var(--saffron);
  padding: 15px 30px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.contact-btn:hover {
  background: var(--saffron);
  color: #0A0000;
}

/* --- 7. CLOSING --- */
.closing {
  text-align: center;
  padding: 60px 20px;
  background-color: #050000;
  border-top: 1px solid #330000;
  position: relative;
}

.closing-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-accent);
  margin-bottom: 20px;
}

/* Sticky Mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px;
  text-align: center;
  z-index: 1000;
  border-top: 1px solid var(--saffron);
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .durga-idol { height: 75vh; }
  
  .lion-section { flex-direction: column; height: auto; padding: 60px 0; }
  .lion-wrapper { position: relative; left: 0; transform: none; height: 300px; margin-bottom: 30px; }
  .lion-text-overlay { width: 90%; margin: 0 auto; padding: 30px; }
  
  .hindi-text { font-size: 1.5rem; }
  .invite-card { padding: 40px 20px; }
  
  .location-content { padding: 30px 20px; }
  
  .sticky-cta { display: block; }
  body { padding-bottom: 70px; /* space for sticky cta */ }
}
