:root {
    --bg: #000000;
    --text: #ffffff;
    --accent: #00efff;
    /* Cyber Cyan */
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- Loader --- */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    /* Highest z-index to cover everything initially */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-inner {
    text-align: center;
    letter-spacing: 5px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent);
}

.bar {
    width: 0%;
    height: 2px;
    background: var(--text);
    margin-bottom: 10px;
    transition: width 0.3s;
}

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Fixed height to prevent expansion */
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    /* Prevent huge logo */
    object-fit: contain;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 15px;
    margin-left: auto;
    /* Push to right */
    margin-right: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 0;
    transition: color 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.menu-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.menu-btn:hover .hamburger span:nth-child(2) {
    width: 70%;
}

/* --- Menu Overlay --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Ensure clicks pass through when hidden */
    transition: all 0.5s ease-in-out;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.menu-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
}

.menu-link:hover,
.menu-link.active {
    color: #fff;
    transform: scale(1.05);
}

.highlight-link {
    color: var(--accent);
}

/* --- Video Layer --- */
.viewport-visual {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* --- Content & Scroller --- */
#scroller {
    position: relative;
    z-index: 10;
}

.step {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px 20px;
    /* Safe area for nav */
}

.content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    padding: 2rem;
}

.step.active .content {
    opacity: 1;
    transform: translateY(0);
}

.centralized {
    text-align: center;
}

.left-aligned {
    text-align: left;
}

.right-aligned {
    text-align: right;
}

.centralized p {
    margin: 0 auto;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.6;
    margin-top: 0;
}

/* UI Elements */
.scroll-hint {
    margin-top: 3rem;
    font-size: 0.7rem;
    letter-spacing: 3px;
    animation: blink 2s infinite;
}

.cta-btn {
    text-decoration: none;
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 2rem;
}

.cta-btn:hover {
    background: var(--text);
    color: #000;
    letter-spacing: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* --- Floating WhatsApp --- */
.whatsapp-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
    animation: pulse-green 2s infinite;
}

.whatsapp-link:hover {
    transform: scale(1.1);
}

.whatsapp-link svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .content {
        padding: 1rem;
    }

    .left-aligned,
    .right-aligned {
        text-align: center;
        padding: 1rem;
    }

    .menu-link {
        font-size: 1.5rem;
    }

    /* Center logo and simplify nav */
    .main-nav {
        padding: 0 1rem;
        height: 60px;
    }

    .logo img {
        height: 30px;
    }

    .lang-switcher {
        gap: 8px;
        margin-right: 15px;
    }

    .lang-btn {
        font-size: 0.7rem;
    }

    .menu-text {
        display: none;
    }

    .whatsapp-link {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-link svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        overflow-wrap: break-word;
        /* Prevent overflow if still too long */
        word-break: break-word;
    }

    .step {
        padding: 80px 10px 40px 10px;
        /* Reduced side padding */
    }

    .content {
        padding: 0;
        width: 100%;
    }
}