/* Setup & Variables */
:root {
    --bg-color: #fafafa;
    --text-primary: #111111;
    --text-secondary: #555555;
    --speed-yellow: #fded00; /* Vibrant SpeedBook Yellow from screenshot */
    --hover-yellow: #e6d600;
    --black-accent: #000000;
    --white-bg: #ffffff;
    --card-border: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-pill: 50px;
    --border-radius-card: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Authentic Background Watermark */
.watermark-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: var(--white-bg);
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08; /* Blends the dark image into a faint delicate grey watermark against the white body */
    mix-blend-mode: multiply;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--black-accent);
    color: #fff;
    transition: var(--transition);
}

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

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 200px;
    background-color: #111;
    box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.8);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #333;
}

.dropdown-content a {
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #222;
}
.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #222;
    color: var(--speed-yellow);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.lang-selector {
    background: transparent;
    color: white;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
}

.lang-selector option {
    color: #000;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.black-btn {
    background-color: #222;
    color: var(--white-bg);
    border: 1px solid #444;
}

.black-btn:hover {
    background-color: #333;
}

.primary-btn {
    background-color: var(--speed-yellow);
    color: var(--black-accent);
    box-shadow: 0 4px 15px rgba(253, 237, 0, 0.4);
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.primary-btn:hover {
    background-color: var(--hover-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 237, 0, 0.6);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    background-color: #050505;
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, #fafafa 100%),
        url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.hero-text p {
    font-size: 1.2rem;
    color: #eeeeee;
    margin-bottom: 2rem;
}

.khmer-subtext {
    font-size: 1rem;
    color: #cccccc;
}

/* Chips mimicking the welcome screen */
.feature-chips {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.chip {
    padding: 0.6rem 1.2rem;
    background: var(--white-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Realistic 3D Mockup */
.phone-mockup {
    width: 290px;
    height: 600px;
    margin: 0 auto;
    background: #111; /* Sleek black phone body */
    border-radius: 40px;
    padding: 10px; /* Thinner border layout typical of modern devices */
    position: relative;
    
    /* Simulate curved metallic rim reflection */
    box-shadow: 
        inset 0 0 0 1px #444,
        inset 0 0 4px 1px #222,
        -1px 2px 0 #333,
        -2px 4px 0 #333,
        -3px 6px 0 #222,
        -4px 8px 0 #222,
        -5px 10px 0 #111,
        -20px 30px 60px rgba(0,0,0,0.8);
    
    /* True 3D Perspective */
    transform: perspective(1200px) rotateX(10deg) rotateY(-18deg) rotateZ(5deg);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Interactive Hover effect to pivot the phone */
.phone-mockup:hover {
    transform: perspective(1200px) rotateX(4deg) rotateY(-5deg) rotateZ(1deg) translateY(-10px);
    box-shadow: 
        inset 0 0 0 1px #555,
        inset 0 0 4px 1px #222,
        -1px 5px 20px rgba(0,0,0,0.5),
        -10px 30px 70px rgba(0,0,0,0.9);
}

/* Dynamic Hardware Buttons for maximum realism */
.hw-button {
    position: absolute;
    background: #333;
    border-radius: 4px;
    /* Inset shadow simulates the metal edge curved highlights */
    box-shadow: inset -1px 0 2px rgba(255,255,255,0.2);
    z-index: -1; /* Let them extrude out the back gracefully */
}
.hw-button.mute { top: 90px; left: -3px; width: 3px; height: 25px; }
.hw-button.volume-up { top: 140px; left: -4px; width: 4px; height: 50px; }
.hw-button.volume-down { top: 200px; left: -4px; width: 4px; height: 50px; }
.hw-button.power { top: 160px; right: -4px; width: 4px; height: 65px; border-radius: 4px 0 0 4px; box-shadow: inset 1px 0 2px rgba(255,255,255,0.1); }

/* The Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

/* Glossy screen glass reflection overlay */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 40%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 20;
}

.phone-mockup .screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1; /* Below the notch and reflection */
}

/* App Header */
.app-top-bar {
    background: var(--speed-yellow);
    padding: 1.5rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Map area */
.map-placeholder {
    flex: 1;
    background-color: #E8ECEF; /* Soft map blue/grey */
    background-image: 
        linear-gradient(white 2px, transparent 2px),
        linear-gradient(90deg, white 2px, transparent 2px);
    background-size: 50px 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.address-toast {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.yellow-dot {
    width: 10px;
    height: 10px;
    background: var(--speed-yellow);
    border-radius: 50%;
}

/* App Bottom Panel */
.app-bottom-panel {
    background: var(--white-bg);
    padding: 1.5rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.ride-options {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.opt {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.opt.active {
    border: 2px solid var(--speed-yellow);
    box-shadow: 0 4px 10px rgba(253,237,0,0.2);
}

.car-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.opt .type {
    font-size: 0.8rem;
    font-weight: 700;
}

.opt .price {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

.book-btn {
    width: 100%;
    padding: 1rem;
    background: var(--black-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

/* Services */
.services {
    padding: 6rem 0;
    background: var(--white-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--speed-yellow);
    margin: 10px auto 0;
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    padding: 2.5rem 2rem;
    background: var(--white-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-card);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--speed-yellow);
}

.icon-wrap {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    height: 90px;
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0px 8px 12px rgba(0,0,0,0.15));
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateX(5px);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
}

/* Call Screen Demo */
.driver-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.driver-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.driver-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.driver-screen {
    width: 280px;
    height: 550px;
    background: var(--speed-yellow);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--white-bg);
    margin-bottom: 1.5rem;
    background-image: url('../images/driver.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-pic.ringing {
    animation: callPulse 2s infinite ease-out;
}

@keyframes callPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    100% { box-shadow: 0 0 0 40px rgba(255, 255, 255, 0); }
}

.driver-screen h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.driver-screen p {
    font-weight: 500;
    color: #444;
}

.call-timer {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.call-btn {
    width: 100%;
    padding: 1.2rem;
    background: #111;
    color: white;
    border: none;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.call-btn:hover { background: #333; }

.end-call-btn {
    width: 100%;
    padding: 1.2rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.driver-text {
    flex: 1;
}

.driver-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.driver-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Payments */
.payment {
    padding: 6rem 0;
    background: var(--white-bg);
}

.payment-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    background: var(--black-accent);
    color: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.payment-text {
    flex: 1;
    padding-right: 4rem;
}

.payment-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.payment-text p {
    color: #aaa;
}

.payment-methods {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.method-tag {
    padding: 1rem 1.5rem;
    background: #222;
    border: 1px solid #444;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.method-tag:hover {
    border-color: #777;
    transform: scale(1.05);
}

.highlight-tag {
    background: var(--speed-yellow);
    border-color: var(--speed-yellow);
    color: var(--black-accent);
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.company-name {
    color: #ccc;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.footer p {
    color: #888;
}

.logo-flex {
    display: flex;
    align-items: center;
}

.contact-list, .app-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 1rem;
    color: #aaa;
    line-height: 1.4;
}

.contact-list a, .app-list a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.contact-list a:hover, .app-list a:hover {
    color: var(--speed-yellow);
}

.app-list li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(253, 237, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(253, 237, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 237, 0, 0); }
}

.float-anim {
    animation: float 4s infinite alternate ease-in-out;
}

.pulse-anim {
    animation: pulse 2.5s infinite;
}

/* Custom Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Initial load animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

/* Responsive constraints */
@media (max-width: 900px) {
    .container { padding: 0 1.5rem; }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-text p {
        margin: 0 auto 2rem;
    }
    .feature-chips {
        justify-content: center;
        flex-wrap: wrap;
    }
    .cta-group {
        justify-content: center;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .driver-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .payment-content {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 2rem;
    }
    .payment-text {
        padding-right: 0;
        text-align: center;
    }
    .payment-methods {
        justify-content: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; 
    }
}

/* FAQ Accordion */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #eee;
}
.faq-question {
    padding: 20px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: #f1f1f1; }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: #555;
    line-height: 1.6;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}
.faq-icon { transition: transform 0.3s; font-size: 1.2rem; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
