/* CSS Custom Properties - Navbar specific variables */
:root {
    /* Core Colors - Keep navbar-specific colors */
    --bg: #070707;
    /* deep night */
    --ink: #ffffff;
    /* pure white text */
    --muted: #ffffff;
    /* white secondary text */
    --acc:#2596be;
    /* glacier blue */

    /* Navbar-specific colors */
    --acc-dark: #2596be;
    --acc-darker: #2596be;
    --acc-light: #2596be;
    --bg-light: #0f0f0f;
    --bg-lighter: #1a1a1a;
    --bg-brightest: #2a2a2a;
    --bg-glow: #3a3a3a;

    /* Glass Effects */
    --glass-bg: rgba(37, 150, 190, 0.05);
    --glass-border: rgba(37, 150, 190, 0.2);
    --glass-bg-light: rgba(37, 150, 190, 0.1);
    --glass-border-light: rgba(37, 150, 190, 0.3);

    /* Shadows */
    --shadow-primary: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 30px rgba(37, 150, 190, 0.4);
    --shadow-button: 0 8px 25px rgba(37, 150, 190, 0.3);

    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #2596be 100%);
    --gradient-background: linear-gradient(180deg,
            #070707 0%,
            #070707 30%,
            #070707 60%,
            #1a237e 80%,
            #1a237e 100%);
    --gradient-background-opposite: linear-gradient(180deg,
            #1a237e 0%,
            #0d1421 30%,
            #070707 60%,
            #070707 70%,
             #1a237e 100%);
    --gradient-text: linear-gradient(135deg, var(--ink) 0%, #2596be 100%);

    /* Typography - Keep essential navbar typography */
    --font-primary: 'Helvetica', Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing - Keep navbar-specific spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    --radius-full: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Enhanced Navigation Styles - Modern Glass Morphism Design */

/* Prevent any scrollbars in navigation */
/* Allow overlapping sections beneath navbar */
.header {
    overflow: visible !important;
}

/* Desktop Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none; /* Changed from 1200px to none for full width */
    margin: 0 auto;
    padding: 6px 8px; /* Further reduced right padding from 11px to 8px to move burger icon closer to right side */
    position: relative;
    z-index: 1000;
    background: #000000; /* Solid black background for better visibility */
    backdrop-filter: blur(10px);
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.8rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--acc) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--acc) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.logo-link:hover .logo::after {
    transform: scaleX(1);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
    opacity: 0.8;
    font-weight: var(--font-weight-medium);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-weight: var(--font-weight-regular);
    font-size: 0.95rem;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: none;
    outline: none;
}

.nav-link:focus,
.nav-link:focus-visible {
    outline: none;
    box-shadow: none;
}

.nav-link.active,
.nav-link:hover .nav-text {
    color: var(--acc);
    transform: translateY(-1px);
}

/* Removed visual artifacts for clicked state while maintaining functionality */
.nav-link.clicked .nav-text {
    color: var(--acc);
    transform: none; /* Removed translateY to prevent visual jumping */
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
 
    transition: left var(--transition-normal);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link.active {
    color: var(--acc);
}

.nav-text {
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.nav-link:hover .nav-text,
.nav-link.active .nav-text {
    background: #000000;
    color: var(--acc);
    transform: translateY(-1px);
}

/* Removed visual artifacts for clicked state while maintaining functionality */
.nav-link.clicked .nav-text {
    color: var(--acc);
    transform: none; /* Removed translateY to prevent visual jumping */
}

.nav-hover-effect {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--acc);
    transition: width var(--transition-normal);
    border-radius: 1px;
    z-index: 10;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Removed visual artifacts for clicked state while maintaining functionality */
.nav-link.clicked .nav-hover-effect {
    /* width: 80%; Removed to prevent dots from appearing */
    /* background: var(--acc) !important; Removed to prevent visual artifacts */
    width: 0; /* Keep width at 0 to prevent visual artifacts */
    background: transparent; /* Keep background transparent to prevent visual artifacts */
}



.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md); /* Reduced from var(--spacing-lg) to move burger icon closer to right side */
    z-index: 1001;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1.25rem; /* Reduced padding for a more compact look */
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient-primary);
    color: var(--ink);
    border: 2px solid var(--acc);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-width: 120px; /* Reduced minimum width */
    justify-content: center;
}

.nav-cta span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

/* Removed hover effect for Premium Client button as per user request */
.nav-cta:hover::before {
    left: -100%;
}

.nav-cta:hover {
    box-shadow: var(--shadow-button);
    border-color: var(--acc);
    transform: scale(1.05);
}

.nav-cta:active {
    transform: scale(0.95);
}

/* Ultra-wide screen optimizations (2560px+) */
@media (min-width: 2560px) {
    .nav {
        padding: 17px 22px; /* 30% reduction from 24px 32px */
        min-height: 28px; /* 30% reduction from 40px */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    }

    .logo {
        font-size: 2.2rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .nav-link:hover .nav-text,
    .nav-link.active .nav-text {
        color: var(--acc) !important;
        transform: translateY(-1px);
    }

    /* Enhanced Premium Client button for ultra-wide screens */
    .nav-cta {
        padding: 0.6rem 1.5rem; /* Reduced padding */
        font-size: 1rem;
        font-weight: var(--font-weight-bold);
        background: var(--gradient-primary);
        color: var(--ink);
        border: 2px solid var(--acc);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-button);
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        min-width: 130px; /* Reduced minimum width */
    }

    .nav-cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    /* Removed hover effect for Premium Client button on ultra-wide screens as per user request */
    .nav-cta:hover::before {
        left: -100%;
    }

    .nav-cta:hover {
        box-shadow: var(--shadow-button);
        border-color: var(--acc);
        transform: scale(1.05);
    }
    
    .nav-cta:active {
        transform: scale(0.95);
    }

    .nav-cta i {
        font-size: 1.2rem;
        margin-right: var(--spacing-sm);
    }
}

/* 1440px specific optimizations for better visibility */
@media (min-width: 1440px) and (max-width: 1919px) {
    .nav {
        padding: 5px 10px; /* 30% reduction from 16px 24px */
        min-height: 25px; /* 30% reduction from 35px */
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
        border-bottom: 2px solid var(--glass-border);
        background: #000000 !important; /* Ensure solid black background */
        backdrop-filter: blur(10px) !important;
    }

    .nav-brand {
        flex-shrink: 0;
    }

    .nav-menu {
        gap: var(--spacing-2xl);
        flex: 1;
        justify-content: center;
    }

    .nav-link {
        font-size: 1rem;
        padding: var(--spacing-md) var(--spacing-lg);
        font-weight: var(--font-weight-medium);
        color: var(--ink) !important; /* Ensure white text */
    }

    .nav-link:hover .nav-text,
    .nav-link.active .nav-text {
        color: var(--acc) !important;
        transform: translateY(-1px);
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 3px;
        color: var(--ink) !important; /* Ensure logo is white */
    }

    .nav-cta {
        min-width: 130px; /* Reduced width */
        padding: 0.6rem 1.25rem; /* Reduced padding */
        font-size: 1rem; /* Slightly smaller font */
        font-weight: var(--font-weight-bold);
        background: var(--gradient-primary);
        border: 2px solid var(--acc);
        box-shadow: 0 4px 15px rgba(37, 150, 190, 0.4);
        color: var(--ink) !important; /* Ensure button text is white */
    }

    /* Scale effect for Premium Client button on 1440px screens */
    .nav-cta:hover {
        box-shadow: 0 4px 15px rgba(37, 150, 190, 0.4);
        border-color: var(--acc);
        background: var(--gradient-primary);
        transform: scale(1.05);
    }
    
    .nav-cta:active {
        transform: scale(0.95);
    }

    .nav-cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .nav-cta:hover::before {
        left: -100%;
    }
}

.burger-icon {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    z-index: 1001;
    position: relative;
}

.burger-icon:hover {
    background: black !important;
}

.burger-line {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: all var(--transition-normal);
}

.burger-icon:hover .burger-line {
    background: var(--acc);
}

.burger-icon.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-icon.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-icon.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation - Base Rules (High Priority) */
.mobile-header-active {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important; /* Changed from right to left for better positioning */
    width: 320px !important;
    height: 100vh !important;
    background: var(--bg) !important;
    backdrop-filter: blur(20px) !important;
    border: none !important; /* Remove any border that might cause blue line */
    z-index: 10000 !important;
    transition: left 0.3s ease !important; /* Changed from right to left */
    padding: var(--spacing-xl) !important;
    overflow-y: hidden !important; /* Changed from auto to hidden to remove scrollbar */
    display: block !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    position: relative;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--acc);
    background: rgba(37, 150, 190, 0.1);
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--acc);
}

.mobile-header-active.sidebar-visible {
    left: 0 !important; /* Changed from right to left */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    /* Override any page-specific styles */
    position: fixed !important;
    top: 0 !important;
    min-width: 355px !important;
    height: 100vh !important;
    z-index: 10000 !important;
    background: #000 !important; /* Fallback background */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
    border: none !important; /* Remove any border that might cause blue line */
}

.body-overlay-1 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(7, 7, 7, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    display: none !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
}

.body-overlay-1.mobile-menu-active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
}

.mobile-menu-active {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Mobile Navigation Media Query Rules */
@media (max-width: 1020px) {
    /* Show burger icon */
    .burger-icon {
        display: flex !important;
        position: relative !important;
        z-index: 1001 !important;
    }

    /* Hide desktop navigation menu */
    .nav-menu {
        display: none !important;
    }

    /* Ensure mobile header is properly positioned */
    .mobile-header-active {
        width: 280px !important;
        left: -280px !important; /* Changed from right to left */
        z-index: 1000 !important;
        border: none !important; /* Remove any border that might cause blue line */
    }

    .mobile-header-active.sidebar-visible {
        left: 0 !important; /* Changed from right to left */
        border: none !important; /* Remove any border that might cause blue line */
    }

    /* Ensure overlay is visible */
    .body-overlay-1 {
        z-index: 999 !important;
    }

    /* Mobile nav header adjustments */
    .mobile-nav-header {
        padding: 15px !important;
    }

    .mobile-menu {
        padding: 0 15px !important;
    }

    .mobile-nav-link {
        padding: 12px 15px !important;
        font-size: 16px !important;
    }

    /* Force nav actions to show burger */
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important; /* Reduced from 10px to 5px to move burger icon closer to right side */
    }

    /* Enhanced mobile menu active state for smaller screens */
    body.mobile-menu-active {
        overflow: hidden !important;
    }

    .burger-icon.active {
        background: rgba(37, 150, 190, 0.2) !important;
    }

    .burger-icon.active .burger-line {
        background: var(--acc) !important;
    }
    
    /* Hide Book Now button in mobile view */
    .nav-cta {
        display: none !important;
    }
}

/* Additional fix for very small screens (320px and below) */
@media (max-width: 320px) {
    .mobile-header-active {
        width: 260px !important;
        left: -260px !important; /* Changed from right to left */
    }
    
}


/* Chauffeur-Alliance page specific fix */
body[class*="chauffeur"] .mobile-header-active,
body[class*="Chauffeur"] .mobile-header-active {
    left: -320px !important; /* Changed from right to left */
    width: 320px !important;
    transition: left 0.3s ease !important; /* Changed from right to left */
}

body[class*="chauffeur"] .mobile-header-active.sidebar-visible,
body[class*="Chauffeur"] .mobile-header-active.sidebar-visible {
    left: 0 !important; /* Changed from right to left */
}

/* Responsive Navigation - Consolidated from fleet.css */
@media (max-width: 1024px) {
    .nav {
        padding: var(--spacing-md) var(--spacing-md); /* Reduced right padding from var(--spacing-lg) to var(--spacing-md) */
        min-height: 8px; /* 90% reduction to match faq navbar */
    }

    .nav-menu {
        gap: var(--spacing-lg);
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo-subtitle {
        display: none; /* Hide logo subtitle on mobile devices */
    }

    .nav-cta span {
        display: none;
    }

    .nav-cta i {
        font-size: 1.2rem;
    }

    .nav-cta {
        display: none !important; /* Hide Book Now button in mobile view - Enhanced specificity */
    }
}

@media (max-width: 1020px) {
    .nav {
        padding: var(--spacing-md) var(--spacing-md); /* Reduced right padding from var(--spacing-lg) to var(--spacing-md) */
        min-height: 8px; /* 90% reduction to match faq navbar */
    }

    .nav-menu {
        gap: var(--spacing-md);
    }

    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        display: none; /* Hide logo subtitle on mobile devices */
    }

    .nav-cta {
        display: none; /* Hide Book Now button in mobile view */
    }
}

@media (max-width: 768px) {
    .nav {
        padding: var(--spacing-md) var(--spacing-sm); /* Reduced right padding from var(--spacing-lg) to var(--spacing-sm) */
        min-height: 6px; /* 90% reduction to match faq navbar */
        border-bottom: none !important;
    }

    .nav-menu {
        display: none;
    }

    .burger-icon {
        display: flex;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        display: none; /* Hide logo subtitle on mobile devices */
    }

    .nav-cta {
        display: none; /* Hide Book Now button in mobile view */
    }

    /* Hero section margin adjustment for mobile nav */
    .hero-section {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: var(--spacing-sm) var(--spacing-sm); /* Reduced right padding from var(--spacing-md) to var(--spacing-sm) */
        min-height: 5px; /* 90% reduction to match faq navbar */
    }

    .mobile-header-active {
        width: 280px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-subtitle {
        display: none; /* Hide logo subtitle on mobile devices */
    }

    .nav-cta {
        display: none; /* Hide Book Now button in mobile view */
    }

    .nav-cta i {
        font-size: 1rem;
    }
}

/* Enhanced Navigation Animation */
@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-header-active {
    animation: slideInRight 0.3s ease-out;
    overflow: hidden;
}

.mobile-header-active.sidebar-visible {
    animation: slideInRight 0.3s ease-out;
}

.body-overlay-1 {
    animation: fadeIn 0.3s ease-out;
}

/* Prevent horizontal scrolling when mobile menu is open */
.mobile-menu-active {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Enhanced Accessibility Features */
/* Focus styles for better keyboard navigation */
.mobile-nav-link:focus,
.nav-cta:focus,
.burger-icon:focus,
.mobile-menu-close:focus {
    outline: 2px solid var(--acc);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Enhanced mobile menu close button */
.mobile-menu-close {
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.8rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    overflow: hidden !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: var(--acc);
    background: rgba(37, 150, 190, 0.1);
    transform: scale(1.1);
}

.mobile-nav-header {
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}
