/* Modern 2025 Styles Enhancement */

/* Enhanced Typography with Dynamic Scaling */

/* Prevent awkward word breaks */
.hero-title,
.section-title-modern,
.banner-title {
  overflow: visible;
  white-space: nowrap;
  word-break: keep-all;
  hyphens: none;
  text-wrap: nowrap;
}

/* Dynamic font scaling based on container */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  
  /* Use clamp for responsive scaling */
  font-size: clamp(2rem, 8vw, 4.5rem);
  
  /* Allow line breaks only at designated points */
  white-space: pre-line;
}

.section-title-modern {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 4rem;
  
  /* Dynamic scaling */
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  white-space: pre-line;
}

.banner-title {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 0.3em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.10);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  
  /* Dynamic scaling */
  font-size: clamp(1.5rem, 5vw, 2.8rem);
}

/* Card and box text scaling */
.stat-number-modern {
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Dynamic scaling for numbers */
  font-size: clamp(2.5rem, 6vw, 4rem);
  white-space: nowrap;
}

.stat-label-modern {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  
  /* Dynamic scaling for labels */
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  white-space: nowrap;
}

.testimonial-text p {
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  
  /* Dynamic scaling for testimonial text */
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Block content scaling */
.block-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  
  /* Dynamic scaling */
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  white-space: pre-line;
}

.block-content p {
  line-height: 1.7;
  opacity: 0.95;
  
  /* Dynamic scaling */
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Enhanced Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.2s; }
.stagger-2 { transition-delay: 0.4s; }
.stagger-3 { transition-delay: 0.6s; }
.stagger-4 { transition-delay: 0.8s; }
.stagger-5 { transition-delay: 1.0s; }

/* Hero Section Modernization */
.hero-section {
  min-height: 100vh;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 120px 0;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 3px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.highlight-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,107,107,0.5));
}

.highlight-red {
  color: var(--highlight-red);
  filter: drop-shadow(0 0 10px rgba(255,107,107,0.3));
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
  line-height: 1.8;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Modern Button Styles */
.btn-primary-modern {
  background: linear-gradient(45deg, #fff, #f8f9fa);
  color: #667eea;
  border: none;
  padding: 20px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn-primary-modern:hover .btn-glow {
  left: 100%;
}

.btn-secondary-modern {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-ghost-modern {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ghost-modern:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

/* Floating Cards */
.floating-cards {
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius-modern);
  padding: 24px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.card-2 {
  top: 120px;
  right: 40px;
  animation-delay: 2s;
}

.card-3 {
  bottom: 60px;
  left: 80px;
  animation-delay: 4s;
}

.card-header {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 8px;
  font-weight: 500;
}

.card-content {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-stat {
  font-size: 0.9rem;
  color: #4ade80;
  font-weight: 600;
}

/* Section Modernization */
.section-modern {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.float-element {
  position: absolute;
  background: var(--text-gradient);
  border-radius: 50%;
  animation: gentleFloat 15s ease-in-out infinite;
}

.element-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.element-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 20%;
  animation-delay: 5s;
}

.element-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 60%;
  animation-delay: 10s;
}

.eyebrow-modern {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 3px;
  margin-bottom: 2rem;
  display: block;
}

.section-title-modern {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 4rem;
}

.content-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 4rem;
}

.content-block {
  padding: 40px;
  border-radius: var(--border-radius-modern);
  position: relative;
  overflow: hidden;
}

.block-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.block-secondary {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.block-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.block-content h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.block-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* Numbers Section */
.numbers-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.numbers-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.grid-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 4rem 0;
}

/* Card and Box Responsive Sizing */
.stat-card {
  background: white;
  border-radius: var(--border-radius-modern);
  padding: clamp(20px, 4vw, 40px);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: fit-content;
}

.testimonial-card {
  flex: 0 0 clamp(280px, 35vw, 400px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-modern);
  padding: clamp(20px, 4vw, 40px);
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
  min-height: fit-content;
}

.featured-testimonial {
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(248,250,252,1));
  border: 2px solid rgba(102, 126, 234, 0.3);
  flex: 0 0 clamp(300px, 40vw, 450px);
}

.content-block {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--border-radius-modern);
  position: relative;
  overflow: hidden;
  min-height: fit-content;
}

.floating-card {
  position: absolute;
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius-modern);
  padding: clamp(16px, 3vw, 24px);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  animation: float 6s ease-in-out infinite;
  min-width: fit-content;
}

/* Ensure proper text fitting in cards */
.card-content,
.author-name,
.stat-label-modern {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.card-highlight {
  background: var(--hero-gradient);
  color: white;
}

.stat-number-modern {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-highlight .stat-number-modern {
  color: white;
  -webkit-text-fill-color: white;
}

.stat-symbol {
  font-size: 2.5rem;
  opacity: 0.8;
}

.stat-label-modern {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-highlight .stat-label-modern {
  color: rgba(255,255,255,0.95);
}

.stat-desc-modern {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-highlight .stat-desc-modern {
  color: rgba(255,255,255,0.8);
}

.stats-description-modern {
  text-align: center;
  margin-top: 4rem;
}

.stats-description-modern p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Progress Bar Animation */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin: 20px 0 10px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 4px;
  animation: progressGrow 2s ease-out 1s forwards;
  width: 0;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Animations */
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes gentleFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -10px); }
  50% { transform: translate(-5px, -20px); }
  75% { transform: translate(-10px, -5px); }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes progressGrow {
  from { width: 0; }
  to { width: 7%; }
}

/* Testimonials Section */
.testimonials-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.testimonial-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: particleFloat 25s ease-in-out infinite;
}

.testimonials-section .section-title-modern {
  color: white;
}

.testimonials-section .eyebrow-modern {
  color: rgba(255,255,255,0.8);
}

.testimonials-carousel {
  margin: 4rem 0;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  gap: 30px;
  animation: testimonialSlide 20s linear infinite;
  width: calc(100% * 2);
}

.testimonial-card {
  flex: 0 0 400px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-modern);
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.featured-testimonial {
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(248,250,252,1));
  border: 2px solid rgba(102, 126, 234, 0.3);
  flex: 0 0 450px;
}

.testimonial-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--border-radius-modern) var(--border-radius-modern) 0 0;
}

.quote-mark {
  font-size: 4rem;
  color: var(--glow-color);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.testimonial-text {
  margin-bottom: 2rem;
}

.testimonial-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-image {
  width: 60px;
  height: 60px;
  background: var(--hero-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

.avatar-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--glow-color);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.author-details {
  flex: 1;
}

.author-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-role {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.savings-badge {
  background: linear-gradient(45deg, #4ade80, #22c55e);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.verified-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #4ade80, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-highlight {
  text-align: center;
  color: white;
}

.stat-highlight .stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #feca57, #ff9ff3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-highlight .stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Testimonial Animation */
@keyframes testimonialSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Enhanced Responsive Design */

/* Prevent text clipping and overflow */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-title,
.section-title-modern,
.banner-title {
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-inner {
    gap: 60px;
    padding: 100px 0;
  }
  
  .hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
  }
  
  .section-title-modern {
    font-size: 3rem;
    line-height: 1.2;
  }
  
  .banner-title {
    font-size: 2.4rem;
  }
  
  .floating-cards {
    height: 400px;
  }
  
  .testimonial-track {
    gap: 20px;
  }
  
  .testimonial-card {
    flex: 0 0 350px;
    padding: 30px;
  }
  
  .featured-testimonial {
    flex: 0 0 380px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .banner-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 24px 0;
  }
  
  .banner-title-group {
    margin-left: 0;
    margin-top: 16px;
  }
  
  .banner-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .banner-subtitle {
    font-size: 1rem;
  }
  
  .nav-actions-modern {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
  }
  
  .nav-actions-modern .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    letter-spacing: 1px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
  }
  
  .hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  .floating-cards {
    height: 300px;
  }
  
  .floating-card {
    padding: 16px;
    width: 200px;
  }
  
  .card-content {
    font-size: 1.4rem;
  }
  
  .section-title-modern {
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 2rem;
  }
  
  .eyebrow-modern {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  .content-blocks {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 2rem;
  }
  
  .content-block {
    padding: 30px;
  }
  
  .block-content h3 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }
  
  .stats-grid-modern {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 2rem 0;
  }
  
  .stat-card {
    padding: 30px 20px;
  }
  
  .stat-number-modern {
    font-size: 3rem;
  }
  
  .stat-label-modern {
    font-size: 1.1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .btn-primary-modern,
  .btn-secondary-modern,
  .btn-ghost-modern {
    padding: 16px 32px;
    font-size: 1rem;
    min-width: 250px;
    text-align: center;
  }
  
  .testimonial-track {
    gap: 15px;
  }
  
  .testimonial-card {
    flex: 0 0 300px;
    padding: 25px;
  }
  
  .featured-testimonial {
    flex: 0 0 320px;
  }
  
  .testimonial-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .section-modern,
  .numbers-section,
  .testimonials-section {
    padding: 80px 0;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .banner-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  
  .banner-subtitle {
    font-size: 0.9rem;
  }
  
  .logo-icon-modern {
    width: 70px;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0px;
    line-height: 1.6;
  }
  
  .hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }
  
  .floating-cards {
    display: none; /* Hide complex animations on small screens */
  }
  
  .section-title-modern {
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
  }
  
  .eyebrow-modern {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }
  
  .content-block {
    padding: 24px;
  }
  
  .block-icon {
    font-size: 2.5rem;
  }
  
  .block-content h3 {
    font-size: 1.3rem;
    letter-spacing: 0px;
  }
  
  .block-content p {
    font-size: 1rem;
  }
  
  .stat-number-modern {
    font-size: 2.5rem;
  }
  
  .stat-label-modern {
    font-size: 1rem;
  }
  
  .stat-desc-modern {
    font-size: 0.9rem;
  }
  
  .btn-primary-modern,
  .btn-secondary-modern,
  .btn-ghost-modern {
    padding: 14px 28px;
    font-size: 0.95rem;
    min-width: 220px;
  }
  
  .testimonial-card {
    flex: 0 0 280px;
    padding: 20px;
  }
  
  .featured-testimonial {
    flex: 0 0 300px;
  }
  
  .quote-mark {
    font-size: 3rem;
  }
  
  .testimonial-text p {
    font-size: 1rem;
  }
  
  .author-name {
    font-size: 1rem;
  }
  
  .author-role {
    font-size: 0.9rem;
  }
  
  .savings-badge {
    font-size: 0.8rem;
    padding: 3px 10px;
  }
  
  .stats-description-modern p {
    font-size: 1.1rem;
  }
  
  .section-modern,
  .numbers-section,
  .testimonials-section {
    padding: 60px 0;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.9rem;
  }
  
  .section-title-modern {
    font-size: 1.6rem;
  }
  
  .banner-title {
    font-size: 1.4rem;
  }
  
  .btn-primary-modern,
  .btn-secondary-modern,
  .btn-ghost-modern {
    min-width: 200px;
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .testimonial-card {
    flex: 0 0 260px;
    padding: 18px;
  }
  
  .featured-testimonial {
    flex: 0 0 280px;
  }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }
  
  .hero-inner {
    padding: 40px 0;
  }
  
  .floating-cards {
    display: none;
  }
  
  .section-modern,
  .numbers-section,
  .testimonials-section {
    padding: 60px 0;
  }
}

/* AI Analysis CTA Styles */
.ai-analysis-cta {
  margin: 4rem 0;
  display: flex;
  justify-content: center;
}

.cta-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  color: white;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.cta-card:hover::before {
  left: 100%;
}

.cta-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.cta-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.cta-card p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 2rem 0;
  text-align: left;
}

.benefit {
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: white;
  color: #667eea;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 1rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-primary-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  color: #667eea;
}

.btn-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.btn-primary-large:hover .btn-arrow {
  transform: translateX(5px);
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.alternative-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.alt-option {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.1);
}

.alt-option h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.alt-option p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .cta-card h3 {
    font-size: 1.5rem;
  }
  
  .alternative-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .btn-primary-large {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-cards,
  .hero-particles,
  .testimonial-particles {
    display: none;
  }
  
  .cta-icon {
    animation: none;
  }
}
