/* --- GLOBAL RESET & FONT --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #111;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- SHARED (Navbar, Overlay, & Footer) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    transition: all 0.4s ease;
}

.nav-logo {
    position: relative;
    left: 0;
    transform: translateX(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
}

.nav-logo img {
    display: block;
    height: auto;
    width: 150px;
    transition: filter 0.4s ease, width 0.6s ease;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(0);
    will-change: opacity;
}

.nav-links.is-loaded {
    animation: simpleFade 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.nav-item {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    transition: color 0.4s ease;
    transition-delay: 0s !important;
}

.nav-item.active {
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

/* Scrolled State */
.navbar.scrolled {
    background: #fff;
    padding: 20px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-item {
    color: #111;
}

.navbar.scrolled .nav-logo img {
    filter: brightness(0);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.footer {
    background-color: #111;
    padding: 45px 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    position: relative;
}

/* --- DEFINING THE ANIMATIONS --- */

/* For Backgrounds: Just Fade */
@keyframes simpleFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* For Content (Buttons, Text): Fade + Slide Up */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px); /* Start 30px lower */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* animation: niceFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; */

/* When Parent gets .is-loaded, the CHILDREN slide up */
.reveal-section.is-loaded .section-content,
.page-index.is-loaded .container-index {
    animation: slideUpFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s; /* Content appears slightly after background starts */
}

/* --- INDEX PAGE (Main) --- */
.page-index {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://ang8blsqdwivmaru.public.blob.vercel-storage.com/9966.webp');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    text-align: center;
    overflow: hidden;
    position: relative;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.page-index.is-loaded {
    animation: simpleFade 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    pointer-events: auto; /* Re-enable clicking */
}

.logo-index img {
    max-width: 90%;
    width: 370.365px;
    height: auto;
    margin-bottom: 12px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.container-index {
    padding: 20px;
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    opacity: 0;
}

.container-index h1 {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.container-index p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    opacity: 1;
}

.btn-enter {
    display: inline-block;
    border: 3px solid #fff;
    color: #fff;
    padding: 1.2em 2.4em;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-enter:hover {
    background-color: #fff;
    color: #000;
    opacity: 0.95;
}

/* --- HOME PAGE (Reveal) --- */
.body-home a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    will-change: opacity;
}

.body-home a:hover {
    opacity: 0.7;
}

.reveal-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 1.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none; /* Prevents clicking while invisible */
    will-change: opacity;
}

.reveal-section::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    /* Pull the background image from whatever the parent section has */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* The Magic: We use your JS variable to move the whole element via transform */
    transform: translateY(var(--parallax-y, 0px)) translateZ(0);
    will-change: transform;
    /* Keep it behind your content */
    z-index: -1;
    pointer-events: none;
}

.reveal-section.is-loaded {
    animation: simpleFade 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    pointer-events: auto; /* Re-enable clicking */
}

#media-section::before {
    background-image: url('https://ang8blsqdwivmaru.public.blob.vercel-storage.com/9758.webp');
}

#about-section::before {
    background-image: url('https://ang8blsqdwivmaru.public.blob.vercel-storage.com/5431.webp');
}

#contact-section::before {
    background-image: url('https://ang8blsqdwivmaru.public.blob.vercel-storage.com/9802.webp');
}

.section-content {
    position: relative;
    z-index: 2;
    opacity: 0;
}

.big-btn {
    position: relative;
    z-index: 10;
    display: inline-block;
    border: 5px solid #fff;
    color: #fff;
    padding: 1em 2.5em;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease !important;
    background-color: transparent;
}

.body-home .big-btn:hover,
.big-btn:hover {
    background-color: #fff;
    color: #111;
    opacity: 0.95;
}

/* Scroll Indicator Arrow */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-text {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.scroll-arrow {
    width: 20px;
    height: auto;
    fill: #fff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- WIP PAGE ('Nothing') --- */
.header-reveal {
    width: 100%;
    height: 20vh;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 1.5s ease;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.header-reveal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(var(--parallax-y, 0px)) translateZ(0);
    will-change: transform;
    z-index: -1;
    pointer-events: none;
    background-image: url('https://ang8blsqdwivmaru.public.blob.vercel-storage.com/9758.webp');
}

.header-reveal.is-loaded {
    animation: simpleFade 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    pointer-events: auto; /* Re-enable clicking */
}

/* White Content Area */
.main-content {
    position: relative;
    z-index: 10;
    background-color: #fff;
    padding: 100px 20px;
    min-height: 100vh;
    text-align: center;
}

.title-heading {
    font-size: clamp(14px, 4.5vw, 48px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #111;
    margin-top: 30vh;
    width: 100%;
    display: block;
    white-space: nowrap;
    opacity: 0;
    transition: font-size 0.3s ease-out;
    will-change: opacity;
}

.title-heading.revealed {
    animation: slideUpFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }
    .nav-logo {
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.5s ease-in-out;
    }
    .nav-links {
        flex-basis: 0;
        width: 0;
        opacity: 0;
        gap: 0;
        pointer-events: none;
        transform: none;
        visibility: hidden;
        transition: all 0s !important;
    }
    .title-heading {
        font-size: 14px;
        transition: font-size 0.2s ease, opacity 1s ease, transform 1s ease;
    }
    .big-btn {
        padding: 1.2em 2em;
        font-size: 13px;
        border: 3px solid #fff;
    }
    .footer {
        font-size: 8px;
        padding: 30px 20px;
    }
}