/* Base Variables */
:root {
    --bg-dark: #0B0E14;
    --bg-card: #151821;
    --bg-card-hover: #1e222e;
    --primary-yellow: #FFD700;
    --primary-yellow-hover: #e5c100;
    --text-main: #FFFFFF;
    --text-muted: #A0AEC0;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 215, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(255, 215, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #F7FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #EDF2F7;
    --text-main: #1A202C;
    --text-muted: #4A5568;
    --border-glass: rgba(0, 0, 0, 0.1);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar {
    background: rgba(247, 250, 252, 0.95) !important;
}

/* Removed support-wrapper::before light mode override from here, replaced below */

body.light-mode .input-group input,
body.light-mode .input-group select,
body.light-mode .input-group textarea {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #1A202C !important;
}

body.light-mode .car-option {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
}

body.light-mode .support-form-container {
    background: rgba(247, 250, 252, 0.10) !important;
    border-left: 1px solid var(--border-glass);
}

body.light-mode .support-form h3 {
    color: #f7f9fd !important;
}

body.light-mode .footer {
    background: #E2E8F0;
    border-top-color: var(--border-glass);
}

body.light-mode .promo-highlight {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 215, 0, 0.1));
}

/* Maintain light text on dark image in hero */
body.light-mode .hero-text h1 {
    color: #FFFFFF;
}

body.light-mode .hero-text p {
    color: #F8FAFC;
}

body.light-mode .hero .btn-secondary {
    color: #FFFFFF;
}

/* Maintain support info text white on its background image */
body.light-mode .support-info h2,
body.light-mode .support-info p,
body.light-mode .support-info .contact-method h5,
body.light-mode .support-info .contact-method i {
    color: #FFFFFF;
}

body.light-mode .support-info .contact-method span {
    color: #E2E8F0;
}

/* Revert the support overlay to dark so images are consistent */
body.light-mode .support-wrapper {
    background: url('../support_bg.png') no-repeat center center/cover !important;
}

body.light-mode .support-wrapper::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.highlight {
    color: var(--primary-yellow);
}

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

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

.glass-panel {
    background: rgba(21, 24, 33, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hover-scale {
    transition: transform var(--transition-smooth), border-color var(--transition-fast);
}

.hover-scale:hover {
    transform: translateY(-5px);
    border-color: var(--border-focus);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: inherit;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: #000;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-yellow);
    border: 1px solid var(--primary-yellow);
}

.btn-outline:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
}

.brand img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-yellow);
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 1rem;
    border-left: 1px solid var(--border-glass);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../hero_bg.png') no-repeat center center/cover;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 14, 20, 0.98) 0%, rgba(11, 14, 20, 0.6) 100%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Booking Card */
.booking-card {
    padding: 2.5rem;
    position: relative;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--border-focus) 0%, transparent 50%);
    border-radius: 13px;
    z-index: -1;
}

.booking-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.input-group textarea {
    padding: 1rem;
    resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-glow);
}

.car-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.car-option {
    flex: 1;
    text-align: center;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.car-option i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.car-option.active {
    border-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.05);
}

.car-option.active i,
.car-option.active span {
    color: var(--primary-yellow);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.alt-bg {
    background-color: rgba(255, 255, 255, 0.015);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-header.text-center p {
    margin: 0 auto;
}

/* Promo Grid */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.promo-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.promo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-yellow);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.promo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.promo-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.promo-highlight {
    background: linear-gradient(145deg, rgba(21, 24, 33, 0.9), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.about-team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.about-image:hover .about-team-img {
    transform: scale(1.05);
}



.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question i {
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-smooth);
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-yellow);
}

/* Support Section */
.support-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    background: url('../support_bg.png') no-repeat center center/cover;
    position: relative;
    border: none;
}

.support-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

.support-info,
.support-form-container {
    position: relative;
    z-index: 1;
}

.support-info {
    padding: 3rem;
    background: transparent;
}

.support-form-container {
    padding: 3rem;
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(4px);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-method i {
    color: var(--primary-yellow);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-method h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-method span {
    color: var(--text-muted);
}

.support-form-container {
    padding: 3rem;
}

.support-form h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.support-form .input-group input,
.support-form .input-group select {
    padding-left: 1rem;
}

/* Footer */
.footer {
    background: #06080A;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 1rem 0;
    max-width: 300px;
}

.footer-logo {
    height: 40px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: #000;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-newsletter p {
    color: var(--text-muted);
    margin: 1rem 0;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    width: 100%;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    width: 100%;
    max-width: 600px;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
    background: var(--bg-card);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header .close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-header .close-modal:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h4 {
    margin: 1rem 0 0.5rem;
    color: #06080A;
}

.modal-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--primary-yellow);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    animation: slideIn 0.3s forwards;
    min-width: 250px;
}

.toast h5 {
    margin-bottom: 0.25rem;
}

.toast p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-content,
    .about-grid,
    .support-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-bg {
        background: linear-gradient(to bottom, rgba(11, 14, 20, 0.95), rgba(11, 14, 20, 0.8));
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .support-wrapper {
        border-radius: 12px;
    }

    .support-info {
        padding: 2rem;
    }

    .hero {
        padding-top: 100px;
    }
}