:root {
    /* Colors inspired by the reference image */
    --bg-color: #000000;
    --text-color: #ffffff;

    /* Logo Colors (Updated) */
    --color-tl: #7c2865;
    /* Morado */
    --color-tr: #ed8116;
    /* Amarillo */
    --color-br: #054d9a;
    /* Azul */
    --color-bl: #e23922;
    /* Rojo */

    --font-main: 'Montserrat', sans-serif;
}

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

body {
    /* Background color as fallback */
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    /* For overlay positioning */
}

/* Video Background */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Dark Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* adjustable opacity */
    z-index: -1;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
}

/* Logo Styles */
.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo {
    width: 120px;
    height: 120px;
    animation: rotateLogo 20s linear infinite;
}

.segment-tl {
    fill: var(--color-tl);
}

.segment-tr {
    fill: var(--color-tr);
}

.segment-br {
    fill: var(--color-br);
}

.segment-bl {
    fill: var(--color-bl);
}

@keyframes rotateLogo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Main Text */
.main-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Coming Soon Animation */
.coming-soon {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 300;
    letter-spacing: 1em;
    /* Wide spacing */
    margin-top: 1rem;
    display: inline-block;
    white-space: nowrap;
}

.coming-soon span {
    display: inline-block;
    /* Initial state */
    color: var(--text-color);
    animation: colorWave 3s ease-in-out infinite;
}

/* Stagger animation for each letter */
.coming-soon span:nth-child(1) {
    animation-delay: 0.0s;
}

.coming-soon span:nth-child(2) {
    animation-delay: 0.1s;
}

.coming-soon span:nth-child(3) {
    animation-delay: 0.2s;
}

.coming-soon span:nth-child(4) {
    animation-delay: 0.3s;
}

.coming-soon span:nth-child(5) {
    animation-delay: 0.4s;
}

.coming-soon span:nth-child(6) {
    animation-delay: 0.5s;
}

.coming-soon span:nth-child(7) {
    animation-delay: 0.6s;
}

.coming-soon span:nth-child(8) {
    animation-delay: 0.7s;
}

.coming-soon span:nth-child(9) {
    animation-delay: 0.8s;
}

.coming-soon span:nth-child(10) {
    animation-delay: 0.9s;
}

.coming-soon span:nth-child(11) {
    animation-delay: 1.0s;
}

.coming-soon span:nth-child(12) {
    animation-delay: 1.1s;
}

@keyframes colorWave {
    0% {
        color: var(--text-color);
        transform: translateY(0);
    }

    20% {
        color: var(--color-tl);
        /* Purple */
        transform: translateY(-5px);
    }

    40% {
        color: var(--color-tr);
        /* Orange */
        transform: translateY(0);
    }

    60% {
        color: var(--color-br);
        /* Blue */
        transform: translateY(2px);
    }

    80% {
        color: var(--color-bl);
        /* Violet */
        transform: translateY(0);
    }

    100% {
        color: var(--text-color);
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .logo {
        width: 100px;
        height: 100px;
    }

    .main-text {
        font-size: 1.25rem;
    }

    .coming-soon {
        font-size: 0.9rem;
        letter-spacing: 0.5em;
        /* Reduce spacing on mobile to prevent wrapping issues */
    }
}

@media (max-width: 480px) {
    .logo {
        width: 80px;
        height: 80px;
    }

    .main-text {
        font-size: 1rem;
    }

    .coming-soon {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
    }
}

/* CoCrea Link */
.cocrea-link {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 10;
    transition: opacity 0.3s;
    font-family: var(--font-main);
}

.cocrea-link:hover {
    opacity: 0.8;
}