/* ==========================================================================
   تعریف فونت‌ها
   ========================================================================== */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff2') format('woff2'), url('fonts/Vazir.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazir-Bold';
    src: url('fonts/Vazir-Bold.woff2') format('woff2'), url('fonts/Vazir-Bold.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Dana';
    src: url('fonts/dana-regular.woff2') format('woff2'), url('fonts/dana-regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Dana-Bold';
    src: url('fonts/dana-bold.woff2') format('woff2'), url('fonts/dana-bold.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Gheytoon';
    src: url('fonts/Gheytoon Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}

/* ==========================================================================
   متغیرها و تنظیمات اصلی
   ========================================================================== */
:root {
    --bg-main: #0c061e;
    --bg-card: #150d2e;
    --bg-glass: rgba(255, 255, 255, 0.04);

    --primary-purple: #9d3bf0;
    --hover-purple: #b95dff;
    --glow-purple: rgba(157, 59, 240, 0.45);
    --pink-gradient: linear-gradient(135deg, #e91e63, #9d3bf0);
    
    --card-orange: #ff5226;
    --card-green: #00bfa5;
    --card-pink: #e91e63;
    --card-light-pink: #f48fb1;
    --card-purple-bright: #651fff;

    --text-white: #ffffff;
    --text-muted: #b0adc4;
    --text-dark: #111111;

    --font-dana: 'Dana', 'Vazir', sans-serif;
    --font-vazir-bold: 'Vazir-Bold', 'Dana-Bold', sans-serif;

    --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-dana);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1220px;
    margin: 0 auto;
}

.section-padding {
    padding: 90px 0;
}

/* ==========================================================================
   دکمه‌ها و استایل‌های عمومی
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-dana);
    transition: all 0.4s var(--ease-out-cubic);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--pink-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.25);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px var(--glow-purple);
    background: linear-gradient(135deg, #ff2a75, #b95dff);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--primary-purple);
    background: rgba(157, 59, 240, 0.12);
    color: var(--text-white);
    box-shadow: 0 0 20px var(--glow-purple);
    transform: translateY(-3px);
}

.btn-dark {
    background-color: #000;
    color: #fff;
}

.btn-dark:hover {
    background-color: var(--primary-purple);
    color: #fff;
    box-shadow: 0 0 20px var(--glow-purple);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 22px;
    font-size: 0.9rem;
}

.badge {
    background: rgba(157, 59, 240, 0.15);
    color: #d88aff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(157, 59, 240, 0.35);
    display: inline-block;
    margin-bottom: 20px;
}

.sub-title {
    color: var(--primary-purple);
    font-size: 0.95rem;
    font-weight: bold;
    display: block;
    margin-bottom: 12px;
}

/* کارت شیشه‌ای با افکت هاور بنفش نرم */
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.5s var(--ease-smooth), border-color 0.5s ease, box-shadow 0.5s ease;
}

.card-glass:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 15px 40px var(--glow-purple);
    transform: translateY(-6px);
}

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

.text-center { text-align: center; }
.mb-3 { margin-bottom: 15px; }
.mb-5 { margin-bottom: 50px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 30px; }

/* ==========================================================================
   هدر (Header)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 22px 0;
    transition: all 0.4s var(--ease-out-cubic);
}

.header.scrolled {
    background: rgba(12, 6, 30, 0.88);
    backdrop-filter: blur(16px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 42px;
    display: block;
}

.btn-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    color: #fff;
    border-color: var(--primary-purple);
    background: rgba(157, 59, 240, 0.15);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s var(--ease-out-cubic);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   بخش هیرو (Hero)
   ========================================================================== */
.hero {
    position: relative;
    padding: 190px 0 110px;
    text-align: center;
}

.glow-bg {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary-purple) 0%, rgba(12, 6, 30, 0) 70%);
    opacity: 0.45;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-family: var(--font-vazir-bold);
    line-height: 1.35;
    margin-bottom: 22px;
}

.hero-desc {
    max-width: 700px;
    margin: 0 auto 35px;
    color: var(--text-muted);
    font-size: 1rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ==========================================================================
   برندها (Brands Section)
   ========================================================================== */
.brands-card h3 {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: #e0e0f0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-item img {
    max-width: 110px;
    max-height: 80px;
    filter: grayscale(0.6) opacity(0.7);
    transition: all 0.4s var(--ease-out-cubic);
}

.brand-item img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.12);
}

/* ==========================================================================
   هویت بصری (Identity)
   ========================================================================== */
.hover-zoom-img {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hover-zoom-img img {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: transform 0.7s var(--ease-smooth);
}

.hover-zoom-img:hover img {
    transform: scale(1.06);
}

.check-icon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 0 20px var(--glow-purple);
}

.identity-text h2 {
    font-size: 2.1rem;
    font-family: var(--font-vazir-bold);
    margin-bottom: 20px;
    line-height: 1.4;
}

.identity-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ==========================================================================
   آمار (Stats)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.2rem;
    color: var(--primary-purple);
    font-family: var(--font-vazir-bold);
    text-shadow: 0 0 25px var(--glow-purple);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   خدمات (Services)
   ========================================================================== */
.section-header h2 {
    font-size: 2rem;
    font-family: var(--font-vazir-bold);
    line-height: 1.4;
}

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

.service-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.5s var(--ease-smooth);
}

.service-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 15px 40px var(--glow-purple);
    transform: translateY(-8px);
}

.card-icon {
    color: var(--primary-purple);
    background: rgba(157, 59, 240, 0.12);
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* ==========================================================================
   مهارت‌ها (Skills)
   ========================================================================== */
.skills-text h2 {
    font-size: 2.2rem;
    font-family: var(--font-vazir-bold);
    margin-bottom: 20px;
}

.skills-text p {
    color: var(--text-muted);
}

/* ==========================================================================
   کاروسل (Carousel)
   ========================================================================== */
.carousel-wrapper {
    position: relative;
    margin-top: 40px;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s var(--ease-smooth);
}

.carousel-slide {
    min-width: 33.333%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    max-width: 130px;
    max-height: 100px;
    filter: brightness(0.9);
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.1);
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-purple);
    box-shadow: 0 0 20px var(--glow-purple);
}

.prev-btn { margin-left: 15px; }
.next-btn { margin-right: 15px; }

/* ==========================================================================
   رشد تجاری (Growth Cards)
   ========================================================================== */
.growth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.growth-card {
    padding: 35px;
    border-radius: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s var(--ease-out-cubic);
}

.growth-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card-num {
    font-size: 3rem;
    font-family: var(--font-vazir-bold);
    display: block;
    margin-bottom: 10px;
}

.card-orange { background-color: var(--card-orange); }
.card-green { background-color: var(--card-green); grid-column: span 2; }
.card-pink { background-color: var(--card-pink); }
.card-light-pink { background-color: var(--card-light-pink); color: #111; }
.card-purple-bright { background-color: var(--card-purple-bright); }

.growth-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.small-text {
    font-size: 0.88rem;
    opacity: 0.9;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 90px;
    margin-top: 25px;
}

.chart-bars .bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px 8px 0 0;
    height: 0%;
    transition: height 1.2s var(--ease-smooth);
}

/* هنگام پدیدار شدن در اسکرول */
.reveal-left.appear .chart-bars .bar {
    height: var(--h);
}

.card-white {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* ==========================================================================
   CTA & فوتر
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, #e91e63, #8a2be2);
    border-radius: 28px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px var(--glow-purple);
}

.cta-banner h2 {
    font-size: 1.8rem;
    font-family: var(--font-vazir-bold);
}

.footer {
    background-color: #060312;
    padding: 70px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-right: 10px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--hover-purple);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ==========================================================================
   انیمیشن‌های ورودی اسکرول (Scroll Reveal)
   ========================================================================== */
.reveal-up, .reveal-down, .reveal-left, .reveal-right, .reveal-zoom {
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.9s var(--ease-smooth), opacity 0.9s var(--ease-smooth);
}

.reveal-up { transform: translateY(50px); }
.reveal-down { transform: translateY(-50px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-zoom { transform: scale(0.88); }

.appear {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   واکنش‌گرایی (Responsive)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2, .growth-bottom-grid {
        grid-template-columns: 1fr;
    }
    .services-grid, .growth-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-green {
        grid-column: span 1;
    }
    .carousel-slide {
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .brands-grid, .stats-grid, .services-grid, .growth-grid {
        grid-template-columns: 1fr;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .carousel-slide {
        min-width: 100%;
    }
}