/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
    list-style: none;
}

body {
    color: #1f2d3d;
    background-color: #fffbe6;
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1d45a;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===== BURGER ===== */
#burger-toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: black;
    margin: 4px 0;
    display: block;
}

/* ===== MENU DESKTOP ===== */
.nav-links ul {
    display: flex;
    gap: 10px;
}

.nav-links ul li {
    display: inline-block;
    position: relative;
}

.nav-links ul li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    padding: 10px 15px;
    transition: 0.3s;
}

.nav-links ul li:hover > a {
    color: #d4a600;
}

/* underline animation */
.nav-links ul li::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background: #ffd84d;
    transition: 0.4s;
    margin: auto;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* ===== DROPDOWN ===== */
nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 999;
}

nav ul li:hover ul.dropdown {
    display: block;
}

nav ul li ul.dropdown li {
    display: block;
}

nav ul li ul.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    color: #333;
}

nav ul li ul.dropdown li a:hover {
    background: #f0f0f0;
}

/* ===== HEADER / VIDEO ===== */
.header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-section {
    position: absolute;
    width: 100%;
    height: 100%;
}

.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== HERO TEXT ===== */
.overlay-text {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 245, 200, 0.8);
    padding: 30px 50px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.overlay-text h1 {
    font-size: clamp(24px, 5vw, 48px);
    color: #1f4fd8;
}

.overlay-text p {
    font-size: clamp(14px, 2vw, 22px);
}

/* ===== HISTORY ===== */
.history {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: #f3fdf1;
}

.history-content {
    max-width: 800px;
    background: #f1f1d6;
    padding: 30px;
    border-radius: 15px;
    line-height: 1.8;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: black;
}

/* ===== FOOTER ===== */
.footer {
    background: #f6e27a;
    padding: 40px 20px;
    text-align: center;
}

.footer a {
    color: #1f4fd8;
    text-decoration: none;
}

/* ===== TOP BUTTON ===== */
#topBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background: #1f4fd8;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 18px;
    display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    /* show burger */
    .burger {
        display: flex;
    }

    /* hide menu initially */
    .nav-links ul {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: #333;

        display: none;
        flex-direction: column;
    }

    /* FIX overlap */
    .nav-links ul li {
        display: block;
        text-align: left;
    }

    .nav-links ul li a {
        display: block;
        padding: 12px 20px;
        color: white;
    }

    /* hyphen before text */
    .nav-links ul li a::before {
        content: "- ";
    }

    /* toggle menu */
    #burger-toggle:checked ~ ul {
        display: flex;
    }

    /* dropdown mobile fix */
    nav ul li ul.dropdown {
        position: static;
        box-shadow: none;
        background: #444;
    }

    nav ul li ul.dropdown li a {
        color: #ddd;
        padding-left: 30px;
    }
/* animation to X */
#burger-toggle:checked + .burger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#burger-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
}

#burger-toggle:checked + .burger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* smooth animation */
.burger span {
    transition: 0.3s;
}
    /* footer */
    .footer {
        font-size: 13px;
    }

    /* top button */
    #topBtn {
        bottom: 20px;
        right: 15px;
        padding: 10px;
        font-size: 16px;
    }
}