body {
    /* min-height: 100vh; */
    font-family: 'Poppins', sans-serif;
    background: #ffe9d0;
    color: #000000;
    overflow-x: hidden;

    background-image: url("../assets/clowning-banner.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: brightness(0.9);

    margin: 0;
}

main {
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------
    FOOTER
-------------------------------------------------- */

footer {
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    background-color: #ffe9d0;
    color: #000000;
    font-size: 0.9rem;
}

.footer-socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.footer-socials a {
    text-decoration: none;
    color: #000000;
}

.footer-socials a:hover {
    color: #000000;
}

footer p {
    margin-top: 1rem;
}

/* --------------------------------------------------
    UNDERLINE HOVER EFFECT
-------------------------------------------------- */
.underline {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    text-decoration: none;
    color: #000000;
}

.underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    pointer-events: none;

    color: #000000;
}

.underline:hover::after {
    transform: scaleX(1);
}

/* --------------------------------------------------
    CLOWNING NAVIGATION
-------------------------------------------------- */

.clownbar {
    position: sticky;
    top: 0;
    z-index: 10;

    width: 100%;
    height: 100px;
    /* Lock height for hamburger positioning */

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

    background: transparent;
}

.clownbar-track {
    display: flex;
    flex-direction: row;
    /* align-items: center;
    justify-content: flex-start; */
    gap: 0;
}

.clown-img {
    height: 100px;
    object-fit: cover;
    cursor: pointer;
}

/* ---------------- HAMBURGER ---------------- */

.clown-hamburger {
    display: none;
    /* hidden by default (desktop) */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 22px;

    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* ABOVE overlay */
}

.clown-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: black;
    margin: 5px 0;
    transition: 0.3s;
}

/* ACTIVE STATE [X]*/

.clown-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.clown-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------------- MOBILE MENU OVERLAY ---------------- */

.clown-mobile-menu {
    position: fixed;
    inset: 0;
    /* full screen */
    width: 100%;
    height: 100vh;

    background: #ffe9d0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    z-index: 1000;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.clown-mobile-menu a {
    font-size: 2rem;
    text-decoration: none;
    color: black;
    font-family: 'Chewy', cursive;
}

/* ACTIVE STATE */
.clown-mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

/* prevent background scroll when open */
body.menu-open {
    overflow: hidden;
}

/* --------------------------------------------------
    MAIN CONTENT
-------------------------------------------------- */

.tf-logo {
    width: 400px;
    margin: 0;
    padding: 80px 0;
    filter: brightness(0.9);
}

.clown-divider {
    width: 100%;
    display: block;
    margin: 0;

    margin-top: 500px;
}

.clown-intro {
    /* position: relative; */
    width: 100%;
    background-color: #ffe9d0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.clown-intro-inner {
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;

    gap: 2rem;
}

.clown-face {
    width: 275px;
    object-fit: contain;
}


.intro-text h1 {
    font-family: 'Caveat Brush', cursive;
    font-weight: 500px;
    font-size: 3rem;
}

.intro-text p {
    font-family: 'Chewy', cursive;
    font-size: 1.2rem;
    line-height: 1.5;
}


.main-clown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #ffe9d0;
    width: 100%;
    margin: 0;
    padding: 2rem 1rem;
    gap: 2rem;
}


/* ---------- Our Work ---------- */

.poster-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;

    padding: 1rem;
}

.poster-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;

    border: 10px solid;
    box-sizing: border-box;

    transition: all 0.2s ease-in-out;
}

.poster-gallery img:hover {
    transform: scale(1.05);
    rotate: 2deg;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* 1st colour */
.poster-gallery img:nth-child(4n + 1) {
    border-color: #bd3720;
}

/* 2nd colour */
.poster-gallery img:nth-child(4n + 2) {
    border-color: #175a8a;
}

/* 3rd colour */
.poster-gallery img:nth-child(4n + 3) {
    border-color: #1c7036;
}

/* 4th colour */
.poster-gallery img:nth-child(4n + 4) {
    border-color: #ca831b;
}

/* --------------------------------------------------
    BTS
-------------------------------------------------- */

.bts-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
}

.bts-video iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
    border-radius: 8px;
}

/* --------------------------------------------------
    TITLES
-------------------------------------------------- */

.title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow-x: hidden;
}

.title-wrapper h2 {
    font-size: 2rem;
    font-family: 'Chewy', cursive;
    font-weight: 1000;
    margin: 0 1rem;

    text-wrap: nowrap;
}

.title-wrapper span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: rgb(0, 0, 0);

    margin: 1rem auto;
    flex-shrink: 0;
}


/* --------------------------------------------------
    MOBILE STYLES
-------------------------------------------------- */

@media (max-width: 768px) {

    /* GLOBAL */
    main {
        padding: 0;
    }

    /* ---------------- NAV BAR ---------------- */

    .clownbar-track {
        display: none;
    }

    .clown-hamburger {
        display: block;
    }

    .clownbar {
        justify-content: space-between;
        padding: 0 1rem;
    }

    /* ---------------- INTRO ---------------- */

    .clown-intro-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .clown-face {
        width: 180px;
    }

    .intro-text h1 {
        font-size: 2.5rem;
    }

    .intro-text p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    /* ---------------- DIVIDER ---------------- */

    .clown-divider {
        margin-top: 250px;
    }

    /* ---------------- MAIN CONTENT ---------------- */

    .main-clown-content {
        padding: 1rem;
        gap: 3rem;
    }

    /* ---------------- OUR WORK (POSTERS) ---------------- */

    .poster-gallery {
        grid-template-columns: repeat(2, 1fr);
        /* 3 → 2 columns */
        gap: 1rem;
        padding: 0.5rem;
    }

    .poster-gallery img {
        border-width: 6px;
    }

    .poster-gallery img:hover {
        transform: none;
        rotate: 0deg;
    }

    /* ---------------- BTS VIDEO ---------------- */

    .bts-video iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-width: 100%;
    }

    /* ---------------- TITLES ---------------- */

    .title-wrapper {
        padding: 0 1rem;
    }

    .title-wrapper h2 {
        font-size: 1.4rem;
    }

    .title-wrapper span {
        height: 2px;
    }
}