*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    color: white;
    height: 10vh;
    padding: 10px;
    z-index: 1000;
}

nav{
    display: flex;
    justify-content: space-between;
}

.logo img{
    width: 100%;
    max-width: 125px;
    padding: 10px;
    margin-left: 30px;
    border-radius: 20px;
}

.nav-links{
    display: flex;
    gap: 20px;
    list-style: none;
    margin-right: 60px;
    margin-top: 20px;
}

.nav-links li a{
    text-decoration: none;
    color: white;
}

.nav-links li a:hover{
    border-bottom: 4px solid red;
    padding-bottom: 7px;
    transition: all 1s ease;
    transform: scale(1.08) translateX(-5px);
}

.hamburger{
    display: none;
}

@media (max-width: 1200px){
    header{
        height: 5vh;
    }
}

@media (max-width: 1024px){
    header{
        height: 13vh;
    }
}

@media (max-width: 872px){
    header{
        height: 9vh;
        padding: 15px;
        font-size: 20px;
    }
}

@media (max-width: 768px){
    header{
        height: 9vh;
        padding-top: 20px;
    }
}

@media (max-width: 480px){
    header{
        height: 8vh;
    }

    .logo{
        margin-top: -9px;
    }

    .logo p{
        font-size: 20px;
        margin-left: 10px;
    }

    .logo span{
        font-size: 20px;
    }

    .nav-links{
        display: none;
    }

    .nav-links.active{
        display: flex;
        flex-direction: column;
        position: absolute;
        font-size: 24px;
        top: 50px;
        right: -60px;
        background-color: black;
        padding: 20px;
        width: 200px;
        z-index: 1000;
    }

    .hamburger{
        display: block;
        font-size: 40px;
        margin-right:20px;
        margin-top: -10px;
        cursor: pointer;
    }
}

@media (max-width: 400px){
    .nav-links.active{
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 47px;
        right: -50px;
        background-color: black;
        padding: 10px;
        width: 200px;
        z-index: 1000;
    }
}

/* ── Landscape: phones in landscape orientation ── */
@media (max-height: 500px) and (orientation: landscape){
    header{
        height: 12vw;
    }

    .hamburger{
        display: block;
        font-size: 30px;
        margin-right: 20px;
        cursor: pointer;
    }

    .nav-links{
        display: none;
    }

    .nav-links.active{
        display: flex;
        flex-direction: column;
        position: absolute;
        font-size: 18px;
        top: 45px;
        right: 0;
        background-color: black;
        padding: 15px;
        width: 180px;
        z-index: 1000;
    }
}

/* hero Section */

.hero{
    background-image: url(./Opa\ bg.jpg);
    background-position: center ;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 50px;
    margin-top: 60px;
    color: white;
}

.hero::before{
    content: "";
    position: absolute;
    inset: 0;
    height: 107vh;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.1) 100%
    );
}

.wel{
    color: rgb(243, 10, 10);
    font-size: 25px;
    font-style: bold;
    margin-top: 5%;
    margin-left: 1%;
    letter-spacing: 5px;
}

.logo1{
    margin: 0;
    padding: 0;
    font-size: 65px;
    border-bottom: 4px solid red;
    width: 3%;
    letter-spacing: 15px;
}

.qua{
    margin-top: 10px;
    font-size: 25px;
}

.trust{
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 30px;
    font-size: 25px;
    letter-spacing: 2px;
}

.btn {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.btn a{
    text-decoration: none;
    background-color: red;
    color: white;
    border: 1px solid red;
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    height: 6vh;
    padding: 15px;
    text-align: center;
    box-shadow: 2px 4px 6px;
    transition: all 0.5s ease;
}

.btn a:hover{
    transform: scale(1.08) translateX(-5px);
}

.btn .btn2{
    border: 1px solid white;
    background-color: transparent;
}

@media (max-width: 1200px){
    .hero{
        height: 40vh;
    }

    .hero::before{
        height: 43vh;
    }

    .qua, .trust{
        font-size: 30px;
    }

    .btn{
        display: flex;
        justify-content: space-between;
    }

    .btn a{
        height: 5vh;
        max-width: 300px;
        margin-top: 20px;
        font-size: 25px;
        padding: 30px;
    }
}

@media (max-width: 1024px){
    .hero{
        height: 110vh;
        display: flex;
        flex-direction: column;
    }

    .hero::before{
        height: 120vh;
    }

    .btn a{
        height: 12vh;
        padding: 20px;
    }
}

@media (max-width: 768px){
    .hero{
        height: 100vh;
    }

    .hero::before{
        height: 105vh;
    }

    .wel{
        margin-top: 20%;
    }

    .qua, .trust{
        font-size: 40px;
    }

    .btn a{
        margin-top: 40px;
        padding: 20px;
        height: 8vh;
        padding: 25px;
    }

    .btn{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 820px){
    .hero{
        height: 115vh;
    }

    .wel{
        margin-top: 20%;
    }

    .btn a{
        height: 7vh;
        margin-top: 10%;
    }
}

@media (max-width: 480px){
    .hero{
        height: 100vh;
        margin: auto;
        background-position: right;
        padding-bottom: 40px;
    }

    .hero::before{
        height: 100vh;
    }

    .qua{
        margin-top: 50%;
        font-size: 30px;
    }

    .trust{
        font-size: 30px;
    }

    .wel, .logo1{
        display: none;
    }

    .btn a{
        margin-top: 20px;
        width: 80%;
        max-width: 280px;
        font-size: 16px;
        padding: 15px;
        height: auto;
        padding: 20px;
    }

    .btn{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* ── Landscape: phones hero fix ── */
@media (max-height: 500px) and (orientation: landscape){
    .hero{
        height: auto;
        min-height: 100vh;
        padding: 80px 40px 40px;
        margin-top: 0;
        background-position: center;
        justify-content: center;
    }

    .hero::before{
        height: 100%;
    }

    .wel{
        margin-top: 0;
        font-size: 16px;
    }

    .logo1{
        font-size: 36px;
    }

    .qua{
        font-size: 16px;
        margin-top: 8px;
    }

    .trust{
        font-size: 16px;
        margin-top: 10px;
    }

    .btn{
        flex-direction: row;
        gap: 20px;
        margin-top: 15px;
    }

    .btn a{
        font-size: 13px;
        padding: 10px 20px;
        height: auto;
        max-width: 180px;
    }
}

/* SECTION HERO1 */

.hero1{
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: #ffffff;
}

.hero-header{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.photo{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-evenly;
    margin-top: 20px;
}

.image img{
    flex-grow: 1;
    flex-basis: 300px;
    border: 1px solid white;
    height: 40vh;
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    background-color: black;
    transition: all 0.5s;
    transform: scaleX(1.08) translateX(-5px);
}

@media(max-width: 1200px){
    .image img{
        height: 30vh;
        max-width: 330px;
    }
}

@media(max-width: 1024px){
    .image{
        height: 60vh;
        max-width: 300px;
    }
}

@media(max-width: 820px){
    .image{
        height: 40vh;
        max-width: 300px;
    }
}

@media(max-width: 768px){
    .image{
        height: 40vh;
        max-width: 300px;
    }
}

@media(max-width: 320px){
    .image{
        height: 30vh;
        max-width: 250px;
    }
}

/* ── Landscape: featured inventory ── */
@media (max-height: 500px) and (orientation: landscape){
    .image{
        height: 200px;
        max-width: 220px;
    }
}

/* section hero2 */

.hero2{
    display: flex;
    flex-direction: column;
}

.hero-header1{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
}

.hero-header1 h1{
    font-size: 40px;
    letter-spacing: 3px;
}

.hero-header1 p{
    letter-spacing: 1px;
}

.hero-card{
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    padding: 10px;
    margin-top: 20px;
}

.hero-card1{
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 60px;
    border: 1px solid white;
    border-radius: 10px;
    height: 15vh;
    width: 100%;
    max-width: 600px;
    padding: 10px;
}

.hero-card1:hover{
    box-shadow: 2px 4px 6px rgb(185, 180, 180);
}

.card-icon{
    position: absolute;
    font-size: 30px;
    border: 1px solid #e8edf5;
    background-color: #e8eff8;
    width: 100%;
    max-width: 50px;
    height: 7vh;
    padding: 10px;
    margin-top: -2px;
}

.plate{
    margin-top: 20px;
}

.plate1{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 1200px){
    .hero-card{
        display: grid;
        gap: 20px;
    }

    .hero-card1{
        font-size: 27px;
        height: 10vh;
    }

    .card-icon{
        height: 3vh;
    }
}

@media (max-width: 1024px){
    .hero-card1{
        height: 30vh;
    }

    .card-icon{
        height: 10vh;
    }
}

@media(max-width: 820px){
    .hero-card1{
        height: 20vh;
    }

    .card-icon{
        height: 5vh;
    }
}

@media (max-width: 768px){
    .hero-card1{
        height: 25vh;
    }

    .card-icon{
        height: 6vh;
    }
}

@media (max-width: 480px){
    .hero-card{
        display: flex;
        flex-direction: column;
    }

    .hero-card1{
        height: 25vh;
    }
}

@media(max-width: 393px){
    .hero-card1{
        height: 30vh;
    }
}

@media(max-width: 360px){
    .hero-card1{
        height: 25vh;
        max-width: 300px;
        font-size: 20px;
    }
}

/* ── Landscape: why choose section ── */
@media (max-height: 500px) and (orientation: landscape){
    .hero-header1 h1{
        font-size: 24px;
    }

    .hero-card{
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-card1{
        height: auto;
        min-height: 80px;
        padding: 10px;
        gap: 40px;
    }

    .card-icon{
        height: 40px;
        max-width: 40px;
        font-size: 18px;
    }

    .plate{
        margin-top: 0;
    }
}

.hero3{
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    background-color: #e8eff8;
    padding: 20px;
    margin-top: 10%;
}

.ready{
    font-size: 25px;
}

.ready1{
    font-size: 20px;
}

.btn3{
    display: flex;
    justify-content: center;
}

.btn3 a{
    border: none;
    background-color: whitesmoke;
    color: black;
    font: 20px;
}

/* ── Landscape: CTA section ── */
@media (max-height: 500px) and (orientation: landscape){
    .hero3{
        margin-top: 5%;
        padding: 15px;
        gap: 10px;
    }

    .ready{
        font-size: 18px;
    }

    .ready1{
        font-size: 14px;
    }
}

/* FOOTER SECTION*/

footer{
    background-color: black;
    color: white;
    padding: 20px;
}

.footer-hero, .footer-hero1{
    display: flex;
    flex-direction: row;
    gap: 10%;
    margin-top: 50px;
}

.logo2{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    margin-left: 7%;
}

.logo3{
    font-size: 30px;
}

.logo3 span{
    font-size: 30px;
    font-style: italic;
}

.logo4{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-footer{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nav-footer1{
    display: flex;
    flex-direction: column;
    gap: 30px;
    list-style: none;
    margin-top: 15px;
}

.nav-footer1 li a{
    color: white;
    text-decoration: none;
}

.cont{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-left: 5%;
}

.cont1{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cont2{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.cont2 i{
    background-color: transparent;
    border: none;
    font-size: 17px;
}

.time{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0px;
    margin-left: 18%;
}

.social-icons i {
    position: static;
    font-size: 24px;
    background-color: transparent;
    border: none;
    width: auto;
    height: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    color: white;
}

.fa-brands, .fa-solid, .fa-regular {
    font-family: "Font Awesome 6 Brands";
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: white;
    font-size: 14px;
}

@media (max-width: 480px){
    .footer-hero, .footer-hero1{
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .nav-footer{
        margin-left: 10%;
    }

    .time{
        margin-left: 10%;
    }
}

/* ── Landscape: footer ── */
@media (max-height: 500px) and (orientation: landscape){
    .footer-hero, .footer-hero1{
        gap: 5%;
        margin-top: 20px;
    }

    .logo2{
        margin-left: 3%;
    }

    .time{
        margin-left: 5%;
    }

    .cont{
        margin-left: 2%;
        padding: 10px;
    }
}

/* ── Extra small phones (Galaxy Fold, etc.) ── */
@media (max-width: 320px){
    .logo p{
        font-size: 16px;
    }

    .logo span{
        font-size: 16px;
    }

    .qua{
        font-size: 20px;
    }

    .trust{
        font-size: 18px;
    }

    .btn a{
        font-size: 13px;
        padding: 12px;
    }

    .hero-card1{
        height: auto;
        min-height: 100px;
    }

    .footer-hero, .footer-hero1{
        flex-direction: column;
        gap: 30px;
    }

    .logo2{
        margin-left: 3%;
    }

    .time{
        margin-left: 3%;
    }
}