:root {
    --accent-color: #40E0D0;
    /* Turquoise */
    --accent-glow: rgba(64, 224, 208, 0.4);
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #e0e0e0;
    --surface-color: #111111;
    --border-color: #222222;
    --svg-color: #333333;
    --scene-man: #40E0D0;

    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-color), transparent);
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger-btn:hover span {
    background-color: var(--accent-color);
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

select,
button {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

select:hover,
button:hover {
    border-color: var(--accent-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--surface-color);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: right;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    padding: 0;
}

.nav-links {
    list-style: none;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 900;
    transition: opacity 0.4s;
    backdrop-filter: blur(3px);
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Static Background image */
.static-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('user_bg.jpg');
    /* Updated to use the user's uploaded image */
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* Optional: reduce opacity based on theme bg-color to ensure text readability */
    opacity: 0.8;
}

/* Main Content Layout */
main {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    padding: 1.5rem 5%;
    /* Reduced to minimize vertical gap */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center content horizontally */
}

.hero-section {
    min-height: 100vh;
    /* Keep hero full-screen as it is the landing view */
    padding-top: 80px;
}

.content {
    background: rgba(var(--bg-color), 0.85);
    /* Increased opacity from 0.7 to 0.85 for better readability */
    backdrop-filter: blur(12px);
    /* Slightly increased blur */
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* Darkened shadow for better separation */
    max-width: 800px;
    width: 100%;
    text-align: center;
    /* Center text by default in all blocks */
}

/* Override background for lighter themes to ensure readability */
[data-theme="theme-5"] .content,
[data-theme="theme-6"] .content,
[data-theme="theme-7"] .content {
    background: rgba(255, 255, 255, 0.95);
    /* Increased opacity for light themes */
}

.align-center {
    text-align: center;
    margin: 0 auto;
}

/* Typography & Visuals */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 2rem auto;
    /* Center the quote box itself */
    text-align: left;
    max-width: 600px;
}

.feature-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.stats-grid,
.rider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
    border-color: var(--accent-color);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.rider-item {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.rider-icon {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.safety-highlight {
    background: var(--accent-glow);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.price-card.primary {
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(64, 224, 208, 0.1) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.price-card .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 1.5rem 0;
}

/* Floating button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-btn.visible {
    opacity: 1;
    visibility: visible;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.font-bold {
    font-weight: bold;
}

/* Footer Styles */
.site-footer {
    background: rgba(var(--surface-color), 0.9);
    backdrop-filter: blur(15px);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery Carousel Styles */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 0 10px;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease-in-out;
}

.carousel-btn {
    background: rgba(var(--surface-color), 0.8);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 0 0 calc(50% - 0.75rem);
    /* Default: Show 2 images */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.gallery-item:hover .overlay-icon {
    opacity: 1;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    transition: color 0.3s;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-nav:hover {
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.6);
}

.lightbox-nav.prev {
    left: -80px;
}

.lightbox-nav.next {
    right: -80px;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .section {
        padding: 80px 5%;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 100%;
        /* Show 1 image on mobile */
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .content {
        padding: 1.5rem;
        background: rgba(var(--bg-color), 0.85);
        /* more opaque on smaller screens */
    }

    .header {
        padding: 1rem;
    }
}

/* Lightbox refinements */

/* Lightbox refinements */
#lightbox-video {
    outline: none;
    border-radius: 8px;
    background: #000;
}



.gallery-item.video .overlay-icon {
    opacity: 0.8;
    color: var(--accent-color);
}

.gallery-item.video:hover .overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(25, 25, 25, 0.95);
    padding: 2.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-buttons {
    margin-top: 2rem;
    text-align: right;
}



/* Legal Documents Styles */
.legal-content {
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.scroll-box {
    overflow-y: auto;
    padding-right: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.scroll-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.scroll-box h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.scroll-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-legal {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 0.5rem;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.disclaimer {
    font-style: italic;
    opacity: 0.8;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-color);
}