/* =========================================
   APEX MOTORS
   FUTURISTIC AUTOMOTIVE EXPERIENCE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #05070b;
    color: #f5f7fa;
    overflow-x: hidden;
}


/* =========================================
   GLOBAL
========================================= */

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

section {
    position: relative;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6vw;

    z-index: 1000;

    background: rgba(5, 7, 11, 0.65);
    backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 5px;
}

.logo span,
.footer-logo span {
    color: #4cc9ff;
}

.nav-links {
    display: flex;
    gap: 38px;
}

.nav-links a {
    font-size: 10px;
    letter-spacing: 2px;
    color: #8c929b;

    transition: 0.3s;
}

.nav-links a:hover {
    color: #4cc9ff;
}

.nav-button {
    border: 1px solid rgba(76,201,255,0.5);
    background: rgba(76,201,255,0.05);

    color: #fff;

    padding: 12px 20px;

    font-size: 10px;
    letter-spacing: 2px;

    transition: 0.3s;
}

.nav-button:hover {
    background: #4cc9ff;
    color: #020406;

    box-shadow: 0 0 30px rgba(76,201,255,0.35);
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 120px 7vw 70px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 45%,
            rgba(0,150,255,0.12),
            transparent 35%
        ),
        #05070b;
}

.hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.12;

    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);

    background-size: 80px 80px;

    mask-image: linear-gradient(
        to right,
        black,
        transparent
    );
}

.hero-content {
    position: relative;
    z-index: 3;

    width: 48%;
}

.system-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #7e8792;

    font-size: 10px;
    letter-spacing: 3px;

    margin-bottom: 25px;
}

.system-label span {
    width: 7px;
    height: 7px;

    background: #4cc9ff;

    border-radius: 50%;

    box-shadow: 0 0 15px #4cc9ff;
}

.hero h1 {
    font-size: clamp(70px, 10vw, 150px);
    line-height: 0.82;

    letter-spacing: -8px;

    font-weight: 900;
}

.hero h1 span {
    color: transparent;

    -webkit-text-stroke: 1px rgba(255,255,255,0.55);
}

.hero p {
    max-width: 430px;

    color: #8d949d;

    font-size: 15px;
    line-height: 1.7;

    margin: 35px 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    padding: 16px 23px;

    font-size: 10px;
    letter-spacing: 2px;

    transition: 0.3s;
}

.primary-btn {
    background: #4cc9ff;
    color: #020406;

    border: 1px solid #4cc9ff;
}

.primary-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 0 25px rgba(76,201,255,0.3);
}

.secondary-btn {
    border: 1px solid rgba(255,255,255,0.15);
    color: #b5bac1;
}

.secondary-btn:hover {
    border-color: #4cc9ff;
    color: #4cc9ff;
}

.hero-car {
    position: absolute;

    right: -8%;
    bottom: -4%;

    width: 65%;
    height: 80%;

    z-index: 1;
}

.hero-car img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.72;

    filter:
        grayscale(25%)
        contrast(115%)
        brightness(70%);

    mask-image: linear-gradient(
        to left,
        black 40%,
        transparent 100%
    );
}

.car-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    right: 15%;
    top: 25%;

    background: #008cff;

    filter: blur(180px);

    opacity: 0.12;
}

.hero-data {
    position: absolute;

    left: 7vw;
    bottom: 40px;

    display: flex;
    gap: 50px;

    z-index: 5;
}

.hero-data div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-data small {
    color: #555d66;

    font-size: 8px;
    letter-spacing: 2px;
}

.hero-data strong {
    font-size: 11px;
    letter-spacing: 2px;
}

.online {
    color: #4cc9ff;
}

.scroll-indicator {
    position: absolute;

    right: 7vw;
    bottom: 40px;

    color: #555d66;

    font-size: 8px;
    letter-spacing: 3px;

    display: flex;
    gap: 15px;
}


/* =========================================
   INTRO
========================================= */

.intro {
    min-height: 85vh;

    padding: 150px 7vw;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #080b10;
}

.section-number {
    color: #4cc9ff;

    font-size: 9px;
    letter-spacing: 3px;
}

.intro-content {
    margin-top: 80px;
    max-width: 1000px;
}

.intro-small {
    color: #737b85;

    font-size: 11px;
    letter-spacing: 4px;

    margin-bottom: 20px;
}

.intro h2,
.inventory h2,
.about h2,
.contact h2 {
    font-size: clamp(50px, 8vw, 120px);

    line-height: 0.9;

    letter-spacing: -5px;

    font-weight: 900;
}

.intro h2 span,
.inventory h2 span,
.about h2 span,
.contact h2 span {
    color: transparent;

    -webkit-text-stroke: 1px rgba(255,255,255,0.4);
}

.intro p {
    max-width: 500px;

    margin-top: 45px;

    color: #7d858f;

    line-height: 1.8;

    font-size: 15px;
}


/* =========================================
   INVENTORY
========================================= */

.inventory {
    padding: 150px 7vw;

    background: #05070b;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 100px;
}

.inventory-status {
    color: #6b737c;

    font-size: 9px;
    letter-spacing: 2px;

    display: flex;
    gap: 10px;
    align-items: center;
}

.inventory-status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #4cc9ff;

    box-shadow: 0 0 10px #4cc9ff;
}


/* =========================================
   CAR CARDS
========================================= */

.car-card {
    margin-bottom: 150px;

    display: grid;
    grid-template-columns: 1.4fr 0.6fr;

    min-height: 620px;

    border-top: 1px solid rgba(255,255,255,0.08);
}

.car-card.reverse {
    grid-template-columns: 0.6fr 1.4fr;
}

.car-card.reverse .car-image {
    order: 2;
}

.car-card.reverse .car-info {
    order: 1;
}

.car-image {
    position: relative;

    overflow: hidden;

    min-height: 600px;

    background: #0b0e13;
}

.car-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 1.2s ease;

    filter: brightness(65%) contrast(115%);
}

.car-card:hover .car-image img {
    transform: scale(1.06);
}

.image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5,7,11,0.2),
            transparent 50%,
            rgba(5,7,11,0.4)
        );
}

.car-number {
    position: absolute;

    top: 25px;
    left: 25px;

    z-index: 3;

    color: #4cc9ff;

    font-size: 10px;
    letter-spacing: 3px;
}

.car-info {
    padding: 60px 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            transparent
        );

    border-right: 1px solid rgba(255,255,255,0.06);
}

.car-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 20px;

    margin-bottom: 60px;
}

.car-brand {
    display: block;

    color: #4cc9ff;

    font-size: 9px;
    letter-spacing: 3px;

    margin-bottom: 10px;
}

.car-heading h3 {
    font-size: clamp(30px, 3vw, 48px);

    letter-spacing: -2px;
}

.car-heading strong {
    font-size: 18px;
    white-space: nowrap;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-top: 1px solid rgba(255,255,255,0.1);
}

.spec-grid div {
    padding: 20px 0;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.spec-grid span {
    display: block;

    color: #59616b;

    font-size: 8px;
    letter-spacing: 2px;

    margin-bottom: 8px;
}

.spec-grid b {
    font-size: 13px;
    letter-spacing: 1px;
}

.view-car {
    margin-top: 40px;

    width: 100%;

    padding: 17px;

    background: transparent;

    border: 1px solid rgba(255,255,255,0.15);

    color: white;

    font-size: 9px;
    letter-spacing: 3px;

    display: flex;
    justify-content: space-between;

    transition: 0.3s;
}

.view-car:hover {
    border-color: #4cc9ff;
    color: #4cc9ff;

    background: rgba(76,201,255,0.05);
}


/* =========================================
   ABOUT
========================================= */

.about {
    padding: 170px 7vw;

    background: #080b10;
}

.about-layout {
    margin-top: 80px;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    gap: 100px;

    align-items: end;
}

.about-layout p {
    color: #7e8791;

    font-size: 15px;

    line-height: 1.8;

    max-width: 450px;
}

.about-line {
    height: 1px;

    background: rgba(255,255,255,0.1);

    margin: 50px 0;
}

.stats {
    display: flex;
    gap: 50px;
}

.stats div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats strong {
    font-size: 32px;
}

.stats span {
    color: #555d66;

    font-size: 8px;
    letter-spacing: 2px;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    padding: 170px 7vw;

    background:
        radial-gradient(
            circle at center,
            rgba(0,145,255,0.12),
            transparent 45%
        ),
        #05070b;
}

.contact-box {
    max-width: 1000px;
}

.contact h2 {
    margin: 60px 0 35px;
}

.contact p {
    color: #737b85;

    margin-bottom: 35px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 30px 7vw;

    border-top: 1px solid rgba(255,255,255,0.07);

    display: flex;
    justify-content: space-between;

    color: #505861;

    font-size: 8px;
    letter-spacing: 2px;
}

.footer-logo {
    color: white;

    font-size: 16px;
    font-weight: 900;
}


/* =========================================
   CAR MODAL
========================================= */

.modal,
.drive-modal {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.8);

    backdrop-filter: blur(15px);

    padding: 30px;
}

.modal.active,
.drive-modal.active {
    display: flex;
}

.modal-box,
.drive-box {
    position: relative;

    width: min(950px, 100%);

    max-height: 90vh;

    overflow: auto;

    background: #090d13;

    border: 1px solid rgba(76,201,255,0.2);

    box-shadow:
        0 0 80px rgba(0,120,255,0.12);
}

.modal-box > img {
    width: 100%;
    height: 350px;

    object-fit: cover;

    filter: brightness(65%);
}

.modal-content {
    padding: 40px;
}

.modal-content > span {
    color: #4cc9ff;

    font-size: 10px;
    letter-spacing: 3px;
}

.modal-content h2 {
    font-size: 50px;

    margin: 10px 0;
}

.modal-content > strong {
    font-size: 18px;
}

.modal-specs {
    display: flex;
    gap: 50px;

    margin: 35px 0;
}

.modal-specs div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-specs span {
    color: #59616b;

    font-size: 8px;
    letter-spacing: 2px;
}

.modal-specs b {
    font-size: 12px;
}

.modal-content p {
    color: #7d858f;

    line-height: 1.7;

    max-width: 650px;

    margin-bottom: 30px;
}

.close-modal {
    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 10;

    width: 40px;
    height: 40px;

    background: rgba(0,0,0,0.5);

    border: 1px solid rgba(255,255,255,0.15);

    color: white;

    font-size: 24px;
}


/* =========================================
   TEST DRIVE
========================================= */

.drive-box {
    padding: 60px;

    max-width: 600px;
}

.drive-box h2 {
    font-size: 60px;

    line-height: 0.9;

    margin: 50px 0;
}

.drive-box h2 span {
    color: transparent;

    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
}

.drive-box input,
.drive-box select {
    width: 100%;

    padding: 17px;

    margin-bottom: 12px;

    background: #05070b;

    border: 1px solid rgba(255,255,255,0.12);

    color: white;

    outline: none;
}

.drive-box input:focus,
.drive-box select:focus {
    border-color: #4cc9ff;
}

.drive-box .primary-btn {
    width: 100%;

    border: none;

    margin-top: 15px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media(max-width: 850px) {

    .navbar {
        padding: 0 5vw;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 900px;

        padding-left: 6vw;
    }

    .hero-content {
        width: 100%;
    }

    .hero-car {
        width: 100%;
        right: -25%;
        opacity: 0.6;
    }

    .hero h1 {
        font-size: 75px;
    }

    .hero-data {
        bottom: 30px;

        gap: 25px;
    }

    .scroll-indicator {
        display: none;
    }

    .inventory-header {
        align-items: start;

        flex-direction: column;

        gap: 30px;
    }

    .car-card,
    .car-card.reverse {
        display: block;
    }

    .car-card.reverse .car-image {
        order: unset;
    }

    .car-card.reverse .car-info {
        order: unset;
    }

    .car-image {
        min-height: 400px;
    }

    .car-info {
        padding: 40px 25px;
    }

    .about-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    footer {
        flex-direction: column;

        gap: 20px;
    }
}


@media(max-width: 500px) {

    .hero h1 {
        font-size: 58px;

        letter-spacing: -4px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-data {
        display: none;
    }

    .intro h2,
    .inventory h2,
    .about h2,
    .contact h2 {
        font-size: 55px;
    }

    .car-heading {
        flex-direction: column;

        align-items: start;

        margin-bottom: 35px;
    }

    .modal-content h2 {
        font-size: 35px;
    }

    .modal-specs {
        gap: 20px;
        flex-wrap: wrap;
    }

    .drive-box {
        padding: 35px 25px;
    }

    .drive-box h2 {
        font-size: 48px;
    }
}
/* =========================================
   ANIMATION SYSTEM
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(60px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.2,.8,.2,1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
 
/* =========================================
   TEST DRIVE SECTION
========================================= */

.test-drive-section {
    padding: 150px 7vw;
    background:
        radial-gradient(
            circle at 70% 50%,
            rgba(0, 150, 255, 0.12),
            transparent 40%
        ),
        #05070b;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.test-drive-content {
    max-width: 750px;
    margin-top: 60px;
}

.test-drive-content h2 {
    font-size: clamp(60px, 8vw, 110px);
    line-height: 0.85;
    letter-spacing: -5px;
    font-weight: 900;
    margin-bottom: 30px;
}

.test-drive-content h2 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.45);
}

.test-drive-content p {
    color: #737b85;
    margin-bottom: 40px;
}

.test-drive-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.test-drive-form input,
.test-drive-form select {
    width: 100%;
    padding: 18px;

    background: #080b10;

    border: 1px solid rgba(255,255,255,0.12);

    color: white;

    outline: none;

    font-family: inherit;
}

.test-drive-form input:focus,
.test-drive-form select:focus {
    border-color: #4cc9ff;
    box-shadow: 0 0 20px rgba(76,201,255,0.08);
}

.test-drive-form select {
    color: #8c949d;
}

.test-drive-form .primary-btn {
    border: none;
    width: 100%;
}

@media(max-width: 600px) {

    .test-drive-form {
        grid-template-columns: 1fr;
    }

}