/* --- 0. CUSTOM LOCAL FONTS --- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

/* --- 1. BASIC SETUP & SPACING --- */
body {
    background-color: black;
    margin: 0;
    padding-top: 20px;
    padding-bottom: 0px; 
    overflow-x: hidden; 
    font-family: 'Vazirmatn', 'Inter', sans-serif;
}

@media (min-width: 768px) {
    body {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* --- 2. THE DUST CANVAS --- */
#dust-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 15; 
}

/* --- 3. OVERLAY TEXT ON TOP OF IMAGE --- */
.overlay-text {
    position: absolute; 
    top: 20px; 
    left: 0;
    width: 100%; 
    text-align: center; 
    z-index: 20; 
    color: white; 
    font-family: 'Vazirmatn', 'Inter', sans-serif; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); 
    pointer-events: none; 
}

.overlay-text h2 {
    margin: 0;
    line-height: 1.4; 
}

/* --- 4. EDGE-TO-EDGE CONTAINER --- */
.slider-container {
    position: relative; 
    width: 100%; 
    margin: 0; 
}

/* --- 5. THE ARROWS --- */
.nav-arrow {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: rgba(255, 255, 255, 0.2); 
    color: white; 
    border: 2px solid rgba(255, 255, 255, 0.5); 
    border-radius: 50%; 
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10; 
    transition: opacity 0.3s ease; 
}
.right-arrow { right: 10px; }
.left-arrow { left: 10px; }

/* --- 6. THE TRACK AND IMAGE --- */
.slider-window {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.slider-window::-webkit-scrollbar {
    display: none;
}

.slider-track {
    width: 330%; 
    aspect-ratio: 1584 / 672; 
    position: relative;
}

@media (min-width: 768px) {
    .slider-track {
        width: 100%; 
        margin-left: 35vw;
        margin-right: 35vw;
    }
}

.slider-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- 7. THE INVISIBLE PERCENTAGE BOXES --- */
.click-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.snap-magnet {
    flex: 1;
    height: 100%;
    position: relative; 
}

.person-link {
    position: absolute; 
    display: block; 
    scroll-snap-align: center;
    scroll-snap-stop: always; 
}

#box-uni { width: 97.8%; height: 61%; bottom: 11.9%; right: 18.9%; }
#box-boys { width: 44.2%; height: 40.9%; bottom: 19.3%; right: 47.3%; }
#box-women { width: 44.2%; height: 64%; bottom: 8.9%; right: 22.1%; }
#box-girls { width: 28.4%; height: 47.6%; bottom: 14.9%; right: 25.3%; }
#box-men { width: 50.5%; height: 67%; bottom: 10.4%; right: 15.8%; }

/* --- 8. CINEMATIC INTRO SCREEN (Mobile Friendly) --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Soft dark gradient instead of flat black for a premium look */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    z-index: 14; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.intro-content {
    width: 90%; /* Safely contains text on mobile */
    max-width: 600px;
    color: white;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
}

.intro-title {
    /* Fluid size: scales down smoothly on phones */
    font-size: clamp(1.5rem, 6vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.5;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: cinematicReveal 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.intro-title span {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
    opacity: 0.85;
    font-family: 'Inter', sans-serif; 
}

.intro-desc {
    font-size: clamp(0.9rem, 3.5vw, 1.15rem);
    line-height: 1.8;
    color: #cccccc;
    font-weight: 300;
    opacity: 0;
    /* Delays the paragraph slightly for a staggered fade-in effect */
    animation: cinematicReveal 1.5s cubic-bezier(0.2, 1, 0.3, 1) 0.8s forwards;
}

/* Beautiful blur-to-focus fade up */
@keyframes cinematicReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.fade-out-intro {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Hides main text/arrows initially, waits for 5.5 seconds, then fades in */
.delayed-fade {
    opacity: 0;
    animation: revealMainSite 1.5s ease 5.5s forwards;
}

@keyframes revealMainSite {
    to { opacity: 1; }
}