﻿/* ==========================================================================
   NJ CAR RENTALS - PREMIUM DESIGN SYSTEM
   A Professional, Senior-Level Stylesheet
   ========================================================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */

:root {
    /* --- PRIMARY: Deep Navy --- */
    --color-primary: #0a192f;
    --color-primary-light: #112240;
    --color-primary-lighter: #1d3557;
    --color-primary-dark: #050a12;

    
    /* --- ACCENT: Sophisticated Gold --- */
    --color-accent: #d4af37;
    --color-accent-light: #e9c95d;
    --color-accent-dark: #b8962e;
    --color-accent-rgb: 212, 175, 55;
    
    /* --- SECONDARY: Soft Pink (Legacy Support) --- */
    --color-secondary: #ff8fa3;
    --color-secondary-light: #ffb3c1;
    --color-secondary-dark: #e84a6f;
    
    /* --- NEUTRAL COLORS --- */
    --color-neutral-50: #f8f9fa;
    --color-neutral-100: #e9ecef;
    --color-neutral-200: #dee2e6;
    --color-neutral-300: #ced4da;
    --color-neutral-400: #adb5bd;
    --color-neutral-500: #6c757d;
    --color-neutral-600: #495057;
    --color-neutral-700: #343a40;
    --color-neutral-800: #212529;
    --color-neutral-900: #0a0a0a;
    
    /* --- FUNCTIONAL COLORS --- */
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-danger: #ef4444;
    --color-danger-light: #f87171;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-info: #0ea5e9;
    --color-info-light: #38bdf8;
    
    /* --- BACKGROUND COLORS (THEMED) --- */
    --bg-body: #0a0f1a;
    --bg-card: #112240;
    --bg-card-hover: #1a2942;
    --bg-input: #1d3557;
    --bg-overlay: rgba(10, 25, 47, 0.85);
    
    /* --- TEXT COLORS --- */
    --text-primary: #f8f9fa;
    --text-secondary: #a0aec0;
    --text-muted: #6c757d;
    --text-inverse: #0a192f;
    
    /* --- BORDER COLORS --- */
    --border-color: #1d3557;
    --border-color-light: #2d4a6f;
    --border-accent: #d4af37;
    
    /* --- SHADOWS --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --shadow-glow-secondary: 0 0 20px rgba(255, 143, 163, 0.3);
    
    /* --- SPACING --- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* --- BORDER RADIUS --- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* --- TRANSITIONS --- */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* --- Z-INDEX SCALE --- */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* --- FONTS --- */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'Fira Code', monospace;
}

/* Light theme overrides */
[data-bs-theme="light"] {
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --bg-input: #f8f9fa;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --text-inverse: #ffffff;
    --border-color: #dee2e6;
    --border-color-light: #e9ecef;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* ========================================
   BASE STYLES
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    min-height: 100vh;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

/* ========================================
   GLASSMORPHISM UTILITIES
   ======================================== */

.glass {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-dark {
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

/* Primary Button - Gold Accent */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border: none;
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: var(--color-primary-light);
    border: 1px solid var(--border-color-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--color-primary-lighter);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Outline Primary */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow);
}

/* Outline Secondary */
.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--border-color-light);
    color: var(--text-secondary);
}

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

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--color-success-light) 0%, var(--color-success) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, #dc2626 100%);
    border: none;
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--color-danger-light) 0%, var(--color-danger) 100%);
    color: white;
    transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* Button Icon */
.btn i, .btn .bi {
    margin-right: var(--space-sm);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-light);
}

.card-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
    font-weight: 600;
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-lg);
}

/* Premium Card Variant */
.card-premium {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--color-primary-light) 100%);
    border: 1px solid var(--border-color-light);
    position: relative;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
}

/* Card Image */
.card-img, .card-img-top {
    border-radius: 0;
    object-fit: cover;
}

/* ========================================
   FORMS
   ======================================== */

.form-control, .form-select {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus, .form-select:focus {
    background: var(--bg-input);
    border-color: var(--color-accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    outline: none;
}

.form-control:disabled, .form-select:disabled {
    background: var(--bg-card);
    opacity: 0.6;
    cursor: not-allowed;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

/* Form Validation */
.form-control.is-invalid {
    border-color: var(--color-danger);
    background-image: none;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.invalid-feedback {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.form-control.is-valid {
    border-color: var(--color-success);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.valid-feedback {
    color: var(--color-success);
    font-size: 0.85rem;
}

/* Input Group */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control,
.input-group > .form-select {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-text {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: rgba(10, 25, 47, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent) !important;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-brand:hover {
    color: var(--color-accent-light) !important;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-inverse);
    font-size: 1.25rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    position: relative;
    transition: all var(--transition-base);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--color-accent);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: var(--space-sm);
    background: transparent !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--transition-base);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
    transition: all var(--transition-base);
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    margin-top: var(--space-sm);
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-item:hover, .dropdown-item:focus {
    background: var(--bg-input);
    color: var(--color-accent);
}

.dropdown-item.active, .dropdown-item:active {
    background: var(--color-accent);
    color: var(--text-inverse);
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: var(--space-xs) 0;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--text-secondary);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

footer a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: inline-block;
    padding: var(--space-xs) 0;
}

footer a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--text-inverse);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-xl);
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: var(--color-accent) !important;
    color: var(--text-inverse);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%) !important;
    color: var(--text-inverse);
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, #dc2626 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--color-info) 0%, #0284c7 100%) !important;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success-light);
    border-left: 4px solid var(--color-success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger-light);
    border-left: 4px solid var(--color-danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning-light);
    border-left: 4px solid var(--color-warning);
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-info-light);
    border-left: 4px solid var(--color-info);
}

/* ========================================
   TABLES
   ======================================== */

.table {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table > thead {
    background: var(--bg-card);
    color: var(--text-primary);
}

.table > thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    padding: var(--space-md);
}

.table > tbody > tr {
    transition: background var(--transition-fast);
}

.table > tbody > tr:hover {
    background: var(--bg-card-hover);
}

.table td {
    padding: var(--space-md);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    gap: var(--space-xs);
}

.page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.page-link:hover {
    background: var(--bg-input);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.page-item.active .page-link {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--text-inverse);
}

.page-item.disabled .page-link {
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-lg);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero-section {
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

/* Hero Search Box */
.search-box {
    background: rgba(17, 34, 64, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
}

.search-box .form-label {
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-box .form-control,
.search-box .form-select {
    background: var(--color-primary);
    border-color: var(--border-color-light);
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   VEHICLE CARDS
   ======================================== */

.vehicle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.vehicle-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.vehicle-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.vehicle-card:hover .vehicle-image-wrapper img {
    transform: scale(1.08);
}

.vehicle-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 2;
}

.vehicle-badge .badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vehicle-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.vehicle-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vehicle-meta-item i {
    color: var(--color-accent);
}

.vehicle-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.vehicle-price .price-period {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.vehicle-actions {
    margin-top: auto;
    display: flex;
    gap: var(--space-sm);
}

.vehicle-actions .btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-title span {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-item {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--text-inverse);
    margin: 0 auto var(--space-lg);
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Stats Section */
.stats-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2.5h-2V40h-2V20h-2v20h-2V20h-2v20h-2V20h-2v20h-2V20h-2v20H0v-2h20v-2H0v-2h20z' fill='%23d4af37' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
}

/* CTA Section */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-body);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.cta-title span {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text Colors */
.text-accent {
    color: var(--color-accent) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

/* Background Colors */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%) !important;
}

.bg-accent-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%) !important;
}

/* Border */
.border-accent {
    border-color: var(--color-accent) !important;
}

.border-bottom-accent {
    border-bottom: 2px solid var(--color-accent) !important;
}

/* Shadows */
.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.shadow-lg {
    box-shadow: var(--shadow-xl) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Staggered Animation */
.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--color-primary);
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
        margin-top: var(--space-md);
        border: 1px solid var(--border-color);
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-lighter);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-primary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-lighter) var(--color-primary-dark);
}

/* ========================================
   SELECTION STYLING
   ======================================== */

::selection {
    background: var(--color-accent);
    color: var(--text-inverse);
}

::-moz-selection {
    background: var(--color-accent);
    color: var(--text-inverse);
}

/* ========================================
   FOCUS VISIBLE
   ======================================== */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========================================
   BACK TO TOP
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.empty-state-description {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ========================================
   LOADING STATES
   ======================================== */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   THEME TRANSITION
   ======================================== */

.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .footer,
    .btn,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

