/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Mobile Navigation Toggle Button */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
}

/* Tablet & Mobile (Below 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }

    /* --- Mobile Menu Logic --- */
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px; /* Below navbar */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: 0.4s ease;
        overflow-y: auto;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    }

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

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #f1f5f9;
    }

    /* Mobile Dropdown */
    .dropdown { width: 100%; }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none; /* Hidden by default on mobile, toggled via JS */
        background: #f8fafc;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Mobile Buttons */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Mobile Small (Below 640px) */
@media (max-width: 640px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}