/* OSM Electric Mobility — Premium Green + White Automotive Theme */

:root {
    --primary-green: #0B6B3A;
    --deep-green: #064A2B;
    --accent-green: #19A463;
    --soft-green: #E8F5EE;
    --white: #FFFFFF;
    --off-white: #F7FAF8;
    --dark-text: #101513;
    --secondary-text: #5F6964;
    --border-color: #DCE7E1;
}

/* Base resets & smooth rendering */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--white);
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Navbar Scrolled Adaptive Style */
#navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Scrolled text & button colors */
#navbar.navbar-scrolled #nav-logo-text {
    color: var(--primary-green);
}

#navbar.navbar-scrolled .nav-link {
    color: var(--secondary-text);
}

#navbar.navbar-scrolled .nav-link:hover {
    color: var(--primary-green);
}

#navbar.navbar-scrolled #mobile-menu-toggle {
    color: var(--dark-text);
}

#navbar.navbar-scrolled #nav-cta {
    color: var(--white);
    border-color: var(--primary-green);
    background-color: var(--primary-green);
}

#navbar.navbar-scrolled #nav-cta:hover {
    color: var(--white);
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

/* Vehicles Dropdown Menu Styling */
#vehicles-dropdown-menu {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#navbar.navbar-scrolled #vehicles-dropdown-btn {
    color: var(--secondary-text);
}

#navbar.navbar-scrolled #vehicles-dropdown-btn:hover {
    color: var(--primary-green);
}

#navbar.navbar-scrolled #vehicles-dropdown-menu {
    background-color: rgba(16, 21, 19, 0.98);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Vignette & Gradient Overlay */
.hero-vignette {
    background: radial-gradient(circle at center, transparent 35%, rgba(6, 74, 43, 0.4) 85%);
}

/* Scroll Line Pulsing Animation */
@keyframes scrollPulse {
    0% {
        transform: scaleY(0.4);
        transform-origin: top;
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
    100% {
        transform: scaleY(0.4);
        transform-origin: bottom;
        opacity: 0.4;
    }
}

.scroll-line-anim {
    animation: scrollPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Nav Link Hover Underline Indicator */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Vehicle Image Framing & Aspect Ratio Controls */
.vehicle-img-contain {
    object-fit: contain !important;
    object-position: center center !important;
    max-width: 100%;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.vehicle-stage-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 240px;
    max-height: 360px;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .vehicle-stage-container {
        min-height: 280px;
        max-height: 400px;
    }
}

/* Hide Scrollbar for Vehicle Selector */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Range Input Styling for EMI Calculator */
input[type=range] {
    height: 6px;
    -webkit-appearance: none;
    background: var(--border-color);
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(11, 107, 58, 0.4);
    transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Interactive Horizontal Gallery Marquee */
.gallery-marquee-track {
    display: flex;
    width: max-content;
}

/* Accessibility & Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
    .scroll-line-anim {
        animation: none;
    }
    
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Typography Base & Touch Target Enhancements */
body {
    font-size: 1rem;
    line-height: 1.65;
}

/* Touch Targets & Form Controls */
select, input[type="text"], input[type="tel"], input[type="email"], textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
    min-height: 44px;
}

button, .tenure-btn, #form-submit-btn, #whatsapp-direct-btn {
    min-height: 44px;
}

/* Fleet Showcase Mobile Responsiveness Adjustments */
@media (max-width: 639px) {
    #fleet #stage-prev-btn,
    #fleet #stage-next-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    #showroom-stage-visual img {
        max-height: 170px !important;
    }

    #vehicle-selector-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    #fleet .rounded-2xl {
        padding: 0.75rem !important;
    }

    #showcase-spec-strip {
        padding: 0.5rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    #showcase-name {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }

    #showcase-price {
        font-size: 1.125rem !important;
    }
}



/* ==========================================================================
   INTELLIGENT ELECTRIC MOBILITY SECTION STYLES
   ========================================================================== */
#tech-mobile-carousel {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#tech-mobile-carousel::-webkit-scrollbar {
    display: none;
}

.tech-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #23352B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    position: relative;
    padding: 0;
}

.tech-dot::before {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -8px;
    right: -8px;
}

.tech-dot.is-active {
    width: 10px;
    height: 10px;
    background-color: #19A463;
    border-color: #19A463;
    box-shadow: 0 0 8px rgba(25, 164, 99, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    #tech-mobile-carousel {
        scroll-behavior: auto !important;
    }
    .tech-dot,
    .tech-content-fade,
    .osm-tech-card,
    .osm-tech-mobile-card {
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   OSM INTELLIGENCE (TECHNOLOGY) INTERACTIVE SHOWCASE
   ========================================================================== */
.tech-content-fade {
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-content-fade.is-transitioning {
    opacity: 0;
    transform: translateY(6px);
}

.osm-tech-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: left;
}

.osm-tech-card:hover {
    border-color: rgba(25, 164, 99, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(25, 164, 99, 0.2);
}

.osm-tech-card:focus-visible {
    outline: 2px solid #19A463;
    outline-offset: 2px;
}

.osm-tech-mobile-card {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: left;
}

.osm-tech-mobile-card.is-active {
    border-color: #19A463 !important;
    background-color: rgba(25, 164, 99, 0.12) !important;
    box-shadow: 0 0 15px rgba(25, 164, 99, 0.3);
}

/* ==========================================================================
   VIDEO SHOWCASE (OSM IN MOTION) SECTION STYLES
   ========================================================================== */
#video-showcase iframe {
    transition: opacity 0.25s ease;
}

#video-showcase .aspect-video {
    aspect-ratio: 16 / 9;
}

/* Playlist custom slim scrollbar */
.osm-video-playlist {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.osm-video-playlist::-webkit-scrollbar {
    width: 6px;
}

.osm-video-playlist::-webkit-scrollbar-track {
    background: transparent;
}

.osm-video-playlist::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 9999px;
}

.osm-video-playlist::-webkit-scrollbar-thumb:hover {
    background-color: #94A3B8;
}

/* Video playlist item interactive states */
.osm-video-item {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.osm-video-item.is-active {
    border-color: #2563EB !important;
    background-color: #EFF6FF !important;
    box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.12), 0 1px 2px -1px rgba(37, 99, 235, 0.08);
}

.osm-video-item.is-active .osm-video-item-title {
    color: #1E3A8A !important;
}

.osm-video-item.is-active .osm-video-play-badge {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
}




