:root {
  --bg: #ffffff;
  --text-h1: #000000;
  --links: #000000;
  --border: #575757;
  --accent: #2563eb;
  --container-padding: 10%;
}

header {
    padding-left: 10%;
    padding-right: 10%;
    width: 100%;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
    box-sizing: border-box;

    background-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    header {
        padding-left: 5%;
        padding-right: 5%;
        height: auto;
        min-height: 70px;
    }

    header h1 {
        font-size: 28px;
    }

}

#dot {
    color: var(--accent);
}

header h1 {
    color: var(--text-h1);
    font-family: Inter, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--links);
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
}

nav ul li a:hover {
    color: var(--accent);
}

/* ---- Hamburger button (hidden on desktop) ---- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-h1);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* Animate to an X when open */
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ---- Mobile layout ---- */
@media (max-width: 768px) {

    header {
        position: relative;   /* anchor for the dropdown */
    }

    .hamburger {
        display: flex;
    }

    /* Turn nav into a dropdown panel below the header */
    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }

    header.is-open nav {
        max-height: 320px;   /* enough to fit the links; bump if you add more */
    }
    

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 5%;
        gap: 1rem;
    }

    header nav ul li a {
        font-size: 18px;
    }
}


.language-toggle {
    display: flex;
    align-items: center;
}

.language-toggle form {
    display: flex;
    align-items: center;
    margin: 0;
}

.flag-toggle-button {
    width: 42px;
    height: 28px;

    border: none;
    background: transparent;
    padding: 0;

    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flag-toggle-button:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}