:root {
    --bg: #f6f3ef;
    --accent: #196BB4;
    --text: #333;
    --subtext: #888;
}

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

html, body {
    font-family: Lato, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    overflow: visible;
    top: 0;
    position: fixed;
    width: 100%;
    background-color: transparent;
    height: 60px;
    /*min-height: 60px;*/
    /*max-height: 60px;*/
    z-index: 3000;
}

.navbar.scrolled {
    background: color(srgb 0.129 0.1969 0.2838);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar * {
    box-sizing: border-box;
}

/*.navbar.scrolled .logo,*/
/*.navbar.scrolled a {*/
/*    color: #333;*/
/*}*/

/*.navbar.scrolled .burger span {*/
/*    background: #333;*/
/*}*/

.logo {
    color: var(--bg);
    font-size: 0.9rem;
    font-weight: 500;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    justify-content: space-between;
    position: relative;
    padding: 6px;
}

.burger span {
    height: 2px;
    width: 25px;
    background: var(--bg);
    margin: 4px 0;
    transition: 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-open .burger {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang {
    color: #bbb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.separator {
    color: #777;
}

.nav-links li a {
    color: var(--bg);
    text-decoration: none;
    padding: 8px 0;
}

.nav-links li a:hover {
    color: #ba9400;
}

.nav-links li a.active {
    color: #ffcc00;
}

header {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 250px;
}

.header-content {
    text-align: left;
    color: var(--bg);
    z-index: 1;
}

header h1 {
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.02em;
    text-align: left;
    font-size: clamp(3rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 2.5;
}

#typing-text {
    font-size: 2rem;
    font-weight: bold;
    border-right: 3px solid var(--bg);
    white-space: nowrap;
    display: inline-block;
    animation: blink 0.7s step-end infinite;
    /*min-height: 1em;*/
    /*white-space: pre;*/
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.header-bg {
    position: fixed;
    inset: 0;
    z-index: 0;

    background-image:
            linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
            url("images/header-bg-desktop.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content {
    position: relative;
    z-index: 1;
    background: var(--bg);
    /*max-width: var(--max-width);*/
    margin: 0 auto;
    padding: 200px 250px 20px 250px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
}

.content section {
    margin-bottom: 98px;
}
.content h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 24px;
    font-weight: 500;
    color: var(--accent);
    text-align: left;
}

.content-text{
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.content ul li {
    font-size: 1.2rem;
    margin-bottom: 16px;
    position: relative;
    padding-left: 28px;
    text-align: left;
    color: var(--text);
}

.content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 16px;
    height: 16px;
    background-image: url("images/bullet.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.content ul {
    list-style: none;
    padding-left: 0;
}

.content .role {
    margin-bottom: 32px;
}

.content .role-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 12px;
}

.content .role-org {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
}

.content .role-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--subtext);
}

section a {
    font-size: 1.2rem;
    color: var(--subtext);
    text-decoration: none;
}

section a:hover{
    color: var(--text);
}
/*.form-container {*/
/*    max-width: 400px;*/
/*    margin: 50px auto;*/
/*    padding: 20px;*/
/*    background-color: #fff;*/
/*    border-radius: 8px;*/
/*    box-shadow: 0 4px 10px rgba(0,0,0,0.1);*/
/*}*/

label {
    display: block;
    margin-bottom: 6px;
    font-size: 1.2rem;
    color: var(--text);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 24px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--accent);
}

label.required::after {
    content: "*";
    color: red;
}

.hint {
    color: red;
    font-size: 0.8rem;
    display: none;
    margin-top: -24px;
    margin-bottom: 24px;
}

.error-message {
    color: red;
    font-size: 0.8rem;
    display: block;
    line-height:1.2;
    margin-top: -20px;
    margin-bottom: 24px;
}


#captcha-error {
    color: red;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

input,
textarea {
    font-size: 1rem;
    line-height: 1.4;
}

textarea {
    min-height: 120px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    /*background-color: var(--accent);*/
    color: var(--bg);
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

footer {
    width: 100%;
    text-align: center;
}

.footer-social-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8rem;
}

.footer-social i{
    color: var(--subtext);
    display: inline-block;
    font-size: 1.4rem;
}

footer h1 {
    color: var(--subtext);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin:2rem 0 2rem 0;
    line-height: 1.4em;
    text-align: center;
}

footer i:hover {
    color: var(--accent);
}

footer .copyright {
    color: var(--subtext);
    font-size: 0.6rem;
    font-weight: 100;
}

@media (max-width: 1200px) {
    .header-bg {
        background-image:
                linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
                url("images/header-bg-tablet.webp");
    }

    .content {
        padding: 80px 40px;
        border-radius: 20px 20px 0 0;
    }

    header .header-content {
        text-align: left;
    }
    header {
        padding: 0 40px;
    }
    header h1 {
        line-height: 1.2;
        margin-bottom: 44px;
    }
}

@media (max-width: 768px) {
    .header-bg {
        position: absolute;
        background-image:
                linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
                url("images/header-bg-mobile.webp");
    }
    .content {
        padding: 80px 20px 10px 20px;
        border-radius: 20px 20px 0 0;
    }

    header .header-content {
        text-align: left;
    }
    header {
        padding: 250px 20px;
        align-items: normal;

    }
    header h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    #typing-text {
        font-size: 1.5rem;
        font-weight: 700;
        opacity: 0.85;
        border-right: 0 solid var(--bg);
        white-space: normal;   /* allow wrapping */
        word-break: break-word;
        text-align: left;
    }

    .content .role {
        margin-bottom: 24px;
    }
    .burger { display: flex; }

    .navbar {
        background-color: color(srgb 0.129 0.1969 0.2838);
    }


    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: color(srgb 0.129 0.1969 0.2838);
        flex-direction: column;
        align-items: center;
        display: flex;
        height: 100vh;
        width: 260px;
        gap: 30px;
        transition: right 0.3s ease;
    }

    /*.burger .overlay {*/
    /*    display: none;*/
    /*}*/

    .nav-links.active { right: 0; }

    #first-line{
        margin-top: 90px;
    }
}