/* assets/css/intro-overlay.css */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#intro-overlay.active {
    opacity: 1;
    visibility: visible;
}

.intro-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#intro-overlay.active .intro-container {
    transform: scale(1);
}

.intro-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #fff 0%, #22c55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        max-height: 80vh;
        overflow-y: auto;
        padding: 10px;
    }
    .intro-title {
        font-size: 1.8rem;
    }
}

.intro-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.intro-card:hover {
    transform: translateY(-10px);
    border-color: #22c55e;
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.intro-image-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.intro-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.intro-card:hover .intro-image-wrapper img {
    transform: scale(1.1);
}

.intro-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
}

.intro-card-content {
    padding: 24px;
    flex-grow: 1;
}

.intro-card-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 12px;
}

.intro-card-text {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.6;
}

.intro-enter-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid #22c55e;
    color: #22c55e;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.intro-card:hover .intro-enter-btn {
    background: #22c55e;
    color: #000;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* Close/Skip button */
.intro-skip {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.intro-skip:hover {
    color: #22c55e;
}
