/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #F21825;
  --primary-bg: #FB3440;
  --button-bg: #FFB900;
  --text-dark: #191313;
  --text-light: #FFFFFF;
  --text-gray: #666666;
  --background-light: #FFF9F0;
  --background-white: #FFFFFF;
  --border-color: #E5E5E5;
  --shadow-sm: 0 2px 8px rgba(242, 24, 37, 0.08);
  --shadow-md: 0 4px 16px rgba(242, 24, 37, 0.12);
  --shadow-lg: 0 8px 32px rgba(242, 24, 37, 0.16);
  --glow: 0 0 20px rgba(255, 185, 0, 0.4);
}

/* ===== GLOBAL RESETS & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--background-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  line-height: 1.2;
  font-weight: 700;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--button-bg));
  border-radius: 2px;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

 
.logo {
  --logo-scale: 1.4;  
}


.about-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

 
.about-logo {
  --logo-scale: 1.4;  
}

.logo-img-about {
  width: 300px;
  height: auto;
  background-color:  #FB3440;
  object-fit: contain;
  /* filter: drop-shadow(0 0 10px red); */
  -webkit-transform: scale(var(--logo-scale));
  transform: scale(var(--logo-scale));
  -webkit-transform-origin: center;
  transform-origin: center;
}


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

/* Colored logo using PNG as mask (preferred) with img fallback.
   Use the inline CSS variable --logo-url on the .logo element to set the logo image URL,
   e.g. <div class="logo" style="--logo-url: url('{% static 'website/public/Logo2.png' %}')">.
   If --logo-url is not set, the fallback URL ../public/Logo2.png will be used.
*/
.logo::before {
  content: '';
  display: inline-block;
  width: 58px;
  height: 58px;
  background-color: var(--primary-color);
  -webkit-mask-image: var(--logo-url, url('../public/Logo2.png'));
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: var(--logo-url, url('../public/Logo2.png'));
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  vertical-align: middle;
  -webkit-transform: scale(var(--logo-scale));
  transform: scale(var(--logo-scale));
  -webkit-transform-origin: center;
  transform-origin: center;
}

/* Hide the img when mask is supported so the masked pseudo-element is visible.
   Browsers that don't support mask-image will keep showing the original <img>.
*/
@supports (mask-image: url("")) {
  .logo .logo-img {
    display: none;
  }
}

/* Fallback filter for older browsers where mask isn't supported and image remains visible.
   This is not perfect but improves visibility if the PNG foreground is white.
*/
.logo .logo-img.fallback-recolor {
  /* Adjust these values if the color isn't exact; this roughly converts white->red */
  filter: invert(14%) sepia(95%) saturate(600%) hue-rotate(-10deg) brightness(95%) contrast(95%);
  -webkit-transform: scale(var(--logo-scale));
  transform: scale(var(--logo-scale));
  -webkit-transform-origin: center;
  transform-origin: center;
}

/* Recolor rule for about page image which is not inside .logo container */
.logo-img-about.fallback-recolor {
  filter: invert(14%) sepia(95%) saturate(600%) hue-rotate(-10deg) brightness(95%) contrast(95%);
  /* keep same visual scale as header logo (optional) */
  -webkit-transform: scale(var(--logo-scale, 1.0));
  transform: scale(var(--logo-scale, 1.0));
  -webkit-transform-origin: center;
  transform-origin: center;
  display: inline-block;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(242, 24, 37, 0.1);
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 81px;
  left: 0;
  right: 0;
  background: var(--background-white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link {
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--background-light);
  color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(135deg, #FFF9F0 0%, #FFE9E0 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(242, 24, 37, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 185, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.diya, .flower {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.diya {
  background: radial-gradient(circle, rgba(255, 185, 0, 0.6), rgba(255, 185, 0, 0.1));
  box-shadow: 0 0 30px rgba(255, 185, 0, 0.4);
}

.flower {
  background: radial-gradient(circle, rgba(242, 24, 37, 0.4), rgba(242, 24, 37, 0.05));
}

.diya-1 { top: 20%; left: 10%; animation-delay: 0s; }
.diya-2 { top: 60%; right: 15%; animation-delay: 2s; }
.diya-3 { bottom: 30%; left: 20%; animation-delay: 4s; }
.flower-1 { top: 40%; right: 25%; animation-delay: 1s; animation-duration: 7s; }
.flower-2 { bottom: 20%; right: 10%; animation-delay: 3s; animation-duration: 8s; }
.flower-3 { top: 70%; left: 30%; animation-delay: 5s; animation-duration: 7.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-10px); }
  75% { transform: translateY(-25px) translateX(5px); }
}

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

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.app-download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.app-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--text-dark);
  color: var(--text-light);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.app-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.button-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.button-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.button-text {
  font-size: 1rem;
  font-weight: 600;
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #333,
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(255, 185, 0, 0.2);
  animation: phoneGlow 3s ease-in-out infinite;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #444;
  border-radius: 3px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
}

@keyframes phoneGlow {
  0%, 100% { box-shadow: 0 0 0 2px #333, 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 60px rgba(255, 185, 0, 0.2); }
  50% { box-shadow: 0 0 0 2px #333, 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 80px rgba(255, 185, 0, 0.4); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 100px 0;
  background: var(--background-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px 30px;
  background: var(--background-white);
  border-radius: 16px;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 185, 0, 0.05), rgba(242, 24, 37, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  border-color: var(--button-bg);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(255, 185, 0, 0.3));
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-description {
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
  padding: 100px 0;
  background: var(--background-light);
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: 40px 30px;
  background: var(--background-white);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--button-bg);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(255, 185, 0, 0.4);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step-description {
  color: var(--text-gray);
  line-height: 1.7;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: 100px 0;
  background: var(--background-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 249, 240, 0.8), rgba(255, 255, 255, 0.8));
  border-radius: 16px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: rgba(242, 24, 37, 0.1);
  font-family: 'Merriweather', serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--button-bg);
}

.testimonial-stars {
  color: var(--button-bg);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(255, 185, 0, 0.3);
}

.testimonial-text {
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--button-bg));
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-dark);
}

.author-location {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-color) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.2), transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .app-download-buttons {
  justify-content: center;
}

.cta-section .app-button {
  background: var(--text-light);
  color: var(--text-dark);
}

.cta-section .app-button:hover {
  background: var(--button-bg);
}

/* ===== FOOTER ===== */
.main-footer {
  /* Yellow footer background with subtle gradient */
  background: linear-gradient(135deg, #FFF9F0 0%, #FFE9E0 100%);
  color: var(--text-dark);
  padding: 60px 0 30px;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  /* subtle highlight line to separate header and footer */
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}


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

/* Footer logo recolor using the same --logo-url variable (fallback to Logo2.png). */
.footer-logo::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  /* show a contrasting red logo on yellow background */
  background-color: var(--primary-color);
  -webkit-mask-image: var(--logo-url, url('../public/Logo2.png'));
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: var(--logo-url, url('../public/Logo2.png'));
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  vertical-align: middle;
}

@supports (mask-image: url("")) {
  .footer-logo .footer-logo-img {
    display: none;
  }
}

.footer-logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-dark);
}

.footer-tagline {
  color: rgba(25, 19, 19, 0.85); /* darker text on yellow */
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(25, 19, 19, 0.9);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.footer-copyright,
.footer-developer {
  color: rgba(25, 19, 19, 0.8);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ===== PAGE HERO (About, Contact, Panditji) ===== */
.page-hero {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-color) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255, 185, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-title {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* ===== ABOUT PAGE ===== */
.about-section {
  padding: 100px 0;
  background: var(--background-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.about-text .section-title::after {
  left: 0;
  transform: translateX(0);
}

.about-paragraph {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-highlight {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--background-light);
  border-radius: 16px;
  border-left: 4px solid var(--button-bg);
  margin-top: 2rem;
}

.highlight-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.highlight-title {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.highlight-text {
  color: var(--text-gray);
  line-height: 1.7;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 550px;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: #191313; */
}

/* Use the provided image as a mask to paint it with --primary-color (preferred approach).
   The inline style on the image wrapper sets --logo-url, e.g.
   <div class="image-wrapper" style="--logo-url: url('{% static 'website/public/Logo2.png' %}')">.
   If masks are supported we hide the original <img> and show the colored mask pseudo-element.
*/
.image-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%) scale(var(--logo-scale, 1.0));
  transform-origin: center;
  background-color: var(--primary-color);
  -webkit-mask-image: var(--logo-url, url('../public/Logo2.png'));
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: var(--logo-url, url('../public/Logo2.png'));
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  pointer-events: none;
  /* keep it behind any interactive overlays */
  z-index: 0;
  display: none; /* shown only when mask is supported */
}

/* When mask is supported, hide the actual <img> and reveal the pseudo-element recolored to --primary-color */
@supports (mask-image: url('')) {
  .image-wrapper::before {
    display: block;
  }
  .image-wrapper .logo-img-about {
    /* hide original image when mask recolor is used */
    display: none !important;
  }
}

/* Keep the existing fallback filter for browsers without mask support. The .fallback-recolor class
   is applied to the <img> and will convert white-ish foreground to a red tint. */
.logo-img-about.fallback-recolor {
  filter: invert(14%) sepia(95%) saturate(700%) hue-rotate(-10deg) brightness(95%) contrast(95%);
  -webkit-transform: scale(var(--logo-scale, 1.0));
  transform: scale(var(--logo-scale, 1.0));
  -webkit-transform-origin: center;
  transform-origin: center;
  display: inline-block;
}

.diya-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.2), transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
}

.om-symbol {
  width: 200px;
  height: 200px;
  color: var(--primary-color);
  filter: drop-shadow(0 4px 20px rgba(242, 24, 37, 0.3));
}

.audience-section {
  padding: 100px 0;
}

.devotees-section {
  background: var(--background-light);
}

.pandits-section {
  background: var(--background-white);
}

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

.audience-icon-large {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(255, 185, 0, 0.3));
}

.audience-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--background-white);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-title {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.benefit-text {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 0.95rem;
}

.cta-button-wrapper {
  margin-top: 3rem;
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--button-bg);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.values-section {
  padding: 100px 0;
  background: var(--background-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.value-card {
  padding: 40px 30px;
  background: var(--background-light);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.value-card:hover {
  border-color: var(--button-bg);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.value-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.value-description {
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== FOR PANDITJI PAGE ===== */
.pandit-hero {
  background: linear-gradient(135deg, var(--button-bg) 0%, #FF9500 100%);
}

.pandit-intro-section {
  padding: 100px 0;
  background: var(--background-white);
}

.pandit-intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pandit-intro-text .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.pandit-intro-text .section-title::after {
  left: 0;
  transform: translateX(0);
}

.intro-paragraph {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.pandit-intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pandit-illustration {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pandit-svg {
  width: 100%;
  height: 100%;
}

.phone-mockup-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 280px;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.phone-screen-small {
  width: 100%;
  height: 100%;
  background: var(--background-white);
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
}

.screen-header {
  width: 100%;
  height: 40px;
  background: var(--primary-bg);
  border-radius: 8px 8px 0 0;
  margin-bottom: 12px;
}

.screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.profile-pic {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--button-bg));
  border-radius: 50%;
}

.text-line {
  width: 80%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
}

.text-line.short {
  width: 50%;
}

.pandit-benefits-section {
  padding: 100px 0;
  background: var(--background-light);
}

.benefits-large-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.benefit-large-card {
  padding: 40px 30px;
  background: var(--background-white);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.benefit-large-card:hover {
  border-color: var(--button-bg);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.benefit-large-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.benefit-large-title {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.benefit-large-description {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 1rem;
}

.how-to-join-section {
  padding: 100px 0;
  background: var(--background-white);
}

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

.join-step {
  text-align: center;
  padding: 40px 30px;
  background: var(--background-light);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.join-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.join-step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--button-bg);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(255, 185, 0, 0.4);
}

.join-step-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.join-step-description {
  color: var(--text-gray);
  line-height: 1.7;
}

.pandit-cta {
  background: linear-gradient(135deg, var(--button-bg) 0%, #FF9500 100%);
}

.pandit-cta .cta-title,
.pandit-cta .cta-description {
  color: var(--text-dark);
}

.cta-button-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--text-dark);
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.cta-button-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cta-button-large .button-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.policies-section {
  padding: 100px 0;
  background: var(--background-white);
}

.policies-intro {
  text-align: center;
  color: var(--text-gray);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.policy-card {
  padding: 40px 30px;
  background: var(--background-light);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: block;
}

.policy-card:hover {
  border-color: var(--button-bg);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.policy-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.policy-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.policy-description {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.contact-section {
  padding: 100px 0;
  background: var(--background-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.contact-info .section-title::after {
  left: 0;
  transform: translateX(0);
}

.contact-description {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--background-light);
  border-radius: 12px;
}

.contact-method-icon {
  font-size: 2rem;
  line-height: 1;
}

.contact-method-title {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-method-text {
  color: var(--text-gray);
}

.support-link-box {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 185, 0, 0.1), rgba(242, 24, 37, 0.05));
  border-radius: 12px;
  border-left: 4px solid var(--button-bg);
}

.support-link-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.support-link-title {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.support-link-text {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.support-link-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--button-bg);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.support-link-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-form-container {
  padding: 40px;
  background: var(--background-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--background-white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--button-bg);
  box-shadow: 0 0 0 3px rgba(255, 185, 0, 0.1);
}

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

.form-submit-button {
  padding: 16px 32px;
  background: var(--button-bg);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.form-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-success {
  text-align: center;
  padding: 40px 30px;
  background: var(--background-white);
  border-radius: 12px;
  border: 2px solid #4CAF50;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.success-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.success-text {
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-content,
  .about-content,
  .pandit-intro-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-mockup {
    order: -1;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-hero-title {
    font-size: 2.25rem;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
  }

  .features-grid,
  .testimonials-grid,
  .benefits-grid,
  .values-grid,
  .policies-grid,
  .benefits-large-grid,
  .join-steps {
    grid-template-columns: 1fr;
  }

  .app-download-buttons {
    flex-direction: column;
  }

  .app-button {
    width: 100%;
    justify-content: center;
  }

  .cta-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .contact-form-container {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .page-hero-title {
    font-size: 1.85rem;
  }

  .phone-frame {
    width: 200px;
    height: 400px;
  }

  .feature-card,
  .testimonial-card,
  .value-card,
  .policy-card,
  .benefit-large-card {
    padding: 30px 20px;
  }
}
