/* =========================================
   1. TABLET LANDSCAPE & SMALL LAPTOPS
   (Max-Width: 1024px)
   ========================================= */
@media screen and (max-width: 1024px) {
    
    :root {
        --container-width: 90%;
        --nav-height: 80px;
    }

    /* Adjust Hero Typography */
    .hero-title {
        font-size: 3rem;
    }

    .page-title {
        font-size: 2.8rem;
    }

    /* Grid Adjustments */
    .about-grid {
        gap: 30px;
    }

    .package-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .package-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .detail-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .detail-list li {
        width: 45%;
        text-align: left;
    }

    .pricing-table {
        margin-top: 20px;
    }
}

/* =========================================
   2. TABLET PORTRAIT & LARGE PHONES
   (Max-Width: 768px)
   ========================================= */
@media screen and (max-width: 768px) {

    /* Navbar & Mobile Menu */
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0; /* Cover full height */
        background-color: #020b16; /* Dark BG */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center items vertically */
        width: 100%; /* Full screen width for impact */
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 998; /* Below hamburger */
        backdrop-filter: blur(15px); /* Strong blur */
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0; /* Animated in by JS */
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.5rem; /* Larger touch targets */
    }

    .hamburger {
        display: block;
        z-index: 999;
    }
    
    /* Hamburger Animation to 'X' */
    .toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--gold);
    }
    .toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--gold);
    }

    /* Stack Grids */
    .about-grid, 
    .features-grid, 
    .destinations-grid, 
    .custom-form,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Hero Section Adjustments */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .sub-hero-title {
        font-size: 0.85rem;
    }
    
    .hero-content {
        padding: 0 20px;
    }

    /* Adjust Padding */
    .section-padding {
        padding: 60px 0;
    }

    .glass-card {
        padding: 25px;
    }

    /* Specific Module Fixes */
    .card-mv {
        margin-bottom: 20px;
    }

    .detail-list li {
        width: 100%; /* Full width list items on mobile */
        text-align: center; /* Re-center for mobile layout */
    }

    .contact-list li {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-list i {
        margin-bottom: 10px;
    }
    
    /* Hide Custom Cursor on Touch Devices */
    .cursor-dot, .cursor-outline {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

/* =========================================
   3. MOBILE PHONES
   (Max-Width: 480px)
   ========================================= */
@media screen and (max-width: 480px) {
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .page-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        margin: 10px 0 0 0; /* Stack buttons */
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-transparent {
        margin-left: 0;
    }

    .nav-container {
        padding: 0 15px;
    }
    
    /* Footer Stack */
    .footer-grid {
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    /* Hajj Card Compact */
    .hajj-body {
        padding: 15px;
    }
}