:root {
    --primary: #af1b1b;
    --white: #ffffff;
    --black: #050505;
    --gray: #888888;
}

body {
    margin: 0;
    background-color: var(--black);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    /* Lock scroll during intro */
}

/* PRELOADER */
/* PRELOADER STYLES REMOVED TO USE ORIGINAL SITE PRELOADER */
/* 
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--black);
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 40px;
    box-sizing: border-box;
}

.counter {
    font-family: 'Syne', sans-serif;
    font-size: 15vw;
    color: var(--white);
    font-weight: 800;
    line-height: 1;
}

.preloader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    z-index: 101;
} 
*/

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    z-index: 90;
    opacity: 0;
    /* Hidden initially */
    /* Ensures visibility on light/dark */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

.logo img {
    width: 40px;
    height: auto;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.hamburger {
    width: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s;
}

.menu-btn:hover .line:nth-child(2) {
    width: 70%;
}

/* HERO */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    clip-path: inset(100% 0 0 0);
    /* HIDDEN initially (curtain effect) */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
    /* Zoomed in initially */
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.6);*/
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5vw;
    align-items: center;
}

.line-mask {
    overflow: hidden;
    /* To mask text reveal */
}

.hero-text-main {
    font-family: 'Syne', sans-serif;
    font-size: 8vw;
    line-height: 0.9;
    color: var(--white);
    margin: 0;
    transform: translateY(100%);
    /* Hidden initially */
    text-transform: uppercase;
}

/* Outline Text Variants */
.outlined {
    /* Use standardized outline if standard CSS, else fallback */
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
}

.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 5vw;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-down {
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    opacity: 0;
}

.arrow-down {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.hero-desc {
    max-width: 300px;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
}

.header-inner-side {}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

/* GLITCH EFFECT */
.glitch-effect {
    position: relative;
    /* ensure data-text attribute is set in HTML */
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-effect::before {
    left: 2px;
    text-shadow: -1px 0 #af1b1b;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-effect::after {
    left: -2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(100px, 9999px, 86px, 0);
    }

    5% {
        clip: rect(66px, 9999px, 14px, 0);
    }

    10% {
        clip: rect(87px, 9999px, 92px, 0);
    }

    15% {
        clip: rect(8px, 9999px, 2px, 0);
    }

    20% {
        clip: rect(41px, 9999px, 47px, 0);
    }

    25% {
        clip: rect(35px, 9999px, 63px, 0);
    }

    30% {
        clip: rect(72px, 9999px, 82px, 0);
    }

    35% {
        clip: rect(98px, 9999px, 66px, 0);
    }

    40% {
        clip: rect(39px, 9999px, 68px, 0);
    }

    45% {
        clip: rect(74px, 9999px, 6px, 0);
    }

    50% {
        clip: rect(18px, 9999px, 7px, 0);
    }

    55% {
        clip: rect(32px, 9999px, 56px, 0);
    }

    60% {
        clip: rect(78px, 9999px, 16px, 0);
    }

    65% {
        clip: rect(41px, 9999px, 20px, 0);
    }

    70% {
        clip: rect(19px, 9999px, 99px, 0);
    }

    75% {
        clip: rect(70px, 9999px, 59px, 0);
    }

    80% {
        clip: rect(65px, 9999px, 3px, 0);
    }

    85% {
        clip: rect(92px, 9999px, 66px, 0);
    }

    90% {
        clip: rect(30px, 9999px, 99px, 0);
    }

    95% {
        clip: rect(33px, 9999px, 27px, 0);
    }

    100% {
        clip: rect(48px, 9999px, 10px, 0);
    }
}

/* SIDEBARS (Left & Right) */
.hero-sidebar-left {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 10;
}

.rotated-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: var(--gray);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.social-lines {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--primary);
}

.hero-sidebar-right {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 25px;
    z-index: 10;
    text-align: right;
}

.coordinate-data {
    font-family: 'Syne', sans-serif;
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.data-label {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 1px;
}

.data-val {
    font-weight: 700;
}

.data-val.glow {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.data-val.glow-red {
    color: #af1b1b;
    text-shadow: 0 0 10px #ff0000;
}

.deco-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--white), transparent);
    margin-top: 20px;
}

/* TECH MARQUEE STYLES */
.tech-marquee-container {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.tech-marquee-row {
    position: relative;
    width: 100%;
}

.tech-row-title {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    padding: 0 5%;
    text-transform: uppercase;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    margin: 0 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--black);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

.tech-pill i {
    font-size: 1.4rem;
    margin-right: 10px;
}

/* Override plugin inline styles where needed */
.infiniteSlide {
    display: flex;
    align-items: center;
}

/* Hide sidebars on mobile */
@media (max-width: 768px) {

    .hero-sidebar-right {
        position: absolute;
        right: 40px;
        top: 30%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 25px;
        z-index: 10;
        text-align: right;
    }

    .hero-desc {
        max-width: 300px;
        color: #ccc;
        font-size: 1rem;
        line-height: 1.5;
        opacity: 0;
        display: none;
    }

    .hero-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 40px 5vw;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-sidebar-left {
        position: absolute;
        left: 40px;
        top: 60%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        z-index: 10;
    }

    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0px;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: center;
        z-index: 90;
        opacity: 0;
        padding-top: 15px;
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(66px, 9999px, 66px, 0);
    }

    5% {
        clip: rect(38px, 9999px, 57px, 0);
    }

    10% {
        clip: rect(96px, 9999px, 22px, 0);
    }

    15% {
        clip: rect(100px, 9999px, 24px, 0);
    }

    20% {
        clip: rect(79px, 9999px, 32px, 0);
    }

    25% {
        clip: rect(2px, 9999px, 96px, 0);
    }

    30% {
        clip: rect(11px, 9999px, 5px, 0);
    }

    35% {
        clip: rect(66px, 9999px, 45px, 0);
    }

    40% {
        clip: rect(16px, 9999px, 91px, 0);
    }

    45% {
        clip: rect(8px, 9999px, 35px, 0);
    }

    50% {
        clip: rect(41px, 9999px, 75px, 0);
    }

    55% {
        clip: rect(76px, 9999px, 70px, 0);
    }

    60% {
        clip: rect(94px, 9999px, 86px, 0);
    }

    65% {
        clip: rect(27px, 9999px, 86px, 0);
    }

    70% {
        clip: rect(15px, 9999px, 46px, 0);
    }

    75% {
        clip: rect(54px, 9999px, 21px, 0);
    }

    80% {
        clip: rect(6px, 9999px, 1px, 0);
    }

    85% {
        clip: rect(72px, 9999px, 15px, 0);
    }

    90% {
        clip: rect(80px, 9999px, 93px, 0);
    }

    95% {
        clip: rect(33px, 9999px, 9px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 5px, 0);
    }
}