@font-face {
    font-family: "Universal Sans Display";
    src: url("UniversalSans/Universal-Sans-Display-450-Trial.ttf") format("truetype");
    font-weight: 450; /* Matches the weight in the filename */
    font-style: normal;
}

*{
    font-family: "Universal Sans Display", -apple-system, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* --- */
/* Nav */
/* --- */

nav{
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
    overflow: hidden;
    height: 56px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tesla-logo {
    width: 120px;
    padding-left: 50px;
    cursor: pointer;
}

.nav-items {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0px 8px;
}
.nav-items li{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
}
.nav-items li button {
    padding: 4px 16px;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: rgb(23, 26, 32);
    background-color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease;
}
.nav-items li button:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.7s ease;
}
.nav-item-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.menu-items {
    display: flex;
    width: 120px;
    padding-right: 32px;
    margin-right: 5px;
    height: 100%;
    justify-content: flex-end;
    align-items: center;
}
.menu-items img {
    width: 24px;
}
.menu-item {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    display: flex;
    align-content: center;
    justify-content: center;
    transition: background-color 0.25s ease;
}
.menu-items a:hover {
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.9s ease;
}

/* ------------ */
/* Hero Section */
/* ------------ */

header {
    height: 80vh;
    width: 100vw;
    position: relative;
}

header video {
    position: absolute;
    height: 80vh;
    width: 100vw;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.9);
    filter: contrast(105%);
}

.content-overlay {
    position: relative;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    /* padding: 48px 32px 32px 32px;
    margin-top: 0.7em; */
    color: white;
    width: 100%;
    height: 73vh;
}

h1 {
    font-weight: 500;
    font-size: 47px;
    line-height: 1.1;
    letter-spacing: 0.9px;
}
.sub-heading-container {
    margin-top: 6px;
}
.sub-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.1px;
}

.action-btns {
    font-size: 14px;
    margin-top: 24px;
    display: flex;
}
.action-btns button {
    height: 40px;
    width: 200px;
    padding: 4px;
    margin: 3px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.9px;
}

.order-btn {
    background-color: rgb(62, 106, 225);
    color: white;
}
.order-btn:hover {
    background-color: #3457b1;
}
.learn-btn {
    color: rgb(23, 26, 32);
}
.learn-btn:hover {
    background-color: #eeeeee;
}

.arrow-btns {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}
.arrow-btns button {
    background-color: #ffffffd5;
    height: 40px;
    width: 40px;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px;
    color: rgb(57, 60, 65);
    border: none;
    cursor: pointer;
}
.arrow-left-btn{
    position: absolute;
    left: 50px;
    top: 13vh;
}
.arrow-right-btn{
    position: absolute;
    right: 50px;
    top: 13vh;
}
.arrow-img {
    height: 25px;
}

.pause {
    position: absolute;
    bottom: 40px;
    left: 40px;
}
.pause button {
    padding: 4px;
    border: 2px;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    background-color: #596163c0;
    cursor: pointer;
    transition: background-color 0.25s ease;
}
.pause button:hover {
    background-color: #424849c0;
    transition: background-color 0.7s ease;
}
.pause img {
    width: 24px;
    height: 24px;
    color: white;
}

.multi-dots {
    display: flex;
    position: absolute;
    bottom: 15px;
    /* top: calc(56px + 73vh - 40px);
    left: 50%; */
}
.multi-dots button {
    all: unset;
    cursor: pointer;
}
.multi-dots-dark {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}
.multi-dots-dark button {
    all: unset;
    cursor: pointer;
}
.circle {
    background-color: white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0px 4px;
}
.dark-circ {
    background-color: #161a20;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0px 4px;
}
.inactive {
    background-color: #ffffff80;
}
.inactive:hover{
    background-color: #ffffffa5;
}
.inactive-dark {
    background-color: #8b8c8f;
}
.inactive-dark:hover {
    background-color: #6a6b6d;
}

/* ----------------- */
/* Car Cards Section */
/* ----------------- */

.car-cards-container {
    margin-top: 48px;
    height: 664px;
    color: white;
    /* padding: 0px 0px 0px 48px; */
}

.car-cards-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1024px;
    gap: 24px;
    overflow-x: scroll;
    padding: 0px 0px 0px 48px;
    scrollbar-gutter: stable;
}
/* Make the scrollabr visible with CSS */
.car-cards-carousel::-webkit-scrollbar {
    height: 8px;
}
.car-cards-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 5px;
}

.car-card {
    display: grid;
    grid-template-rows: 1fr;
    width: 1024px;
    height: 580px;
    border-radius: 8px;
}
.car-card .card-header {
    padding: 32px 40px;
}
.car-card .card-footer {
    display: flex;
    flex-direction: column;
    padding: 40px;
}
.car-card .card-footer .card-btns {
    display: flex;
    margin-top: 24px;
}
.car-card .card-footer .card-btns button {
    width: 160px;
}
h5 {
    font-size: 17px;
    letter-spacing: 1px;
    font-weight: 100;
}

.model-y {
    background: url("./resources/model-y-card.avif");
    background-repeat: no-repeat;
    background-size: contain;
}
.model-3 {
    background: url("./resources/model-3-card.avif");
    background-repeat: no-repeat;
    background-size: contain;
}
.cybertruck {
    background: url("./resources/cybertruck-card.avif");
    background-repeat: no-repeat;
    background-size: contain;
}
.model-x {
    background: url("./resources/model-x-card.avif");
    background-repeat: no-repeat;
    background-size: contain;
}
.model-s {
    background: url("./resources/model-s-card.avif");
    background-repeat: no-repeat;
    background-size: contain;
}

.cards-arrow-btn {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}
.cards-arrow-btn button {
    background-color: #ffffffd5;
    height: 40px;
    width: 40px;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px;
    color: rgb(57, 60, 65);
    border: none;
    cursor: pointer;
}
.cards-arrow-btn-left {
    position: absolute;
    left: 60px;
    bottom: 280px;
}
.cards-arrow-btn-right {
    position: absolute;
    right: 50px;
    bottom: 280px;
}

/* ------ */
/* Footer */
/* ------ */

footer {
    height: 70px;
}

footer ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.7px;
}

footer ul li {
    padding: 8px 0px;
    margin-right: 14px;
}

footer ul li a {
    cursor: pointer;
    text-decoration: none;
    color: rgb(57, 60, 65);
}

/* ------------ */
/*  Responsive  */
/* ------------ */

@media (max-width: 768px) {
    .nav-items {
        display: none;
    }
    .tesla-logo {
        padding-left: 16px;
        width: 100px;
    }
    .menu-items {
        padding-right: 16px;
    }

    header,
    header video {
        height: 60vh;
    }
    .content-overlay {
        padding: 24px 16px;
    }
    h1 {
        font-size: 28px;
    }
    .sub-heading {
        font-size: 16px;
    }
    .action-btns {
        flex-direction: column;
        align-items: center;
    }
    .action-btns button {
        width: 100%;
        max-width: 280px;
    }

    .arrow-btns {
        left: 0;
        right: 0;
        padding: 0 12px;
    }
    .arrow-btns button {
        margin: 0;
    }

    .car-cards-container {
        height: auto;
        min-height: 400px;
        margin-top: 24px;
    }
    .car-cards-carousel {
        grid-auto-columns: min(100%, 400px);
        padding-left: 16px;
        gap: 16px;
    }
    .car-card {
        width: min(100%, 400px);
        height: 380px;
    }
    .car-card .card-header,
    .car-card .card-footer {
        padding: 20px;
    }

    footer ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 16px;
        font-size: 11px;
    }
    footer ul li {
        margin-right: 0;
    }
}