/* Intro Modal Styles */
.intro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
    overflow: hidden;
    visibility: visible;
}

/* Animated background gradient */
.intro-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(115, 251, 211, 0.1) 0%, 
        rgba(138, 126, 252, 0.1) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(115, 251, 211, 0.1) 75%, 
        rgba(138, 126, 252, 0.1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    z-index: -1;
}

/* Floating particles effect */
.intro-modal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(115, 251, 211, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(138, 126, 252, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 60% 40%, rgba(115, 251, 211, 0.08) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px;
    animation: particleFloat 12s linear infinite;
    z-index: -1;
}

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

/* Hide all videos when modal is visible */
body.modal-visible video {
    display: none !important;
}

.intro-logo-container {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-30px);
    animation: logoEnter 1s cubic-bezier(0, 0, 0, 1) 0.2s forwards;
}

.intro-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.intro-logo:hover {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(160deg);
    transform: scale(1.05);
}

.intro-title {
    font-family: 'Inter', 'Arial', sans-serif;
    font-weight: 100;
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-60px);
    animation: titleEnter 2s cubic-bezier(0, 0, 0, 1) 0.5s forwards;
    color: #ffffff;
}

.intro-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(60px);
    animation: subtitleEnter 1s cubic-bezier(0, 0, 0, 1) 1.5s forwards;
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(60px);
    animation: descriptionEnter 1s cubic-bezier(0, 0, 0, 1) 2s forwards;
}

.enter-button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 20px 40px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0, 0.25, 1);
    opacity: 0;
    transform: translateY(60px);
    animation: buttonEnter 1s cubic-bezier(0, 0, 0, 1) 2.5s forwards;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
}

.enter-button:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(115, 251, 211, 0.3);
}

.enter-button:not(:hover) {
    animation: buttonEnter 1s cubic-bezier(0, 0, 0, 1) 2.5s forwards,
               buttonPulse 2s ease-in-out infinite 3.5s;
}

.enter-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.enter-button:hover:before {
    left: 100%;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-15px); }
    75% { transform: translateY(-30px) translateX(5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

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

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

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

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

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

@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(115, 251, 211, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(115, 251, 211, 0.4);
    }
}
