/* ================= CSS VARIABLES ================= */
/* WHY: Using variables means you change colors in ONE place, not 50 places */
:root {
  --saffron: #E8750A;
  --saffron-dark: #B85A05;
  --saffron-light: #FFF0E0;
  --maroon: #6B1A0A;
  --maroon-light: #F2E8E4;
  --gold: #C8960A;
  --gold-light: #FFF8E0;
  --text-dark: #2A1A10;
  --text-medium: #5A3A28;
  --text-light: #8A6A58;
  --white: #FFFFFF;
  --bg-cream: #FDF8F3;
  --bg-light: #F5EDE4;
  --shadow: 0 4px 20px rgba(107, 26, 10, 0.12);
  --shadow-hover: 0 8px 32px rgba(107, 26, 10, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* ================= RESET ================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= SCROLL ================= */
html {
  scroll-behavior: smooth;
}

/* ================= BODY ================= */
/* WHY Lato: Clean, highly readable at all sizes. Far better than Arial for body text.
   Arial was designed for screens in the 90s. Lato is modern and legible. */
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.7;
}

/* ================= TYPOGRAPHY SYSTEM ================= */
/* WHY Playfair Display: Elegant, serif, feels sacred and authoritative. Perfect for 
   a pandit's website. Has authority + tradition combined. Much better than Cinzel
   (which is too decorative) or Tinos (which is just a Times New Roman clone). */
h1, h2, h3, .section-title {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

/* WHY Noto Serif Devanagari: This is the ONLY font that renders Hindi/Sanskrit text
   correctly. Using Cormorant Garamond for Hindi text was wrong — it doesn't support
   Devanagari script, causing broken characters. */
.hero-title, .about-name, .footer-hindi {
  font-family: 'Noto Serif Devanagari' , serif;
}

/* ================= REUSABLE SECTION HEADER ================= */
/* WHY: Consistent heading style across all sections = professional look */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px); /* WHY clamp(): auto-scales font from mobile to desktop */
  color: var(--maroon);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  margin: 0 auto;
  border-radius: 2px;
}

/* ================= NAVBAR ================= */
.navbar {
  background: #FFF8F0;
  height: 80px;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(107, 26, 10, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  height: 65px;
  box-shadow: 0 4px 25px rgba(107, 26, 10, 0.15);
}

.logo-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

/* ================= NAV LINKS ================= */
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  position: relative;
  transition: var(--transition);
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--saffron);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--saffron);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}
.translate-btn {
  background: var(--maroon);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Serif Devanagari', serif;
  transition: var(--transition);
}

.translate-btn:hover {
  background: var(--saffron);
}

/* Hides the ugly Google Translate toolbar at the top */
.goog-te-banner-frame, #goog-gt-tt {
  display: none !important;
}

body {
  top: 0 !important;
}

/* ================= CALL BUTTON ================= */
.call-btn {
  background: var(--saffron);
  color: var(--white);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 30px;
  transition: var(--transition);
  font-weight: 700;
  font-size: 15px;
}

.call-btn:hover {
  background: var(--saffron-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 117, 10, 0.4);
}

/* ================= HAMBURGER ================= */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--maroon);
}

/* ================= HERO SECTION ================= */
/* WHY: No more position:absolute on text elements. Use flexbox to center content.
   This is the correct way — absolute positioning for hero text breaks completely on mobile. */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 5, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 80px 20px 20px;
}

.hero-content {
  max-width: 850px;
  width: 100%;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

/* WHY Noto Serif Devanagari here: Renders Hindi text beautifully */
.hero-title {
  font-size: clamp(38px, 7vw, 80px);
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-location {
  font-size: clamp(18px, 3vw, 30px);
  color: #FFD84D;
  margin-bottom: 24px;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.hero-description {
  font-size: clamp(14px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.book-puja-btn {
  background: var(--saffron);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 40px;
  font-weight: 700;
  transition: var(--transition);
  font-family: 'Lato', sans-serif;
}

.book-puja-btn:hover {
  background: var(--saffron-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(232, 117, 10, 0.5);
}

.call-now-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 40px;
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Lato', sans-serif;
}

.call-now-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: white;
}

/* ================= ABOUT SECTION ================= */
.about-section {
  padding: 90px 60px;
  background: var(--maroon-light);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  transition: transform 0.5s ease;
  display: block;
}

.about-image img:hover {
  transform: scale(1.04);
}

.about-content {
  flex: 1.2;
}

.about-name {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--maroon);
  margin-bottom: 4px;
}

.about-tagline {
  font-size: 18px;
  color: var(--saffron);
  font-style: italic;
  margin-bottom: 24px;
  font-family: 'Playfair Display', serif;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 16px;
}

.highlight {
  color: var(--saffron-dark);
  font-weight: 700;
}

/* ================= CONTACT DETAILS (in About) ================= */
.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(107, 26, 10, 0.08);
}

.contact-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  color: var(--maroon);
  font-weight: 700;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
}

.contact-value:hover {
  color: var(--saffron);
}

/* ================= SERVICES SECTION ================= */
.services {
  padding: 90px 50px;
  background: var(--bg-cream);
}

.service-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  padding: 16px 16px 8px;
  font-size: 17px;
  color: var(--maroon);
  font-family: 'Playfair Display', serif;
}

.service-card p {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  flex: 1;
}

.call-pandit {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--bg-light);
  color: var(--saffron);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.call-pandit:hover {
  color: var(--saffron-dark);
  background: var(--saffron-light);
}

/* ================= GALLERY SECTION ================= */
.gallery-section {
  padding: 90px 50px;
  background: var(--bg-light);
}


/* WHY: Changed from repeat(5,1fr) to auto-fill minmax.
   Fixed width repeat(5,1fr) NEVER adapts on mobile — items become tiny or overflow.
   minmax() automatically adjusts column count based on screen width. */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-frame {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-frame:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.gallery-frame img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ================= CERTIFICATE SECTION ================= */
.certificate-section {
  padding: 90px 50px;
  background: var(--bg-cream);
}

.certificate-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.certificate-frame {
  background: var(--white);
  padding: 12px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.certificate-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.certificate-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ================= VIDEO SECTION ================= */
.video-section {
  padding: 90px 50px;
  background: var(--maroon-light);
}

.shorts-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.shorts-grid iframe {
  width: 315px;
  height: 560px;
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow);
  /* WHY: max-width so iframe doesn't overflow on small screens */
  max-width: 100%;
}

.video-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.video-content h3 {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--maroon);
  margin-bottom: 24px;
  font-family: 'Playfair Display', serif;
}

.video-content p {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ================= CONTACT SECTION ================= */
.contact {
  padding: 90px 50px;
  background: var(--bg-cream);
}

.contact-wrapper {
  display: flex;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-form {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: -6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 13px 16px;
  font-size: 15px;
  border: 1.5px solid #DDD;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 117, 10, 0.12);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  background: var(--saffron);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 17px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  transition: var(--transition);
  margin-top: 8px;
}

.contact-form button:hover {
  background: var(--saffron-dark);
  transform: translateY(-2px);
}

.payment-box {
  flex: 1;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--gold-light);
}

.payment-box h3 {
  font-size: 20px;
  color: var(--maroon);
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.payment-box img {
  width: 100%;
  max-width: 220px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.payment-box p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 8px;
}

.payment-note {
  font-size: 13px !important;
  color: var(--text-light) !important;
  font-style: italic;
}

/* ================= FOOTER ================= */
footer {
  background: #1A0800;
  padding: 70px 50px 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: #F9C300;
  margin-bottom: 6px;
}

.footer-hindi {
  font-size: 18px;
  color: #FF8C00;
  margin-bottom: 16px;
}

.footer-about p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.8;
}

.footer-links h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #F9C300;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #F9C300;
}

.footer-copyright {
  text-align: center;
  padding-top: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copyright p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-copyright a {
  color: #F9C300;
  text-decoration: none;
}

/* ================= WHATSAPP BUTTON ================= */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.whatsapp-text {
  color: white;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 55px;
  opacity: 0;
  transition: var(--transition);
  font-size: 14px;
}

.whatsapp-btn:hover {
  width: 200px;
  justify-content: flex-start;
  padding-left: 16px;
}

.whatsapp-btn:hover .whatsapp-icon {
  left: 24px;
  transform: none;
}

.whatsapp-btn:hover .whatsapp-text {
  opacity: 1;
}

/* ================= FIXED CALL BUTTON ================= */
.fixed-call-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(107, 26, 10, 0.2);
}

.call-icon {
  width: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.call-text {
  color: var(--maroon);
  font-weight: 700;
  white-space: nowrap;
  margin-left: 55px;
  opacity: 0;
  transition: var(--transition);
  font-size: 14px;
}

.fixed-call-btn:hover {
  width: 210px;
  justify-content: flex-start;
  padding-left: 16px;
  border-radius: 30px;
}

.fixed-call-btn:hover .call-icon {
  left: 24px;
  transform: none;
}

.fixed-call-btn:hover .call-text {
  opacity: 1;
}

/* ================= MOBILE RESPONSIVE ================= */
/* WHY: All the mobile rules are organized here in one place.
   Your original code had mobile CSS scattered and missing for many sections. */

@media (max-width: 1024px) {
  .service-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}
 .hero {
    padding-top: 70px;
  }

  .overlay {
    padding-top: 70px;
  }

  /* Navbar */
  .navbar {
    padding: 0 16px;
    height: 65px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .menu-toggle {
    display: block;
  }
  .translate-btn{
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 16px;
    background: #FFF8F0;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(107, 26, 10, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  /* WHY: On mobile, the call button in navbar takes too much space.
     Hide it on mobile — there's a fixed floating call button anyway. */
  .call-btn {
    display: none;
  }

  /* Hero */
  .overlay {
    padding: 80px 24px 24px;
  }

  .hero-btn {
    gap: 12px;
  }

  .book-puja-btn,
  .call-now-btn {
    font-size: 15px;
    padding: 12px 22px;
  }
  .logo-img {
    width: 50px;
    height: 50px;
  }

  /* About */
  .about-section {
    padding: 60px 24px;
  }

  /* WHY: flex-direction column stacks image on top of text on mobile */
  .about-container {
    flex-direction: column;
    gap: 32px;
  }

  /* Services */
  .services {
    padding: 60px 24px;
  }
  .service-card img{
    height: auto;
    padding: 20px 60px;
  }

  /* WHY: Single column on mobile — 2 columns make cards too narrow to read */
  .service-container {
    grid-template-columns: 1fr;
  }

  /* Gallery — auto-fill handles this already, but set min for mobile */
  .gallery-section,
  .certificate-section {
    padding: 60px 24px;
  }

  .gallery-container {
    grid-template-columns: repeat(1, minmax(140px, 1fr));
  }
.gallery-container img{
  height: auto;
  padding: 20px 60px;

}

.service-container img{
  height: auto;
  padding: 20px 60px;

}


}
  .certificate-container {
    grid-template-columns: repeat(1, minmax(130px, 1fr));
  }

  /* Video */
  .video-section {
    padding: 60px 24px;
  }

  /* WHY: iframes on mobile should fill width, not stay 315px wide */
  .shorts-grid iframe {
    width: 100%;
    max-width: 360px;
    height: 480px;
  }

  /* Contact */
  .contact {
    padding: 60px 24px;
  }

  /* WHY: Stack form and payment box vertically on mobile */
  .contact-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  /* Footer */
  footer {
    padding: 50px 24px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-copyright {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-location {
    font-size: 17px;
  }

  .hero-description {
    font-size: 14px;
  }

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

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

  .service-card img {
    height: 180px;
  }
}
