html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #a0d8ef;
    background-image: url('/public/img/background5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
    font-size: 16px;
}

@font-face {
    font-family: 'Balgruf';
    src: url('/public/fonts/Balgruf-JRye7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff8c6;
    padding: 1rem 2rem;
    font-family: 'Balgruf', sans-serif;
    font-weight: 500;
    z-index: 10;
    flex-wrap: wrap;
}

nav h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    color: #fff8c6;

}

nav a {
    position: relative;
    color: #fff8c6;
    text-decoration: none;
    margin-left: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-family: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #f5eca6;
    transition: width 0.3s ease;
}

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

nav button {
    color: #fff8c6;
    margin-left: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 1vw, 1.2rem);
    font-family: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

nav a:hover,
nav button:hover {
    opacity: 0.8;
    color: #f5eca6;
}

nav div,
nav a,
nav button {
    display: inline-block;
}

nav .right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* ===== TITLE ===== */
.title {
    font-weight: 900 !important;
    font-size: clamp(2rem, 5vw, 3rem);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    nav {
        padding: 1rem;
    }

    nav .right {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav .right {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
    }

    nav a, nav button {
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll;
    }

    nav {
        padding: 0.5rem;
    }

    nav h1 {
        font-size: 1.2rem;
    }

    .title {
        font-size: 2rem;
    }
}
