/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Background Images */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mobile-bg {
    display: block;
}

.desktop-bg {
    display: none;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    transition: background 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-overlay.dimmed {
    background: rgba(12, 28, 106, 0.15);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
    z-index: 10;
    position: relative;
}

.logo-img {
    height: 3.6rem;
    width: auto;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

.dropdown {
    cursor: pointer;
}

/* Navigation Toggle */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem 4rem;
    gap: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 400px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.cta-button {
    background: rgba(15, 22, 179, 0.8);
    border: none;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: scale(1.05);
    background: rgba(15, 22, 179, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
    transform: scale(0.95);
}

.cta-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    max-width: 140px;
}

/* Classes Carousel Section */
.classes-carousel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 247, 251, 0.7);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.classes-carousel.active {
    transform: translateY(0);
}

.carousel-container {
    padding: 2rem 1rem 1rem;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding: 0 0.5rem;
}

/* Class Cards */
.class-card {
    min-width: 280px;
    background: transparent;
    padding: 1.5rem;
}

/* Testimonials Container (Above classes panel) */
.testimonials-container {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 90%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonials-container.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-slide {
    display: none;
    text-align: center;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-quote {
    position: relative;
    padding: 0.5rem;
}

.testimonial-text {
    color: #ffffff;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-height: 5.6rem; /* 4 lines maximum */
    overflow: hidden;
}

.testimonial-author {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.class-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

.adult-class .price-circle {
    background: #0e1372;
}

.kids-class .price-circle {
    background: #e8b417;
}

.online-class .price-circle {
    background: #10aef0;
}

.price {
    font-size: 1.5rem;
    line-height: 1;
}

.duration {
    font-size: 0.75rem;
    opacity: 0.9;
}

.class-title {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
}

.adult-class .class-title {
    color: #0e1372;
}

.kids-class .class-title {
    color: #e8b417;
}

.online-class .class-title {
    color: #10aef0;
}

.class-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.class-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.see-details {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.see-details:hover {
    text-decoration: underline;
}

.register-btn {
    background: #fff;
    color: #0f16b3;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 1.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #0f16b3;
    transform: scale(1.2);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .mobile-bg {
        display: none;
    }
    
    .desktop-bg {
        display: block;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 500px;
    }
    
    .cta-button {
        width: 250px;
        height: 250px;
    }
    
    .cta-text {
        font-size: 1.25rem;
        max-width: 180px;
    }
    
    .testimonials-container {
        max-width: 500px;
        top: 18%;
    }
    
    .testimonial-quote {
        padding: 1rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .carousel-container {
        padding: 2.5rem 2rem 1.5rem;
    }
    
    .class-card {
        min-width: 320px;
        padding: 2rem;
    }
    
    .price-circle {
        width: 90px;
        height: 90px;
    }
    
    .price {
        font-size: 1.75rem;
    }
    
    .class-title {
        font-size: 1.25rem;
    }
    
    .class-description {
        font-size: 1rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
        max-width: 600px;
    }
    
    .cta-button {
        width: 300px;
        height: 300px;
    }
    
    .cta-text {
        font-size: 1.5rem;
        max-width: 220px;
    }
    
    .testimonials-container {
        max-width: 600px;
        top: 16%;
    }
    
    .testimonial-quote {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1.2rem;
    }
    
    .carousel-container {
        padding: 3rem 3rem 2rem;
    }
    
    .class-card {
        min-width: 380px;
        padding: 2.5rem;
    }
}

/* Animation Classes */
.fade-out {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .cta-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .register-btn {
        min-height: 44px;
        padding: 1rem 2rem;
    }
    
    .indicator {
        min-width: 12px;
        min-height: 12px;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}
