/* ------------ Variables -------- */

:root {
    --primaryColor: #00bae2;
    --darkcolor: #18191A;
    --secondaryColor: #7e0000;
    --accentColor: #fff;
    /* --accentColor: #281713; */
    --headingFont: "Noto Sans", sans-serif;
    --textFont: "Roboto", sans-serif;
    --textcolor: hsl(193, 11%, 84%);
    --maintrans: 0.3s ease;
    --darkcolor: #18191A;
    --headingspacing: 0.5px;
}

*, *::before, *::after {
    box-sizing: border-box;
    letter-spacing: 0.2;
}

html {
    scroll-behavior: smooth;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--headingFont);
    letter-spacing: var(--headingspacing);
}

a {
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--textFont);
    transition: var(--maintrans);
}

body {
    margin: 0;
}

/* --------- Header --------- */

header {
    background-color: transparent;
    color: var(--accentColor);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#header {
    transition: var(--maintrans);
}

.header {
    width: 80%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: inherit;
    color: inherit;
}

nav a {
    margin-right: 10px;
    color: var(--accentColor);
    padding: 8px;
    position: relative;
}

nav a::after {
    content: "";
    width: 0;
    height: 2px;
    background-color: #c7c7c7;
    position: absolute;
    left: 10%;
    bottom: 0;
    transition: var(--maintrans);
}

nav a:hover::after {
    width: 80%;
}

nav a:hover {
    color: #c7c7c7;
}

.nav-open {
    background: none;
    border: none;
    outline: none;
    font-size: 1rem;
    display: none;
    cursor: pointer;
}

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

.hero {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.4)), url(../assets/about-us-section1-image.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--accentColor);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.hero-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.hero-content a {
    display: block;
    width: 40%;
    text-align: center;
    margin-inline: auto;
    padding: 8px 40px;
    color: var(--accentColor);
    background-color: rgba(0,0,0,0.6);
    margin-top: 25px;

}

.hero-content a:hover {
    background-color: var(--darkcolor);
}

.offroad-hero {
    text-shadow: 5px 5px 10px var(--secondaryColor), 10px 10px 10px var(--darkcolor);
}

/* ------------ About ------------ */

#about-us {
    padding-block: 50px;
}

.about h3 {
    color: var(--secondaryColor);
}

.about h2 {
    font-size: 1.8rem;
    margin-top: -5px;
}

.about {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    width: 80%;
    margin-inline: auto;
    margin-top: 50px;
}

.about-content {
    width: 400px;
    max-width: 100%;
}

.about-content p {
    line-height: 1.5;
}

.about img {
    width: 500px;
    max-width: 100%;
    aspect-ratio: 1 / 0.75;
}

/* ------------- Specification ---------- */

.spec-container {
    /*box-shadow: 0 0 20px #ccc;*/
    padding-block: 20px;
    position: relative;
    margin-block: 30px;
    background-color: #efefef;
}

.spec-menu {
    display: flex;
    margin-bottom: 50px;
    justify-content: center;
}

.car-menu {
    position: relative;
}

.car-menu:hover .dropdown-content {
    display: block;
}

.mobius2 {
    margin-right: 10px;
}

.dropdown-content {
    position: absolute;
    width: 600px;
    display: none;
    padding-top: 10px;
    left: 0;
}

.dropdown-content button {
    margin-right: 10px;
}

.spec-menu button {
    background-color: inherit;
    border: none;
    border-bottom: 1px dotted #000;
    outline: none;
    cursor: pointer;
    display: inline-block;
    width: fit-content;
    padding-block: 5px;
    font-family: var(--headingFont);
}

.spec-menu > div > button {
    font-size: 1rem;
}

.flex-cont {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    height: 60vh;
}

.spec-img {
    width: 500px;
    max-width: 100%;
    height: auto;
}

.spec-container h3 {
    color: var(--secondaryColor);
}

.content-block {
    flex-basis: 30%;
}

.image-bgcont {
    position: relative;
}

.image-bgcont > div {
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.image-bg {
    width: 350px;
    max-width: 100%;
    height: 350px;
    background-color: var(--primaryColor);
}

.image-bgcont img {
    position: relative;
}

.flex-cont:not(.mobius2-exterior) {
    display: none;
}

.test-drive {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: white;
    background-color: var(--primaryColor);
    margin-top: 15px;
    transition: var(--maintrans);
    position: relative;
}

.test-drive::after {
    content: "";
    width: 0;
    height: 100%;
    background-color: var(--secondaryColor);
    transition: var(--maintrans);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
}

.test-drive:hover::after {
    width: 100%;
}

.test-drive span {
    position: relative;
    color: white;
    z-index: 10;
}


/* ---------------- Team ---------------- */

.team-container {
    margin-block: 50px;
}

.team-container > h2 {
    text-align: center;
}

.team-cont {
    width: 80%;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 30px;
}

.profile-cont {
    position: relative;
}

.profile {
    width: 350px;
    max-width: 100%;
    height: 400px;
    background-color: white;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 5px #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.colage {
    width: 350px;
    max-width: 100%;
    height: 400px;
    background-color: var(--darkcolor);
    border-radius: 10px;
    color: white;
    padding: 10px 0;
    position: absolute;
    left: -5%;
    top: 5%;
}

.profile img {
    width: 150px;
    border-radius: 50%;
    display: block;
    margin-left: 15px;
}

.profile-content {
    padding: 10px 0 10px 20px
}

.profile-content h4 {
    color: var(--secondaryColor) !important;
}

/* ---------------- Contact ------------- */

#contact {
    padding-block: 20px;
}


.contact {
    width: 80%;
    max-width: 100%;
    margin-inline: auto;
    background-color: black;
    padding-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
}

.contact h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: white;
}

.contact h2:last-of-type {
    color: var(--primaryColor);
}

.loc-cont {
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.contact-cont h2 {
    color: white !important;
}

form {
    flex-basis: 40%;
}

.contact label, .contact input, .contact textarea {
    display: block;
}

.contact label {
    color: white;
}

.contact label:first-of-type {
    margin-bottom: 20px;
}

.contact input {
    width: 100%;
    height: 2.5rem;
}

.contact input, .contact textarea {
    padding: 8px 0 8px 16px;
    border: none;
    outline: none;
    border-radius: 5px;
    margin-top: 10px;
}

.contact textarea {
    width: 100%;
    height: 8rem;
}

button[type="submit"] {
    display: inline-block;
    padding: 14px 30px;
    color: white;
    font-size: 1rem;
    margin-top: 20px;
    border-radius: 5px;
    border: none;
    background-color: var(--primaryColor);
    cursor: pointer;
}

.cont-log {
    color: white;
    display: block;
    padding: 10px;
    font-size: 10px;
    background-color: var(--secondaryColor);
}

.log-text {
    color: white;
}

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

footer {
    margin-top: 50px;
}

.top-footer {
    width: 80%;
    margin-inline: auto;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 400px auto auto auto;
}

.top-footer > div ul {
    list-style: none;
    padding-left: 0;
}

.top-footer > div ul li {
    padding-left: 0;
    margin-bottom: 5px;
    font-family: var(--headingFont);
    font-weight: 500;
}

.top-footer a {
    text-decoration: none;
    color: var(--darkcolor);
    font-weight: 500;
    margin-bottom: 10px;
    padding-block: 5px;
    position: relative;
}

.support a::after, .quick-links a::after {
    content: "";
    width: 0;
    height: 2px;
    background-color: var(--darkcolor);
    position: absolute;
    bottom: 0;
    left: 10%;
    transition: var(--maintrans);
}

.support a:hover::after, .quick-links a:hover::after {
    width: 80%;
}

.top-footer span {
    font-size: 16px;
    vertical-align: middle;
}

.bottom-footer p {
    text-align: center;
    color: white;
    background-color: var(--darkcolor);
    margin: 0;
    padding-block: 10px;
}

.footer-contacts li {
    font-family: var(--headingFont);
}

.badge p {
    font-family: var(--headingFont);
    font-weight: 500;
    font-style: oblique;
    letter-spacing: var(--headingspacing);
}

.socials a {
    margin-right: 2px;
    padding: 5px;
}

.socials a i {
    font-size: 20px;
    transition: var(--maintrans);
}

.socials a:hover i {
    font-size: 16px;
} 


/*
  Responsive Design
*/

@media screen and (max-width: 1023px) {

    /* --- Nav --- */

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: var(--darkcolor);
        width: 50%;
        height: 100%;
        transition: 0.3s ease;
    }

    .navigation {
        width: 100%;
        position: absolute;
        top: 10%;
    }

    .navigation a {
        display: block;
        text-align: center;
    }

    .navigation a:hover, .navigation a:active {
        background-color: var(--accentColor);
        color: var(--darkcolor);
    }

    .navigation a::after {
        display: none;
    }

    .nav-open {
        display: block;
        color: white;
        font-size: 1.6rem;
    }

    .close-links {
        position: absolute;
        right: 5%;
        top: 2%;
    }

    /* --- About --- */

    .about {
        flex-direction: column;
        gap: 2rem;
    }

    /* --- Specification --- */

    .flex-cont {
        flex-direction: column;
        height: auto;
    }

    .content-block {
        flex-basis: 100%;
        margin-left: 10px;
    }
    
    /* --- Team --- */

    

    /* --- Contact --- */
    .contact {
        width: 90%;
        display: flex;
        flex-direction: column;
    }

    .loc-cont {
        justify-content: flex-start;
        margin-left: 10%;
    }

    form {
        flex-basis: 80%;
    }

    /* --- Footer --- */

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

@media screen and (max-width: 600px) {
    .profile {
        width: 300px;
        height: 350px;
    }

    .colage {
        width: 300px;
        height: 350px;
    }
    
}

@media screen and (max-width: 1320px) {

    /* --- Team --- */

    .team-cont {
        gap: 10px;
    }
    .profile {
        width: 300px;
        height: 350px;
    }

    .colage {
        width: 300px;
        height: 350px;
    }

    /* --- Footer --- */

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

@media screen and (max-width: 1200px) {
    .team-cont {
        gap: 4rem;
        justify-content: center;

    }
}

@media screen and (max-width: 768px) {
    .team-cont {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
}