/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 80px);
        padding: 2rem;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        background: rgba(0, 212, 170, 0.1);
    }

    .nav-menu .cta-button {
        margin-top: 1rem;
        max-width: 250px;
        text-align: center;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Prevent body scroll when mobile menu is open */
    body.nav-open {
        overflow: hidden;
    }

    .hero {
        padding-top: 80px; /* Extra space for mobile navigation */
        overflow-x: hidden; /* Prevent horizontal overflow */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-visual {
        height: 300px;
        width: 100%;
        max-width: 100%;
        order: 2;
        overflow: hidden;
        position: relative;
    }

    .hero-text {
        order: 1;
        width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }

    .step-connector {
        display: none;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px; /* Even more space for very small screens */
        overflow-x: hidden; /* Prevent horizontal overflow */
    }

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

    .hero-content {
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .hero-visual {
        height: 250px;
        width: 100%;
        max-width: 100%;
        order: 2;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }

    .hero-text {
        order: 1;
        width: 100%;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 2% auto;
        width: 95%;
    }

    .diagnostic-container,
    .results-container {
        padding: 1rem;
    }

    .science-card,
    .product-card {
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .results-hero {
        padding: 2rem;
    }
}