/* ================== ایمپورت فونت وزیرمتن ================== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ================== RESET & BASE ================== */
:root {
    --bg: #050510;
    --bg2: #0a0a1a;
    --card: rgba(17, 17, 34, 0.6);
    --card-border: rgba(168, 85, 247, 0.15);
    --text: #f0f0f8;
    --text2: #b0b0d0;
    --purple: #a855f7;
    --purple-light: #c084fc;
    --purple-dark: #7c3aed;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --blue-dark: #4f46e5;
    --border: rgba(46, 16, 101, 0.5);
    --glow-purple: #a855f780;
    --glow-blue: #3b82f680;
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(17, 17, 34, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.light-mode {
    --bg: #f8f8fc;
    --bg2: #ffffff;
    --card: rgba(255, 255, 255, 0.7);
    --card-border: rgba(168, 85, 247, 0.2);
    --text: #1a1a2e;
    --text2: #4a4a6a;
    --border: rgba(168, 85, 247, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    transition: background 0.5s, color 0.5s, filter 0.5s;
    position: relative;
}

/* ================== ذرات شناور پس‌زمینه ================== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 10px var(--purple), 0 0 30px var(--purple-dark);
    animation: float linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ================== اسکرول‌بار سفارشی ================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple-dark), var(--blue));
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--purple), var(--blue-light));
}

/* ================== SCROLL PROGRESS BAR ================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #c084fc, #60a5fa);
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px #a855f7, 0 0 20px #7c3aed;
}

/* ================== لایه محافظ ================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: var(--purple-light);
    transition: var(--transition);
}
a:hover { color: #fff; }

/* ================== هدر شیشه‌ای ================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 0.7rem 0;
    transition: 0.4s;
}
.light-mode header { background: rgba(255, 255, 255, 0.7); }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #a855f7, #c084fc);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    letter-spacing: 0.5px;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    color: #ccc;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: 0.3s;
}
.nav-links a:hover { color: #fff; background: rgba(168, 85, 247, 0.1); }
.nav-links a.active { color: var(--purple-light); background: rgba(168, 85, 247, 0.15); }

.lang-btn, .theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    font-family: 'Vazirmatn', sans-serif;
}
.theme-toggle {
    padding: 0.5rem;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-btn:hover, .theme-toggle:hover {
    background: var(--purple-dark);
    color: #fff;
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--glow-purple);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ================== PRELOADER ================== */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #050510;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-content { text-align: center; }
.preloader-logo {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s infinite;
}
.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================== HERO ================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, #1e1b4b 0%, #0a0a1a 50%, #050510 100%);
}
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.25;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg) 80%);
    z-index: 1;
}
.hero::after {
    content: "";
    position: absolute;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 25s linear infinite;
    z-index: 1;
}
@keyframes gridMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}
.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--purple-light);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(168, 85, 247, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #c084fc, #60a5fa, #a78bfa, #818cf8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    line-height: 1.3;
}
.typewriter {
    color: var(--purple-light);
    font-weight: 700;
    border-left: 3px solid var(--purple);
    padding-left: 0.5rem;
    animation: blink 0.8s infinite;
    text-shadow: 0 0 20px var(--glow-purple);
}
@keyframes blink { 50% { border-color: transparent; } }

.hero p {
    font-size: 1.2rem;
    color: var(--text2);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================== WAVES ================== */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}
.hero-waves svg { display: block; }

/* ================== دکمه‌ها ================== */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn:hover::before { width: 300px; height: 300px; }

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 0 45px rgba(168, 85, 247, 0.6), 0 10px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--purple);
    color: var(--purple-light);
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    transform: translateY(-4px);
}

/* ================== کانترها ================== */
.counters {
    background: linear-gradient(180deg, transparent, var(--bg2), transparent);
    padding: 4rem 0;
}
.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.counter-item {
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.counter-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
    border-color: var(--purple);
}
.counter-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.counter-label {
    color: var(--text2);
    margin-top: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

/* ================== سکشن تایتل ================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    color: #fff;
}
.section-title span {
    background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--blue));
    margin: 1rem auto 0;
    border-radius: 4px;
    box-shadow: 0 0 20px var(--glow-purple);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ================== کارت‌های شیشه‌ای ================== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-10px);
    border-color: var(--purple);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.25), 0 0 0 1px rgba(168, 85, 247, 0.3) inset;
}
.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px var(--glow-purple));
}
.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 700;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ================== افکت SHINE روی کارت‌ها ================== */
.card::after, .portfolio-item::after, .blog-card::after, .testimonial-card::after, .counter-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
    opacity: 0;
}
.card:hover::after, .portfolio-item:hover::after, .blog-card:hover::after, 
.testimonial-card:hover::after, .counter-item:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ================== TILT 3D ================== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

/* ================== ABOUT ================== */
.about { background: var(--bg2); }
.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.about-text { flex: 1 1 500px; }
.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--purple-light);
}
.about-image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}
.image-placeholder {
    width: 220px;
    height: 220px;
    background: linear-gradient(145deg, #2e1065, #1e1b4b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--purple);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
    border: 3px solid var(--purple);
    transition: 0.4s;
}
.image-placeholder:hover {
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.8);
    transform: scale(1.05);
}

/* ================== تایم‌لاین ================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--purple), var(--blue));
    box-shadow: 0 0 15px var(--glow-purple);
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-right: 3rem;
}
.timeline-dot {
    position: absolute;
    right: 8px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--purple);
    z-index: 2;
}
.timeline-date { color: var(--purple-light); font-weight: 700; margin-bottom: 0.4rem; }
.timeline-content h4 { color: #fff; margin-bottom: 0.3rem; }
.timeline-content p { color: var(--text2); font-size: 0.95rem; }

/* ================== نوار مهارت‌ها ================== */
.skills { max-width: 700px; margin: 0 auto; }
.skill-item { margin-bottom: 1.5rem; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.skill-bar {
    height: 10px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    box-shadow: 0 0 10px var(--glow-purple);
    width: 0;
    transition: width 1.5s ease;
}

/* ================== مدال‌ها ================== */
.badges-section { padding: 3rem 0; background: var(--bg2); }
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}
.badge-item { perspective: 1000px; }
.badge-inner {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}
.badge-inner:hover { transform: rotateY(180deg); }
.badge-front, .badge-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.badge-front {
    background: linear-gradient(135deg, #2e1065, #1e1b4b);
    border: 3px solid #a855f7;
    font-size: 3rem;
    color: #c084fc;
}
.badge-back {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    transform: rotateY(180deg);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

/* ================== نقشه راه ================== */
.roadmap { max-width: 900px; margin: 0 auto; }
.roadmap-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: 0.3s;
}
.roadmap-step:hover { border-color: #a855f7; transform: translateX(-10px); }
.roadmap-icon { font-size: 2rem; min-width: 60px; text-align: center; }
.roadmap-info h4 { color: #fff; margin-bottom: 0.3rem; }

/* ================== نمونه‌کارها ================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    position: relative;
}
.portfolio-item:hover {
    border-color: var(--purple);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.3);
    transform: translateY(-8px);
}
.portfolio-img {
    height: 200px;
    background: linear-gradient(130deg, #1e1b4b, #312e81);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #a78bfa;
}
.portfolio-info { padding: 1.5rem; }
.portfolio-info h4 { color: #fff; margin-bottom: 0.5rem; }
.portfolio-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.tag {
    background: rgba(168, 85, 247, 0.2);
    color: var(--purple-light);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ================== جستجوی زنده ================== */
.search-box { max-width: 500px; margin: 0 auto 2rem; position: relative; }
.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
}
.search-box input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}
.no-results { text-align: center; color: var(--text2); padding: 2rem; display: none; }

/* ================== بلاگ ================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    position: relative;
}
.blog-card:hover {
    border-color: var(--purple);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.3);
    transform: translateY(-8px);
}
.blog-img {
    height: 180px;
    background: linear-gradient(135deg, #312e81, #1e1b4b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #a78bfa;
}
.blog-body { padding: 1.5rem; }
.blog-body h4 { color: #fff; margin-bottom: 0.5rem; }
.blog-date { color: var(--purple-light); font-size: 0.85rem; margin-bottom: 0.5rem; }

/* ================== نظرات ================== */
.testimonials { background: var(--bg2); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
    position: relative;
}
.testimonial-card:hover { border-color: var(--purple); transform: translateY(-8px); }
.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}
.testimonial-text { font-style: italic; color: var(--text2); margin-bottom: 1rem; }
.testimonial-name { color: var(--purple-light); font-weight: 700; }

/* ================== FAQ ================== */
.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
}
.faq-answer { padding: 0 1.5rem 1.2rem; color: var(--text2); display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ================== فرم تماس ================== */
.contact-form {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-form input,
.contact-form textarea {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--glow-purple);
}

/* ================== Toast ================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: linear-gradient(135deg, var(--purple-dark), var(--blue-dark));
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Vazirmatn', sans-serif;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ================== دکمه شناور برو بالا ================== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    left: 30px;          /* ⬅️ چپ */
    right: auto;         /* ⬅️ راست رو غیرفعال کن */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 0 25px var(--glow-purple);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover {
    background: var(--purple-light);
    transform: translateY(-4px);
    box-shadow: 0 0 40px var(--glow-purple);
}

/* ================== دکمه موسیقی ================== */
.music-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid #a855f7;
    color: #c084fc;
    cursor: pointer;
    z-index: 998;
    font-size: 1.2rem;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}
.music-toggle:hover {
    background: #a855f7;
    color: #fff;
    box-shadow: 0 0 25px #a855f7;
}
.music-toggle.playing {
    animation: musicPulse 1s infinite;
}
@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 10px #a855f7; }
    50% { box-shadow: 0 0 30px #c084fc, 0 0 50px #a855f7; }
}

/* ================== چت‌بات ================== */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 995;
    box-shadow: 0 5px 25px rgba(168, 85, 247, 0.5);
    transition: 0.3s;
    animation: chatbotBounce 2s infinite;
}
@keyframes chatbotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.chatbot-toggle:hover { transform: scale(1.1); animation: none; }

.chatbot-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 340px;
    max-height: 450px;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(25px);
    border: 1px solid #a855f7;
    border-radius: 20px;
    z-index: 994;
    overflow: hidden;
    display: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(168, 85, 247, 0.2);
}
.chatbot-box.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot-header {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    padding: 1rem;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
}
.chatbot-messages { height: 280px; overflow-y: auto; padding: 1rem; }
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #a855f7; border-radius: 4px; }
.chatbot-input {
    display: flex;
    padding: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 8px;
}
.chatbot-input input {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    outline: none;
}
.chatbot-input input:focus { border-color: #a855f7; box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
.chatbot-input button {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}
.chatbot-input button:hover { box-shadow: 0 0 15px #a855f7; transform: scale(1.05); }

/* ================== CONFETTI ================== */
.confetti-piece {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.confetti-btn {
    position: fixed;
    bottom: 30px;
    right: 160px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid #a855f7;
    color: #c084fc;
    cursor: pointer;
    z-index: 993;
    font-size: 1.2rem;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}
.confetti-btn:hover {
    background: #a855f7;
    color: #fff;
    box-shadow: 0 0 25px #a855f7;
    transform: scale(1.1);
}

/* ================== پاپ‌آپ تخفیف (غیرفعال) ================== */
.discount-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #1e1b4b, #2e1065);
    border: 2px solid #a855f7;
    border-radius: 20px;
    padding: 2rem;
    z-index: 9998;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.discount-popup.show { transform: translate(-50%, -50%) scale(1); }
.discount-code {
    font-size: 2rem;
    font-weight: 900;
    color: #c084fc;
    letter-spacing: 5px;
    margin: 1rem 0;
    text-shadow: 0 0 20px #a855f7;
}
.discount-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.popup-overlay.show { opacity: 1; visibility: visible; }



/* ================== تم رنگی ================== */
.color-picker {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 996;
}
.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}
.color-option:hover { border-color: #fff; transform: scale(1.2); }

/* ================== افکت باران ================== */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.raindrop {
    position: absolute;
    width: 2px;
    background: linear-gradient(transparent, #a855f7);
    animation: rain linear infinite;
    opacity: 0.4;
    border-radius: 0 0 5px 5px;
}
@keyframes rain {
    0% { transform: translateY(-100px); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.2; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ================== LIGHTBOX ================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.5);
    animation: zoomIn 0.3s;
}
@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* ================== SCROLL SNAP ================== */
.snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}
.snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
}

/* ================== CURSOR سفارشی ================== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #a855f7;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    box-shadow: 0 0 15px #a855f7, 0 0 30px #7c3aed;
}
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: #c084fc;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px #c084fc;
}

/* ================== فوتر ================== */
footer {
    background: var(--bg);
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    color: #aaa;
    position: relative;
    z-index: 1;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}
.social-icons a {
    color: #aaa;
    transition: 0.3s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icons a:hover {
    color: var(--purple-light);
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--purple);
    box-shadow: 0 0 25px var(--glow-purple);
    transform: translateY(-5px);
}

/* ================== صفحه ۴۰۴ ================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg);
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================== ریسپانسیو کلی ================== */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        padding: 1rem;
        border-radius: 16px;
        margin-top: 0.8rem;
        border: 1px solid var(--glass-border);
    }
    .nav-links.show { display: flex; }
    .section-title { font-size: 1.8rem; }
    .hero h1 { font-size: 2.2rem; }
    .about-flex { flex-direction: column-reverse; }
    
    .custom-cursor, .custom-cursor-dot { display: none; }
    
    .online-indicator { top: 10px; left: 8px; padding: 8px 12px; font-size: 0.7rem; gap: 5px; }
    .online-dot { width: 9px; height: 9px; }
    
    .lamp-container { top: 10px; left: 115px; }
    .lamp-btn { width: 36px; height: 36px; font-size: 1.1rem; }
    
    .live-clock { top: 10px; right: 8px; font-size: 0.75rem; padding: 8px 12px; min-width: 80px; letter-spacing: 2px; }
    
    .scroll-top { bottom: 20px; right: 70px; }
    .chatbot-toggle { bottom: 20px; right: 20px; }
    .chatbot-box { right: 10px; width: calc(100vw - 20px); max-width: 320px; }
    .confetti-btn { bottom: 20px; right: 140px; }
    .music-toggle { bottom: 20px; left: 20px; }
    
    .color-picker { right: 5px; gap: 6px; }
    .color-option { width: 25px; height: 25px; }
}

/* جدید */

/* ================== گوشه‌های گرد کل سایت ================== */
body::before {
    content: '';
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 30px;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.1), inset 0 0 30px rgba(168, 85, 247, 0.05);
    animation: borderPulse 4s infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(168, 85, 247, 0.2); box-shadow: 0 0 20px rgba(168, 85, 247, 0.1), inset 0 0 20px rgba(168, 85, 247, 0.05); }
    50% { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 0 40px rgba(168, 85, 247, 0.2), inset 0 0 40px rgba(168, 85, 247, 0.1); }
}

@media (max-width: 768px) {
    body::before {
        top: 5px; left: 5px; right: 5px; bottom: 5px;
        border-radius: 20px;
    }
}

/* ================== پس‌زمینه Gradient متحرک ================== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { opacity: 0.7; }
    25% { opacity: 1; }
    50% { opacity: 0.5; }
    75% { opacity: 0.9; }
}

/* ================== خطوط شبکه‌ای مورب ================== */
.diagonal-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(
        45deg,
        #a855f7 0px,
        #a855f7 1px,
        transparent 1px,
        transparent 30px
    );
}

/* ================== ستاره‌های چشمک‌زن ================== */
.twinkling-star {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.5); }
    50% { opacity: 0.3; transform: scale(0.8); }
    75% { opacity: 0.9; transform: scale(1.3); }
}

/* ================== مه شناور ================== */
.fog-layer {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: fogFloat var(--duration) ease-in-out infinite;
}

@keyframes fogFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(var(--moveX), var(--moveY)) scale(1.2); }
    50% { transform: translate(calc(var(--moveX) * 2), calc(var(--moveY) * -1)) scale(0.8); }
    75% { transform: translate(calc(var(--moveX) * -1), calc(var(--moveY) * 2)) scale(1.1); }
}

/* ================== ذرات دنباله‌دار موس ================== */
.mouse-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    animation: mouseParticleFade 0.8s ease-out forwards;
}

@keyframes mouseParticleFade {
    0% { opacity: 1; transform: scale(1) translate(0, 0); }
    100% { opacity: 0; transform: scale(0) translate(var(--dx), var(--dy)); }
}

/* ================== فایرورک کلیک ================== */
.firework-particle {
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    border-radius: 50%;
    animation: fireworkBurst 0.8s ease-out forwards;
}

@keyframes fireworkBurst {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(0); }
}

/* ================== DNA Helix ================== */
.dna-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.dna-strand {
    position: absolute;
    width: 2px;
    background: #a855f7;
    animation: dnaWave 3s ease-in-out infinite;
}

.dna-strand:nth-child(odd) {
    animation-delay: 1.5s;
}

@keyframes dnaWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(40px); }
}

.dna-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 10px #a855f7;
    left: -2px;
}

/* ================== گوی کریستالی ================== */
.crystal-ball {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.5), transparent 60%);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.3);
    animation: crystalFloat 6s ease-in-out infinite;
}

@keyframes crystalFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-30px); }
}

/* ================== ریسپانسیو ================== */
@media (max-width: 768px) {
    .dna-container { display: none; }
    .crystal-ball { display: none; }
    body::before { top: 3px; left: 3px; right: 3px; bottom: 3px; border-radius: 15px; }
}
/* ================== دکمه ورود ادمین ================== */
.admin-login-btn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.5rem 0.8rem !important;
    border-radius: 10px !important;
    font-size: 0.9rem;
    transition: 0.3s;
    opacity: 0.5;
}

.admin-login-btn:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    border-color: #f59e0b !important;
    opacity: 1;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}