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

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Video Background */
#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    /* Almost invisible for deep space effect */
    z-index: 0;
    transition: opacity 1s ease-in-out;
}

#bgVideo.loaded {
    opacity: 0;
}

/* 3D Canvas */
#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 1;
    /* Always visible */
    background: #000;
    /* True black universe */
}

#canvas3d.visible {
    opacity: 1;
}


/* Z-Image Text Overlay - Cinematic Assembly */
.z-image-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    display: flex;
    gap: 0.1em;
}

.z-image-text span {
    display: inline-block;
    color: #fff;
    /* Fiery Metallic Bloom */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 20px rgba(255, 140, 0, 0.4)) drop-shadow(0 0 40px rgba(255, 69, 0, 0.2));
}

.z-image-text.animate-shimmer span {
    background: linear-gradient(135deg,
            #ffffff 0%,
            #e0e0e0 25%,
            #ff8c00 50%,
            #ffd700 75%,
            #ffffff 100%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorful-shine 4s linear infinite, pulse-letter 2s ease-in-out infinite alternate;
}

.z-image-text.animate-shimmer span:nth-child(odd) {
    animation-delay: 0.2s;
}

@keyframes colorful-shine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

@keyframes pulse-letter {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.02);
        filter: brightness(1.3);
    }
}

@keyframes shine {

    /* Kept for potential compatibility or other uses */
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}



/* Transition Overlay */
#transitionOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

#transitionOverlay.active {
    opacity: 1;
}

/* Text Overlay */
.text-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    text-align: center;
    z-index: 6;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 2rem;
}

.text-overlay.visible {
    opacity: 1;
}

.text-overlay.hidden {
    display: none;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sub-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.description {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.6);
}

.secondary-btn {
    background: transparent;
    color: #ff8c00;
    border: 2px solid #ff8c00;
}

.secondary-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .loader {
        width: 50px;
        height: 50px;
    }

    #loadingOverlay p {
        font-size: 14px;
    }

    .main-title {
        font-size: 2rem;
    }

    .sub-title {
        font-size: 1.2rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .z-image-text {
        font-size: 3rem;
        gap: 0.05em;
    }
}

@media (max-width: 480px) {
    .z-image-text {
        font-size: 2.2rem;
    }
}