/* Pregnancy Theme Styles - Responsive & Optimized */
:root {
  --pink: #f8bbd0;
  --pink-dark: #f48fb1;
  --purple: #ce93d8;
  --purple-dark: #ba68c8;
  --teal: #80deea;
  --teal-dark: #4dd0e1;
  --coral: #ffab91;
  --coral-dark: #ff8a65;
  --lavender: #b39ddb;
  --lavender-dark: #9575cd;
  --peach: #ffcc80;
  --peach-dark: #ffb74d;
  --heading-font: 'Playfair Display', serif;
  --subheading-font: 'Montserrat', sans-serif;
  --body-font: 'Nunito Sans', sans-serif;
}

/* Responsive Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: #333;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: #2c3e50;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

/* Responsive Hero Section */
.hero-section {
  width: 100%;
  height: 70vh;
  min-height: 750px;
  background: url('https://ivfpregnancycalculator.com/assets/images/ivf-hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner-content {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 8px;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 0 20px;
}

.banner-content h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: fadeIn 1.5s ease;
}

.btn-hero {
    background-color: white;
    color: var(--purple-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--purple-dark);
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

/* Tool Cards - Responsive Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.tool-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-top: 4px solid #8e44ad;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Colorful Card Variants */
.pink-card { background: linear-gradient(135deg, var(--pink) 0%, #fce4ec 100%); }
.purple-card { background: linear-gradient(135deg, var(--purple) 0%, #f3e5f5 100%); }
.teal-card { background: linear-gradient(135deg, var(--teal) 0%, #e0f7fa 100%); }
.coral-card { background: linear-gradient(135deg, var(--coral) 0%, #fbe9e7 100%); }
.lavender-card { background: linear-gradient(135deg, var(--lavender) 0%, #ede7f6 100%); }
.peach-card { background: linear-gradient(135deg, var(--peach) 0%, #fff3e0 100%); }

.card-icon {
  font-size: 2.5rem;
  color: #8e44ad;
  margin: 0 auto 15px;
  display: block;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card-text {
  color: #6c757d;
  margin-bottom: 20px;
}

/* Section Styling */
.section {
  padding: 70px 0;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 100%);
  border-radius: 2px;
}

.section-subtitle {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Features Section */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.feature-item {
  display: flex;
  margin-bottom: 30px;
}

.feature-icon {
  font-size: 1.8rem;
  color: #8e44ad;
  margin-right: 1.5rem;
  min-width: 50px;
}

.feature-text h3 {
  font-family: var(--subheading-font);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Testimonial Section */
.testimonial-section {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--purple) 100%);
  color: white;
  padding: 80px 0;
}

.testimonial-card {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  color: #555;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 0 auto;
  max-width: 800px;
  position: relative;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid var(--purple);
}

/* Calculator Styles */
.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .banner-content h1 {
    font-size: 2.2rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 50vh;
    min-height: 350px;
  }
  
  .banner-content {
    padding: 20px;
  }
  
  .banner-content h1 {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .cta-btn {
    padding: 10px 25px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 40vh;
  }
  
  .banner-content h1 {
    font-size: 1.5rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-img {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* Print Styles */
@media print {
  .navbar, .hero-section, .btn, .footer {
    display: none !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
  }
}