*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    overflow-x: hidden;
}

.text {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ---------- Nav ---------- */
#nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 0 30px;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

#logo {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-buttons {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(14px, 1.8vw, 20px);
    transition: color 0.2s;
}

.nav-buttons:hover {
    color: #ff0000;
}

#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background-color: black;
    border: none;
    cursor: pointer;
}

#menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

#menu-toggle:hover span { background-color: #ff0000; }
#menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
#background {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    filter: blur(2px) brightness(70%);
    z-index: 0;
}

#title-box {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 20px 0;       /* nav offset + side room on phones */
}

#title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(36px, 8vw, 60px);   /* 60px no longer overflows on phones */
    color: white;
    margin: 0 0 15px;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    #nav-bar {
        height: 70px;
        padding: 0 15px;
    }

    #logo { height: 45px; }

    #menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: black;
    }

    .nav-links.open { display: flex; }

    .nav-buttons {
        padding: 15px 20px;
        font-size: 18px;
        border-top: 1px solid #333;
    }

    #title-box { padding-top: 70px; }
}