/* ZoomHub Master CSS Stylesheet - Premium & High-Tech Aesthetics */
:root {
    --primary-color: #1E3A8A; /* Royal Blue */
    --secondary-color: #F97316; /* Solar Orange */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --bg-dark: #09090b;
    --bg-light: #ffffff;
    --card-bg-dark: rgba(20, 20, 25, 0.7);
    --card-bg-light: rgba(245, 245, 250, 0.8);
    --card-border-dark: rgba(255, 255, 255, 0.08);
    --card-border-light: rgba(0, 0, 0, 0.06);
    --text-dark: #f4f4f5;
    --text-light: #18181b;
    --text-muted-dark: #a1a1aa;
    --text-muted-light: #71717a;
    
    /* Active State Vars */
    --current-bg: var(--bg-dark);
    --current-card-bg: var(--card-bg-dark);
    --current-card-border: var(--card-border-dark);
    --current-text: var(--text-dark);
    --current-text-muted: var(--text-muted-dark);
    --shadow-color: rgba(0, 0, 0, 0.5);
    
    /* Adaptive Element Variables */
    --header-bg: rgba(9, 9, 11, 0.7);
    --footer-bg: rgba(9, 9, 11, 0.8);
    --about-hero-bg: linear-gradient(180deg, rgba(15,12,22,0.6) 0%, rgba(12,10,15,0.9) 100%);
    --input-bg: rgba(255, 255, 255, 0.05);
    
    --transition-speed: 0.3s;
    --border-radius: 16px;
}

body.light-theme, html.light-theme {
    --current-bg: #f8fafc;
    --current-card-bg: var(--card-bg-light);
    --current-card-border: var(--card-border-light);
    --current-text: var(--text-light);
    --current-text-muted: var(--text-muted-light);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --header-bg: rgba(248, 250, 252, 0.7);
    --footer-bg: rgba(248, 250, 252, 0.8);
    --about-hero-bg: linear-gradient(180deg, rgba(220, 225, 235, 0.6) 0%, rgba(240, 244, 248, 0.9) 100%);
    --input-bg: rgba(0, 0, 0, 0.03);
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--current-bg);
    color: var(--current-text);
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    line-height: 1.6;
}

/* Background Gradients */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(249, 115, 22, 0.08) 0px, transparent 50%);
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--current-card-border);
    transition: background var(--transition-speed) ease, border-bottom var(--transition-speed) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo img {
    height: 40px;
    object-fit: contain;
}

.brand-logo span {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    direction: ltr; /* Force English words order to be Zoom first, then Hub */
}

.brand-zoom {
    color: #ffffff; /* White in dark theme */
    transition: color var(--transition-speed) ease;
}

.brand-hub {
    color: #3b82f6; /* Blue in both themes */
    transition: color var(--transition-speed) ease;
}

/* Light Theme overrides for brand text */
body.light-theme .brand-zoom, html.light-theme .brand-zoom {
    color: #18181b; /* Dark text in light theme */
}

nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--current-text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.3s;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--current-text);
}

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

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

.btn-theme-toggle {
    background: transparent;
    border: 1px solid var(--current-card-border);
    color: var(--current-text);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.btn-theme-toggle:hover {
    background: var(--current-card-border);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--current-card-bg);
    border: 1px solid var(--current-card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--current-card-border);
    color: var(--current-text);
}

.btn-outline:hover {
    background: var(--current-card-border);
    border-color: var(--current-text);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white !important;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.02);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    padding: 180px 0 100px;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--current-text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    width: 60%;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-title p {
    color: var(--current-text-muted);
    margin-top: 15px;
}

/* Fleet / Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.car-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.car-image-container {
    width: 100%;
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--current-card-border);
    padding: 10px;
    position: relative;
}

.car-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform var(--transition-speed);
}

.car-card:hover .car-image-container img {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.car-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.car-header h3 {
    font-size: 20px;
    font-weight: 800;
}

.car-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary-color);
}

.car-price span {
    font-size: 12px;
    color: var(--current-text-muted);
    font-weight: 400;
}

.car-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0 20px;
    border-top: 1px solid var(--current-card-border);
    border-bottom: 1px solid var(--current-card-border);
    padding: 12px 0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--current-text-muted);
}

.spec-item i {
    font-size: 14px;
    color: var(--current-text);
    margin-bottom: 5px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 14px;
    color: var(--current-text-muted);
}

/* Car Details Page */
.details-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr;
    gap: 40px;
    padding-top: 100px;
}

.details-image-card {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    min-height: 400px;
}

.details-image-card img {
    max-width: 90%;
    max-height: 350px;
    object-fit: contain;
}

.details-content-card {
    padding: 40px;
}

.details-header {
    border-bottom: 1px solid var(--current-card-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.details-header h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
}

.details-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.details-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--current-card-border);
    padding: 10px 15px;
    border-radius: 8px;
}

.details-spec-item i {
    color: var(--secondary-color);
}

.details-description {
    color: var(--current-text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--current-card-border);
    color: var(--current-text);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: #3b82f6;
    background: rgba(255,255,255,0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Grid layout for dates */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Login Page */
.login-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.login-card {
    max-width: 450px;
    width: 100%;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 900;
}

.login-header p {
    font-size: 13px;
    color: var(--current-text-muted);
    margin-top: 5px;
}

/* Toast/Alert Notifications */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid #10b981; color: #10b981; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; }

/* Footer */
footer {
    border-top: 1px solid var(--current-card-border);
    padding: 50px 0;
    background: var(--footer-bg);
    backdrop-filter: blur(8px);
    margin-top: 80px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container p {
    font-size: 14px;
    color: var(--current-text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--current-text-muted);
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3b82f6;
}

/* Filters for Fleet page */
.filters-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--current-card-border);
    background: transparent;
    color: var(--current-text-muted);
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Mobile responsive fixes */
@media (max-width: 968px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 40px;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    .btn {
        width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
