* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050508;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
}

/* بک‌گراند ذرات متحرک */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at center, #11121a 0%, #050508 100%);
    overflow: hidden;
}

/* کانتینر شبیه به اپلیکیشن موبایل */
.gallery-app {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 840px;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* استایل اسلایدها */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* وضعیت اسلاید فعال (افکت زوم‌ این ملایم و فید) */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide.active img {
    transform: scale(1);
}

/* وضعیت اسلاید قبلی برای افکت خروج (زوم اوت و فید اوی) */
.slide.exit {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.slide.exit img {
    transform: scale(0.9);
}

/* منوی کنترل شیشه‌ای (Glassmorphism) */
.controls-glass {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}