/* Custom CSS for GT Rainbow Driving School */

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Image Performance */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy Loading Styles */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* GPU Acceleration */
.gallery-item,
.instructor-card,
.floating-shape,
.particle,
.light-ray {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* Content Visibility for Better Performance */
.gallery-item {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Optimized Animations */
@keyframes optimized-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -20px, 0); }
}

.animate-float {
    animation: optimized-float 6s ease-in-out infinite;
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

/* Optimized smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
    font-display: swap; /* Optimize font loading */
}

/* Image loading optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Gallery image optimizations */
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Preload critical resources */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/stop-sign-6874064_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    will-change: transform;
}

/* Performance optimizations for smooth scrolling */
* {
    box-sizing: border-box;
}

/* GPU acceleration for smooth animations */
.hero-bg,
.gallery-item,
.floating-shape,
.particle,
.light-ray {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimized scroll performance */
section {
    max-width: 100vw;
    overflow-x: hidden;
    contain: layout;
}

/* Smooth scroll optimizations */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Enhanced smooth scroll for all elements */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* Container and layout fixes */
.container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Fix any elements that might cause horizontal scroll */
.hero-content, .hero-stats, .hero-buttons {
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive grid fixes */
.grid {
    display: grid;
    gap: 1rem;
    width: 100%;
}

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

@media (min-width: 768px) {
    .md\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lg\\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ensure cards don't overflow */
.feature-card, .service-card, .testimonial-card, .blog-card {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Driving School Specific Rainbow Elements */
.driving-badge {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.success-rate {
    background: linear-gradient(135deg, #ca8a04, #a16207);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.instructor-badge {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.price-highlight {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
}


/* Rainbow Brand Text */
.rainbow-text {
    background: linear-gradient(90deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.rainbow-text-animated {
    background: linear-gradient(90deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Rainbow Button */
.rainbow-btn {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.rainbow-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Secondary Button */
.btn-secondary {
    background: white;
    color: #374151;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #2563eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    border-color: #2563eb;
}

/* Navigation */
.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

/* Navigation responsive fixes */
@media (max-width: 1024px) {
    .nav-link {
        padding: 8px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-link {
        padding: 8px 4px;
        font-size: 0.85rem;
    }
}

/* Navigation overlay for hero background */
nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    outline: none !important;
    border-radius: 8px;
    padding: 8px 16px;
    color: #2563eb;
    background: none;
    box-shadow: none;
    transform: none;
}

.nav-link:hover {
    color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(234, 88, 12, 0.1));
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #2563eb;
    background: none;
    box-shadow: none;
    transform: none;
}

.nav-link:focus {
    outline: none !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.15));
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3), 0 4px 20px rgba(124, 58, 237, 0.2);
    color: #7c3aed;
    transform: translateY(-2px);
}

.nav-link:active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    color: #10b981;
    transform: translateY(0);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ea580c);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.mobile-nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none !important;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(234, 88, 12, 0.1));
    color: #dc2626;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
    transform: translateX(4px);
}

.mobile-nav-link:focus {
    outline: none !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.15));
    color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3), 0 4px 15px rgba(124, 58, 237, 0.2);
    transform: translateX(4px);
}

.mobile-nav-link:active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    color: #10b981;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    transform: translateX(2px);
}

/* Hero Section */
.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    line-height: 1.1;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    line-height: 1.4;
}

.hero-buttons {
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
    justify-content: center;
}

.hero-stats {
    width: 100%;
    max-width: 100%;
}

.hero-content {
    max-width: 100%;
    padding: 0 1rem;
}

/* Hero section perfect fit adjustments */
.hero-bg {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.hero-bg .relative {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 20px;
}

/* Mobile-specific hero adjustments */
@media (max-width: 768px) {
    .hero-bg {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .hero-bg .relative {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding-top: 60px;
        padding-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Responsive text sizing for perfect fit */
@media (max-width: 768px) {
    .hero-bg {
        height: 100vh;
        max-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 260px;
        text-align: center;
        justify-content: center;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem !important;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
        padding: 0 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons a {
        max-width: 240px;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .stat-item {
        padding: 0.5rem 0.75rem;
    }
}

/* Ensure no vertical scrolling on hero */
@media (max-height: 600px) {
    .hero-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 1rem;
    }
    
    .hero-buttons a {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-item .text-2xl {
        font-size: 1.25rem !important;
    }
}

/* Enhanced hero background */
.hero-bg {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/stop-sign-6874064_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    z-index: 2;
}

/* Hero background image effects */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(234, 88, 12, 0.1), rgba(202, 138, 4, 0.1), rgba(22, 163, 74, 0.1), rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 24px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Rainbow Feature Icons - Each card gets a different color */
.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}
.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #ca8a04, #a16207);
}
.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #16a34a, #15803d);
}
.feature-card:nth-child(5) .feature-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.feature-card:nth-child(6) .feature-icon {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(15px, -25px) scale(1.05);
    }
    66% {
        transform: translate(-10px, 15px) scale(0.95);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
    will-change: transform;
    contain: layout;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Footer */
.rainbow-underline {
    position: relative;
    padding-bottom: 8px;
}

.rainbow-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed);
    border-radius: 2px;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fbbf24;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #374151;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    transform: translateY(-2px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .rainbow-btn,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .feature-card {
        padding: 24px 16px;
    }
    
    .stat-item {
        padding: 16px;
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card.popular {
    border: 2px solid #16a34a;
    position: relative;
}

.service-card.popular::after {
    content: 'Most Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 8px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    text-transform: uppercase;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid #f3f4f6;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 16px;
}

/* Contact Form */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.blog-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    color: #ea580c;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #dc2626;
}

.read-more i {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 16px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #374151;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: #f9fafb;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #16a34a;
    transform: scale(1.2);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.bg-gradient-rainbow {
    background: linear-gradient(135deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed) border-box;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce-slow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

/* Accessibility */
.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;
}

/* Focus States */
.rainbow-btn:focus,
.btn-secondary:focus,
.form-input:focus,
.nav-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Gallery Styles */
.gallery-filter {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-filter:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.gallery-filter.active {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    border-color: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: grab;
}

.lightbox-image:active {
    cursor: grabbing;
}

.lightbox-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0 0 8px 8px;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.lightbox-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lightbox-info p {
    font-size: 0.875rem;
    color: #d1d5db;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    min-width: 80px;
    text-align: center;
}

/* Google Maps Styles */
#map {
    position: relative;
    background: #f8f9fa;
}

#map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    filter: contrast(1.1) saturate(1.1);
}

/* Responsive Map */
@media (max-width: 768px) {
    #map {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #map {
        height: 200px;
    }
}

/* Mobile Lightbox Adjustments */
@media (max-width: 768px) {
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: -40px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
    
    .lightbox-counter {
        top: -40px;
        left: 10px;
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .mobile-nav-link {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
    
    /* Hero Section - Mobile Fixes */
    .hero-bg {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .hero-bg .relative {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding-top: 60px;
        padding-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.1;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0 0.5rem;
        width: 100%;
    }
    
    .stat-item {
        padding: 0.5rem;
        text-align: center;
    }
    
    .stat-item .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .stat-item .text-sm {
        font-size: 0.625rem !important;
    }
    
    /* Mobile Menu Fixes */
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 50;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-menu:not(.hidden) {
        pointer-events: auto;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        color: #374151;
        cursor: pointer;
        padding: 0.5rem;
        transition: color 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        color: #dc2626;
    }
    
    .mobile-nav-link {
        display: block;
        padding: 12px 16px;
        color: #374151;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid #f3f4f6;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        background-color: #f9fafb;
        color: #dc2626;
    }
    
    .mobile-nav-link:last-child {
        border-bottom: none;
    }
    
    /* Sections */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Text Sizes */
    .text-4xl {
        font-size: 1.875rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
    
    /* Cards */
    .feature-card, .service-card, .testimonial-card {
        padding: 1rem;
    }
    
    /* Carousel */
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    /* Footer */
    .footer-link {
        font-size: 0.875rem;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
}

/* Small Devices (phones, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Hero Section - Small Mobile Fixes */
    .hero-bg {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .hero-bg .relative {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding-top: 70px;
        padding-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.1;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 300px;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
    }
    
    .stat-item {
        padding: 0.75rem;
        text-align: center;
    }
    
    .stat-item .text-2xl {
        font-size: 1.5rem !important;
    }
    
    .stat-item .text-sm {
        font-size: 0.75rem !important;
    }
}

/* Medium Devices (tablets, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons a {
        width: auto;
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item .text-2xl {
        font-size: 1.75rem !important;
    }
    
    .stat-item .text-sm {
        font-size: 0.875rem !important;
    }
}

/* Large Devices (desktops, 1025px and up) */
@media (min-width: 1025px) {
    .hero-title {
        font-size: 4rem !important;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
        line-height: 1.4;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons a {
        width: auto;
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .stat-item .text-2xl {
        font-size: 2rem !important;
    }
    
    .stat-item .text-sm {
        font-size: 1rem !important;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container, .max-w-7xl {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-bg {
        height: 100vh;
        max-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 1rem;
    }
    
    .hero-buttons a {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-item .text-2xl {
        font-size: 1.25rem !important;
    }
}

/* Print styles */
@media print {
    .nav-link, .mobile-nav-link, .whatsapp-float, .carousel-dot, #prev-btn, #next-btn {
        display: none !important;
    }
    
    .hero-bg {
        background: white !important;
        color: black !important;
    }
    
    .rainbow-text, .rainbow-text-animated {
        color: #dc2626 !important;
    }
    
    .lightbox-info {
        padding: 0.75rem 1rem;
    }
    
    .lightbox-info h3 {
        font-size: 1rem;
    }
    
    .lightbox-info p {
        font-size: 0.75rem;
    }
}

/* Gallery Filter Styles */
.gallery-filter {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin: 0 8px 8px 0;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Modern Professional Gallery Layout */
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0 2rem 0;
}

.gallery-item {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Professional Image Styling */
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Modern Card Content */
.gallery-item .card-content {
    padding: 1.5rem;
}

.gallery-item .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.gallery-item:hover .card-title {
    color: #3b82f6;
}

.gallery-item .card-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Professional Category Badge */
.gallery-item .category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Modern Action Button */
.gallery-item .action-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover .action-button {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .action-button:hover {
    background: white;
    transform: scale(1.1);
}

/* Professional Stats */
.gallery-item .stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.gallery-item .stat-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.gallery-item .stat-item i {
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    object-position: center top;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Special styling for student images to preserve faces */
.gallery-item.students img {
    object-fit: cover;
    object-position: center 30%;
    /* Ensure faces are always visible */
    min-height: 300px;
}

.gallery-item.students:hover img {
    object-position: center 25%;
}

/* Additional face preservation for all student images */
.gallery-item[data-category="students"] img {
    object-fit: cover;
    object-position: center 30%;
}

.gallery-item[data-category="students"]:hover img {
    object-position: center 25%;
}

/* Ensure student images maintain aspect ratio while showing faces */
.gallery-item.students {
    position: relative;
}

.gallery-item.students img {
    width: 100%;
    height: 320px; /* Fixed height to ensure consistency */
    object-fit: cover;
    object-position: center 30%; /* Focus on upper portion where faces are */
}

/* Responsive adjustments for student images */
@media (max-width: 768px) {
    .gallery-item.students img {
        height: 280px;
        object-position: center 25%;
    }
}

@media (max-width: 480px) {
    .gallery-item.students img {
        height: 250px;
        object-position: center 20%;
    }
}

/* Category Badge Styling */
.gallery-item .bg-gradient-to-r {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Hover Effects */
.gallery-item .group:hover .absolute {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .group:hover .transform {
    transform: scale(1);
}

/* Video Optimization */
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.gallery-item video:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Advanced Image Loading Optimizations */
.gallery-item img {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

/* Intersection Observer for lazy loading */
.gallery-item img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Critical above-the-fold images */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/stop-sign-6874064_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
}

/* Testimonials Grid Styles */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Lightbox Responsive Adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .lightbox-counter {
        top: 10px;
        left: 10px;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        min-width: 70px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .lightbox-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-counter {
        top: 5px;
        left: 5px;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        min-width: 60px;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}

.gallery-filter:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
    background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.gallery-filter.active {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    border-color: #dc2626;
    color: white;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

/* Modern Professional Responsive Design */
@media (max-width: 1280px) {
    #gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    #gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    #gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .gallery-item {
        border-radius: 0.75rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-item .card-content {
        padding: 1rem;
    }
    
    .gallery-item .stats {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    #gallery-grid {
        gap: 0.75rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .gallery-item .card-content {
        padding: 0.75rem;
    }
    
    .gallery-item .card-title {
        font-size: 1rem;
    }
    
    .gallery-item .card-description {
        font-size: 0.8rem;
    }
}

/* Modern Loading Animation */
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Staggered Animation for Professional Look */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

/* Professional Hover Effects */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Modern Filter Animation */
.gallery-item.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item.filtered-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Gallery Loading Animation */
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Staggered Animation for Gallery Items */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc2626, #ea580c, #ca8a04, #16a34a, #2563eb, #7c3aed);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626, #b45309, #15803d, #1d4ed8, #6d28d9);
    transform: scale(1.1);
}

/* Smooth scroll for anchor links */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* Enhanced smooth scroll for all elements */
* {
    scroll-behavior: smooth;
}

/* Spectacular Animations for Amazing Effects */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes light-ray {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

@keyframes rainbow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    }
    16.66% {
        box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
    }
    33.33% {
        box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
    66.66% {
        box-shadow: 0 0 20px rgba(0, 0, 255, 0.3);
    }
    83.33% {
        box-shadow: 0 0 20px rgba(128, 0, 128, 0.3);
    }
}

/* Amazing Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-light-ray {
    animation: light-ray 3s ease-in-out infinite;
}

.animate-particle-float {
    animation: particle-float 8s ease-in-out infinite;
}

.animate-rainbow-pulse {
    animation: rainbow-pulse 3s ease-in-out infinite;
}

/* Interactive Floating Shapes */
.floating-shape {
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-shape:hover {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.8 !important;
}

/* Particle System */
.particle {
    animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: 1s; }
.particle:nth-child(3) { animation-delay: 2s; }
.particle:nth-child(4) { animation-delay: 3s; }
.particle:nth-child(5) { animation-delay: 4s; }

/* Light Rays */
.light-ray {
    animation: light-ray 4s ease-in-out infinite;
}

/* Enhanced Blob Animation */
.animate-blob {
    animation: blob 7s infinite;
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* Spectacular Hover Effects */
.hero-bg:hover .floating-shape {
    animation-duration: 2s;
}

.hero-bg:hover .particle {
    animation-duration: 4s;
}

.hero-bg:hover .light-ray {
    animation-duration: 2s;
}

/* Mobile Gallery Filter Layout */
@media (max-width: 768px) {
    .gallery-filter {
        padding: 8px 16px;
        font-size: 0.875rem;
        margin: 0 4px 8px 0;
    }
    
    .gallery-filter i {
        font-size: 0.75rem;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .gallery-filter {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin: 0 2px 6px 0;
    }
    
    .gallery-filter i {
        font-size: 0.625rem;
        margin-right: 4px;
    }
}

/* Performance Optimizations for Smooth Scrolling */
.hero-bg,
.gallery-item,
.floating-shape,
.particle,
.light-ray,
.animate-float,
.animate-spin-slow,
.animate-light-ray,
.animate-particle-float,
.animate-rainbow-pulse {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimized animations for 60fps */
@keyframes optimized-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(0, -20px, 0) rotate(5deg);
    }
    50% {
        transform: translate3d(0, -10px, 0) rotate(-3deg);
    }
    75% {
        transform: translate3d(0, -15px, 0) rotate(2deg);
    }
}

.animate-float {
    animation: optimized-float 6s ease-in-out infinite;
}

/* Image loading performance */
.gallery-item img {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Critical resource hints */
.hero-bg::before {
    background-image: url('../images/stop-sign-6874064_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translateZ(0);
}

/* TikTok Logo */
.tiktok-logo {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5LjU5IDEyLjY5QzE5LjU5IDE2LjY0IDE2LjM0IDE5Ljg5IDEyLjM5IDE5Ljg5QzguNDQgMTkuODkgNS4xOSAxNi42NCA1LjE5IDEyLjY5QzUuMTkgOC43NCA4LjQ0IDUuNDkgMTIuMzkgNS40OUMxNi4zNCA1LjQ5IDE5LjU5IDguNzQgMTkuNTkgMTIuNjlIMTkuNTlaIiBmaWxsPSIjRkZGRkZGIi8+CjxwYXRoIGQ9Ik0xMi4zOSA2LjQ5QzguOTQgNi40OSA2LjE5IDkuMjQgNi4xOSAxMi42OUM2LjE5IDE2LjE0IDguOTQgMTguODkgMTIuMzkgMTguODlDMTUuODQgMTguODkgMTguNTkgMTYuMTQgMTguNTkgMTIuNjlDMTguNTkgOS4yNCAxNS44NCA2LjQ5IDEyLjM5IDYuNDlaIiBmaWxsPSIjMDAwMDAwIi8+CjxwYXRoIGQ9Ik0xMi4zOSA3LjQ5QzkuNDQgNy40OSA3LjE5IDkuNzQgNy4xOSAxMi42OUM3LjE5IDE1LjY0IDkuNDQgMTcuODkgMTIuMzkgMTcuODlDMTUuMzQgMTcuODkgMTcuNTkgMTUuNjQgMTcuNTkgMTIuNjlDMTcuNTkgOS43NCAxNS4zNCA3LjQ5IDEyLjM5IDcuNDlaIiBmaWxsPSIjRkZGRkZGIi8+CjxwYXRoIGQ9Ik0xMi4zOSA4LjQ5QzEwLjQ0IDguNDkgOC44OSAxMC4wNCA4Ljg5IDEyLjY5QzguODkgMTUuMzQgMTAuNDQgMTYuODkgMTIuMzkgMTYuODlDMTQuMzQgMTYuODkgMTUuODkgMTUuMzQgMTUuODkgMTIuNjlDMTUuODkgMTAuMDQgMTQuMzQgOC40OSAxMi4zOSA4LjQ5WiIgZmlsbD0iIzAwMDAwMCIvPgo8cGF0aCBkPSJNMTIuMzkgOS40OUMxMS40NCA5LjQ5IDEwLjY5IDEwLjI0IDEwLjY5IDEyLjY5QzEwLjY5IDE1LjE0IDExLjQ0IDE1Ljg5IDEyLjM5IDE1Ljg5QzEzLjM0IDE1Ljg5IDE0LjA5IDE1LjE0IDE0LjA5IDEyLjY5QzE0LjA5IDEwLjI0IDEzLjM0IDkuNDkgMTIuMzkgOS40OVoiIGZpbGw9IiNGRkZGRkYiLz4KPHBhdGggZD0iTTEyLjM5IDEwLjQ5QzExLjk0IDEwLjQ5IDExLjE5IDExLjI0IDExLjE5IDEyLjY5QzExLjE5IDE0LjE0IDExLjk0IDE0Ljg5IDEyLjM5IDE0Ljg5QzEyLjg0IDE0Ljg5IDEzLjU5IDE0LjE0IDEzLjU5IDEyLjY5QzEzLjU5IDExLjI0IDEyLjg0IDEwLjQ5IDEyLjM5IDEwLjQ5WiIgZmlsbD0iIzAwMDAwMCIvPgo8cGF0aCBkPSJNMTIuMzkgMTEuNDlDMTIuMTQgMTEuNDkgMTEuNjkgMTEuOTQgMTEuNjkgMTIuNjlDMTEuNjkgMTMuNDQgMTIuMTQgMTMuODkgMTIuMzkgMTMuODlDMTIuNjQgMTMuODkgMTMuMDkgMTMuNDQgMTMuMDkgMTIuNjlDMTMuMDkgMTEuOTQgMTIuNjQgMTEuNDkgMTIuMzkgMTEuNDlaIiBmaWxsPSIjRkZGRkZGIi8+CjxwYXRoIGQ9Ik0xMi4zOSAxMi40OUMxMi4yOSAxMi40OSAxMi4xOSAxMi41OSAxMi4xOSAxMi42OUMxMi4xOSAxMi43OSAxMi4yOSAxMi44OSAxMi4zOSAxMi44OUMxMi40OSAxMi44OSAxMi41OSAxMi43OSAxMi41OSAxMi42OUMxMi41OSAxMi41OSAxMi40OSAxMi40OSAxMi4zOSAxMi40OVoiIGZpbGw9IiMwMDAwMDAiLz4KPC9zdmc+') no-repeat center;
    background-size: contain;
    display: inline-block;
}

/* Instructor Images - Full Face Display */
.instructor-card img,
.bg-white.rounded-2xl.shadow-lg img {
    object-fit: cover;
    object-position: center 15%;
    height: 256px;
}

/* Ensure instructor images show full faces */
.bg-white.rounded-2xl.shadow-lg.overflow-hidden .relative img {
    object-fit: cover;
    object-position: center 15%;
    height: 256px;
}

/* Instructor Cards - Face Display Optimization */
.instructor-card img {
    object-fit: cover;
    object-position: center 20%;
    height: 400px;
    width: 100%;
}

/* Ensure faces are visible in instructor photos */
.instructor-card .relative img {
    object-fit: cover;
    object-position: center 15%;
    height: 400px;
    width: 100%;
}

/* Full face display optimization */
.instructor-card .relative {
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.instructor-card .relative img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.instructor-card:hover .relative img {
    transform: scale(1.05);
}

/* Modern instructor card hover effects */
.instructor-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.instructor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.instructor-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.instructor-card:hover::before {
    opacity: 1;
}

/* Instructor card image overlay effects */
.instructor-card .relative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.instructor-card:hover .relative::before {
    opacity: 1;
}

/* Instructor card content animations */
.instructor-card .p-8 {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.instructor-card:hover .p-8 {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* Instructor icon animations */
.instructor-card .w-16.h-16 {
    transition: all 0.3s ease;
}

.instructor-card:hover .w-16.h-16 {
    transform: scale(1.1) rotate(5deg);
}

/* Instructor card gradient borders */
.instructor-card {
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #8b5cf6, #ec4899, #3b82f6) border-box;
}

/* Mobile responsiveness for instructor cards */
@media (max-width: 768px) {
    .instructor-card img {
        height: 350px;
        object-position: center 20%;
    }
    
    .instructor-card .relative img {
        height: 350px;
        object-position: center 15%;
    }
    
    .instructor-card .p-8 {
        padding: 1.5rem;
    }
    
    .instructor-card .text-2xl {
        font-size: 1.5rem;
    }
    
    .instructor-card .text-lg {
        font-size: 1rem;
    }
    
    .instructor-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .instructor-card img {
        height: 300px;
        object-position: center 18%;
    }
    
    .instructor-card .relative img {
        height: 300px;
        object-position: center 12%;
    }
    
    .instructor-card .p-8 {
        padding: 1rem;
    }
    
    .instructor-card .w-16.h-16 {
        width: 3rem;
        height: 3rem;
    }
    
    .instructor-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVENESS ===== */

/* Global Mobile Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for important content */
p, h1, h2, h3, h4, h5, h6, span, div[class*="text"] {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Mobile First Approach - Base styles for mobile */
@media (max-width: 768px) {
    /* Navigation Mobile Optimizations */
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .mobile-menu {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .mobile-nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-bg {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .hero-bg .relative {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 60px 1rem 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .rainbow-btn,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .hero-stats {
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 1rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
    }
    
    .stat-item .text-2xl {
        font-size: 1.5rem;
    }
    
    .stat-item .text-sm {
        font-size: 0.8rem;
    }
    
    /* Section Mobile Optimizations */
    section {
        padding: 3rem 1rem;
    }
    
    .max-w-7xl {
        padding: 0 1rem;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Cards Mobile */
    .feature-card,
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p,
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Grid Mobile */
    .grid {
        gap: 1rem;
    }
    
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Gallery Mobile */
    #gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 250px;
        object-fit: cover;
    }
    
    /* Testimonials Mobile */
    .testimonials-carousel {
        padding: 0 1rem;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 100%;
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .carousel-dots {
        margin-top: 1rem;
    }
    
    /* TETA Accreditation Mobile */
    .teta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .teta-card {
        padding: 1rem;
        text-align: center;
    }
    
    .teta-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .teta-card p {
        font-size: 0.8rem;
    }
    
    /* Footer Mobile */
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* WhatsApp Float Button Mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
    
    /* Mobile Navigation Enhancements */
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .mobile-menu-btn {
        padding: 0.5rem;
        font-size: 1.25rem;
    }
    
    /* Mobile Hero Section Enhancements */
    .hero-bg {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
    }
    
    .hero-bg .relative {
        padding: 2rem 1rem;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Mobile Typography Enhancements */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 2rem;
        max-width: 90%;
    }
    
    /* Mobile Button Enhancements */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .hero-buttons .rainbow-btn,
    .hero-buttons .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }
    
    /* Mobile Stats Grid */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .stat-item {
        padding: 1rem;
        text-align: center;
    }
    
    /* Mobile Section Spacing */
    section {
        padding: 2rem 1rem;
    }
    
    .max-w-7xl {
        padding: 0 1rem;
    }
    
    /* Mobile Card Enhancements */
    .feature-card,
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 1rem;
    }
    
    /* Mobile Grid Optimizations */
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Gallery Optimizations */
    #gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 250px;
        object-fit: cover;
    }
    
    /* Mobile Testimonials */
    .testimonials-carousel {
        padding: 0 1rem;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.5rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    /* Mobile TETA Accreditation */
    .teta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .teta-card {
        padding: 1rem;
        text-align: center;
    }
    
    /* Mobile Footer */
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Mobile Form Enhancements */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    /* Mobile Button Enhancements */
    .rainbow-btn,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        border-radius: 0.5rem;
    }
    
    /* Mobile CTA Section */
    .cta-section {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .cta-buttons .rainbow-btn,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Mobile Contact Cards */
    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile Map Container */
    #map {
        height: 300px;
        border-radius: 0.5rem;
    }
    
    /* Mobile Lightbox Optimizations */
    .lightbox-overlay {
        padding: 1rem;
    }
    
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .lightbox-counter {
        top: 1rem;
        left: 1rem;
        font-size: 0.875rem;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    /* Mobile Filter Buttons */
    .gallery-filter {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        margin: 0.25rem;
        white-space: nowrap;
    }
    
    /* Mobile Image Optimizations */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile Text Optimizations */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Mobile Spacing Optimizations */
    .mb-16 {
        margin-bottom: 2rem;
    }
    
    .mb-12 {
        margin-bottom: 1.5rem;
    }
    
    .mb-8 {
        margin-bottom: 1rem;
    }
    
    .py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .py-16 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .py-12 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Form Mobile */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Buttons Mobile */
    .rainbow-btn,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 3rem 1rem;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .cta-buttons .rainbow-btn,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* Extra Small Mobile Hero Section */
    .hero-bg .relative {
        padding: 1.5rem 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        max-width: 95%;
    }
    
    .hero-buttons {
        max-width: 260px;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .rainbow-btn,
    .hero-buttons .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        max-width: 240px;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-item .text-2xl {
        font-size: 1.25rem;
    }
    
    .stat-item .text-sm {
        font-size: 0.75rem;
    }
    
    /* Extra Small Mobile Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Extra Small Mobile Sections */
    section {
        padding: 1.5rem 0.5rem;
    }
    
    .max-w-7xl {
        padding: 0 0.5rem;
    }
    
    /* Extra Small Mobile Cards */
    .feature-card,
    .service-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p,
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Extra Small Mobile Gallery */
    .gallery-item img {
        height: 200px;
    }
    
    /* Extra Small Mobile Testimonials */
    .testimonial-card {
        padding: 1rem;
        margin: 0;
    }
    
    .testimonial-card h4 {
        font-size: 1rem;
    }
    
    .testimonial-card p {
        font-size: 0.85rem;
    }
    
    /* Extra Small Mobile TETA Cards */
    .teta-card {
        padding: 0.75rem;
    }
    
    .teta-card h4 {
        font-size: 0.9rem;
    }
    
    .teta-card p {
        font-size: 0.75rem;
    }
    
    /* Extra Small Mobile Footer */
    footer {
        padding: 1.5rem 0.5rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    /* Extra Small Mobile WhatsApp Float */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.25rem;
    }
    
    /* Extra Small Mobile Forms */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    /* Extra Small Mobile Buttons */
    .rainbow-btn,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Extra Small Mobile CTA */
    .cta-section {
        padding: 1.5rem 0.5rem;
    }
    
    .cta-buttons .rainbow-btn,
    .cta-buttons .btn-secondary {
        max-width: 240px;
    }
    
    /* Extra Small Mobile Navigation */
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        padding: 0.375rem;
        font-size: 1.1rem;
    }
    
    /* Extra Small Mobile Contact Cards */
    .contact-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Extra Small Mobile Map */
    #map {
        height: 250px;
    }
    
    /* Extra Small Mobile Lightbox */
    .lightbox-overlay {
        padding: 0.5rem;
    }
    
    .lightbox-container {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .lightbox-counter {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Extra Small Mobile Filter Buttons */
    .gallery-filter {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        margin: 0.125rem;
    }
    
    /* Extra Small Mobile Spacing */
    .mb-16 {
        margin-bottom: 1.5rem;
    }
    
    .mb-12 {
        margin-bottom: 1rem;
    }
    
    .mb-8 {
        margin-bottom: 0.75rem;
    }
    
    .py-20 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .py-16 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .py-12 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    /* Hero Section Extra Small */
    .hero-bg .relative {
        padding: 50px 0.5rem 30px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .rainbow-btn,
    .hero-buttons .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 260px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-item .text-2xl {
        font-size: 1.25rem;
    }
    
    .stat-item .text-sm {
        font-size: 0.75rem;
    }
    
    /* Typography Extra Small */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Section Extra Small */
    section {
        padding: 2rem 0.5rem;
    }
    
    .max-w-7xl {
        padding: 0 0.5rem;
    }
    
    /* Cards Extra Small */
    .feature-card,
    .service-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p,
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Gallery Extra Small */
    .gallery-item img {
        height: 200px;
    }
    
    /* Testimonials Extra Small */
    .testimonial-card {
        padding: 1rem;
        margin: 0 0.25rem;
    }
    
    .testimonial-card h4 {
        font-size: 1rem;
    }
    
    .testimonial-card p {
        font-size: 0.85rem;
    }
    
    /* TETA Cards Extra Small */
    .teta-card {
        padding: 0.75rem;
    }
    
    .teta-card h4 {
        font-size: 0.9rem;
    }
    
    .teta-card p {
        font-size: 0.75rem;
    }
    
    /* Footer Extra Small */
    footer {
        padding: 1.5rem 0.5rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    /* WhatsApp Float Extra Small */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.25rem;
    }
    
    /* Form Extra Small */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    /* Buttons Extra Small */
    .rainbow-btn,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* CTA Extra Small */
    .cta-section {
        padding: 2rem 0.5rem;
    }
    
    .cta-buttons .rainbow-btn,
    .cta-buttons .btn-secondary {
        max-width: 240px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-bg {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-bg .relative {
        padding: 40px 1rem 20px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-item .text-2xl {
        font-size: 1.1rem;
    }
    
    .stat-item .text-sm {
        font-size: 0.7rem;
    }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile Devices */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card {
        width: 90%;
        max-width: 90%;
    }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instructor-card img {
        height: 350px;
    }
    
    .instructor-card .relative img {
        height: 350px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-bg {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-bg .relative {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 400px;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-item .text-2xl {
        font-size: 1.1rem;
    }
    
    .stat-item .text-sm {
        font-size: 0.7rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        max-width: 400px;
        gap: 1rem;
    }
    
    .hero-buttons .rainbow-btn,
    .hero-buttons .btn-secondary {
        flex: 1;
        max-width: none;
    }
}

/* Mobile Gallery Optimizations */
@media (max-width: 768px) {
    /* Gallery Grid Mobile */
    #gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Gallery Item Mobile */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 250px;
        object-fit: cover;
        object-position: center;
        border-radius: 1rem;
    }
    
    /* Gallery Item Content Mobile */
    .gallery-item .absolute.bottom-6,
    .gallery-item .absolute.bottom-4 {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .gallery-item h3 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }
    
    .gallery-item p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Gallery Category Badge Mobile */
    .gallery-item .absolute.top-6,
    .gallery-item .absolute.top-4 {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .gallery-item span {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Gallery Expand Icon Mobile */
    .gallery-item .absolute.top-6.right-6,
    .gallery-item .absolute.top-4.right-4 {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .gallery-item .fas.fa-expand {
        font-size: 1rem;
    }
    
    /* Gallery Hover Effects Mobile - Reduced */
    .gallery-item:hover img {
        transform: scale(1.02);
    }
    
    .gallery-item .group:hover .absolute {
        opacity: 0.8;
    }
}

/* Small Mobile Gallery */
@media (max-width: 480px) {
    #gallery-grid {
        gap: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .gallery-item img {
        height: 200px;
        border-radius: 0.75rem;
    }
    
    .gallery-item h3 {
        font-size: 0.9rem;
    }
    
    .gallery-item p {
        font-size: 0.75rem;
    }
    
    .gallery-item span {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .instructor-card:hover {
        transform: none;
    }
    
    .instructor-card:active {
        transform: scale(0.98);
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    .rainbow-btn:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .rainbow-btn:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
    
    /* Gallery Touch Optimizations */
    .gallery-item img {
        transition: transform 0.2s ease;
    }
    
    .gallery-item:active img {
        transform: scale(0.95);
    }
    
    .gallery-item .group:hover .absolute {
        opacity: 0.6;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg::before {
        background-size: cover;
        background-position: center;
    }
    
    .instructor-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .carousel-nav,
    .mobile-menu-btn {
        display: none;
    }
    
    .rainbow-text,
    .rainbow-text-animated {
        -webkit-text-fill-color: #dc2626;
        color: #dc2626;
    }
}

