:root {
    --primary-color: #FFCA20;
    --primary-dark: #E6B51D;
    --dark-bg: #121212;
    --text-dark: #000000;
    --text-light: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #888888;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(255, 202, 32, 0.3);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-light);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 1.8rem;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-top: 15px;
    padding: 10px 0;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(10px);
    transition: var(--transition);
    opacity: 0;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.dropdown-content a i {
    font-size: 1.2rem;
}

.auth-btns {
    display: flex;
    gap: 1rem;
}

.nav-auth-mobile {
    display: none;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 202, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--text-dark);
    border-color: var(--text-light);
    transform: translateY(-3px) scale(1.02);
}

.btn i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn:hover i {
    transform: scale(1.2);
}

/* Specific Download Button Styles */
.btn-download-user {
    background: linear-gradient(135deg, #FFD54F, #FFCA20);
    color: var(--text-dark);
}

.btn-download-driver {
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-download-driver:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/rickshaw-hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 10% 5rem;
    color: var(--text-light);
    margin-top: 0;
}

.hero-content {
    max-width: 1000px;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.store-btn {
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.store-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.store-btn img {
    display: block;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

/* Secondary Pages Layout */
.page-header {
    background: var(--primary-color);
    padding: 8rem 10% 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

.content-section {
    padding: 5rem 10%;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    color: #444;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Bidding Steps */
.bidding-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 0 5%;
}

.step-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 202, 32, 0.4);
}

.step-card i {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    display: block;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.step-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections */
section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--gray-light);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.service-icon i {
    display: inline-block;
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    transform: scale(1.2) rotate(5deg);
}

/* Footer */
footer {
    background: #222;
    color: white;
    padding: 4rem 10% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        order: 2;
    }

    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--text-light);
        transition: var(--transition);
        z-index: 999;
        padding: 2rem;
        box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.05);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    .auth-btns {
        display: none;
        /* Hide original auth btns in mobile header */
    }

    /* Move auth buttons into the nav for mobile */
    .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
        align-items: center;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 10%;
    }

    .section-title {
        font-size: 2rem;
    }

    .negotiation {
        padding: 4rem 5%;
    }

    .sharing {
        padding: 4rem 5%;
        text-align: center;
    }

    .sharing h2 {
        font-size: 2.5rem;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.toast-details {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 1rem;
    margin: 0;
}

.toast-message {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    padding: 4px;
}

.toast-close:hover {
    opacity: 1;
    color: #ff4444;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.toast.show .toast-progress {
    animation: progress 5s linear forwards;
}

@media (max-width: 768px) {
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(200%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}