@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background: url('bg.jpg') no-repeat center center/cover;
    background-color: #1b0f0f;
    color: #f5f1ea;
    width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
}

/*@media (min-width: 1025px) {
    body {
        background-attachment: fixed;
    }
}*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6.5rem;
    padding: 1rem 8%;
    background: rgba(27, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 3rem;
    color: #e4b97d;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    gap: 3rem;
}

nav a {
    font-size: 1.7rem;
    color: #f5f1ea;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #e4b97d;
    transition: 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: #e4b97d;
}

section {
    padding: 10rem 8%;
    min-height: 100vh;
}

.home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url('bg.jpg') no-repeat center center/cover;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
    overflow: hidden;
}

.home::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1b0f0f;
    opacity: 0.8;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
    pointer-events: none;
    z-index: 0;
}

.home > * {
    position: relative;
    z-index: 1;
}

.home-content {
    max-width: 90rem;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.home-content h1 {
    font-size: clamp(3.2rem, 4.5vw, 5.4rem); 
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.home-content h2 {
    font-size: clamp(1.4rem, 2vw, 1.8rem); 
    font-weight: 600;
    color: #f5f1ea;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.home-content h3 {
    font-size: clamp(2rem, 3vw, 3.2rem); 
    color: #f5f1ea;
    margin-bottom: 1rem;
}

.home-content h4 {
    font-size: clamp(2.3rem, 4.5vw, 4rem); 
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.home-content p {
    font-size: clamp(1.3rem, 1.5vw, 1.6rem); 
    color: #f5f1ea;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.typing-text {
    font-size: clamp(2.3rem, 4.5vw, 5.4rem);
    color: #e4b97d;
    font-weight: 600;
    margin: 1.5rem 0;
    max-width: 80%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    min-height: calc(1.2em * 2);
    text-align: left;
}

@media (max-width: 1024px) {
    .typing-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        min-height: calc(1.2em * 2);
    }
}


.typing-text span::after {
    content: "|";
    animation: blink 0.8s infinite;
    position: absolute;
    color: #e4b97d;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

@keyframes words {
    0%, 12.5%    { content: "AI (UNHLAB)"; }        
    12.5%, 25%   { content: "WFP"; }
    25%, 37.5%   { content: "UNODC"; }
    37.5%, 50%   { content: "CHAMBER OF DEPUTIES"; }
    50%, 62.5%   { content: "UNWOMEN"; }
    62.5%, 75%   { content: "SHADOW SECURITY COUNCIL"; }
    75%, 87.5%   { content: "F-UNDRR"; }
    87.5%, 100%  { content: "CC: FBI"; }
}




/*.typing-text span::before {
    content: "AI (UNHLAB)";
    animation: words 12s steps(8, end) infinite;
    animation-fill-mode: both;
    display: inline-block;
    position: relative;
    color: #e4b97d;
}

*/

.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1b0f0f;
    background-color: #e4b97d;
    border: 2px solid #e4b97d;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: #e4b97d;
    box-shadow: 0 0 12px #e4b97d;
}

.home-img img {
    width: 32vw;
    border-radius: 50%;
    border: 4px solid #e4b97d;
    box-shadow: 0 0 25px rgba(228, 185, 125, 0.6);
    transition: transform 0.3s ease;
}

.home-img img:hover {
    transform: scale(1.05);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-right: 1.5rem;
    width: 4.2rem;
    height: 4.2rem;
    font-size: 2rem;
    border: 2px solid #e4b97d;
    color: #e4b97d;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #e4b97d;
    color: #1b0f0f;
    transform: scale(1.2) translateY(-4px);
    box-shadow: 0 0 15px #e4b97d;
}

.hamburger {
    display: none;
    font-size: 3rem;
    color: #e4b97d;
    cursor: pointer;
    z-index: 110;
}

#menu-toggle {
    display: none;
}

@media (max-width: 995px) {
    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        top: 6.5rem;
        right: 0;
        background-color: #1b0f0f;
        width: 60%;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        border-left: 2px solid #e4b97d;
        display: none;
    }

    #menu-toggle:checked + .hamburger + nav {
        display: flex;
    }

    nav a {
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .home {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .home-img img {
        width: 70vw;
    }
}

.home-content, .home-img img {
    opacity: 0;
    animation: fadeIn 1.4s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}



