@import url('https://fonts.googleapis.com/css2?family=Caprasimo&display=swap');

/* === BASE === */
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Caprasimo", serif;
}

/* === NAVBAR === */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
}
.navbar-container {
    background: rgba(0, 51, 68, 0.5);
    max-width: 1200px;
    margin: 0 auto;
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
}

/* === LOGO === */
.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

/* === NAV LINKS === */
.navbar-links {
    display: flex;
    gap: 2rem;
}
.navbar-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}
.navbar-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00FF99;
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}
.navbar-links a:hover::after {
    width: 100%;
}

/* === HAMBURGER === */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}
.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === SCROLL TO TOP ARROW === */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: 38px;
    height: 38px;
    background: rgba(0, 255, 153, 0.1);
    color: black;
    border-radius: 50%;
    border: 1.5px solid #00FF99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 9999;
}
.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.scroll-to-top:hover {
    background-color: rgba(0, 255, 153, 0.25);
    color: black;
    transform: scale(1.1);
}

/* === LANGUAGE SWITCHER === */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.language-switcher img {
    height: 20px;
    width: auto;
    max-height: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}
.language-switcher img:hover {
    transform: scale(1.1);
}

/* === MOBILE MENU === */
@media (max-width: 1100px) {
    .navbar-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .navbar-toggle {
        display: flex;
        margin-left: 12px;
    }

    .language-switcher {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1002;
    }

    .navbar-links {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #002933;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        width: 100%;
        max-width: 300px;
        padding: 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 12px 12px;
    }

    .navbar-links.open {
        max-height: 600px;
        padding: 1.2rem 0;
    }

    .navbar-links a {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        text-align: center;
        color: white;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        transition: background 0.3s, color 0.3s;
    }

    .navbar-links a:hover {
        background-color: rgba(0, 255, 153, 0.06);
        color: #00FF99;
    }
}
