/* --- PROFESSIONAL HERO BANNER v3.0 - PERFORMANCE OPTIMIZED ------------------------------------ */

.banner-modern {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0); /* Hardware acceleration */
}

.fade-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.6) saturate(1.2) contrast(1.1);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  /* Performance optimization */
  will-change: opacity;
  transform: translateZ(0);
}

/* ─── RESPONSIVE GLASS CARD ────────────────────────────────────────────── */
.banner-content-container {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.banner-content {
  /* Fallback for browsers that don't support backdrop-filter */
  background: rgba(255, 255, 255, 0.15);
  
  /* Modern glass effect with performance consideration */
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  
  /* Performance optimizations */
  transform: translateZ(0);
  will-change: transform;
}

/* ─── TYPOGRAPHY - PROFESSIONAL & RESPONSIVE ───────────────────── */
.banner-content h1 {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.banner-content p {
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: #ffffff !important;
  opacity: 0.95;
  letter-spacing: 0.01em;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ─── MOBILE OPTIMIZATIONS ────────────────────────────────────── */
@media (max-width: 768px) {
  .banner-modern {
    height: 100vh;
    min-height: 500px;
    max-height: 700px;
  }
  
  .banner-content-container {
    padding: 0 0.75rem;
  }
  
  .banner-content {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    margin: 1rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Reduce glass effect on mobile for better performance */
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
  }
  
  .banner-content h1 {
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  .banner-content p {
    line-height: 1.5;
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
  }
}

@media (max-width: 480px) {
  .banner-modern {
    min-height: 450px;
  }
  
  .banner-content-container {
    padding: 0 0.5rem;
  }
  
  .banner-content {
    padding: 1.5rem 1rem;
    border-radius: 16px;
    margin: 0.5rem 0;
    /* Further reduce effects on small screens */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  
  .banner-content h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.3rem, 7vw, 2rem);
    line-height: 1.1;
  }
  
  .banner-content p {
    font-size: clamp(0.8rem, 4vw, 1rem);
    line-height: 1.4;
  }
}

/* ─── TABLET LANDSCAPE ───────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .banner-modern {
    height: 90vh;
    min-height: 550px;
  }
  
  .banner-content {
    padding: 2.5rem 2rem;
  }
}

/* ─── LARGE SCREENS ──────────────────────────────────────────── */
@media (min-width: 1200px) {
  .banner-content {
    padding: 3.5rem 3rem;
  }
  
  .banner-content h1 {
    margin-bottom: 1.25rem;
  }
}

/* ─── ACCESSIBILITY & PERFORMANCE ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-banner {
    transition: none;
  }
  
  .banner-content {
    transform: none;
    will-change: auto;
  }
}

/* Optimize for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  .banner-content {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
}

/* ─── HERO WAVE - PERFORMANCE OPTIMIZED ──────────────────────── */
/* Commented out for cleaner, more modern appearance
.hero-wave {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(60px, 8vw, 100px);
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>') no-repeat bottom center;
  background-size: cover;
  filter: grayscale(1) opacity(0.3);
  z-index: 2;
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 768px) {
  .hero-wave {
    height: clamp(40px, 6vw, 70px);
    filter: grayscale(1) opacity(0.2);
  }
}
*/

/* ─── LOADING STATE OPTIMIZATION ─────────────────────────────── */
.banner-modern.loading .fade-banner {
  opacity: 0;
}

.banner-modern.loaded .fade-banner {
  opacity: 1;
}

/* ─── HIGH DPI DISPLAYS ──────────────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .banner-content {
    border-width: 0.5px;
  }
  
  .banner-content h1 {
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.2);
  }
}
