:root {
    --bg-color: #08080C;
    --surface-color: #12121A;
    --surface-light: #1A1A24;
    --border-color: #252532;
    --rider-primary: #FF6B35;
    --rider-light: #FF8C5A;
    --driver-primary: #00B4A0;
    --driver-light: #00D4BE;
    --text-primary: #FFFFFF;
    --text-muted: #6B6B80;
    --glass-bg: rgba(26, 26, 36, 0.6);
    --glass-hover: rgba(36, 36, 48, 0.6);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --hero-shadow: rgba(0, 0, 0, 0.5);
    --navbar-bg: rgba(8, 8, 12, 0.8);
    --navbar-bg-scroll: rgba(8, 8, 12, 0.95);
    --glow-orb-opacity: 0.5;
    --ride-glow: rgba(0, 180, 160, 0.1);
    --ride-icon-bg: rgba(0, 180, 160, 0.15);
    --rider-step-bg: rgba(255, 107, 53, 0.2);
    --driver-step-bg: rgba(0, 180, 160, 0.2);
    --rider-benefit-bg: rgba(255, 107, 53, 0.15);
    --vehicle-hover-shadow: rgba(0, 180, 160, 0.1);
    
    --transition: all 0.3s ease;
}

/* =============== LIGHT MODE =============== */
[data-theme="light"] {
    --bg-color: #FAFBFE;
    --surface-color: #F0F2F8;
    --surface-light: #E8EBF3;
    --border-color: #D5D9E5;
    --rider-primary: #E85D2A;
    --rider-light: #FF7A4D;
    --driver-primary: #009E8C;
    --driver-light: #00C4AF;
    --text-primary: #1A1D2E;
    --text-muted: #6C7293;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-hover: rgba(255, 255, 255, 0.9);
    --card-shadow: rgba(0, 0, 0, 0.06);
    --hero-shadow: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(250, 251, 254, 0.85);
    --navbar-bg-scroll: rgba(250, 251, 254, 0.95);
    --glow-orb-opacity: 0.2;
    --ride-glow: rgba(0, 158, 140, 0.06);
    --ride-icon-bg: rgba(0, 158, 140, 0.1);
    --rider-step-bg: rgba(232, 93, 42, 0.12);
    --driver-step-bg: rgba(0, 158, 140, 0.12);
    --rider-benefit-bg: rgba(232, 93, 42, 0.1);
    --vehicle-hover-shadow: rgba(0, 158, 140, 0.08);
}

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

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

body {
    overflow-x: hidden;
}

/* Typography elements */
h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; }
h2 { font-size: 2.5rem; margin-bottom: 16px; font-weight: 700; }
h3 { font-size: 1.5rem; margin-bottom: 12px; font-weight: 600; }
p { font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--rider-primary), var(--driver-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 5%;
    transition: background 0.4s ease, border-color 0.4s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span {
    color: var(--rider-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    gap: 12px;
}

.mobile-theme-toggle {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--rider-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: var(--rider-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--driver-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 180, 160, 0.3);
}

.btn-secondary:hover {
    background: var(--driver-light);
    transform: translateY(-2px);
}

.btn-outline {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
}

.btn-outline:hover {
    background: var(--surface-light);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--surface-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.hero-subtitle {
    margin-bottom: 40px;
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 40px var(--hero-shadow);
    z-index: 2;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: var(--glow-orb-opacity);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.glow-orb.orange {
    background: var(--rider-primary);
    top: -50px;
    left: -50px;
}

.glow-orb.teal {
    background: var(--driver-primary);
    bottom: -50px;
    right: -50px;
}

/* Explore Shuttle Section */
.explore-shuttle {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.explore-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.explore-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.explore-row.reverse {
    flex-direction: row-reverse;
}

.explore-text {
    flex: 1;
}

.explore-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.explore-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.explore-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.explore-image img {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px var(--card-shadow);
    transition: var(--transition);
}

.explore-image img:hover {
    transform: translateY(-10px);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 40px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--text-muted);
    background: var(--glass-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

/* Ride Types */
.ride-types {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.types-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.ride-card {
    padding: 30px;
    transition: var(--transition);
    border-top: 4px solid var(--driver-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ride-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, var(--ride-glow), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.ride-card:hover {
    transform: translateY(-10px);
    border-color: var(--driver-light);
    background: var(--glass-hover);
}

.ride-card:hover::before {
    opacity: 1;
}

.ride-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--ride-icon-bg);
    color: var(--driver-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    z-index: 1;
}

.ride-icon svg {
    width: 24px;
    height: 24px;
}

.ride-card-content {
    z-index: 1;
}

.ride-card-content h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Vehicles */
.vehicles {
    padding: 100px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface-light);
    border-radius: 40px;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    text-align: center;
}

.vehicle-card {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-10px);
    border-color: var(--driver-primary);
    box-shadow: 0 10px 20px var(--vehicle-hover-shadow);
}

.vehicle-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.vehicle-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* How It Works Tabs */
.how-it-works {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: var(--surface-light);
    color: var(--text-muted);
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn.active.rider-tab {
    background: var(--rider-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.tab-btn.active.driver-tab {
    background: var(--driver-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 180, 160, 0.3);
}

.tab-content {
    display: none;
    padding: 60px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.steps-list {
    list-style: none;
    margin-top: 30px;
}

.steps-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rider-steps .step-num {
    background: var(--rider-step-bg);
    color: var(--rider-primary);
}

.driver-steps .step-num {
    background: var(--driver-step-bg);
    color: var(--driver-primary);
}

.floating-img {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px var(--card-shadow);
    animation: floating 6s ease-in-out infinite;
}

/* Benefits Box */
#rider-content .tab-grid {
    align-items: flex-start;
}

.rider-benefits-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.benefits-box {
    width: auto;
    margin-top: 0;
}

.benefits-list {
    list-style: none;
    margin-top: 30px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon.rider-icon {
    background: var(--rider-benefit-bg);
    color: var(--rider-primary);
}

.benefit-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Rider Slider */
.rider-slider {
    position: relative;
}

.rider-slide {
    display: none;
    animation: slideIn 0.5s ease;
    position: relative;
}

.rider-slide.active {
    display: block;
}

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

/* Slide Navigation Arrows */
.rider-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--rider-primary);
    background: var(--surface-light);
    color: var(--rider-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

.rider-slide-arrow svg {
    width: 22px;
    height: 22px;
}

.rider-slide-arrow:hover {
    background: var(--rider-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.35);
}

.rider-slide-next {
    right: -16px;
}

.rider-slide-prev {
    left: -16px;
}

/* Slide Dot Indicators */
.rider-slide-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot.active {
    background: var(--rider-primary);
    width: 28px;
    border-radius: 5px;
}

.slide-dot:hover {
    background: var(--rider-light);
}

/* Get Started Cards */
.get-started-container {
    text-align: center;
}

.get-started-header {
    margin-bottom: 40px;
}

.get-started-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.get-started-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.get-started-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.get-started-card {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 24px 28px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.get-started-card:hover {
    transform: translateY(-6px);
    border-color: var(--rider-primary);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.1);
}

.get-started-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--rider-benefit-bg);
    color: var(--rider-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.get-started-icon svg {
    width: 28px;
    height: 28px;
}

.get-started-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rider-step-bg);
    color: var(--rider-primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.get-started-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.get-started-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Store Badges */
.store-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.store-badge svg {
    width: 14px;
    height: 14px;
}

.store-badge:hover {
    border-color: var(--rider-primary);
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* =============== THEME TOGGLE BUTTON =============== */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--surface-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--rider-primary);
    background: var(--surface-color);
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 107, 53, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

/* Dark mode (default): show moon, hide sun */
.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Smooth theme transition on all elements */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.5s ease,
                color 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease,
                opacity 0.5s ease !important;
}

/* Light mode gradient text adjustment */
[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, var(--rider-primary), var(--driver-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light mode hero image shadow softened */
[data-theme="light"] .hero-image {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Light mode vehicles section */
[data-theme="light"] .vehicles {
    background: var(--surface-light);
}

/* Light mode button shadow adjustments */
[data-theme="light"] .btn-primary {
    box-shadow: 0 8px 24px rgba(232, 93, 42, 0.25);
}

[data-theme="light"] .btn-secondary {
    box-shadow: 0 8px 24px rgba(0, 158, 140, 0.25);
}

[data-theme="light"] .tab-btn.active.rider-tab {
    box-shadow: 0 8px 24px rgba(232, 93, 42, 0.25);
}

[data-theme="light"] .tab-btn.active.driver-tab {
    box-shadow: 0 8px 24px rgba(0, 158, 140, 0.25);
}

/* Animations */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-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 Queries */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    .hero-cta { justify-content: center; }
    .hero-image { transform: none; }
    .hero-image:hover { transform: none; }
    .explore-row {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .explore-row.reverse {
        flex-direction: column;
    }
    .tab-grid {
        grid-template-columns: 1fr;
    }
    .get-started-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .rider-slide-next {
        right: -8px;
    }
    .rider-slide-prev {
        left: -8px;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
    .nav-links .theme-toggle { display: none; }
    .mobile-theme-toggle { display: flex !important; }
    .hero-cta { flex-direction: column; }
    .tab-btn { padding: 12px 24px; font-size: 1rem; }
    .footer-content { grid-template-columns: 1fr; }
    .tab-content { padding: 40px 20px; }
    .rider-slide-arrow {
        width: 40px;
        height: 40px;
    }
    .rider-slide-arrow svg {
        width: 18px;
        height: 18px;
    }
    .rider-slide-next {
        right: -4px;
    }
    .rider-slide-prev {
        left: -4px;
    }
}
