/* Premium Responsive Audit & Optimizations */

/* 1. Global Typography & Spacing */
html {
    font-size: 16px; /* Base */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* 1.1 Mobile Header Crisp Fixes */
@media (max-width: 991px) {
    .header-wrapper {
        position: sticky !important;
        top: 0;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        padding: 0 !important;
        z-index: 10000 !important;
        height: 85px !important; /* Increased from 75px */
        display: flex !important;
        align-items: center !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    }

    /* Home Page Mobile Transparent Overrides */
    .page-home .header-wrapper:not(.sticky) {
        position: absolute !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: none !important;
    }

    .page-home .header-wrapper:not(.sticky) .icon-bar {
        background-color: #ffffff !important;
    }

    .page-home .header-wrapper:not(.sticky) .logo-img {
        filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 15px !important; /* Slightly more space */
        height: 100% !important;
    }

    .logo-section {
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        flex: 0 0 auto;
    }

    .logo-img {
        height: 70px !important; /* Substantially increased for visibility */
        width: auto !important;
        max-width: 280px !important; /* Prevents horizontal squeezing */
        margin: 0 !important;
        object-fit: contain !important;
        transform: scale(1.1); /* Subtle boost for clarity */
        transform-origin: left center;
    }

    #navToggle {
        margin: 0 !important;
        padding: 0 !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 8px !important;
        background: rgba(35, 46, 102, 0.05) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* Fast Loading & Performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
    content-visibility: auto;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box !important;
}

/* 1.1 Responsive Flex & Grid Utilities */
.display-flex { display: flex !important; flex-wrap: wrap; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-column { flex-direction: column !important; }
.w-100-mobile { width: 100% !important; }

@media (max-width: 767px) {
    .display-flex-mobile { display: flex !important; flex-direction: column; }
    .text-center-mobile { text-align: center !important; }
    .no-padding-mobile { padding: 0 !important; }
    .m-b-20-mobile { margin-bottom: 20px !important; }
}

@media (max-width: 480px) {
    * { transition-duration: 0.2s !important; } /* Snappier on mobile */
    .reveal-hidden, .reveal-on-scroll { opacity: 1 !important; transform: none !important; } /* Disable heavy Reveal animations */
    .image-zoom:hover { transform: none !important; } /* Disable some heavy hover effects */
}

@media (min-width: 1200px) {
    .container { width: 100% !important; max-width: 1300px !important; }
}

@media (max-width: 1200px) {
    .container { width: 95%; max-width: 1200px; }
}

@media (max-width: 991px) {
    html { font-size: 15px; }
    .container { width: 92%; }
}

@media (max-width: 767px) {
    html { font-size: 14px; }
    
    .section-header h2, .luxury-heading-main {
        font-size: 2rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.5;
    }

    .section-padding {
        padding: 40px 0 !important;
    }
}

/* Hide Mobile specifics on desktop */
.mobile-menu-social { display: none; }

/* 2. Luxury Responsive Navigation Overlay (Functionality & Natural Height) */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%; /* Full Width */
        height: 100vh; /* Full viewport height */
        background: linear-gradient(165deg, #020617 0%, #0f172a 95%); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 100px 0 40px; /* Premium Breathing Space */
        gap: 15px; /* Standardized Item Spacing */
        
        /* Visibility Logic */
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%); /* Start from Right */
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        
        z-index: 9999;
        list-style: none;
        margin: 0;
        box-shadow: none;
        overflow-y: auto;
        text-align: center;
    }

    /* Prevent Bootstrap's collapse from hiding the menu */
    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Ensure header is on top when menu is open */
    body.menu-open .header-wrapper {
        z-index: 10005 !important;
    }

    /* Active Menu State */
    body.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-links li {
        width: 85%;
        margin: 0 auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    body.menu-open .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entrance animation */
    body.menu-open .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    body.menu-open .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    body.menu-open .nav-links li:nth-child(3) { transition-delay: 0.2s; }
    body.menu-open .nav-links li:nth-child(4) { transition-delay: 0.25s; }
    body.menu-open .nav-links li:nth-child(5) { transition-delay: 0.3s; }
    body.menu-open .nav-links li:nth-child(6) { transition-delay: 0.35s; }
    body.menu-open .nav-links li:nth-child(7) { transition-delay: 0.4s; }

    .nav-links li a {
        font-size: 18px !important;
        color: #fff !important;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 18px 0 !important;
        display: block;
        width: 100%;
        transition: 0.3s ease;
    }

    .nav-links li a:hover {
        color: #FFD700 !important;
        padding-left: 15px !important;
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-links li a:hover,
    .nav-links li a:active {
        color: #FFD700 !important; /* Gold */
        transform: scale(1.08);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }

    .nav-links li a.active {
        color: #FFD700 !important;
    }

    .nav-links li a.active::after {
        content: '';
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%; 
        height: 2px;
        background: #FFD700;
        box-shadow: 0 0 10px #FFD700, 0 0 5px rgba(255, 215, 0, 0.8); /* Small glowing underline */
        border-radius: 2px;
    }

    /* Luxury Close Button (Gold Symmetrical X) */
    #navToggle {
        border: none !important;
        background: transparent !important;
        width: 60px;
        height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10001;
        position: relative;
        transition: 0.3s;
    }

    body.menu-open #navToggle {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 10002;
    }

    /* Logo Fix for Mobile */
    .logo-section, .logo-img {
        width: auto !important;
        max-width: 280px !important; /* Increased to avoid squeezing horizontal logo */
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar-brand {
        padding: 5px 15px !important;
    }

    .navbar-toggle .icon-bar {
        background-color: #FFD700 !important; /* Gold */
        width: 32px;
        height: 3px; /* Slightly bolder */
        transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        display: block;
        margin: 5px auto;
        border-radius: 2px;
    }

    /* X Animation */
    body.menu-open #navToggle .icon-bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
    body.menu-open #navToggle .icon-bar:nth-child(3) { opacity: 0; transform: scaleX(0); }
    body.menu-open #navToggle .icon-bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

    /* Mobile Menu Social CTA */
    .mobile-menu-social {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        gap: 30px;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.8s 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    body.menu-open .mobile-menu-social {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-social a {
        color: #fff;
        font-size: 1.5rem;
        transition: 0.3s;
    }

    .mobile-menu-social a:hover {
        color: #D4AF37;
    }

    /* Menu Overlay specifically for mobile */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    body.menu-open .menu-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* 3. Global Responsive & Footer Fixes */

/* Footer Mobile Refinement */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        text-align: center;
    }

    .footer-col {
        grid-column: span 1 !important;
    }

    .footer-col h3::after, .footer-social-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-links li a {
        justify-content: center;
        padding: 8px;
    }

    .footer-contact p {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
        justify-content: center !important;
    }

    .footer-contact p i {
        margin-right: 0 !important;
    }

    .cities-grid, .cities-list {
        grid-template-columns: 1fr !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .world-wide-list {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
    
    .footer-bottom {
        padding: 20px 0 !important;
    }
    
    /* Booking Section Mobile Fixes */
    .booking-section {
        margin-top: -30px !important; /* Bring it up on mobile */
        padding: 0 15px;
    }

    .booking-card {
        padding: 25px 20px !important;
        margin-bottom: 30px !important;
    }

    .booking-card h3 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        text-align: center;
    }

    .booking-card .col-md-6 {
        padding: 0 !important;
    }

    .info-card {
        padding: 25px 20px !important;
        margin-top: 0 !important;
    }

    /* Trust Strip Refinement */
    .trust-row {
        gap: 20px 0;
    }
    
    .trust-col {
        padding: 0 10px !important;
    }

    .trust-item {
        padding: 15px !important;
        flex-direction: row !important;
        text-align: left !important;
        gap: 15px !important;
    }

    .trust-icon-wrapper {
        margin: 0 !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }

    /* Event Grid Fixes */
    .event-grid {
        gap: 20px 0;
    }

    .event-card-wrapper {
        margin-bottom: 10px;
    }

    /* Highlights Row Fixes */
    .highlights-row {
        flex-direction: column !important;
        gap: 15px;
        padding: 30px 10px !important;
    }

    .highlight-item-box {
        width: 100% !important;
        border: none !important;
        border-bottom: 1px solid rgba(212, 164, 40, 0.2);
        padding-bottom: 15px !important;
    }

    .highlight-item-box:last-child {
        border-bottom: none;
    }

    /* Typography Scaling */
    h1, .luxury-heading-main {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    h2, .luxury-heading {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }

    h3 {
        font-size: 20px !important;
    }

    .section-subtitle {
        font-size: 14px !important;
        margin-bottom: 30px !important;
        padding: 0 10px;
    }

    /* Container Optimization */
    .container, .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
    }

    /* Component Refinement */
    .service-card, .fleet-category-card, .choose-card-new, .testimonial-card, .acc-card {
        margin-bottom: 25px !important;
        padding: 25px 20px !important;
        border-radius: 15px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important;
    }

    .service-col, .fleet-col, .choose-col-new, .acc-col {
        padding: 0 10px !important;
    }

    /* Slider & Hero Banner Adjustment */
    .slider, .callbacks_container, .rslides, .rslides li {
        min-height: 400px !important;
        height: auto !important;
    }

    .banner-top, .banner-top1, .banner-top2, .banner-top3 {
        min-height: 400px !important;
        background-size: cover !important;
        background-position: center center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .banner-inner {
        min-height: 400px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    /* Banner Text Responsiveness */
    .banner-text {
        width: 100% !important;
        padding: 60px 20px !important;
        text-align: center !important;
    }

    .banner-text h3 {
        font-size: 28px !important;
        color: #ffffff !important;
        margin-bottom: 15px !important;
    }

    .banner-text p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Buttons */
    .service-btn, .fleet-btn, .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        height: auto !important;
    }

    /* City Enquiry Pages Fixes */
    .btn-group#sidemenu {
        display: flex !important;
        flex-direction: column !important;
        margin-top: 100px !important;
    }

    .btn-group#sidemenu a, .btn-group#sidemenu button {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    .pic1, .tab_text {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin-top: 20px !important;
    }
}

/* 4. Form Accessibility on Touch */
@media (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
    .form-control {
        height: 50px !important;
    }
    #submit {
        height: 55px !important;
    }
}

/* 6. Premium Micro-Interactions (Universal) */
.service-card, .fleet-category-card, .choose-card-new, .testimonial-card, .acc-card, .event-image-card, .fleet-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.service-card:hover, .fleet-category-card:hover, .choose-card-new:hover, .testimonial-card:hover, .acc-card:hover, .event-image-card:hover, .fleet-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

/* Smooth Focus States */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 164, 40, 0.3) !important;
}

/* Tablet Refinement (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        width: 100% !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .luxury-heading-main {
        font-size: 32px !important;
    }

    .banner-text {
        width: 80% !important;
        padding-top: 100px !important;
    }
}
/* 7. YouTube Video Banner Redesign - Full Screen Home Hero */
.video-hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full Viewport Height */
    background: #000;
    overflow: hidden;
    margin-top: 0;
}

.video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}

/* Dark Professional Overlay */
.video-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,32,0.4) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

/* For Extra tall viewports */
@media (max-aspect-ratio: 16/9) {
    .video-container iframe {
        width: 177.77vh;
        height: 100vh;
    }
}

/* 8. Scroll Down Indicator - Home Hero */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff !important;
    font-size: 24px;
    transition: all 0.3s ease;
    animation: bounceIndicator 2s infinite;
}

.scroll-down-link:hover {
    border-color: #D4AF37;
    color: #D4AF37 !important;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes bounceIndicator {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Ensure smooth scrolling globally */
html {
    scroll-behavior: smooth;
}

/* Responsive Scaling for Mobile - Reduced Zoom Effect */
@media (max-width: 768px) {
    .video-hero-section {
        height: 55vh; /* Adjusted to zoom out video and show full text */
    }
    
    .video-wrapper {
        height: 55vh;
    }

    .video-container iframe {
        /* Soften the scale on vertical screens */
        width: 100vw;
        height: 56.25vw; /* ratio */
        min-height: 55vh;
        min-width: 97.7vh; /* Adjusted for 16:9 ratio at 55vh */
    }

    .scroll-down-indicator {
        bottom: 40px;
    }
    .scroll-down-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

