/* Advanced styles for the church website */

/* Hide skip links by default, show only on focus */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Luxury scroll effects for sections */
section {  
  opacity: 0;  
  transform: translateY(20px);  
  transition: opacity 0.6s ease, transform 0.6s ease;  
}  
  
section.show {  
  opacity: 1;  
  transform: translateY(0);  
}

/* Custom color variables for consistency */
:root {
    --dark-blue: #0a0e27;
    --medium-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --bright-blue: #60a5fa;
    --navy: #1e40af;
    --gold: #f59e0b;
    --purple-blue: #6366f1;
}

/* HD Image Enhancement for Natural Quality */
.hd-image {
    /* Natural image rendering without filters */
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    
    /* Optimal background positioning */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* Smooth transitions */
    transition: opacity 1.5s ease-in-out;
}

/* Enhanced photo optimization for better presentation */
.ebenezer-photo {
    filter: contrast(1.12) saturate(1.15) brightness(1.06);
    image-rendering: high-quality;
    transition: all 0.3s ease;
}

.ebenezer-photo:hover {
    filter: contrast(1.18) saturate(1.2) brightness(1.12);
}

/* ===== SLIDESHOW HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh; /* Fallback */
  min-height: 100dvh; /* Better for mobile */
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 20%,
    rgba(255, 255, 255, 0.3) 35%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(180, 210, 255, 0.3) 65%,
    rgba(100, 150, 255, 0.6) 80%,
    rgba(30, 80, 180, 0.8) 100%
  ) !important;
  backdrop-filter: blur(1px);
  z-index: 2;
}

/* Modern floating navigation styling with desktop optimization */
#floating-nav {
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#floating-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Desktop Navigation Enhancements */
@media (min-width: 1024px) {
    #floating-nav {
        padding: 1rem 1.5rem;
        border-radius: 20px;
    }
    
    #floating-nav .nav-item {
        margin: 0 0.5rem;
    }
    
    #floating-nav .nav-link {
        padding: 0.75rem 1.25rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    #floating-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }
    
    /* Desktop dropdown improvements */
    .dropdown-menu {
        min-width: 250px;
        border-radius: 16px;
        backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        margin: 0.25rem;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(42, 63, 84, 0.1);
        transform: translateX(4px);
    }
}

/* Desktop Content Section Optimizations */
@media (min-width: 1024px) {
    /* Section spacing for desktop */
    section {
        padding: 5rem 0;
    }
    
    /* Container max-width for desktop readability */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    /* Typography improvements for desktop */
    h1 {
        font-size: 3.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 2rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 1.125rem;
        line-height: 1.7;
        max-width: 800px;
    }
    
    /* Card layouts for desktop */
    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        margin: 3rem 0;
    }
    
    .card {
        padding: 2rem;
        border-radius: 16px;
        transition: all 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    /* Button improvements for desktop */
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
    
    /* Form improvements for desktop */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
        border: 2px solid #e2e8f0;
        transition: all 0.3s ease;
    }
    
    .form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
}

/* Ultra-wide desktop optimizations (21:9 monitors) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
    }
}

/* Modern menu dash animations */
#modern-menu-toggle div {
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Enhanced logo styling for transparent background */
.hero-content img[alt*="Logo"] {
    transition: all 0.3s ease;
}

.hero-content img[alt*="Logo"]:hover {
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4)) drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Logo with transparent background effect */
.logo-container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.logo-no-bg {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* Clean transparent PNG styling */
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.logo-no-bg:hover {
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.3));
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* True vertical center */
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 2rem;
  transform: translateY(-5%); /* Optical adjustment */
  text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.95), 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* Hero Typography Enhancements */
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; /* Extra bold */
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  color: white !important;
  text-shadow: 5px 5px 15px rgba(0,0,0,1), 3px 3px 8px rgba(0,0,0,0.9), 1px 1px 4px rgba(0,0,0,0.8);
}

.hero p {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.3px;
  max-width: 700px;
  opacity: 1;
  color: white !important;
  text-shadow: 4px 4px 10px rgba(0,0,0,1), 2px 2px 6px rgba(0,0,0,0.9);
}

/* Hero Button Styling */
.hero .btn {
  padding: 16px 40px;
  border-radius: 50px; /* Pill shape */
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero .btn-primary {
  background: #2563eb !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.hero .btn-primary:hover {
  background: #3b82f6 !important;
}

.hero .btn-outline {
  border: 2px solid white;
  color: white;
}

.hero .btn-outline:hover {
  background: white;
  color: #2A3F54;
}

/* Hero Stats Section */
.stats-bar {
  display: flex;
  gap: 2rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero .stat {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #93c5fd;
  line-height: 1;
}

.stat-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  opacity: 0.8;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    height: auto;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 1rem;
    justify-content: center;
    min-height: 100vh;
    transform: none;
  }
  
  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem !important;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  .stats-bar {
    margin: 1rem auto;
    padding: 1rem;
    max-width: 280px;
  }
  
  .btn {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .cta-buttons {
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
}

/* Slideshow navigation dots styling */
.slide-dot {
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-dot.active {
  background-color: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-dot:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.7) !important;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(42, 63, 84, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  color: #A0C4E2;
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero .cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero .btn-primary,
.hero .primary-btn {
    background: white;
    color: #2A3F54;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    display: inline-block;
}

.hero .btn-primary:hover,
.hero .primary-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.hero .btn-secondary,
.hero .secondary-btn {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero .btn-secondary:hover,
.hero .secondary-btn:hover {
    background: white;
    color: #2A3F54;
}

.hero .stats {
    display: flex;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.hero .stat {
    text-align: center;
}

.hero .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #A0C4E2;
    display: block;
}

.hero .stat-label,
.hero .stat .label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

/* Advanced Slideshow Container with HD Support */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slideshow-container .slide.active {
    opacity: 1;
}

.slideshow-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
}

/* Crystal-Clear Image Display */
.hero-slide.hd-image {
    /* Maximum sharpness image rendering */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* Force highest quality rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    image-rendering: auto;
    
    /* GPU acceleration for sharp rendering */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: opacity;
    
    /* Anti-aliasing and sharpening */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: contrast(1.08) saturate(1.12) brightness(1.02);
    
    /* Prevent blurry scaling */
    -ms-interpolation-mode: bicubic;
    image-orientation: from-image;
    
    /* High-DPI display optimization */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

/* Ebenezer Photo Styling */
.ebenezer-photo {
    filter: brightness(0.8) contrast(1.1);
}

/* Stats styling for simplified class names */
.hero .stat .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #60a5fa;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    display: block;
}

.hero .stat .label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero .cta-buttons { 
    flex-direction: column; 
    width: 100%;
    max-width: 300px;
  }
  .hero .stats { 
    flex-direction: column; 
    gap: 20px;
    width: 100%;
    max-width: 300px;
  }
}

/* Hero Section Button Styles */
.primary-btn {
    background-color: #2A3F54 !important;
    color: white !important;
    border: 2px solid #2A3F54 !important;
}

.primary-btn:hover {
    background-color: white !important;
    color: #2A3F54 !important;
    border: 2px solid #2A3F54 !important;
}

.secondary-btn {
    background-color: white !important;
    color: #2A3F54 !important;
    border: 2px solid #2A3F54 !important;
}

.secondary-btn:hover {
    background-color: #2A3F54 !important;
    color: white !important;
    border: 2px solid #2A3F54 !important;
}

/* Navigation Styles - Clean White Design */
.nav-link {
    color: #2A3F54 !important;
    position: relative;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #4A6B8A !important;
}

.nav-link.active {
    border-bottom: 3px solid #2A3F54;
    color: #2A3F54 !important;
}

.mobile-nav-link {
    color: #2A3F54 !important;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #4A6B8A !important;
    background-color: rgba(42, 63, 84, 0.05) !important;
}

/* Premium Slideshow Hero Styles with Grain Texture */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Premium Grain Texture Overlay */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0),
        linear-gradient(rgba(42, 63, 84, 0.6), rgba(42, 63, 84, 0.6));
    background-size: 20px 20px, cover;
    pointer-events: none;
    z-index: 1;
}

/* Hero Button Styles */
.hero-btn-primary {
    background: white;
    color: #2A3F54 !important;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background: #2A3F54;
    color: white !important;
    border-color: #2A3F54;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(42, 63, 84, 0.3);
}

.hero-btn-secondary {
    background: transparent;
    color: #2A3F54 !important;
    border-color: #2A3F54;
}

.hero-btn-secondary:hover {
    background: #2A3F54;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(42, 63, 84, 0.3);
}

/* Slideshow Navigation Dots */
.slide-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Stats Bar Animation */
.stats-bar {
    animation: slideUp 0.8s ease-out 0.5s both;
}

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

/* Mobile-Optimized Slideshow Responsive Design */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

/* Desktop Optimizations for Large Screens */
@media (min-width: 1200px) {
    .hero-content {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 5rem !important;
    }
    
    .hero p {
        font-size: 1.8rem !important;
        max-width: 800px;
    }
    
    .hero .cta-buttons {
        gap: 2rem;
    }
    
    .hero .btn {
        padding: 20px 50px;
        font-size: 1.2rem;
    }
    
    .hero .stats {
        gap: 4rem;
        padding: 2rem 3rem;
    }
    
    .stat-number {
        font-size: 3rem !important;
    }
    
    .stat-label {
        font-size: 1rem !important;
    }
}

/* Extra Large Desktop Screens (4K, etc.) */
@media (min-width: 1920px) {
    .hero-content {
        max-width: 1600px;
        padding: 0 4rem;
    }
    
    .hero h1 {
        font-size: 6rem !important;
        letter-spacing: -1px;
    }
    
    .hero p {
        font-size: 2rem !important;
        max-width: 900px;
    }
    
    .hero .btn {
        padding: 24px 60px;
        font-size: 1.3rem;
    }
    
    .hero .stats {
        gap: 6rem;
        padding: 3rem 4rem;
    }
    
    .stat-number {
        font-size: 3.5rem !important;
    }
}

/* Standard Desktop Layout */
@media (min-width: 769px) and (max-width: 1199px) {
    .hero-content {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 4rem !important;
    }
    
    .hero p {
        font-size: 1.5rem !important;
        max-width: 700px;
    }
    
    .hero .cta-buttons {
        gap: 1.5rem;
        flex-wrap: nowrap;
    }
    
    .hero .btn {
        padding: 16px 40px;
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .hero .stats {
        gap: 3rem;
        padding: 1.5rem 2.5rem;
        flex-wrap: nowrap;
    }
}

/* Hero Content Alignment and Responsive Layout */
#home .max-w-4xl {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10%;
    text-align: left;
}

@media (max-width: 1024px) {
    #home .max-w-4xl {
        text-align: center;
        padding: 0 5%;
    }
}

/* Stats Bar Fixed to Bottom */
.stats-bar {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    animation: slideUp 0.8s ease-out 0.5s both;
    width: 90%;
    max-width: 800px;
}

/* Mobile Typography Scaling */
@media (max-width: 768px) {
    /* Headline scaling */
    #home h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    /* Subheadline scaling */
    #home p {
        font-size: 1.2rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Button stacking */
    #home .flex-col.sm\\:flex-row {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 3rem !important;
    }
    
    /* Stats bar horizontal scroll */
    .stats-bar {
        bottom: 1rem;
        width: 95%;
        overflow-x: auto;
        padding: 1rem;
    }
    
    .stats-bar .grid {
        display: flex;
        gap: 2rem;
        min-width: max-content;
        padding: 0 1rem;
    }
    
    .stat-item {
        flex-shrink: 0;
        min-width: 120px;
    }
    
    .stat-item .text-3xl {
        font-size: 1.5rem;
    }
    
    /* Navigation dots repositioning */
    .slide-dot {
        width: 8px;
        height: 8px;
    }
}

/* Ultra-small screens */
@media (max-width: 480px) {
    #home h1 {
        font-size: 2rem !important;
    }
    
    #home p {
        font-size: 1rem !important;
    }
    
    .stats-bar {
        padding: 0.75rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-item .text-3xl {
        font-size: 1.25rem;
    }
    
    .stat-item .text-sm {
        font-size: 0.75rem;
    }
}

/* Typography Enhancements for Clean Design */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-open-sans {
    font-family: 'Open Sans', sans-serif;
}

/* Legacy slideshow styling for gallery section */
.slideshow-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.6));
}

.slide img {
    background-color: transparent;
}

/* Emmanuel TV Style dramatic overlay */
.overlay-dramatic {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 64, 175, 0.75) 50%,
        rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: blur(1px) saturate(110%) brightness(95%);
    -webkit-backdrop-filter: blur(1px) saturate(110%) brightness(95%);
}

/* Gallery styles - force captions below images */
.gallery-card {
    background: white !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 2rem !important;
}

.gallery-caption {
    padding: 1.5rem !important;
    background: white !important;
    position: relative !important;
    z-index: 10 !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-radius: 0 0 1rem 1rem !important;
}

.gallery-title {
    font-size: 1.25rem !important;
    font-weight: bold !important;
    color: #1a365d !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.gallery-description {
    color: #4a5568 !important;
    line-height: 1.6 !important;
    display: block !important;
}

/* Preloader styles */
#preloader {
    background: linear-gradient(135deg, var(--dark-blue), var(--navy));
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--light-blue);
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Video slide specific styles */
.video-slide {
    background: linear-gradient(135deg, var(--dark-blue), var(--navy));
}

.video-slide iframe {
    object-fit: cover;
    pointer-events: auto;
}

/* Advanced animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(-45deg, var(--dark-blue), var(--navy), var(--light-blue), var(--dark-blue));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(10, 37, 64, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 37, 64, 0.2);
}

/* Animation delays */
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-3000 { animation-delay: 3s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Enhanced button styles */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Particle effects */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--light-blue);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    animation: particle-float 6s infinite linear;
    opacity: 0.7;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Advanced hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Text effects */
.text-shadow-glow {
    text-shadow: 0 0 20px rgba(58, 186, 246, 0.5);
}

.text-gradient {
    background: linear-gradient(45deg, var(--light-blue), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--light-blue), var(--gold));
    width: 0%;
    transition: width 0.1s ease;
}

/* Enhanced shadows */
.shadow-glow {
    box-shadow: 0 0 40px rgba(58, 186, 246, 0.2);
}

.shadow-gold {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.2);
}

/* Pulsing elements */
.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(58, 186, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(58, 186, 246, 0.8);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .particle {
        display: none;
    }
    
    .hover-lift:hover {
        transform: none;
    }
    
    .btn-glow::before {
        display: none;
    }
}

/* Video container hover effects */
.video-container {
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom button hover effects */
.btn-primary {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--light-blue);
    transform: translateY(-2px);
}

/* Navigation transparency on scroll */
nav.bg-opacity-95 {
    background-color: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
}

/* Hero section background overlay */
.hero-overlay {
    background: linear-gradient(45deg, rgba(10, 37, 64, 0.8), rgba(58, 186, 246, 0.3));
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--light-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive iframe styles */
iframe {
    max-width: 100%;
    height: auto;
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(58, 186, 246, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, var(--dark-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--dark-blue), var(--light-blue));
    margin: 0 auto;
    border-radius: 2px;
}

/* Card shadow effects */
.card-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Loading animation for videos */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Dark mode compatibility (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Future dark mode styles can be added here */
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Hero CTA Button Gentle Pulse Animation */
@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.hero-cta-button {
    animation: gentle-pulse 3s ease-in-out infinite;
}

.hero-cta-button:hover {
    animation: none;
    transform: scale(1.05);
}
