/* Responsive Styles */

/* Hide mobile menu button by default */
.mobile-menu-btn {
    display: none;
}

/* Large devices (desktops, less than 1400px) */
@media (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .service-card img {
        height: 180px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .testimonial-slider {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
        margin: 0;
        transition: transform 0.3s;
    }

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

    .slider-controls {
        margin-top: 1.5rem;
    }

    .prev-btn,
    .next-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .stat-card {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    /* Mobile Menu Styles */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 1000;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-color);
        margin: 5px 0;
        transition: 0.3s;
    }

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

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

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link.btn-primary {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .testimonial-slider {
        gap: 1rem;
        margin: 1.5rem 0;
        overflow-x: hidden;
    }

    .testimonial-card {
        flex: 0 0 100%;
        margin: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .user-info {
        gap: 0.75rem;
    }

    .user-avatar {
        width: 44px;
        height: 44px;
    }

    .user-details h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .rating {
        font-size: 0.85rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .slider-controls {
        margin-top: 1rem;
    }

    .prev-btn,
    .next-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        padding: 0 1rem;
    }

    .newsletter-form input,
    .subscribe-btn {
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 0.95rem;
    }
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .service-card img {
        height: 160px;
    }

    .testimonials {
        padding: 3rem 0;
    }

    .testimonial-slider {
        gap: 1rem;
        margin: 1.25rem -1.25rem;
        padding: 0 1.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .testimonial-slider::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        padding: 1.25rem;
        scroll-snap-align: center;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .user-details h4 {
        font-size: 1rem;
    }

    .rating {
        font-size: 0.8rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }

    .slider-controls {
        display: none;
    }

    .newsletter h3 {
        font-size: 1.25rem;
        padding: 0 1rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-links {
        padding: 0 1rem;
    }
}