/* General styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: black;
    color: white;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: black;
    position: sticky;
    top: 0;
    z-index: 10;
}

header img.logo {
    height: 50px;
}

/* Navigation links */
nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    text-transform: uppercase;
    position: relative;
    font-weight: 700; /* en gras */
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Underline animation (left → right) */
nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease-in-out;
}

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

/* Section styles */
section {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 {
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    line-height: 1.6;
}

/* Banner */
.banner {
    position: relative;
    background: linear-gradient(135deg, #66aeb6, #ff7e5f);
    padding: 80px 50px;
    margin: 50px 0;
    overflow: hidden;
    border-radius: 10px;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* white transparent overlay */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: black;
}

.banner-content h2 {
    font-weight: 700;
}

/* Footer */
footer {
    padding: 50px;
    background: linear-gradient(135deg, #66aeb6, #ff7e5f);
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Responsive for tablets and mobiles */
@media screen and (max-width: 1024px) {
    section {
        padding: 60px 30px;
    }
    .banner {
        padding: 60px 30px;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px;
    }

    nav {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    nav a {
        margin-left: 0;
    }

    section {
        padding: 50px 20px;
    }

    .banner {
        padding: 50px 20px;
    }

    h1 {
        font-size: 28px;
        font-weight: 700;
    }

    h2 {
        font-size: 24px;
        font-weight: 700;
    }

    p {
        font-size: 16px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 24px;
        font-weight: 700;
    }

    h2 {
        font-size: 20px;
        font-weight: 700;
    }

    p {
        font-size: 14px;
    }

    .banner {
        padding: 40px 15px;
    }

    header img.logo {
        height: 40px;
    }
}
