/* =========================
   RESET + BOX SIZING
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =========================
   BASE STYLES
   ========================= */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #E6ECF2;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    direction: rtl;
    background: radial-gradient(
        circle at top,
        #0c1633 0%,
        #081024 35%,
        #040a18 70%,
        #020610 100%
    );
}

main {
    flex: 1;
    width: 100%;
}

/* =========================
   FONTS
   ========================= */
@font-face {
    font-family: 'Cropta';
    src: url(fonts.org/CorptaDEMO-Regular.woff) format('truetype');
    font-weight: bolder;
}

h1, h2, h3, h4, a {
    font-family: 'Cropta', sans-serif;
    font-weight: bold;
    color: #4ADE80;
    text-shadow: 0 0 10px rgba(92,255,177,0.35);
}

h1 {
    display: inline-block;
    border-bottom: #032a65 4px solid;
    border-radius: 10px;
    padding-bottom: 5px;
}

h2 {
    margin: 20px auto;
}

/* =========================
   HEADER
   ========================= */
header {
    background: url('intro.jpg') center/cover no-repeat;
    box-shadow: 0 10px 20px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(92,255,177,0.25);
    border-radius: 10px;
    width: 90%;
    margin: 5px auto 15px auto;
    flex: 0 0 clamp(60vh, 80vh, 90vh);
    display: flex;
    flex-direction: column;
}

.intro-p {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(92,255,177,0.35);
}

/* =========================
   NAVIGATION
   ========================= */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(12,22,51,0.75);
    margin-top: auto;
    padding: 10px;
    border: 1px solid rgba(92,255,177,0.25);
    border-style: groove;
    border-radius: 10px;
}

a {
    text-decoration: none;
}

button {
    background: rgba(8,16,36,0.85);
    border-radius: 10px;
    margin: 5px;
    transition: 0.3s;
}

button:hover {
    background-color: #232a4e;
    transform: translateY(-3px);
}

/* =========================
   GENERAL STYLES
   ========================= */
section {
    background: rgba(8,16,36,0.85);
    border: 1px solid rgba(92,255,177,0.25);
    border-radius: 20px;
    width: 85%;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    padding: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlide 0.8s forwards;
}

.Mercedes-Benz-div,
.General-Information-div,
.Technologies-div,
.img-div,
.Video-div {
    background: rgba(12,22,51,0.75);
    border: 1px solid rgba(92,255,177,0.25);
    border-radius: 10px;
    margin: 10px auto;
    padding: 20px;
    width: 80%;
    text-align: center;
    box-shadow: 0 0 25px rgba(92,255,177,0.35);
}

.Mercedes-logo {
    width: 50%;
    margin: 2px auto;
}

li {
    text-align: left;
    background: rgba(12,22,51,0.75);
    box-shadow: 0 8px 30px rgba(0,0,0,0.55),0 0 20px rgba(92,255,177,0.12);
    border: 1px solid rgba(90, 140, 255, 0.28);
    border-radius: 50px;
    padding: 20px;
    margin: 20px auto;
}

ul {
    list-style-position: inside;
}

hr {
    border: none;
    height: 3px;
    width: 50%;
    background: linear-gradient(to right, #4ADE80, #08262c);
    border-radius: 5px;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* =========================
   SPECIFICATIONS & DESIGN CARDS
   ========================= */
.specifications-row,
.Design-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.Specifications-card,
.Design-card {
    flex: 1 1 260px;
    max-width: 32%;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
    box-shadow: 0 0 25px rgba(92,255,177,0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.Specifications-card:hover,
.Design-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(92,255,177,0.5);
}

.Specifications-p,
.Design-p {
    color: #4ADE80;
    text-shadow: 0 0 10px rgba(92,255,177,0.35);
    margin: 20px auto;
    border-bottom: #032a65 4px solid;
    border-radius: 10px;
    font-family: 'Cropta', sans-serif;
}

.Specifications-card li,
.Design-card li {
    border: 1px solid rgba(90, 140, 255, 0.28);
}

.Specifications-img,
.Design-card img,
.img,
.video,
video {
    max-width: 90%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 100px;
}

/* =========================
   PERFORMANCE VIDEO
   ========================= */
.Performance-Video-card {
    background: rgba(12,22,51,0.75);
    padding: 20px;
    border: #032a65 4px solid;
    max-width: 80%;
    margin: 10px auto;
}

.Performance-Video {
    width: 80%;
    padding: 40px;
}

/* =========================
   ANIMATION
   ========================= */
@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================
   FOOTER
   ========================= */
footer {
    border: 1px solid rgba(90, 140, 255, 0.28);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    background: rgba(8,16,36,0.85);
    margin: 20px 5px;
    border-radius: 20px;
}

/* =========================
   RESPONSIVE
   ========================= */

/* Tablets */
@media (max-width: 1024px) {
    .Specifications-card,
    .Design-card {
        flex: 1 1 45%;
        max-width: 45%;
    }

    .Mercedes-Benz-div,
    .General-Information-div,
    .Technologies-div,
    .img-div,
    .Video-div {
        width: 90%;
    }
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {

    header {
        flex: 0 0 auto;
        padding: 20px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .Specifications-card,
    .Design-card {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 15px auto;
    }

    .Mercedes-Benz-div,
    .General-Information-div,
    .Technologies-div,
    .img-div,
    .Video-div {
        width: 95%;
        padding: 15px;
    }

    .General-Information-li,
    .Technologies-div-li {
        border-radius: 20px;
        text-align: right;
    }

    video,
    .video {
        width: 100%;
        padding: 0;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.15rem; }

    button {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .Mercedes-Benz-div p,
    .General-Information-li,
    .Technologies-div-li {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
