/* =====================================================
   نابتج | استایل اصلی
   معماری: Modern Industrial Cyberpunk
   پالت: سایان نئون + صورتی سایبر + مشکی عمیق
   ===================================================== */

/* ============ متغیرهای ریشه ============ */
:root {
    --bg-color: #030712;
    --bg-deep: #010409;
    --surface: rgba(17, 24, 39, 0.7);
    --surface-light: rgba(31, 41, 55, 0.5);
    --primary: #00f0ff;          /* سایان نئون */
    --primary-dim: rgba(0, 240, 255, 0.5);
    --accent: #ff007f;            /* صورتی سایبر */
    --accent-dim: rgba(255, 0, 127, 0.5);
    --purple: #7000ff;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --glass-border: rgba(0, 240, 255, 0.15);
    --glass-border-hover: rgba(0, 240, 255, 0.4);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ============ رست کلی ============ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    line-height: 1.85;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 1024px) {
    body { cursor: auto; }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--primary); color: #000; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent));
    border-radius: 5px;
}

/* ============ کانتینر ============ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}

/* ============ پیش‌لودر ============ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo svg { display: block; }

.hex-spin {
    animation: spin 6s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawPath 2s ease forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.preloader-dot {
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.preloader-text {
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-dim);
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: loadProgress 2s ease forwards;
    box-shadow: 0 0 10px var(--primary);
}

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

/* ============ پس‌زمینه ذرات شبکه ============ */
.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

/* ============ مکان‌نمای سفارشی ============ */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--primary-dim);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    background: rgba(255, 0, 127, 0.05);
}

@media (max-width: 1024px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ============ پس‌زمینه‌های تزئینی ============ */
.bg-glow {
    position: fixed;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.08) 0%, transparent 70%);
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* ============ لوگو ============ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.logo-svg {
    filter: drop-shadow(0 0 10px var(--primary-dim));
    transition: var(--transition);
}

.logo:hover .logo-svg {
    filter: drop-shadow(0 0 20px var(--primary));
    transform: rotate(15deg);
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--text-light);
}

.logo-text .accent {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-dim);
}

/* ============ دکمه‌ها ============ */
.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    color: var(--primary);
    font-weight: 700;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    background: transparent;
    cursor: none;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn-neon:hover::before { opacity: 0.15; }

.btn-neon:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 60px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    color: var(--text-light);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    font-size: 1.05rem;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 0, 127, 0.05);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.3);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ============ هدر ============ */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(3, 7, 18, 0.95);
    padding: 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    transition: var(--transition);
}

.header.scrolled .header-inner { padding: 0.7rem 0; }

.nav-desktop {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

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

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

.btn-header { padding: 10px 22px; font-size: 0.9rem; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) { opacity: 0; }

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: right 0.4s ease;
    z-index: 999;
}

.mobile-menu.active { right: 0; }

.mobile-link {
    padding: 14px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.mobile-link:hover {
    background: rgba(0, 240, 255, 0.05);
    border-right-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .nav-desktop, .btn-header { display: none; }
    .menu-toggle { display: flex; }
}

/* ============ بخش هیرو ============ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    background:
        linear-gradient(to bottom, rgba(3, 7, 18, 0.4), rgba(3, 7, 18, 1)),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(3, 7, 18, 0.7) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulseBlink 1.5s ease-in-out infinite;
}

@keyframes pulseBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.15;
    text-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto 30px;
    line-height: 1.9;
}

.highlight-inline {
    color: var(--text-light);
    font-weight: 600;
}

.hero-typed {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.typed-label { color: var(--text-dim); margin-left: 10px; }

.typed-text {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 12px var(--primary-dim);
    min-height: 1.5em;
    display: inline-block;
}

.cursor-blink {
    color: var(--accent);
    animation: blink 0.8s step-end infinite;
    font-weight: 100;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 30px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 0 auto;
}

.hero-stat-item {
    text-align: center;
    min-width: 120px;
}

.hero-stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-dim);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Vazirmatn', monospace;
}

.hero-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

@media (max-width: 768px) {
    .hero-stat-divider { display: none; }
    .hero-stats { gap: 20px; padding: 25px 20px; }
    .hero-stat-num { font-size: 1.8rem; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--primary-dim);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============ هدر بخش‌ها ============ */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 20px;
}

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

/* ============ بخش خدمات ============ */
.services-section {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    padding: 35px 30px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 127, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 0 25px var(--primary-dim);
    border-color: var(--primary);
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.service-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

/* ============ بخش‌های عمیق فناوری ============ */
.deep-tech {
    padding: 100px 0;
    position: relative;
}

.deep-tech-alt {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.tech-block {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tech-block-reverse { flex-direction: row-reverse; }

.tech-text {
    flex: 1;
    position: relative;
}

.tech-number {
    display: inline-block;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.6;
}

.tech-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.4;
}

.tech-desc {
    color: var(--text-muted);
    text-align: justify;
    margin-bottom: 25px;
    font-size: 1.02rem;
    line-height: 2;
}

.highlight-box {
    border-right: 3px solid var(--accent);
    padding: 15px 18px 15px 0;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--text-light);
    background: linear-gradient(to left, rgba(255, 0, 127, 0.05), transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.9;
}

.tech-features {
    list-style: none;
    margin-bottom: 30px;
}

.tech-features li {
    padding: 10px 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--primary-dim);
}

.tech-image {
    flex: 1;
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.tech-block:hover .image-frame img {
    transform: scale(1.05);
    border-color: var(--primary-dim);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition);
}

.tech-block:hover .image-frame::before {
    transform: translate(8px, 8px);
    opacity: 0.6;
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    box-shadow: 0 0 20px var(--primary-dim);
}

.overlay-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overlay-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.overlay-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .tech-block, .tech-block-reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    .image-frame img { height: 320px; }
}

/* ============ بخش آمار ============ */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    padding: 35px 25px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--primary-dim);
}

.stat-card.revealed .stat-bar-fill {
    width: var(--w);
}

/* ============ بخش فرآیند کار ============ */
.process-section {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0; bottom: 0;
    right: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
    box-shadow: 0 0 15px var(--primary-dim);
}

.timeline-item {
    position: relative;
    padding-right: 80px;
    margin-bottom: 50px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    right: 8px;
    top: 0;
    width: 46px;
    height: 46px;
    background: var(--bg-color);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 900;
    font-size: 0.85rem;
    box-shadow: 0 0 20px var(--primary-dim);
    transition: var(--transition);
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
}

.timeline-content {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 25px 30px;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--glass-border-hover);
    transform: translateX(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.timeline-content h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.85;
}

@media (max-width: 768px) {
    .timeline-line { right: 20px; }
    .timeline-item { padding-right: 60px; }
    .timeline-marker { right: -2px; width: 40px; height: 40px; }
}

/* ============ بخش پروژه‌ها ============ */
.projects-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card[data-large="true"] {
    grid-column: span 2;
    grid-row: span 2;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.3) 60%, transparent 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}

.project-tag {
    align-self: flex-start;
    padding: 4px 14px;
    background: var(--primary);
    color: #000;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 0 15px var(--primary-dim);
}

.project-overlay h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 8px;
    transform: translateY(10px);
    transition: var(--transition);
}

.project-overlay p {
    color: var(--text-muted);
    font-size: 0.92rem;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.2);
}

.project-card:hover img { transform: scale(1.1); }

.project-card:hover .project-overlay p {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-overlay h3 {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card[data-large="true"] { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-card[data-large="true"] { grid-column: span 1; }
    .projects-grid { grid-auto-rows: 220px; }
}

/* ============ بخش چرا نابتج ============ */
.why-section {
    padding: 100px 0;
}

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

.why-card {
    padding: 35px 25px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 0, 127, 0.15);
}

.why-icon {
    width: 64px;
    height: 64px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(0, 240, 255, 0.05));
    border: 1px solid rgba(255, 0, 127, 0.2);
    border-radius: 50%;
    color: var(--accent);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-icon svg { width: 100%; height: 100%; }

.why-card:hover .why-icon {
    transform: rotateY(180deg);
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-dim);
}

.why-card h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============ بخش نظر مشتریان ============ */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    padding: 35px 30px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.quote-mark {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    font-family: serif;
}

.testimonial-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 0 15px var(--primary-dim);
}

.author-name {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============ بخش فراخوان به اقدام ============ */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    padding: 70px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 127, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.15), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 0, 127, 0.15), transparent 50%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 18px;
    color: var(--text-light);
    position: relative;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-box .btn-neon { position: relative; z-index: 2; }

/* ============ فوتر ============ */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding: 80px 0 30px;
    position: relative;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-info h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: var(--text-light);
}

.footer-info p {
    color: var(--text-muted);
    text-align: justify;
    margin-bottom: 18px;
    line-height: 2;
    font-size: 0.97rem;
}

.footer-emphasis {
    color: var(--text-light) !important;
    font-weight: 600 !important;
    padding: 15px 18px;
    background: rgba(0, 240, 255, 0.05);
    border-right: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.footer-quick { margin-top: 30px; }

.footer-quick h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.footer-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-quick-links a {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-quick-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
}

.contact-panel {
    padding: 35px 30px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

.contact-panel h4 {
    font-size: 1.3rem;
    margin-bottom: 22px;
    color: var(--primary);
    text-align: center;
}

.phone-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.phone-link:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
    transform: translateX(-5px);
    box-shadow: 0 0 20px var(--primary-dim);
}

.phone-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}

.phone-icon svg { width: 100%; height: 100%; }

.phone-link span span:not(.phone-icon) {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.phone-number {
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-form-wrapper { margin-top: 30px; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

.contact-form-wrapper h4 { margin-bottom: 18px; }

.form-row {
    margin-bottom: 15px;
    position: relative;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 15px var(--primary-dim);
}

.contact-form select {
    background-color: var(--bg-color);
    cursor: none;
}

.contact-form select option {
    background: var(--bg-color);
    color: var(--text-light);
}

.form-error {
    display: block;
    color: var(--accent);
    font-size: 0.78rem;
    margin-top: 5px;
    opacity: 0;
    height: 0;
    transition: var(--transition);
}

.form-row.error .form-error {
    opacity: 1;
    height: auto;
    margin-top: 5px;
}

.form-row.error input,
.form-row.error select {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-dim);
}

.form-success {
    display: none;
    margin-top: 15px;
    padding: 14px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    text-align: center;
    font-size: 0.95rem;
}

.form-success.show { display: block; animation: slideIn 0.4s ease; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mother-brand-line {
    margin-top: 12px;
}

.mother-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 900;
    transition: var(--transition);
    margin-right: 5px;
}

.mother-brand:hover {
    text-shadow: 0 0 15px var(--primary);
    color: var(--text-light);
}

.mother-brand svg { transition: var(--transition); }

.mother-brand:hover svg { transform: rotate(180deg); }

/* ============ دکمه بازگشت به بالا ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary);
    transform: translateY(-5px);
}

.back-to-top svg { width: 24px; height: 24px; }

/* ============ انیمیشن‌های نمایش هنگام اسکرول ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============ ریسپانسیو نهایی ============ */
@media (max-width: 600px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-neon,
    .hero-cta .btn-ghost { width: 100%; }
    .section-header { margin-bottom: 50px; }
    .services-section,
    .deep-tech,
    .stats-section,
    .process-section,
    .projects-section,
    .why-section,
    .testimonials-section { padding: 70px 0; }
    .tech-number { font-size: 3.5rem; }
    .cta-box { padding: 50px 25px; }
    .back-to-top { bottom: 20px; left: 20px; }
}
