#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-cream, #f9f3eb);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

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

/* Initial state: hide overlay by default unless show-intro class is present */
#intro-overlay:not(.show-intro) {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
}

#intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
    display: none;
}

#intro-logo-container {
    text-align: center;
}

#intro-logo {
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.8);
}

#intro-logo img {
    max-width: 300px;
    height: auto;
    width: 100%;
}

#intro-tagline {
    opacity: 0;
    transform: translateY(30px);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color, #8b4513);
    text-align: center;
}

#skip-intro {
    position: absolute;
    bottom: 40px;
    padding: 12px 30px;
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid var(--accent-color, #8b4513);
    color: var(--accent-color, #8b4513);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

#skip-intro:hover {
    background: var(--accent-color, #8b4513);
    color: white;
}

@media (max-width: 768px) {
    #intro-logo img {
        max-width: 200px;
    }

    #intro-tagline {
        font-size: 1.8rem;
    }

    #skip-intro {
        bottom: 30px;
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}