/* Intro Animation Styles */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #661F22 0%, #945C50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    animation: introContentFadeIn 1s ease-out forwards;
}

.intro-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 2rem;
    animation: logoReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    animation: titleSlideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.intro-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(240, 218, 161, 0.9);
    animation: subtitleSlideUp 0.8s ease-out 0.7s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Hide page content during intro */
body.intro-active {
    overflow: hidden;
}

body.intro-active .navbar,
body.intro-active .hero,
body.intro-active .programs-section,
body.intro-active .mission,
body.intro-active .quick-links,
body.intro-active .footer {
    opacity: 0;
}

/* Keyframe Animations */
@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    60% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

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

@keyframes introContentFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }
    
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .intro-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .intro-title {
        font-size: 1.5rem;
    }
    
    .intro-subtitle {
        font-size: 0.9rem;
    }
}
