/* Responsive Styles */

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Screens (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Tablet Screens (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    #hero {
        padding: 140px 0 60px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        z-index: 1001;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 80px 24px 24px;
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        color: var(--text-color);
        border-bottom: 1px solid var(--gray-200);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

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

/* Mobile Screens (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    #hero {
        padding: 120px 0 40px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portfolio-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .testimonial-content {
        padding: 24px;
    }

    .testimonial-content p {
        font-size: 16px;
    }
}

/* Small Mobile Screens (up to 575px) */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 16px;
    }

    #hero {
        padding: 100px 0 40px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .service-card,
    .contact-form {
        padding: 24px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter form {
        flex-direction: column;
    }

    .footer-newsletter .btn {
        width: 100%;
    }
}