:root {
    --darkblue: #06122c;
    --white: #eeeeee;
    --darkred: #d90501;
}

* {
    box-sizing: border-box;
}
html, body {
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darkblue)
}
html {
    scroll-behavior: smooth;
}
#nav-container {
    background-color: var(--darkred);
    position: sticky;
    top: 0px;
    z-index: 1;
}
.nav-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 60px;
}
.nav-flex label, #humberger {
    display: none;
}
nav ul {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0;
}
nav ul li a {
    display: block;
    color: var(--white);
    padding: 0 16px;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 60px;
}
nav ul li a:hover {
    background-color: var(--darkblue);
    color: var(--white);
    transition: all 0.3s;
}
.nav-brand h2 {
    margin: 14px 0 0 15px;
    color: var(--white);
}
#hero-container {
    background-image: url(../image/heroporsche.jpg);
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-attachment: fixed;
    position: relative;
}
#hero-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}
.text {
    position: relative;
    z-index: 0;
    text-align: center;
    color: var(--white);
    font-size: 20px;;
}
.button {
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    background-color: var(--darkred);
    padding: 10px 20px;
    color: var(--white);
    font-size: 16px;
    border-radius: 10px;
    z-index: 1;
    position: relative;
}
.button:hover {
    background-color: var(--darkblue);
    color: var(--white);
    transition: all 0.3s;
}
main {
    width: 80%;
    margin: auto;
}
#about h1 {
    color: var(--darkred);
    text-align: center;
    margin-top: 80px;
}
#about .about-deskripsi {
    text-align: center;
    color: var(--white);
}
.about-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 30px auto;
}
.about-image, .about-text {
    width: 50%;
    margin: 14px;
}
.about-text h2 {
    color: var(--darkred);
}
.about-text p {
    color: var(--white);
    text-align: justify;
}
.about-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}
#why-porsche h1 {
    color: var(--darkred);
    text-align: center;
    margin-top: 80px;
}
#why-porsche .why-porsche-deskripsi {
    text-align: center;
    color: var(--white);
}
.why-porsche-flex {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 30px auto;
}
.why-porsche-items {
    width: 25%;
    text-align: center;
    padding: 20px 10px;
}
.why-porsche-items .fas, .fa-solid {
    color: var(--darkred);
}
.why-porsche-items h3 {
    color: var(--darkred);
}
.why-porsche-items p {
    color: var(--white);
}
#gallery h1 {
    color: var(--darkred);
    text-align: center;
    margin-top: 80px;
}
.gallery-deskripsi {
    text-align: center;
    color: var(--white);
}
.gallery-flex {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 30px auto;
}
.gallery-items {
    width: 25%;
    padding: 5px;
    overflow: hidden;
    border-radius: 5px;
}
.gallery-items img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.gallery-items img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}
#contact h1 {
    margin-top: 80px;
    color: var(--darkred);
    text-align: center;
}
.contact-deskripsi {
    text-align: center;
    color: var(--white);
}
.social-media {
    width: 40%;
    padding: 10px;
    margin: auto;
}
.social-media h3 {
    text-align: center;
    color: var(--darkred);
}
.social-icon {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
    padding: 5px;
    border-radius: 10px;
}
.facebook {
    background-color: var(--white);
    color: var(--darkblue);
}
.twitter {
    background-color: var(--white);
    color: var(--darkblue);
}
.instagram {
    background-color: var(--white);
    color: var(--darkblue);
}
.linkedin {
    background-color: var(--white);
    color: var(--darkblue);
}
.social-icon:hover {
    opacity: 0.8;
}
.footer-container {
    margin-top: 60px;
    color: var(--white);
    background-color: var(--darkblue);
    padding: 30px 5px;
}
.footer-container a {
    text-decoration: none;
    color: var(--white);
}
.footer-container a:hover {
    text-decoration: underline;
}
.footer-flex {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
.footer-flex section {
    width: 25%;
    text-align: center;
}
.footer-flex section ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
footer h3 {
    margin-top: 0;
}
.footer-copy-right {
    width: 100%;
    display: flex;
    margin-top: 50px;
    flex-flow: row wrap;
    justify-content: space-evenly;
    padding: 10px;
}
.footer-copy-right a:hover {
    text-decoration: none;
}
/* Tablet & Mobile Responsive */
@media screen and (max-width: 768px) {
    /* Menampilkan humberger */
    #nav-container .nav-flex label {
        display: inline-block;
        color: var(--white);
        font-style: normal;
        font-size: 32px;
        padding: 8px;
        margin-left: 10px;
    }
    /* Menyusun menu menjadi vertikal */
    #nav-container .nav-flex {
        width: 100%;
    }
    nav ul {
        flex-direction: column;
        width: 150px;
        position: absolute;
        top: 60px;
        left: 0;
    }
    nav ul li a {
        display: block;
        background-color: var(--darkred);
        padding: 0 30px;
        color: var(--white);
    }
    /* Memindahkan posisi brand ke kanan & diperkecil */
    .nav-brand h2 {
        position: absolute;
        right: 20px;
    }
    /* Menampilkan & menyembunyikan humberger */
    #nav-container nav {
        display: none;
    }
    #nav-container .nav-flex input:checked ~ nav {
        display: flex;
    }
    .about-flex {
        flex-direction: column;
    }
    .about-image, .about-text {
        width: auto;
    }
    /* Why Porsche menjadi 2 baris ke bawah*/
    .why-porsche-items {
        width: 50%;
    }
    /* Gallery menjadi 2 baris ke bawah */
    .gallery-items {
        width: 50%;
    }
    /* Contact menjadi 2 baris ke bawah */
    .contact-flex {
        flex-direction: column;
    }
    .social-media {
        width: 100%;
    }
    /* Footer menjadi 2 baris ke bawah */
    .footer-flex section {
        width: 48%;
        margin-top: 5px;
    }
}
/* Mobile Responsive */
@media screen and (max-width: 481px) {
    /* Why Porsche menjadi 1 baris ke bawah */
    .why-porsche-items {
        width: 100%;
    }
    /* Gallery menjadi 1 baris ke bawah */
    .gallery-items {
        width: 100%;
    }
    /* Footer menjadi 1 baris ke bawah */
    .footer-flex section {
        width: 100%;
        margin-top: 5px;
    }
}