﻿/* ===== متغیرهای رنگی ===== */
:root {
    --green-1: #10b981;
    --green-2: #34d399;
    --green-3: #6ee7b7;
    --blue-1: #06b6d4;
    --blue-2: #0ea5e9;
    --blue-3: #38bdf8;
    --cyan: #22d3ee;
    --purple: #8b5cf6;
    --dark-bg: #0a0e27;
    --dark-card: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --gradient-main: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    --gradient-soft: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
}
.text-left{
    text-align:left !important;
}
body.light-mode {
    --green-1: #10b981;
    --green-2: #059669;
    --green-3: #34d399;
    --blue-1: #06b6d4;
    --blue-2: #0284c7;
    --blue-3: #38bdf8;
    --cyan: #0891b2;
    --purple: #7c3aed;
    --dark-bg: #f8fafc;
    --dark-card: rgba(255, 255, 255, 0.9);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1e293b;
    --text-secondary: rgba(30, 41, 59, 0.7);
    --gradient-main: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #0891b2 100%);
    --gradient-soft: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
}

.d-flex {
    display: flex;
}

/* --- دکمه تغییر تم --- */
.theme-toggle {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .theme-toggle:hover {
        background: var(--gradient-accent);
        color: #fff;
        border-color: transparent;
        transform: rotate(20deg) scale(1.1);
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    }

    .theme-toggle:active {
        transform: scale(0.95);
    }

/* ===== پس‌زمینه متحرک - بهینه شده ===== */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(at 20% 30%, rgba(16, 185, 129, 0.15) 0px, transparent 50%), radial-gradient(at 80% 20%, rgba(6, 182, 212, 0.15) 0px, transparent 50%), radial-gradient(at 40% 80%, rgba(139, 92, 246, 0.1) 0px, transparent 50%), radial-gradient(at 90% 90%, rgba(34, 211, 238, 0.1) 0px, transparent 50%), var(--dark-bg);
    /* حذف animation از bg-mesh */
}

.blob {
    position: fixed;
    border-radius: 50%;
    /* کاهش blur از 80 به 40 */
    filter: blur(40px);
    opacity: 0.25; /* کاهش از 0.5 */
    z-index: -1;
    animation: blobFloat 30s infinite ease-in-out; /* کندتر از 20s */
    will-change: transform; /* فقط transform رو animate کن */
    transform: translateZ(0); /* force GPU layer */
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--green-1);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--blue-2);
    bottom: 10%;
    left: -100px;
    animation-delay: -5s;
}

/* حذف blob-3 که GPU رو درگیر می‌کرد */
.blob-3 {
    display: none;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    33% {
        transform: translate3d(30px, -30px, 0) scale(1.05); /* کاهش از 50 به 30 */
    }

    66% {
        transform: translate3d(-20px, 20px, 0) scale(0.95); /* کاهش از 30 به 20 */
    }
}

/* ===== اسکرول‌بار ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== متن گرادیانت ===== */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== دکمه‌ها ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
    }

.btn-glass {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); /* کاهش از 20 به 10 */
    -webkit-backdrop-filter: blur(10px);
}

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-3px);
        border-color: var(--green-2);
    }

/* ===== هدر ===== */
.navbar {
    position: fixed;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    z-index: 1000;
    padding: 15px 30px;
    background: var(--dark-bg);
    backdrop-filter: blur(20px); /* نگه داشتن blur در navbar چون مهمه */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    width: calc(100% - 40px);
    max-width: 1200px;
    transition: all 0.4s ease;
}

    .navbar.scrolled {
        top: 10px;
        padding: 10px 30px;
        background: var(--dark-card);
    }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    position: relative;
}

    .logo-icon img {
        width: 58px;
        border-radius: 50%;
    }

    .logo-icon::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 14px;
        background: var(--gradient-main);
        z-index: -1;
        opacity: 0.5;
        filter: blur(10px);
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.logo-text span {
    display: block;
    font-size: 10px;
    font-weight: 400;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

    .nav-menu a {
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 14px;
        position: relative;
        transition: color 0.3s;
        padding: 5px 0;
    }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 0;
            height: 2px;
            background: var(--gradient-main);
            transition: width 0.3s ease;
            border-radius: 2px;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--text-primary);
        }

            .nav-menu a:hover::after,
            .nav-menu a.active::after {
                width: 100%;
            }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
}

/* ===== هیرو ===== */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    padding: 160px 0 60px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass);
    backdrop-filter: blur(10px); /* کاهش از 20 به 10 */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--green-2);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 25px;
    animation: slideInUp 0.8s ease;
}

    .hero-badge i {
        animation: rotate 3s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    animation: slideInUp 1s ease;
}

    .hero h1 .highlight {
        display: inline-block;
        position: relative;
    }

        .hero h1 .highlight::after {
            content: '';
            position: absolute;
            bottom: 5px;
            right: 0;
            width: 100%;
            height: 15px;
            background: var(--gradient-main);
            opacity: 0.3;
            border-radius: 10px;
            z-index: -1;
        }

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
    animation: slideInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: slideInUp 1.4s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ویژوال هیرو ===== */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-orb {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--gradient-main);
    position: relative;
    animation: orbFloat 6s ease-in-out infinite;
    box-shadow: 0 0 80px rgb(24, 114, 255), inset 0 0 80px rgba(255, 255, 255, 0.1);
    background-image: url('/IOimg/indexer/HeroLogo.webp');
    background-repeat: round;
    border: 2px solid #007cff;
    will-change: transform; /* فقط این انیمیشن GPU layer داشته باشه */
}

    .hero-orb::before {
        content: '';
        position: absolute;
        inset: 20px;
        border-radius: 50%;
        background: var(--dark-bg);
        opacity: 0.3;
    }

    .hero-orb::after {
        content: '';
        position: absolute;
        inset: -30px;
        border-radius: 50%;
        border: 2px dashed rgba(255, 255, 255, 0.2);
        animation: rotate 20s linear infinite;
    }

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(10px); /* کاهش از 20 به 10 */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    left: 0;
    animation-delay: -2s;
}

.floating-card-3 {
    top: 50%;
    right: -30px;
    animation-delay: -1s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 22px;
    flex-shrink: 0;
}

.floating-card-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.floating-card-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== عنوان بخش‌ها ===== */
.section {
    padding: 110px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    display: inline-block;
    padding: 6px 18px;
    background: var(--gradient-soft);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--green-2);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    /* حذف backdrop-filter از subtitle */
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== کارت‌های شیشه‌ای - بهینه شده ===== */
.glass-card {
    background: var(--glass);
    /* حذف backdrop-filter از کارت‌های ساده */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    contain: layout style; /* ایزوله کردن repaint */
}

    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: var(--gradient-main);
        opacity: 0;
        transition: opacity 0.5s;
        z-index: -1;
    }

    .glass-card:hover {
        transform: translateY(-10px);
        border-color: var(--green-2);
        box-shadow: 0 30px 60px rgba(16, 185, 129, 0.2);
    }

        .glass-card:hover::before {
            opacity: 0.1;
        }

/* ===== بخش درباره ما ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-main-card {
    width: 565px;
    height: 372px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: round;
    background-image: url('/IOimg/indexer/01Cart.jpg');
    border-style: solid;
    border-width: 1px;
    border-color: #00f3ff;
    box-shadow: 0 0 5px #0087ff;
}

    .about-main-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-main);
        opacity: 0.1;
    }

.about-icon-big {
    font-size: 180px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.about-floating-stat {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(10px); /* کاهش از 20 به 10 */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-floating-stat-1 {
    top: 20px;
    right: -20px;
    animation: floatCard 4s ease-in-out infinite;
}

.about-floating-stat-2 {
    bottom: 30px;
    left: -20px;
    animation: floatCard 4s ease-in-out infinite;
    animation-delay: -2s;
}

.about-floating-stat .number {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.about-floating-stat .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
    font-size: 15px;
}

.about-features {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s;
    contain: layout style; /* ایزوله کردن */
}

    .about-feature:hover {
        border-color: var(--green-2);
        transform: translateX(-5px);
    }

.about-feature-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* ===== بخش خدمات - بهینه شده ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--glass);
    /* حذف backdrop-filter */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    contain: layout style; /* مهم برای performance */
}

    .service-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: var(--gradient-main);
        opacity: 0;
        transition: opacity 0.5s;
        z-index: -1;
    }

    .service-card:hover {
        transform: translateY(-10px) scale(1.02);
        border-color: transparent;
        box-shadow: 0 30px 60px rgba(16, 185, 129, 0.3);
    }

        .service-card:hover::before {
            opacity: 0.15;
        }

.service-icon {
    width: 75px;
    height: 75px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 32px;
    margin-bottom: 25px;
    transition: all 0.5s;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    position: relative;
}

    .service-icon::after {
        content: '';
        position: absolute;
        inset: -5px;
        border-radius: 25px;
        background: var(--gradient-main);
        opacity: 0.3;
        filter: blur(15px);
        z-index: -1;
    }

.service-card:hover .service-icon {
    transform: rotate(-10deg) scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-2);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
}

.service-card:hover .service-link {
    gap: 15px;
}

/* ===== بخش نمونه‌کارها - بهینه ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--glass);
    /* حذف backdrop-filter */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    contain: layout style;
}

    .portfolio-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 60px rgba(16, 185, 129, 0.3);
        border-color: var(--green-2);
    }

.portfolio-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-main);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .portfolio-image img {
        width: 100%;
    }

    .portfolio-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        transition: all 0.5s;
    }

.portfolio-card:hover .portfolio-image::before {
    background: rgba(0, 0, 0, 0.1);
}

.portfolio-image i {
    font-size: 60px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: all 0.5s;
}

.portfolio-card:hover .portfolio-image i {
    transform: scale(1.2) rotate(10deg);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-soft);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--green-2);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-2);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
}

.portfolio-card:hover .portfolio-link {
    gap: 15px;
}

/* ===== بخش آمار - بهینه ===== */
.stats {
    position: relative;
}

.stats-container {
    background: var(--glass);
    /* حذف backdrop-filter */
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

    .stats-container::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-main);
        opacity: 0.05;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    position: relative;
}

    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: var(--glass-border);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--gradient-soft);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-2);
    font-size: 24px;
}

.stat-number {
    font-size: 52px;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== بخش چرا ما - بهینه ===== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.why-card {
    background: var(--glass);
    /* حذف backdrop-filter */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    contain: layout style;
}

    .why-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 50%;
        transform: translateX(50%);
        width: 100px;
        height: 3px;
        background: var(--gradient-main);
        border-radius: 0 0 10px 10px;
        transition: width 0.5s;
    }

    .why-card:hover {
        transform: translateY(-10px);
        border-color: var(--green-2);
    }

        .why-card:hover::before {
            width: 100%;
        }

.why-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;
    background: var(--gradient-soft);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    transition: all 0.5s;
}

    .why-icon i {
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.why-card:hover .why-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--gradient-main);
}

    .why-card:hover .why-icon i {
        background: var(--text-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.why-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== بخش تماس - بهینه ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info {
    background: var(--glass);
    /* حذف backdrop-filter */
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

    .contact-info::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: var(--gradient-main);
        opacity: 0.08;
    }

    .contact-info h3 {
        font-size: 30px;
        margin-bottom: 15px;
        position: relative;
    }

    .contact-info > p {
        color: var(--text-secondary);
        margin-bottom: 35px;
        position: relative;
    }

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
    position: relative;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: all 0.3s;
}

    .contact-item:hover {
        background: rgba(255, 255, 255, 0.06);
        transform: translateX(-5px);
    }

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 3px;
}

.contact-item-text p {
    font-size: 15px;
    font-weight: 500;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 35px;
    position: relative;
}

    .contact-social a {
        width: 45px;
        height: 45px;
        background: var(--glass);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        transition: all 0.3s;
    }

        .contact-social a:hover {
            background: var(--gradient-main);
            border-color: transparent;
            transform: translateY(-5px) rotate(5deg);
            box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
        }

.contact-form {
    background: var(--glass);
    /* حذف backdrop-filter */
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--glass-border);
    border-radius: 15px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s;
}

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--green-2);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    }

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* ===== فوتر ===== */
.footer {
    padding: 80px 0 30px;
    position: relative;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

    .footer::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 300px;
        background: linear-gradient(to top, rgba(16, 185, 129, 0.05), transparent);
        pointer-events: none;
    }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

    .footer-col ul a:hover {
        color: var(--green-2);
        transform: translateX(-5px);
    }

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
}

    .footer-bottom span {
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 600;
    }

/* ===== صفحه Portfolio ===== */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
}

    .page-header h1 {
        font-size: 56px;
        font-weight: 900;
        margin-bottom: 20px;
    }

    .page-header p {
        font-size: 18px;
        color: var(--text-secondary);
        max-width: 600px;
        margin: 0 auto;
    }

.portfolio-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

/* ===== انیمیشن ورود ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== کاهش انیمیشن برای کاربرانی که ترجیح میدن ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .blob {
        animation: none !important;
        filter: blur(30px) !important;
        opacity: 0.15 !important;
    }

    .hero-orb,
    .floating-card,
    .about-floating-stat,
    .about-icon-big,
    .logo-icon::after,
    .hero-badge i {
        animation: none !important;
    }
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 44px;
    }

    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 400px;
    }

    .hero-orb {
        width: 300px;
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 36px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 20px);
        padding: 12px 20px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: 10px;
        left: 10px;
        flex-direction: column;
        background: var(--dark-bg);
        backdrop-filter: blur(20px); /* نگه داشتن blur در منوی موبایل */
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 30px;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

        .nav-menu.active {
            transform: translateY(0);
            opacity: 1;
            pointer-events: all;
        }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .stat-number {
        font-size: 38px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info, .contact-form {
        padding: 35px 25px;
    }

    .floating-card {
        display: none;
    }

    .about-floating-stat {
        display: none;
    }

    .page-header {
        padding: 140px 0 60px;
    }

        .page-header h1 {
            font-size: 32px;
        }

    .about-main-card {
        /*width: 420px;*/
        width: 100%;
    }
}


.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff
}

    .alert-primary hr {
        border-top-color: #9fcdff
    }

    .alert-primary .alert-link {
        color: #002752
    }

.alert-secondary {
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db
}

    .alert-secondary hr {
        border-top-color: #c8cbcf
    }

    .alert-secondary .alert-link {
        color: #202326
    }

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb
}

    .alert-success hr {
        border-top-color: #b1dfbb
    }

    .alert-success .alert-link {
        color: #0b2e13
    }

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb
}

    .alert-info hr {
        border-top-color: #abdde5
    }

    .alert-info .alert-link {
        color: #062c33
    }

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba
}

    .alert-warning hr {
        border-top-color: #ffe8a1
    }

    .alert-warning .alert-link {
        color: #533f03
    }

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb
}

    .alert-danger hr {
        border-top-color: #f1b0b7
    }

    .alert-danger .alert-link {
        color: #491217
    }

.alert-light {
    color: #818182;
    background-color: #fefefe;
    border-color: #fdfdfe
}

    .alert-light hr {
        border-top-color: #ececf6
    }

    .alert-light .alert-link {
        color: #686868
    }

.alert-dark {
    color: #1b1e21;
    background-color: #d6d8d9;
    border-color: #c6c8ca
}

    .alert-dark hr {
        border-top-color: #b9bbbe
    }

    .alert-dark .alert-link {
        color: #040505
    }
.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem
}
