/* ==================== Reset & Base ==================== */

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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --dark: #0f172a;
    --gray: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.75);
    --shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.25);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    background: #f8fafc;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==================== Loading ==================== */

#page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a, #0284c7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

#page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.loader-logo span {
    color: #38bdf8;
}

.progress-bar {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    border-radius: 10px;
    animation: loadProgress 1.8s ease forwards;
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}


/* ==================== Header Desktop ==================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(14, 165, 233, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* ==================== Bottom Navigation (Mobile) ==================== */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    z-index: 1000;
    padding: 8px 0 env(safe-area-inset-bottom);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: var(--primary);
}

.bottom-nav svg {
    width: 22px;
    height: 22px;
}


/* ==================== Slider (نسخه نهایی قوی) ==================== */

.slider-section {
    width: 100%;
    max-width: 1400px;
    margin: 25px auto 40px;
    padding: 0 15px;
}

.slider {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    background: #e0f2fe;
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.12);
}

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

.slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 1 !important;
    transition: opacity 0.6s ease !important;
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 5 !important;
}

.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}


/* دکمه‌های اسلایدر */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 1.7rem;
    color: #0f172a;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.slider-btn:hover {
    background: #fff;
    color: #0ea5e9;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    right: 18px;
}

.slider-btn.next {
    left: 18px;
}


/* نقطه‌ها */

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 30;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #ffffff;
    width: 26px;
    border-radius: 10px;
}


/* ==================== Hero ==================== */

.hero {
    padding: 60px 0 70px;
    background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: var(--transition);
    overflow: hidden;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-card img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}


/* ==================== Festival ==================== */

.festival {
    padding: 40px 0 60px;
}

.festival-box {
    background: linear-gradient(135deg, #0f172a, #0369a1);
    border-radius: 24px;
    padding: 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.festival-box h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.festival-box p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 80px;
}

.countdown-item span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.countdown-item small {
    font-size: 0.8rem;
    opacity: 0.8;
}


/* ==================== Categories ==================== */

.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.5rem;
    color: var(--primary);
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
}


/* ==================== Benefits ==================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px 24px;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--gray);
}


/* ==================== Footer ==================== */

.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.footer h4 {
    color: white;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}


/* ==================== Responsive ==================== */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .nav-menu {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .slider {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .header {
        display: none;
    }
    .bottom-nav {
        display: block;
    }
    body {
        padding-bottom: 70px;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .slider {
        height: 230px;
        border-radius: 14px;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
    }
    .slider-btn.prev {
        right: 10px;
    }
    .slider-btn.next {
        left: 10px;
    }
}