/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    /* Reduce scroll padding for mobile navbar */
    html {
        scroll-padding-top: 0;
    }
    
    /* Navigation adjustments */
    .navbar {
        z-index: 1200;
        padding: 0; /* Nav Horizontal padding must be same as the body padding */
    }

    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-black);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1300;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    @supports (height: 100dvh) {
        .nav-menu {
            height: 100dvh;
        }
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        border-radius: 22px;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: var(--primary-white);
        font-size: 1.3rem;
        z-index: 1400;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .nav-menu.active ~ .mobile-menu-close {
        opacity: 1;
        pointer-events: auto;
    }

    /* Services grid fix */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    /* Values grid fix */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        gap: 1.5rem;
    }

    .footer-logo img {
        max-width: 240px;
    }

    /* Button adjustments */
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    /* Logo adjustments */
    .logo img {
        height: 60px;
        margin-left: -19px;
    }

    /* Section padding adjustments */
    .about, .services, .contact {
        padding: 4rem 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle,
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .footer-logo img {
        max-width: 220px;
    }
}
