/* Mobile-first improvements */
@media (max-width: 768px) {

    /* Navigation improvements */
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background-color: var(--color-white);
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-brown);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        animation: navLinkFade 0.5s ease forwards;
    }


    /* Hero section improvements */
    .hero {
        padding: 2rem 5%;
        height: auto;
        min-height: 100vh;
    }

    .hero-container {
        flex-direction: column;
        gap: 2rem;
        padding-top: 4rem;
    }

    .hero-content {
        padding: 2rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image {
        height: 300px;
        width: 100%;
    }

    /* Services section improvements */
    .services {
        padding: 3rem 5%;
    }

    .services h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        height: 300px;
    }

    .service-card h3 {
        font-size: 1.8rem;
    }

    /* About section improvements */
    .about {
        padding: 3rem 5%;
    }

    .about h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text {
        min-width: unset;
        font-size: 1rem;
        text-align: left;
        padding: 0 1rem;
    }

    .about-image {
        width: 100%;
        height: 300px;
        margin: 0 auto;
    }

    /* Contact section improvements */
    .contact {
        padding: 3rem 5%;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 0 1rem;
    }

    /* Group classes page specific improvements */
    .group-classes-section {
        padding: 80px 3% 2rem;
    }

    .intro-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .intro-text {
        max-width: 100%;
        text-align: center;
    }

    .intro-image {
        max-width: 100%;
    }

    .class-info {
        gap: 1.5rem;
    }

    .schedule,
    .pricing,
    .class-details {
        padding: 1.5rem;
    }

    /* Additional improvements */
    .cta-button {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Footer improvements */
    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

/* Additional breakpoint for very small devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .service-card {
        height: 250px;
    }

    .about-image {
        height: 250px;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}