:root {
    --primary: #ffffff;
    --accent: #3b82f6;
    --bg-dark: #0a0a0a;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader {
    width: 40px;
    height: 40px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Header & Logo */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 4rem;
}

.logo {
    height: clamp(180px, 40vw, 250px);
    width: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
    animation: fadeInDown 1.2s ease-out forwards;
    margin-bottom: -20px;
}

/* Main Info */
.main-info {
    max-width: 800px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.title .word:nth-child(1) {
    animation-delay: 0.4s;
}

.title .word:nth-child(2) {
    animation-delay: 0.5s;
}

.title .word:nth-child(3) {
    animation-delay: 0.6s;
}

.title .word:nth-child(4) {
    animation-delay: 0.7s;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}


/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
    padding: 1rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousel-item {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.carousel-item:hover img {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* Footer */
.footer {
    padding-top: 1rem;
    padding-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s forwards;
}

/* Drawing Lines Animation */
.drawing-lines {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.line {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Keyframes */
@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow: auto;
        /* Allow scroll on small mobile if needed */
        height: auto;
        min-height: 100vh;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .content {
        padding: 1.5rem;
        justify-content: flex-start;
        gap: 1.5rem;
        height: auto;
    }

    .header {
        padding-top: 0;
    }

    .logo {
        height: auto;
        width: 85%;
        max-width: 280px;
        margin-bottom: 0px;
    }

    .main-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .carousel-container {
        margin-top: 0.5rem;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    .carousel-item {
        width: 130px;
        height: 90px;
    }

    .footer {
        margin-top: 2rem;
        padding-bottom: 1rem;
        font-size: 0.7rem;
    }
}

/* Fix for very short screens */
@media (max-height: 600px) and (min-width: 769px) {
    .logo {
        height: 120px;
    }

    .subtitle {
        margin-bottom: 1rem;
    }
}