// MOBILE MENU
function toggleMenu() {
    const menu = document.getElementById('mobileMenu');

    if (menu.classList.contains('open')) {
        menu.classList.remove('open');
        setTimeout(() => menu.style.display = 'none', 300);
    } else {
        menu.style.display = 'flex';
        setTimeout(() => menu.classList.add('open'), 10);
    }
}

// FADE-IN ANIMATION
const fadeElems = document.querySelectorAll('.fade-in');
const fadeObserver = new IntersectionObserver(entries => {
    entries.forEach(entry => {
        if (entry.isIntersecting) {
            entry.target.style.opacity = 1;
            entry.target.style.transform = 'translateY(0)';
            fadeObserver.unobserve(entry.target);
        }
    });
}, { threshold: 0.2 });

fadeElems.forEach(el => fadeObserver.observe(el));


// PARALLAX VIDEO
window.addEventListener('scroll', () => {
    const scrollY = window.scrollY;
    const video = document.querySelector('.hero-video');
    video.style.transform = `translateY(${scrollY * 0.2}px) scale(1.05)`;
});

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    margin: 0;
    font-family: Inter, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* =============================================== */
/*                    NAVBAR                        */
/* =============================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.logo img {
    height: 40px;
    margin-left: 6px;
}

.menu-btn {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 16px;
    top: 14px;
    z-index: 1000;
}

.menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 20px;
    width: 200px;
    border-radius: 16px;
    gap: 16px;

    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .35s, transform .35s;
}

.menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

@media (min-width: 768px) {
    .menu-btn { display: none; }
    .menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        opacity: 1;
        transform: none;
        width: auto;
        padding: 0;
    }
}

/* =============================================== */
/*                      HERO                        */
/* ==============================*
