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

body {
    font-family: 'Zalando Sans', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.hero {
    height: 100vh;
    background-color: #8e8e8e;
}

.hero .hero-image {
    height: 100vh;
}

.hero .hero-image img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

header h1 {
    font-size: 3rem;
    color: white;
    position: absolute;
    left: 0;
}

header nav {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
}

header nav ul {
    display: flex;
    padding: 20px;
    justify-content: space-around;
    gap: 40px;
}

header nav ul li {
    list-style-type: none;
}

header nav ul li a {
    padding: 0.5rem 1.5rem;
    background-color: white;
    border-radius: 10px;
    color: black;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

header nav ul li a:hover {
    background-color: black;
    color: white;
}

main {
    display: flex;
    flex-direction: column;
}

main .content {
    display: flex;
    flex-direction: column;
    background-color: black;
}

main .content .card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 100px 20px;
    min-height: 100vh;
}

main .content .card.reverse {
    flex-direction: row-reverse;
}

main .content .card article {
    flex: 1;
}

main .content .card article h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

main .content .card article p {
    font-size: 1.4rem;
    line-height: 1.7rem;
    color: white;
}

main .content .card aside {
    flex: 1;
}

main .content .card aside img {
    width: 100%;
    height: auto;
    border: 2px solid white;
    border-radius: 10px;
    display: block;
}

main .content .card article ul {
    margin-top: 2rem;
    margin-left: 1.5rem;
    font-size: 1.4rem;
    line-height: 2rem;
    color: white;
}

main .content .card aside.img-reverse {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 80vh;
}

main .content .card aside.img-reverse img {
    border-width: 2px;
    border-style: solid;
    border-color: white;
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
    object-position: 0px -170px;
}

footer {
    color: white;
    background-color: rgb(14, 14, 14);
    text-align: center;
    font-weight: bold;
    padding: 20px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    
    header {
        position: fixed; 
        flex-direction: column;
        align-items: center;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.8); 
        backdrop-filter: blur(5px); 
    }
    
    header h1 {
        position: static;
        font-size: 2rem;
        margin-bottom: 5px; 
        text-align: center;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
    }
    
    header nav {
        width: 90%;
        max-width: 400px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    }
    
    header nav ul {
        gap: 5px;
        padding: 8px 10px; 
        justify-content: center;
        flex-wrap: wrap;
    }
    
    header nav ul li a {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        display: inline-block;
        white-space: nowrap;
    }
    
    .hero {
        height: 100vh; 
        padding-top: 70px; 
    }
    
    .hero .hero-image {
        height: calc(100vh - 70px); 
    }
    
    .hero .hero-image img {
        height: calc(100vh - 70px);
        object-position: center;
    }
    
    main .content .card {
        scroll-margin-top: 80px;
        flex-direction: column;
        padding: 40px 20px 60px 20px;
        min-height: auto;
        gap: 30px;
        text-align: center;
    }
    
    main .content .card.reverse {
        flex-direction: column;
    }
    
    main .content .card article h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    main .content .card article p {
        font-size: 1.2rem;
        line-height: 1.6rem;
        text-align: justify;
    }
    
    main .content .card article ul {
        text-align: left;
        font-size: 1.2rem;
        line-height: 1.8rem;
        margin-top: 1.5rem;
        margin-left: 0;
        padding-left: 1.5rem;
    }
    
    main .content .card aside,
    main .content .card aside.img-reverse {
        width: 100%;
        height: auto;
        max-width: 500px;
        margin: 0 auto;
    }
    
    main .content .card aside img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
        border-width: 2px;
    }
    
    main .content .card aside.img-reverse img {
        object-position: center;
        height: auto;
        max-height: 350px;
    }
    
    #title-spek {
        font-size: 2.2rem;
    }
    
    footer {
        padding: 15px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }
    
    header nav ul li a {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem; 
    }
    
    main .content .card article h2 {
        font-size: 2rem;
    }
    
    main .content .card article p,
    main .content .card article ul {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    main .content .card {
        padding: 30px 15px 50px 15px;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .hero .hero-image {
        height: calc(100vh - 60px);
    }
    
    .hero .hero-image img {
        height: calc(100vh - 60px);
    }
}

@supports (padding-top: constant(safe-area-inset-top)) {
    @media screen and (max-width: 768px) {
        header {
            padding-top: calc(10px + constant(safe-area-inset-top));
        }
        
        .hero {
            padding-top: calc(70px + constant(safe-area-inset-top));
        }
    }
}

@supports (padding-top: env(safe-area-inset-top)) {
    @media screen and (max-width: 768px) {
        header {
            padding-top: calc(10px + env(safe-area-inset-top));
        }
        
        .hero {
            padding-top: calc(70px + env(safe-area-inset-top));
        }
    }
}