/* ========================= */
/* RESET */
/* ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color:#152a41;
}

/* ========================= */
/* WORDPRESS FIX */
/* ========================= */

.site,
.site-main,
.site-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* transparent layers */
body,
.site,
.site-main,
.site-content,
.site-footer,
.site-header {
    background: transparent !important;
}

/* ========================= */
/* VIDEO BACKGROUND */
/* ========================= */

.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.video-bg video {
    position: absolute;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.video-bg video.active {
    opacity: 1;
}

.video-mobile {
    display: none;
}

/* ========================= */
/* LAYERING */
/* ========================= */

header,
main,
footer {
    position: relative;
    z-index: 10;
}

/* ========================= */
/* OVERLAY */
/* ========================= */

.overlay {
    position: relative;
    height: 100vh;
    z-index: 20;
}

/* ========================= */
/* HERO BLOCK */
/* ========================= */

.hero {
    width: 90%;
    position: absolute;
    left: 5vw;
    top: 50%;
    transform: translateY(-50%);
}

/* STATIC TEXT */
.static-text {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(18px, 2.5vw, 28px);
    color: white;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* ========================= */
/* HERO TEXT SYSTEM (FIXED) */
/* ========================= */

.overlay {
    position: relative;
    height: 65vh;
    z-index: 20;
}

/* container anchor */
.hero {
    position: absolute;
    left: 5vw;
    top: 50%;
    transform: translateY(-50%);
}

/* STATIC TEXT */
.static-text {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(18px, 2.5vw, 28px);
    color: white;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* STACK ALL TEXTS IN SAME POSITION */
.text {
    position: absolute;   /* 🔥 KEY FIX */
    top: 100%;            /* sits below static text */
    left: 0;

    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 175px;
    line-height: 1;
    color: white;

    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.6s ease;
}

/* ACTIVE SLIDE */
.text.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.text span {
    color: #2c8bfa;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.site-footer {
    background: transparent !important;
    color: white;
    padding: 40px;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 1024px) {

    .video-desktop {
        display: none;
    }

    .video-mobile {
        display: block;
    }

    .hero {
        left: 50%;
        bottom: 60px;
        top: auto;
        transform: translateX(-50%);
        text-align: center;
        width: 90%;
    }

    .text {
        font-size: 50px;
        left: 50%;
        transform: translateX(-50%) translateY(30px);
    }

    .text.active {
        transform: translateX(-50%) translateY(0);
    }

    .static-text {
        font-size: 16px;
        margin-bottom: 15px;
    }
    .overlay {
        height: 80vh;
    }
}

@media (max-width: 480px) {
    .static-text {
        font-size: 13px;
    }
    .hero {
        bottom: 80px;
    }
    .text {
        font-size: 40px;
    }
    .footer-left,.footer-links {
        font-size: 12px;
    }
}