/* =========================================
   VARIABLES & GLOBAL SETTINGS
========================================= */
:root {
    --bg-primary: #0B0B0B;
    --bg-secondary: #161616;
    --bg-card: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --accent-primary: #00E5FF;
    --accent-secondary: #3B82F6;
    --accent-hover: #00F7FF;
    --border: #2D2D2D;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

.text-aqua { color: var(--accent-primary) !important; }
.bg-aqua { background-color: var(--accent-primary) !important; }
.text-secondary-light { color: var(--text-secondary); }
.bg-secondary-dark { background-color: var(--bg-secondary); }
.bg-primary-dark { background-color: var(--bg-primary); }
.section-padding { padding: 80px 0; }
.section-title { font-weight: 700; margin-bottom: 1rem; }

/* =========================================
   PRELOADER
========================================= */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   BUTTONS
========================================= */
.btn-aqua {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-aqua:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}
.btn-outline-aqua {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-outline-aqua:hover {
    background: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* =========================================
   GLASSMORPHISM & CARDS
========================================= */
.glass-card {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
}

/* =========================================
   TOP HEADER & NAVBAR
========================================= */
.top-bar {
    height: 40px;
    background: #050505;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.top-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.top-contact a:hover { color: var(--accent-primary); }
.top-socials a {
    color: var(--text-secondary);
    margin-left: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}
.top-socials a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px var(--accent-primary);
}

.navbar {
    transition: all 0.4s ease;
    padding: 20px 0;
    font-family: var(--font-body);
    font-weight: 600;
}
.navbar.scrolled {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-link {
    color: var(--text-secondary) !important;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.logo-img { max-height: 45px; object-fit: contain; }

/* =========================================
   HERO SECTION
========================================= */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1603584173870-7f23fdae1b7a?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11,11,11,0.6), #0B0B0B);
}
.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 24px;
    animation: bounce 2s infinite;
}
@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 
    40% { transform: translateY(-15px) translateX(-50%); } 
    60% { transform: translateY(-7px) translateX(-50%); } 
}

/* =========================================
   CARS & IMAGES
========================================= */
.car-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.car-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.car-card:hover .car-img-wrapper img {
    transform: scale(1.08);
}

.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }

/* =========================================
   FOOTER & BACK TO TOP
========================================= */
.footer-links a, .contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 2.2;
}
.footer-links a:hover, .contact-info a:hover {
    color: var(--accent-primary);
}
.footer-socials a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-primary);
    margin-right: 10px;
    transition: all 0.3s ease;
}
.footer-socials a:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0,229,255,0.5);
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar { background: rgba(11, 11, 11, 0.95) !important; padding: 15px 0; }
    .navbar-collapse {
        background: var(--bg-card);
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
    }
}
/* --- Global Variables for Theme Control --- */
:root {
    --bg-dark: #0B0B0B;
    --bg-darker: #050505;
    --accent-aqua: #00E5FF;
    --text-muted: #A0A0A0;
    --font-space: 'Space Grotesk', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* --- Top Header Styles --- */
.top-bar {
    background-color: var(--bg-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 42px;
    font-family: var(--font-inter);
    font-size: 0.85rem;
}

.top-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-contact a:hover {
    color: var(--accent-aqua);
}

.top-socials a {
    color: var(--text-muted);
    margin-left: 18px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.top-socials a:hover {
    color: var(--accent-aqua);
    transform: translateY(-2px);
}

/* --- Main Navbar Styles --- */
#mainNav {
    background-color: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Logo Sizing */
.logo-img {
    max-height: 45px;
    object-fit: contain;
    border-radius: 4px;
}

/* Navigation Links */
#mainNav .navbar-nav .nav-link {
    font-family: var(--font-space);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 18px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

/* Premium Animated Underline on Hover */
#mainNav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 0;
    height: 2px;
    background-color: var(--accent-aqua);
    transition: width 0.3s ease;
}

#mainNav .navbar-nav .nav-link:hover::after,
#mainNav .navbar-nav .nav-link.active::after {
    width: calc(100% - 36px);
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
    color: var(--accent-aqua) !important;
}

/* --- Premium Call-to-Action Button --- */
.btn-aqua {
    font-family: var(--font-space);
    background: transparent;
    color: var(--accent-aqua) !important;
    border: 1px solid var(--accent-aqua);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0; /* Boxy aesthetic fits premium cars better */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-aqua:hover {
    background: var(--accent-aqua);
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

/* Responsive Tweaks */
@media (max-width: 991.98px) {
    #mainNav {
        padding: 12px 0;
    }
    #mainNav .navbar-collapse {
        background: var(--bg-dark);
        margin-top: 15px;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    #mainNav .navbar-nav .nav-link::after {
        display: none; /* Turn off lines on mobile dropdowns */
    }
    .btn-aqua {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
}