/* Prevent Horizontal Scroll on Mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 1rem;
    }

    .section {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-content {
        padding: 1rem;
    }

    .burger-menu {
        display: flex;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--card-border);
        visibility: hidden;
    }

    /* Show nav links when active */
    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-links li a:hover {
        background: rgba(255, 255, 255, 0.05);
        padding-left: 1.5rem;
    }

    .nav-links li:last-child {
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid var(--card-border);
        width: 100%;
    }

    .nav-links li:last-child .theme-toggle {
        width: 100%;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid var(--card-border);
        background: rgba(255, 255, 255, 0.03);
        justify-content: center;
    }

    .nav-links li:last-child .theme-toggle:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--accent-color);
    }

    .logo {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Featured Work - Mobile Vertical Layout */
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        overflow-x: hidden;
        padding: 2rem 1rem;
        scroll-snap-type: none;
        width: 100%;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-image-container {
        height: 300px;
    }

    .project-image {
        width: 140px;
        height: 280px;
    }

    /* Contact Section Mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }

    /* Testimonials Mobile */
    .testimonial-scroller {
        overflow-x: hidden;
        width: 100%;
        padding: 2rem 0;
        position: relative;
        box-sizing: border-box;
    }

    .testimonial-track {
        width: max-content;
        padding-left: 1rem;
    }

    .testimonial-card {
        width: calc(100vw - 3rem);
        max-width: 320px;
        min-width: 280px;
        box-sizing: border-box;
    }

    /* Map Mobile */
    .map-container {
        padding: 1.5rem;
    }

    .map-frame iframe {
        height: 300px;
    }

    /* Benefits Grid Mobile */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing Grid Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* WhatsApp Icon Mobile */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        z-index: 999;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 100%;
        right: -100%;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .logo {
        font-size: 1rem;
    }

    .project-card {
        width: 100%;
    }

    .project-image-container {
        height: 280px;
    }

    .project-image {
        width: 120px;
        height: 240px;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        width: calc(100vw - 3rem);
        max-width: 300px;
        min-width: 260px;
        box-sizing: border-box;
    }

    /* WhatsApp Icon Small Mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        z-index: 999;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
        display: block;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* WhatsApp Icon Mobile */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        z-index: 999;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
        margin-top: 2px;
    }
}

