/* ============================================
   Bengali Themed Astrologer Landing Page
   Color Palette: Deep reds, gold, ochre, green accents
   ============================================ */

:root {
  --primary-red: #8b1a1a;
  --deep-red: #6b0f0f;
  --gold: #d4af37;
  --ochre: #c9a961;
  --green-accent: #2d5016;
  --warm-beige: #f5e6d3;
  --cream: #fff8e7;
  --dark-brown: #3d2817;
  --text-dark: #2c1810;
  --text-light: #5c4a3a;

  --font-bengali: "Noto Sans Bengali", sans-serif;
  --font-body: "Poppins", sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 20px rgba(139, 26, 26, 0.1);
  --shadow-medium: 0 8px 30px rgba(139, 26, 26, 0.15);
  --shadow-strong: 0 12px 40px rgba(139, 26, 26, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Language Selector
   ============================================ */

.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 0;
  background: var(--warm-beige);
  border-radius: 25px;
  padding: 4px;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--gold);
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border-radius: 20px;
  transition: var(--transition);
  font-size: 14px;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--ochre));
  color: var(--deep-red);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.lang-btn:hover:not(.active) {
  background: rgba(212, 175, 55, 0.2);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(139, 26, 26, 0.1);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-bengali);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
}

.bengali-name {
  display: inline-block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ochre));
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.cta-nav {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary-red), var(--deep-red));
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 2rem 2rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.alpana-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      var(--gold) 1px,
      transparent 1px
    ),
    radial-gradient(circle at 80% 70%, var(--ochre) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--green-accent) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 80px 80px;
  background-position: 0 0, 50px 50px, 25px 25px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.celestial-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0s;
}
.star-2 {
  top: 25%;
  right: 25%;
  animation-delay: 0.5s;
}
.star-3 {
  bottom: 30%;
  left: 15%;
  animation-delay: 1s;
}
.star-4 {
  bottom: 20%;
  right: 20%;
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.moon {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ochre), var(--gold));
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  animation: moonGlow 4s ease-in-out infinite;
}

@keyframes moonGlow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.8);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  font-family: var(--font-bengali);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title .bengali-text {
  display: block;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero-title .english-text {
  display: block;
  font-family: var(--font-body);
  font-size: 2.5rem;
  color: var(--deep-red);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

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

.cta-primary {
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary-red), var(--deep-red));
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before {
  width: 300px;
  height: 300px;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--gold);
  border-radius: 25px;
  position: relative;
}

.scroll-arrow::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    top: 10px;
    opacity: 1;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

/* ============================================
   Section Styles
   ============================================ */

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.bengali-heading {
  display: block;
  font-family: var(--font-bengali);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.english-heading {
  display: block;
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--ochre));
  border-radius: 2px;
}

/* ============================================
   About Section
   ============================================ */

.about {
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm-beige) 100%);
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ============================================
   Services Section
   ============================================ */

.services {
  background: var(--cream);
}

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

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--primary-red);
  transition: var(--transition);
  position: relative;
}

.service-card:hover .service-icon {
  transform: rotate(360deg) scale(1.1);
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-cta {
  padding: 12px 30px;
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.service-cta:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
  background: linear-gradient(180deg, var(--warm-beige) 0%, var(--cream) 100%);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  animation: fadeInLeft 0.8s ease-out;
  animation-fill-mode: both;
}

.step:nth-child(2) {
  animation-delay: 0.2s;
}

.step:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--ochre));
  color: var(--deep-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-content p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials {
  background: var(--cream);
}

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

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border-left: 4px solid var(--gold);
  animation: slideIn 0.8s ease-out;
  animation-fill-mode: both;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-card:nth-child(even) {
  animation-name: slideInRight;
  border-left: none;
  border-right: 4px solid var(--gold);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.testimonial-content p {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  color: var(--primary-red);
  font-weight: 600;
  text-align: right;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm-beige) 100%);
}

.contact-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 2px solid transparent;
  display: block;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: var(--primary-red);
  transition: var(--transition);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(139, 26, 26, 0.3));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(139, 26, 26, 0.6));
  }
}

.contact-card:hover .contact-icon {
  color: var(--gold);
  animation: none;
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 1.3rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.quick-question {
  text-align: center;
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.quick-question h3 {
  font-size: 1.5rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.cta-secondary {
  padding: 14px 35px;
  background: linear-gradient(135deg, var(--gold), var(--ochre));
  color: var(--deep-red);
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ============================================
   FAQ Section
   ============================================ */

.faq {
  background: var(--cream);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-red);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--warm-beige);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--gold);
  transition: var(--transition);
  font-weight: 300;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: linear-gradient(
    180deg,
    var(--deep-red) 0%,
    var(--dark-brown) 100%
  );
  color: var(--cream);
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(212, 175, 55, 0.1) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(201, 169, 97, 0.1) 1px,
      transparent 1px
    );
  background-size: 100px 100px;
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer-logo {
  font-family: var(--font-bengali);
  font-size: 1.5rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--cream);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--deep-red);
  transform: scale(1.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-cta {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-cta .cta-primary {
  background: linear-gradient(135deg, var(--gold), var(--ochre));
  color: var(--deep-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--warm-beige);
}

/* ============================================
   Modal Styles
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-strong);
  animation: slideUp 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-light);
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--warm-beige);
  color: var(--primary-red);
}

.modal-content h2 {
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.reading-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--warm-beige);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

/* Date input formatting for dd/mm/yyyy (text input) */
.form-group input#dob {
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.form-group input#dob::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input.valid {
  border-color: var(--green-accent);
}

.form-group input.invalid {
  border-color: var(--primary-red);
}

.validation-icon {
  position: absolute;
  right: 15px;
  top: 42px;
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: var(--transition);
}

.form-group input.valid + .validation-icon::after {
  content: "✓";
  color: var(--green-accent);
  font-weight: bold;
  opacity: 1;
  animation: checkmarkSlide 0.3s ease-out;
}

@keyframes checkmarkSlide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.reading-form .cta-primary {
  margin-top: 1rem;
  width: 100%;
}

/* ============================================
   Responsive Design
   ============================================ */

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

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

  .hero-title .english-text {
    font-size: 1.8rem;
  }

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

  .bengali-heading {
    font-size: 2rem;
  }

  .english-heading {
    font-size: 1.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }

  .language-selector {
    top: 10px;
    right: 10px;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 1rem 2rem;
  }

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

  .hero-title .english-text {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 60px 0;
  }
}

/* ============================================
   Accessibility
   ============================================ */

*:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-red);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Success Animation with Checkmark
   ============================================ */

.success-animation-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 3000;
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.success-animation-container.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.success-animation-container.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.success-checkmark {
  margin-bottom: 1.5rem;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid var(--green-accent);
  margin: 0 auto;
  background: white;
}

.check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.check-icon::before,
.check-icon::after {
  content: "";
  height: 100px;
  position: absolute;
  background: white;
  transform: rotate(-45deg);
  border-radius: 50%;
}

.icon-line {
  height: 5px;
  background-color: var(--green-accent);
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  border: 4px solid var(--green-accent);
  background: white;
  animation: icon-circle 0.6s ease-in-out;
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background: white;
}

.success-message {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-accent);
  margin-top: 1rem;
  font-family: var(--font-body);
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  100% {
    width: 25px;
    left: 14px;
    top: 46px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }
  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

@keyframes icon-circle {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate-circle {
  0% {
    transform: rotate(-45deg);
  }
  5% {
    transform: rotate(-45deg);
  }
  12% {
    transform: rotate(-405deg);
  }
  100% {
    transform: rotate(-405deg);
  }
}

/* Modern, subtle SVG checkmark animation */
.success-svg-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 3000;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease;
  pointer-events: none;
  display: inline-block;
}
.success-svg-container.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.success-svg {
  width: 84px;
  height: 84px;
  display: block;
  margin: 0 auto;
}

.success-svg .circle-bg {
  fill: rgba(45, 80, 22, 0.06);
}

.success-svg .check-circle {
  fill: none;
  stroke: var(--green-accent);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-circle 520ms ease forwards;
}

.success-svg .check-mark {
  fill: none;
  stroke: var(--green-accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw-check 360ms ease 420ms forwards;
}

@keyframes draw-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.success-svg + .success-text {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--green-accent);
}

/* Fade-out helper */
.success-svg-container.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-red: #8b0000;
    --gold: #ffd700;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
