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

:root {
    --primary-color: #939393;
    --accent-color: #00CF32;
    --dark-navy: #000B1B;
    --dark-bg: #000000;
    --driver-bg: #f5f9fc;
    --text-dark: #333333;
    --text-black: #000000;
    --white: #ffffff;
    --light-bg: #f6f9fe;
    --shadow: 0px 20px 50px 0px rgba(65, 94, 148, 0.09);
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.7em;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-black);
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 0.8rem;
}

h5 {
    font-size: 1.1em;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--dark-bg);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.site-header.is-stuck {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    display: block;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-weight: 400;
    font-size: 0.95em;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.region-selector {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95em;
}

.btn-signup {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
}

.btn-signup:hover {
    opacity: 1 !important;
    background-color: #00b82b;
}

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

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.navbar-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 700px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
    padding: 5rem 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    color: var(--text-black);
    text-align: left;
    padding-right: 2rem;
    max-width: 600px;
}

.hero-title {
    font-size: 3.8em;
    margin-bottom: 2.5rem;
    color: var(--text-black);
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
}

.app-download {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    max-width: 120%;
    height: auto;
    max-height: 750px;
}

/* Driver Carousel */
.hero-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    overflow: visible;
}

.driver-swiper {
    width: 100%;
    max-width: 500px;
    height: 400px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    overflow: visible !important;
}

.driver-swiper .swiper-wrapper {
    align-items: center;
}

.driver-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Non-active slides: faded and smaller */
.driver-swiper .swiper-slide {
    opacity: 0.3;
    transform: scale(0.78);
}

/* Active (center) slide: full size and visible */
.driver-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Adjacent slides (top and bottom) */
.driver-swiper .swiper-slide-prev,
.driver-swiper .swiper-slide-next {
    opacity: 0.5;
    transform: scale(0.85);
}

/* Driver Card */
.driver-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    width: 100%;
    gap: 18px;
    transition: box-shadow 0.4s ease, transform 0.35s ease;
}

.swiper-slide-active .driver-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.driver-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.driver-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-card-info {
    flex: 1;
    min-width: 0;
}

.driver-card-top {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.driver-card-name {
    font-size: 1.6rem;
    font-weight: 500;
    color: #000;
    line-height: 1.2;
    margin-right: 3px;
}

.driver-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 7px;
    border-radius: 8px;
    line-height: 1;
    white-space: nowrap;
}

.badge-icon {
    display: flex;
    align-items: center;
    line-height: 1;
}

.rating-badge .badge-icon {
    color: #F5A623;
    font-size: 0.7rem;
}

.percent-badge .badge-icon svg {
    width: 12px;
    height: 12px;
}

.rating-badge {
    background: #FEF3C7;
    border: 1.5px solid #FDE68A;
    color: #333;
}

.percent-badge.teal {
    background: #f0fdfa;
    border: 1.5px solid #14b8a6;
    color: #14b8a6;
}

.percent-badge.emerald {
    background: #f0fdf4;
    border: 1.5px solid #10b981;
    color: #10b981;
}

.driver-card-detail {
    font-size: 0.9rem;
    line-height: 1.2;
    display: block;
    color: #666;
}

.driver-card-price {
    font-size: 1.25rem;
    font-weight: 500;
    color: #000;
    flex-shrink: 0;
}

/* Value Section */
.value-section {
    padding: 5rem 0 3rem;
    background-color: var(--light-bg);
    text-align: center;
}

.value-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 1.5rem;
    color: var(--text-black);
}

.section-description {
    font-size: 1.2em;
    color: var(--text-dark);
    line-height: 1.8;
}

.download-btn img {
    height: 50px;
    transition: transform 0.3s ease;
}

.download-btn:hover img {
    transform: translateY(-5px);
}

/* Features Section */
.features-section {
    padding: 4rem 0 6rem;
    background-color: var(--light-bg);
}

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

.feature-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    margin-bottom: 1.8rem;
}

.feature-icon svg {
    display: block;
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4em;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 0.95em;
}

/* Driver Section */
.driver-section {
    background-color: var(--white);
    padding: 6rem 0;
}

.driver-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
}

.driver-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.driver-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.driver-content h2 {
    color: var(--text-black);
    margin-bottom: 1.5rem;
    font-size: 2.5em;
    font-weight: 700;
}

.driver-content p {
    color: var(--text-dark);
    font-size: 1.1em;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.driver-features {
    margin-bottom: 2rem;
}

.driver-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.05em;
    color: var(--text-black);
    font-weight: 500;
}

.driver-feature-item svg {
    flex-shrink: 0;
}

.btn-driver {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-driver:hover {
    background-color: #1a1a1a;
}

.btn-driver svg {
    transition: transform 0.3s ease;
}

.btn-driver:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00b82b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 207, 50, 0.3);
}

/* Footer */
.site-footer {
    background-color: #f6f9fe;
    padding: 4rem 0 2rem;
}

.footer-main {
    margin-bottom: 3rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: flex-start;
}

.footer-logo-text {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-black);
    margin: 0 0 1.5rem 0;
}

.footer-app-badges {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.footer-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    color: #000000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-app-icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.footer-download-section {
    margin-top: 2rem;
}

.app-badge-link img {
    height: 50px;
    width: auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h5 {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-black);
}

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

.footer-column li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: var(--text-dark);
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-black);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-dark);
    font-size: 0.9em;
}

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

.footer-copyright {
    color: var(--text-dark);
    font-size: 0.9em;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1.5rem;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    color: var(--white);
    margin: 0;
    flex: 1;
}

.btn-accept {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background-color: #00b82b;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px);
        min-height: 0;
        padding: 1.5rem 0;
        box-sizing: border-box;
        overflow: hidden;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section .container {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .hero-layout {
        flex: 1;
        min-height: 0;
    }

    .driver-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .driver-image {
        order: 2;
    }

    .driver-content {
        order: 1;
        text-align: left;
    }

    .driver-feature-item {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --mobile-driver-row-height: 84px;
    }

    .hero-section {
        height: auto;
        min-height: 0;
        padding: 2.25rem 0 2rem;
    }

    .hero-section .container {
        display: block;
        min-height: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        padding: 0 2rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        will-change: transform, opacity;
        display: none;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        padding: 2rem;
        display: flex;
        visibility: visible;
        pointer-events: auto;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content {
        text-align: center;
        display: contents;
    }

    .hero-title {
        order: 1;
        font-size: 3em;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .hero-carousel {
        order: 2;
        flex: 0 0 auto;
        min-height: calc((var(--mobile-driver-row-height) * 5) + (8px * 4));
        height: calc((var(--mobile-driver-row-height) * 5) + (8px * 4));
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0;
        overflow: hidden;
    }

    .driver-swiper {
        max-width: 100%;
        height: 100%;
        mask-image: none;
        -webkit-mask-image: none;
        overflow: hidden !important;
    }

    .app-download {
        order: 3;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .app-download {
        justify-content: center;
        width: 100%;
        margin-top: 0.25rem;
    }

    .download-btn img {
        height: 50px;
    }

    .hero-image {
        order: 2;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
        max-height: 550px;
        margin-top: 2rem;
        margin-bottom: 0;
    }

    .hero-image img {
        max-height: none;
        height: 700px;
        width: auto;
        object-fit: cover;
        object-position: top center;
        display: block;
    }

    .driver-card {
        padding: 10px 14px;
        gap: 9px;
        width: 100%;
        height: calc(var(--mobile-driver-row-height) - 2px);
        margin: 0;
    }

    .driver-card-avatar {
        width: 44px;
        height: 44px;
    }

    .driver-card-name {
        font-size: 1.05rem;
    }

    .driver-card-price {
        font-size: 0.95rem;
    }

    .driver-card-detail {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .driver-card-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        gap: 2px;
    }

    .driver-card-top {
        flex-wrap: nowrap;
    }

    .percent-badge .badge-icon svg {
        width: 11px;
        height: 11px;
    }

    .driver-swiper .swiper-slide {
        height: var(--mobile-driver-row-height) !important;
        opacity: 0.22;
        transform: scale(0.86);
        transform-origin: center center;
    }

    .driver-swiper .swiper-slide-prev,
    .driver-swiper .swiper-slide-next {
        opacity: 0.56;
        transform: scale(0.93);
    }

    .driver-swiper .swiper-slide-active {
        opacity: 1;
        transform: scale(1.01);
        z-index: 3;
    }

    .driver-swiper .swiper-slide .driver-card {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .swiper-slide-active .driver-card {
        transform: scale(1.04);
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
    }

    .section-title {
        font-size: 2.2em;
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    h2 {
        font-size: 2em;
    }

    .driver-content {
        text-align: left;
    }

    .driver-content h2 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --mobile-driver-row-height: 78px;
    }

    .hero-title {
        font-size: 2.5em;
        margin-bottom: 0.5rem;
    }

    .hero-carousel {
        min-height: calc((var(--mobile-driver-row-height) * 5) + (8px * 4));
        height: calc((var(--mobile-driver-row-height) * 5) + (8px * 4));
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0;
    }

    .app-download {
        margin-top: 0.25rem;
    }

    .section-title {
        font-size: 1.8em;
    }

    .app-download {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .download-btn img {
        height: 48px;
    }
}
