/*
 * Network Community - Intro Animation
 * Netflix-style logo reveal
 */

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo Container */
.intro-logo {
    position: relative;
    text-align: center;
    transform: scale(0.5);
    opacity: 0;
}

.intro-logo.animate {
    animation: logoReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Logo Text */
.intro-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.intro-logo-text span {
    display: block;
}

.intro-logo-text .network {
    color: #ffffff;
}

.intro-logo-text .community {
    color: #e50914;
    font-size: 0.9em;
    letter-spacing: 0.15em;
    margin-top: -0.1em;
}

/* Glow Effect */
.intro-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(229, 9, 20, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    filter: blur(40px);
}

.intro-logo.animate .intro-glow {
    animation: glowPulse 2s ease-in-out;
}

/* Subtitle */
.intro-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    opacity: 0;
}

.intro-logo.animate .intro-subtitle {
    animation: subtitleFadeIn 0.5s ease 1.2s forwards;
}

/* Animations */
@keyframes logoReveal {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    60% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Line Animation */
.intro-line {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e50914, transparent);
}

.intro-logo.animate .intro-line {
    animation: lineExpand 0.8s ease 0.8s forwards;
}

@keyframes lineExpand {
    from {
        width: 0;
    }

    to {
        width: 200px;
    }
}

/* Skip Button (optional) */
.intro-skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.intro-overlay.show-skip .intro-skip {
    animation: fadeIn 0.3s ease 0.5s forwards;
}

.intro-skip:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Particles (optional decorative) */
.intro-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.intro-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(229, 9, 20, 0.5);
    border-radius: 50%;
    opacity: 0;
}

.intro-logo.animate .intro-particle {
    animation: particleFloat 2s ease-out forwards;
}

.intro-particle:nth-child(1) {
    left: 20%;
    top: 30%;
    animation-delay: 0.3s;
}

.intro-particle:nth-child(2) {
    left: 80%;
    top: 25%;
    animation-delay: 0.5s;
}

.intro-particle:nth-child(3) {
    left: 15%;
    top: 70%;
    animation-delay: 0.4s;
}

.intro-particle:nth-child(4) {
    left: 85%;
    top: 65%;
    animation-delay: 0.6s;
}

.intro-particle:nth-child(5) {
    left: 50%;
    top: 20%;
    animation-delay: 0.2s;
}

.intro-particle:nth-child(6) {
    left: 45%;
    top: 80%;
    animation-delay: 0.7s;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0);
    }
}

/* Loading dots during initial load */
.intro-loading {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.intro-loading-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: loadingDot 1.4s infinite;
}

.intro-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.intro-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {

    0%,
    80%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    40% {
        transform: scale(1.3);
        opacity: 1;
    }
}