/* =========================================
   CINEMATIC FRONTEND STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--theme-font-body);
  background: var(--theme-bg-primary);
  color: var(--theme-text-primary);
  overflow-x: hidden;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--theme-overlay),
    var(--theme-bg-primary)
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 800px;
}
.hero-subtitle {
  font-family: var(--theme-font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--theme-accent);
  margin-bottom: 20px;
  display: inline-block;
  border-bottom: 2px solid var(--theme-accent);
  padding-bottom: 5px;
}
.hero-title {
  font-family: var(--theme-font-heading);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--theme-text-primary);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.hero-tagline {
  font-size: 18px;
  font-weight: 300;
  color: var(--theme-text-secondary);
  margin-bottom: 40px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--theme-text-secondary);
}
.meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--theme-accent);
  flex-shrink: 0;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--theme-text-secondary);
  font-size: 12px;
  text-align: center;
  z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-indicator svg {
  width: 20px;
  height: 20px;
  margin-top: 5px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- SECTIONS GENERAL --- */
.section {
  padding: 80px 20px;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #f59e0b;
}

/* --- YOUTUBE LIVE SECTION --- */
.livestream-section {
  background: var(--theme-bg-secondary);
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--theme-bg-primary);
  font-size: 13px;
  color: var(--theme-text-secondary);
  border-top: 1px solid var(--theme-text-secondary);
}

/* --- FLOATING WHATSAPP --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  } /* Fixes iOS parallax bug */
  .hero-meta {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .section {
    padding: 50px 15px;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

/* --- SITE HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  /* Starts completely transparent so the hero image shows through */
  background: transparent;
}

/* When user scrolls down, JS will add this class */
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.header-logo svg {
  color: #f59e0b;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link:hover {
  color: #fff;
}

.btn-header-contact {
  background: #25d366;
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-header-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  color: #fff;
}

@media (max-width: 768px) {
  .nav-link {
    display: none;
  } /* Hide text link on mobile to save space */
  .btn-header-contact {
    padding: 6px 16px;
    font-size: 12px;
  }
}

/* --- COUNTDOWN SECTION --- */
.countdown-section {
  background: var(--theme-bg-secondary);
  padding: 60px 20px;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.countdown-box {
  text-align: center;
  background: var(--theme-bg-primary);
  padding: 20px 25px;
  border-radius: 16px;
  min-width: 100px;
  border: 1px solid var(--theme-text-secondary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.countdown-num {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--theme-accent);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--theme-font-body);
}
.countdown-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--theme-text-secondary);
  letter-spacing: 1px;
}

/* --- GALLERY SECTION --- */
.gallery-section {
  background: #0a0a0a;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1/1;
  cursor: pointer;
  border: 1px solid #1e293b;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-item:hover::after {
  opacity: 1;
}

@media (max-width: 600px) {
  .countdown-grid {
    gap: 15px;
  }
  .countdown-box {
    min-width: 70px;
    padding: 15px;
  }
  .countdown-num {
    font-size: 28px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   LANDING PAGE STYLES (SaaS Look)
   ========================================= */
body {
  background: #ffffff;
  color: #0f172a;
} /* Override dark theme for landing pages */

.landing-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.landing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.landing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 60px);
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.landing-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-weight: 300;
}

.btn-landing-primary {
  background: #fff;
  color: #4f46e5;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s;
  display: inline-block;
}
.btn-landing-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: #4f46e5;
}

.landing-features {
  background: #f8fafc;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.feature-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0f172a;
}
.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* =========================================
   VISUAL THEME FEATURES (CSS ART)
   ========================================= */

/* --- BIRTHDAY BALLOONS --- */
.balloons-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.balloon {
  position: absolute;
  bottom: -150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: floatUp linear infinite;
}

.balloon-body {
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  position: relative;
  box-shadow:
    inset -10px -10px 20px rgba(0, 0, 0, 0.2),
    inset 10px 10px 20px rgba(255, 255, 255, 0.3);
}

.balloon-knot {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid red; /* Color overridden inline */
}

.balloon-string {
  width: 1px;
  height: 100px;
  background: rgba(255, 255, 255, 0.5);
  transform-origin: top center;
  animation: stringWave 3s ease-in-out infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-110vh) rotate(15deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(-10deg);
    opacity: 0;
  }
}

@keyframes stringWave {
  0%,
  100% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

/* --- CONFETTI EFFECT FOR BIRTHDAY --- */
.balloons-container::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(
      45deg,
      #dc2626 25%,
      transparent 25%,
      transparent 75%,
      #dc2626 75%,
      #dc2626
    ),
    linear-gradient(
      45deg,
      #dc2626 25%,
      transparent 25%,
      transparent 75%,
      #dc2626 75%,
      #dc2626
    ),
    linear-gradient(
      45deg,
      #2563eb 25%,
      transparent 25%,
      transparent 75%,
      #2563eb 75%,
      #2563eb
    ),
    linear-gradient(
      45deg,
      #2563eb 25%,
      transparent 25%,
      transparent 75%,
      #2563eb 75%,
      #2563eb
    );
  background-size: 20px 20px;
  background-position:
    0 0,
    10px 10px,
    0 0,
    10px 10px;
  opacity: 0.05;
  pointer-events: none;
}

/* --- INDIAN WEDDING SPECIFIC STYLES --- */
/* Make sure the mandala border from JSON applies nicely to rounded screens */
@media (max-width: 768px) {
  .hero {
    border-width: 6px !important;
    border-image-slice: 6 !important;
  }
}

/* Change countdown box styling slightly for Indian Wedding */
[data-theme-style='wedding-indian'] .countdown-box {
  border: 2px dashed var(--theme-accent);
  background: transparent;
}

/* --- TEXT CONTENT SECTION --- */
.landing-content-section {
  background: #ffffff;
  padding: 80px 20px;
}
.content-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 20px;
  text-align: left;
}
.content-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .content-body p {
    text-align: left;
  }
}

/* --- CONTACT FORM --- */
.landing-contact-section {
  background: #f8fafc;
  padding: 80px 20px;
}
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-input {
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  color: #0f172a;
  transition: 0.2s;
}
.contact-input:focus {
  outline: none;
  border-color: var(--theme-accent, #4f46e5);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.contact-input::placeholder {
  color: #94a3b8;
}

/* =========================================
   ADVANCED PAGE BUILDER SECTIONS
   ========================================= */

/* --- TESTIMONIALS --- */
.landing-testimonials-section {
  background: #f8fafc;
  padding: 80px 20px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-5px);
}
.stars {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.testimonial-author strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}
.testimonial-author small {
  color: #64748b;
  font-size: 13px;
}

/* --- FAQ ACCORDION --- */
.landing-faq-section {
  background: #ffffff;
  padding: 80px 20px;
}
.faq-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  transition: 0.2s;
}
.faq-question:hover {
  color: #4f46e5;
}
.faq-icon {
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #4f46e5;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item.active .faq-answer {
  max-height: 200px;
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* --- LANDING FOOTER --- */
.landing-footer {
  background: #0f172a;
  color: #fff;
  padding: 60px 20px 30px;
  text-align: center;
}
.footer-brand {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #f59e0b;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.footer-social {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.footer-social:hover {
  color: #f59e0b;
  border-color: #f59e0b;
}
.footer-copyright {
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}

/* =========================================
   LANDING PAGE NAVIGATION
   ========================================= */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.nav-logo svg {
  color: #4f46e5;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-link {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: 0.2s;
}
.nav-link:hover,
.nav-link.active {
  background: #f1f5f9;
  color: #4f46e5;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none;
    border-top: 1px solid #e2e8f0;
  }
  .nav-menu.active {
    display: flex;
  }
}

/* Contact Form Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PRICING CARDS --- */
.landing-pricing-section {
  background: #ffffff;
  padding: 80px 20px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.pricing-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #4f46e5;
}
.plan-name {
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.plan-price {
  font-size: 42px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
}
.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
}
.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
}
.plan-features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  margin-right: 12px;
}
.btn-pricing {
  display: block;
  padding: 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: 0.2s;
}
.btn-pricing:hover {
  background: #4f46e5;
  color: #fff;
}
