/* ==========================================================================
   VASTU - Isolated Mobile & Responsive Design Stylesheet
   ==========================================================================
   This file contains all the mobile-responsive overrides, layout adjustments,
   and media queries for the VASTU website. 
   
   To prevent interaction with the desktop/original design of the website,
   this stylesheet is linked in the HTML files and only executes inside 
   the specified viewport widths (e.g. tablet and mobile screens).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLET / LAPTOP LAYOUTS (max-width: 1024px)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   2. LANDSCAPE MOBILE / MEDIUM TABLETS (max-width: 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Why Choose Us Grid */
    .wcu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --------------------------------------------------------------------------
   3. MOBILE DEVICES & PORTRAIT TABLETS (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    /* Global Navigation Menu */
    .menu-toggle {
        display: flex !important;
    }
    
    .logo {
        font-size: 2.0rem !important;
        letter-spacing: 2px !important;
    }
    
    .logo span {
        font-size: 0.65rem !important;
        letter-spacing: 1px !important;
    }
    
    nav {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: var(--deep-blue) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: 0.5s ease-in-out !important;
    }
    
    .nav-links.active {
        right: 0 !important;
    }
    
    .nav-links a {
        margin: 20px 0 !important;
        font-size: 1.5rem !important;
        color: var(--white) !important;
    }
    
    .dropdown {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        display: none !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    .dropdown-menu a {
        display: none !important;
    }

    /* Page Content Padding Spacing */
    main {
        padding-top: 100px !important;
    }

    /* Homepage Hero Section */
    .hero {
        padding-top: 100px !important;
        justify-content: center !important;
        text-align: center !important;
        padding-left: 0 !important;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 102, 138, 0.5) 0%, rgba(0, 102, 138, 0.1) 100%) !important;
    }
    
    .hero-content {
        width: 100% !important;
        padding: 0 20px !important;
        height: 82vh !important;
        margin-top: 6vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }
    
    .hero-subtitle {
        margin-bottom: 0 !important;
    }
    
    .hero-title {
        font-size: 2.0rem !important;
        margin: 220px 0 15px 0 !important;
        display: block !important;
        font-family: 'Lora', serif !important;
        color: var(--white) !important;
        text-transform: none !important;
        line-height: 1.3 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }
    .hero .btn {
        margin-top: 30px !important;
        margin-bottom: 20px !important;
        align-self: center !important;
    }
    .welcome-text {
        font-size: 0.95rem !important;
        letter-spacing: 3px !important;
    }
    .brand-text {
        font-size: 2.2rem !important;
        letter-spacing: 4px !important;
        margin-bottom: 5px !important;
    }

    /* Home Page: Flip Cards Grid */
    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* Home Page: Brands Section */
    .brand-logo-card {
        min-width: 110px !important;
        padding: 10px !important;
        height: 75px !important;
    }

    /* Alternating Content Rows */
    .alt-row, .alt-row.reverse {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        margin-bottom: 50px !important;
    }
    
    .alt-row img, .alt-row .alt-text {
        width: 100% !important;
    }
    
    .alt-row img {
        height: 250px !important;
    }

    /* Tab Buttons Layout */
    .service-tabs {
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Portfolio Carousel */
    .gallery-wrapper {
        height: 450px !important;
        padding: 30px 0 !important;
    }
    
    .gallery-item {
        flex: 0 0 calc(100% - 40px) !important;
        min-width: calc(100% - 40px) !important;
        margin: 0 20px !important;
        height: 100% !important;
    }
    
    .gallery-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }

    /* Contact Form & Sections */
    .contact {
        padding: 60px 5% !important;
    }



    /* Our Team Section Layout */
    .team-details-section {
        padding: 60px 5% !important;
    }
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .team-card-left {
        max-width: 100% !important;
        padding: 30px 20px !important;
    }
    .desktop-only-card {
        display: none !important;
    }
    .mobile-only-card {
        display: flex !important;
        margin-top: 15px !important;
        margin-bottom: 30px !important;
    }
    .desktop-title {
        display: none !important;
    }
    .mobile-title {
        display: inline !important;
    }
    .mobile-only-inline {
        display: inline !important;
    }
    .team-title {
        font-size: 2.2rem !important;
        text-align: center !important;
    }
    .team-section-badge {
        align-self: center !important;
    }
    .team-achievements-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Roadmap Section Layout */
    .desktop-roadmap {
        display: none !important;
    }
    .mobile-roadmap {
        display: block !important;
    }
    .aesthetic-roadmap {
        max-width: 300px !important;
        height: 680px !important;
    }
    
    .point-dot {
        width: 18px !important;
        height: 18px !important;
    }
    
    .point-text {
        font-size: 1.25rem !important;
    }
    
    .text-left {
        right: auto !important;
        left: 25px !important;
    }
    
    .text-right {
        left: auto !important;
        right: 25px !important;
    }
    
    .hover-image {
        display: none !important; /* Hide preview images on small screens */
    }



    /* Contact Page Tagline Spacing */
    .contact-tagline {
        margin-top: 50px !important;
    }

    /* Floating WhatsApp Button */
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .whatsapp-float svg {
        width: 28px !important;
        height: 28px !important;
    }
}

/* --------------------------------------------------------------------------
   4. SMALL MOBILE / SMARTPHONES (max-width: 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    /* Why Choose Us Grid */
    .wcu-grid {
        grid-template-columns: 1fr !important;
    }


}

/* --------------------------------------------------------------------------
   5. CUSTOM ADDITIONS & SANDBOX AREA
   --------------------------------------------------------------------------
   Write your new mobile-specific design/styling rules here.
   These styles are completely isolated and won't affect the desktop website layout.
   -------------------------------------------------------------------------- */
