/* style.css */
/*
Theme Name: Sahand Ertebatat Kian Animated
Description: پوسته لندینگ سهند ارتباطات کیان
Version: 1.0
Text Domain: sahand-kian-animated
*/

:root {
    --primary: #002B5B;
    --secondary: #295D99;
    --accent: #EB9907;
    --neutral: #b6b3b4;
    --text: #22181c;
    --bg: #f0f4f8;
    /* بسته به ارتفاع هدر کامپکت خودت، اینو تنظیم کن */
    --scroll-offset-desktop: 96px;
    --scroll-offset-mobile: 72px;
}

/* بدنه سایت */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    padding-bottom: 0; /* پیش‌فرض: بدون فاصله پایین */
}

/* فونت درست برای متن لودر */
.chip-loader,
.chip-core,
.chip-text,
.chip-title,
.chip-subtitle {
    font-family: 'IRANSans', 'Vazirmatn', sans-serif;
}

/* ========== LOGO CHIP (همه‌جا مشترک) ========== */

.logo-chip {
    width: 2.4rem;           /* حدود 38px */
    height: 2.4rem;
    border-radius: 0.9rem;
    background:
        radial-gradient(circle at 30% 0,
        rgba(56, 189, 248, 0.32),
        transparent 70%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(15, 23, 42, 0.6);
}

/* حاشیه شیشه‌ای داخلی */
.logo-chip::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    border: 1px solid rgba(248, 250, 252, 0.18);
    opacity: 0.9;
}

/* آیکون میکروچیپ داخل لوگو */
.logo-chip i {
    font-size: 1.25rem;
}

/* آیکون لوگوی منوی موبایل */
.mobile-logo-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    background: linear-gradient(135deg, #002B5B, #295D99 40%, #EB9907 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* فقط موبایل خیلی کوچک (<= 440px) برای جا دادن نوار پایین */
@media (max-width: 440px) {
    body {
        padding-bottom: 70px;
    }
}

/* فقط برای آیکون‌های هدر */
#navbar svg {
    max-width: 32px;
    max-height: 32px;
}

/* پس‌زمینه بلاب‌ها */
.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #ffffff;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(41, 93, 153, 0.4);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(235, 153, 7, 0.3);
    animation-delay: 2s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: rgba(0, 43, 91, 0.3);
    animation-delay: 4s;
}

@keyframes float {
    0%   { transform: translate(0, 0) rotate(0deg); }
    33%  { transform: translate(30px, -50px) rotate(10deg); }
    66%  { transform: translate(-20px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.floating-circuit {
    animation: float 10s infinite ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
}

/* ========== Glassmorphism Utilities ========== */

.glass {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.12);
}

/* کارت‌های گلس (خدمات، دسته‌بندی، کارت‌های داخل سکشن‌ها) */
.glass-card {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 26px rgba(15, 23, 42, 0.10);
    transition:
        transform 0.8s ease-in-out,
        box-shadow 0.8s ease-in-out,
        background-color 0.8s ease-in-out,
        border-color 0.8s ease-in-out;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent);
    box-shadow: 0 15px 45px rgba(235, 153, 7, 0.18);
}

.glass-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 43, 91, 0.1);
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 93, 153, 0.1);
}

#home .glass {
    background: rgba(255, 255, 255, 0.22); 
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 26px rgba(15, 23, 42, 0.10);
}


/* SVG abstract */
.abstract-shape {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(41, 93, 153, 0.3));
}

/* ========== NAVBAR: استیکی، مخفی/نمایش، کامپکت ========== */

#navbar {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    transform: translateY(0);
    transition: transform 220ms ease, opacity 220ms ease;
    z-index: 50;
    animation: navbar-enter 0.45s ease-out 1;
}

#navbar.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

#navbar.navbar-compact .glass-header {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

/* لینک‌های منو */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #002B5B;
    position: relative;
    white-space: nowrap;
    transition:
        background-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset-inline: 0.9rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(235, 153, 7, 0),
        rgba(235, 153, 7, 0.8),
        rgba(235, 153, 7, 0)
    );
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.nav-link:hover {
    background: rgba(0, 43, 91, 0.03);
    box-shadow: 0 0 0 1px rgba(235, 153, 7, 0.26);
    transform: translateY(-1px);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* حالت منتخب برای لینک (مثلاً "درباره ما" در page-about.php) */
.nav-link--active {
    background: rgba(0, 43, 91, 0.03);
    box-shadow: 0 0 0 1px rgba(235, 153, 7, 0.26);
    transform: translateY(-1px);
}

/* خط زیر لینک در حالت active مثل هاور */
.nav-link--active::after {
    transform: scaleX(1);
}

/* خنثی کردن هاور روی لینک active (هیچ تغییری نسبت به active نکند) */
.nav-link--active:hover {
    background: rgba(0, 43, 91, 0.03);
    box-shadow: 0 0 0 1px rgba(235, 153, 7, 0.26);
    transform: translateY(-1px);
}

.nav-link--active:hover::after {
    transform: scaleX(1);
}


/* ردیف اطلاعات زیر منو، داخل همان شیشه هدر */
.header-info-row {
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: #4b5563;
    margin-top: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition:
        max-height 200ms ease,
        opacity 200ms ease,
        margin-top 200ms ease,
        padding-top 200ms ease;
}

/* وقتی navbar کامپکت می‌شود (کلاس js خودت) */
#navbar.navbar-compact .header-info-row {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
}

/* موبایل خیلی کوچک: اطلاعات را علیرغم hidden نشان بده */
@media (max-width: 440px) {
    .header-info-row {
        display: flex !important;
    }

    #navbar {
        position: static !important;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        opacity: 1;
        animation: navbar-enter 0.45s ease-out 1;
    }
}

.info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.info-label {
    color: #9ca3af;
}

.info-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: #EB9907;
    flex-shrink: 0;
}

/* دکمه واتس‌اپ دسکتاپ داخل هدر (نئونی با افکت شاین) */
.header-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(235, 153, 7, 0.45);
    background: radial-gradient(circle at 10% 0, rgba(235, 153, 7, 0.18), transparent 60%);
    color: #EB9907;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 16px rgba(235, 153, 7, 0.25);
    transition:
        background-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.header-whatsapp-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    opacity: 0;
    transform: skewX(-25deg);
    transition:
        transform 0.6s ease,
        left 0.6s ease,
        opacity 0.6s ease;
}

.header-whatsapp-btn:hover {
    box-shadow: 0 0 22px rgba(235, 153, 7, 0.4);
    transform: translateY(-1px);
}

.header-whatsapp-btn:hover::before {
    left: 130%;
    opacity: 1;
}

/* نسخه موبایل دکمه واتس‌اپ داخل منوی همبرگری */
.header-whatsapp-btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(235, 153, 7, 0.5);
    background: rgba(255, 255, 255, 0.04);
    color: #EB9907;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(235, 153, 7, 0.35);
    transition:
        background-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
    position: relative;
    overflow: hidden;
}

.header-whatsapp-btn-mobile::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    opacity: 0;
    transform: skewX(-25deg);
    transition:
        transform 0.6s ease,
        left 0.6s ease,
        opacity 0.6s ease;
}

.header-whatsapp-btn-mobile:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 18px rgba(235, 153, 7, 0.45);
    transform: translateY(-1px);
}

.header-whatsapp-btn-mobile:hover::before {
    left: 130%;
    opacity: 1;
}

/* نقطه نئونی آخر دکمه واتس‌اپ */
.header-whatsapp-btn span:last-child,
.header-whatsapp-btn-mobile span:last-child {
    box-shadow: 0 0 10px rgba(235, 153, 7, 0.8);
}

/* زیر 768 فقط دکمه دسکتاپ مخفی شود، نه نسخه موبایل */
@media (max-width: 767px) {
    .header-whatsapp-btn {
        display: none !important;
    }
}

/* دکمه واتس‌اپ دسکتاپ در موبایل مخفی شود + تنظیمات هدر و هیرو */
@media (max-width: 440px) {
    .header-main-row {
        justify-content: center;
        position: relative;
    }

    /* دکمه منوی موبایل بره گوشه، لوگو وسط بمونه */
    #menu-btn {
        position: absolute;
        left: 0.5rem;
    }

    /* نسخه موبایل: خنثی کردن pt-35 روی سکشن هیرو */
    #home.pt-35 {
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 3px;
    }

    #home h1 {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    #home p {
        font-size: 0.9rem;
    }

    #about p {
        font-size: 0.78rem;
        line-height: 1.6rem;
    }
}

/* آیکون منوی همبرگری: دو خط که ضربدر می‌شود */
#menu-btn {
    position: relative;
}

.menu-line {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 9999px;
    background-color: #002B5B;
    transform-origin: center;
    transition: transform 220ms ease, opacity 220ms ease;
}

/* حالت پیش‌فرض: دو خط جدا */
#menu-btn .menu-line:first-child {
    transform: translate(-50%, -3px);
}

#menu-btn .menu-line:last-child {
    transform: translate(-50%, 3px);
}

/* حالت ضربدر وقتی منو باز است */
#menu-btn.menu-btn-open .menu-line:first-child {
    transform: translate(-50%, 0) rotate(45deg);
}

#menu-btn.menu-btn-open .menu-line:last-child {
    transform: translate(-50%, 0) rotate(-45deg);
}

/* منوی موبایل: انیمیشن کشویی */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition:
        max-height 240ms ease,
        opacity 200ms ease,
        transform 200ms ease;
}

/* وقتی باز است */
#mobile-menu.menu-open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
}

/* نوار موبایل چسبان پایین */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background:
        radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.18), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(15, 23, 42, 0.40), transparent 55%),
        linear-gradient(135deg,
            rgba(0, 17, 40, 0.78),
            rgba(0, 43, 91, 0.82));

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border-top: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 -10px 30px rgba(15, 23, 42, 0.75),
        0 0 0 1px rgba(15, 23, 42, 0.35);

    z-index: 50;
}

/* آیتم‌های منوی موبایل */
.mobile-nav-item {
    color: rgba(226, 232, 240, 0.7);
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.mobile-nav-item svg {
    color: rgba(148, 163, 184, 0.9);
    transition: transform 180ms ease, color 180ms ease;
}

/* حالت hover عمومی */
.mobile-nav-item:hover {
    color: #f9fafb;
}

.mobile-nav-item:hover svg {
    color: var(--accent, #EB9907);
    transform: translateY(-1px);
}

/* حالت active که اسکرول‌اسپای ست می‌کند */
.mobile-nav-item.active {
    background-color: rgba(235, 153, 7, 0.16);
    color: #f9fafb;
    box-shadow: 0 0 18px rgba(235, 153, 7, 0.35);
    transform: translateY(-1px);
    border-radius: 0.9rem;
}

.mobile-nav-item.active svg {
    color: #EB9907;
    transform: translateY(-1px);
}

/* برای لوگو: بدون پس‌زمینه روی active */
.mobile-nav-logo.mobile-nav-item.active {
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* اگر برای آیتم لوگو کلاس جدا داری */
.mobile-nav-logo {
    padding: 0;
}

/* فقط تا عرض 440px منوی موبایل پایین روشن شود و تاگل بالا خاموش */
@media (max-width: 440px) {
    .mobile-nav {
        display: block;
    }

    #menu-btn,
    #mobile-menu {
        display: none !important;
    }
}

/* از 441 به بالا، نوار پایینی خاموش */
@media (min-width: 441px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Buttons – primary & ghost */

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 43, 91, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background-color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(235, 153, 7, 0.25);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid rgba(0, 43, 91, 0.2);
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(235, 153, 7, 0.15);
}

/* =========================
   Minimal Glass Preloader
   ========================= */

body.loading-locked {
    overflow: hidden;
}

/* لایه تمام‌صفحه */
#site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 18, 38, 0.88);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

/* حالت مخفی‌شدن */
#site-preloader.site-preloader--hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* هدر در بازه 768px تا 1023px عریض‌تر و با فاصله ثابت از دو طرف */
@media (min-width: 768px) and (max-width: 1023px) {
    #navbar .container {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ===================== PAGE LOADER ===================== */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* پس‌زمینه دارک + بلور */
.loader-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.40), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* حین لود اسکرول قفل شود */
body.loading {
    overflow: hidden;
}

/* کانتینر کلی لودر */
.chip-loader {
    position: relative;
    width: min(500px, 100vw);
    height: min(500px, 100vw);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- چیپ وسط (هاب) ---------- */

.chip-core {
    position: relative;
    z-index: 2;
    min-width: 190px;
    padding: 20px 22px 22px;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 0 32px rgba(56, 189, 248, 0.60),
        0 28px 52px rgba(15, 23, 42, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: #e5f3ff;
    animation: chip-glow 2.6s ease-in-out infinite;
}

.chip-icon {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 0,
        rgba(56, 189, 248, 0.32),
        transparent 70%);
    border: 1px solid rgba(148, 163, 184, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    box-shadow: none;
}

/* الان chip-logo روی <i> است، نه SVG */
.chip-logo {
    font-size: 1.3rem;
}

/* ---------- مدار (SVG) ---------- */

.chip-circuit {
    position: absolute;
    inset: 0%;
    z-index: 1;
}

/* خطوط مدار روی SVG */
.chip-circuit .trace-base {
    fill: none;
    stroke: rgba(148, 163, 184, 0.7);
    stroke-width: 0.7;
    stroke-linecap: round;
}

.chip-circuit .trace-tip {
    fill: none;
    stroke: rgba(148, 163, 184, 0.9);
    stroke-width: 1.2;
    stroke-linecap: round;
}

/* الکترون‌ها (سگمنت متحرک روی همان مسیر) */
.chip-circuit .trace-flow {
    fill: none;
    stroke: rgba(125, 211, 252, 0.95);
    stroke-width: 0.7;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 160;
    animation: electron-flow 3s ease-in-out infinite;
}

.chip-circuit .trace-flow.flow-2 {
    animation-delay: 0.9s;
}

.chip-circuit .trace-flow.flow-a {
    animation-duration: 2.0s;
    animation-delay: 0s;
}

.chip-circuit .trace-flow.flow-b {
    animation-duration: 2.4s;
    animation-delay: 0.4s;
}

.chip-circuit .trace-flow.flow-c {
    animation-duration: 2.8s;
    animation-delay: 0.8s;
}

/* ---------- انیمیشن‌ها ---------- */

@keyframes chip-glow {
    0%, 100% {
        box-shadow:
            0 0 26px rgba(56, 189, 248, 0.55),
            0 26px 46px rgba(15, 23, 42, 0.95);
    }
    50% {
        box-shadow:
            0 0 42px rgba(56, 189, 248, 0.98),
            0 32px 62px rgba(15, 23, 42, 1);
    }
}

@keyframes electron-flow {
    0% {
        stroke-dashoffset: 160;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* تایپوگرافی متن لودر */

.chip-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.chip-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: normal;
}

.chip-subtitle {
    font-size: 0.70rem;
    font-weight: 300;
    opacity: 0.8;
    white-space: normal;
}

/* انیمیشن ورود نرم هدر */
@keyframes navbar-enter {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* هاور آیکون داخل کارت‌های دسته‌بندی */
.product-category-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem auto;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 43, 91, 0.05);
    color: #002B5B;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.product-category-card:hover .product-category-icon {
    background: #002B5B;
    color: #ffffff;
}

/* ریسپانسیو کارت‌های سرویس و دسته‌بندی */
@media (max-width: 767px) {
    #services .services-grid,
    #product-categories .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
        row-gap: 1.5rem;
    }

    #services .service-card h3,
    #product-categories .service-card h3 {
        font-size: 0.9rem;
    }

    #services .service-card p,
    #product-categories .service-card p {
        font-size: 0.78rem;
        line-height: 1.6;
    }
        /* آیکون هر کارت خدمات (اولین div داخل کارت) */
    #services .service-card > div:first-child {
        background: rgba(0, 43, 91, 0.05);
        color: #002B5B;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    /* روی هاور: پس‌زمینه تیره، آیکون سفید (مثل کتگوری‌ها) */
    #services .service-card:hover > div:first-child {
        background: #002B5B;
        color: #ffffff;
    }
}

/* زیر 440px: مینیمال کردن کارت‌های دسته‌بندی محصولات */
@media (max-width: 440px) {

    /* فقط پاراگراف توضیح اصلی حذف شود، نه خط تکنیکال کوتاه */
    #product-categories .service-card p:last-of-type {
        display: none;
    }
    
    #services .services-grid .service-card p {
        display: none;
    }

    #product-categories .service-card {
        padding: 0.9rem 0.75rem;
    }

    #product-categories .product-category-icon {
        width: 2.7rem;
        height: 2.7rem;
        margin-bottom: 0.5rem;
    }

    #product-categories .product-category-icon svg {
        width: 1.15rem;
        height: 1.15rem;
    }

    #product-categories .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    

}

/* فاصلهٔ منطقی برای سکشن‌هایی که با منو می‌پریم روشون */
#about,
#services,
#product-categories,
#contact {
    scroll-margin-top: 110px;
}

@media (max-width: 1024px) {
    #about,
    #services,
    #product-categories,
    #contact {
        scroll-margin-top: 90px;
    }
}

@media (max-width: 440px) {
    #about,
    #services,
    #product-categories,
    #contact {
        scroll-margin-top: 24px;
    }
}

/* ================= REVEAL / SCROLL ANIMATION ================= */
    
/* پایه برای سکشن‌هایی که انیمیشن دارند */
section.reveal {
    transform-style: preserve-3d;
}

/* وضعیت اولیه همه‌ی آیتم‌ها */
.reveal-item {
    opacity: 0;
    transform: translate3d(0, var(--reveal-distance, 28px), 0)
               scale3d(var(--reveal-scale, 0.97), var(--reveal-scale, 0.97), 1);
    filter: blur(8px);
    will-change: opacity, transform, filter;
}

/* وقتی سکشن فعال شد، انیمیشن keyframes اجرا می‌شود */
section.reveal.reveal-active .reveal-item {
    animation-name: revealWave;
    animation-duration: var(--reveal-duration, 1.2s);
    animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
    animation-fill-mode: forwards;
    animation-delay: var(--reveal-delay, 0s);
}

/* ... */

@keyframes revealWave {
    0% {
        opacity: 0;
        transform: translate3d(0, var(--reveal-distance, 28px), 0)
                   scale3d(var(--reveal-scale, 0.97), var(--reveal-scale, 0.97), 1);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
        filter: blur(0);
    }
}

@keyframes revealWaveNoBlur {
    0% {
        opacity: 0;
        transform: translate3d(0, var(--reveal-distance, 28px), 0)
                   scale3d(var(--reveal-scale, 0.97), var(--reveal-scale, 0.97), 1);
        /* بدون filter */
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}



/* ========== کارت استعلام قیمت فوری – هماهنگ با کارت‌ها ========== */

.instant-quote-card {
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 26px rgba(15, 23, 42, 0.10);
    transition:
        transform 0.5s ease-in-out,
        box-shadow 0.5s ease-in-out,
        background-color 0.5s ease-in-out,
        border-color 0.5s ease-in-out;
}

/* روی هیرو، مثل کارت‌های سرویس رفتار کند */
#home .instant-quote-card:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 45px rgba(235, 153, 7, 0.18);
}

/* ========== footer watermark ========= */

/* لینک اصلی: متن + آیکون */
.dev-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.4);   /* رنگ پیش‌فرض متن و آیکون */
    text-decoration: none;
    transition: color 0.25s ease;
}

.dev-credit-link:hover {
    color: #EB9907;                    /* روی هاور: متن + آیکون نارنجی */
    text-decoration: none;
}

/* SVG واترمارک */
.dev-credit-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    transform-origin: center;          /* چرخش و بزرگ شدن از مرکز */
    transition: transform 0.35s ease,  /* انیمیشن برای چرخش + بزرگ شدن */
                color 0.25s ease;
}

/* هاور: آیکون هم بزرگ شود، هم ۱۸۰ درجه خلاف جهت عقربه‌های ساعت بچرخد */
.dev-credit-link:hover .dev-credit-icon {
    transform: scale(1.25) rotate(-180deg);
}

/* اسم برند بولد */
.dev-credit-name {
    font-weight: 700;
}

/* 3D wrapper برای SVG */
.about-svg-3d-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* خود SVG اصلی */
.about-main-svg {
    transform-origin: center;
    transform-box: fill-box;
    will-change: transform, opacity, filter;
    transition:
        transform 0.18s ease-out,
        filter 0.18s ease-out,
        opacity 0.18s ease-out;
}

/* اگر خواستی خط‌ها انیمیشن stroke نداشته باشند، این‌ را می‌توانی حذف کنی */
.about-main-svg path,
.about-main-svg line,
.about-main-svg rect,
.about-main-svg circle {
    transition: stroke-dashoffset 0.1s linear;
}


/* ===========================
   About Hero - Minimal & Modern
   =========================== */
/* Hero Section */
        .hero-creative {
            min-height: 100vh;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
        }
        
        /* Animated Grid Background */
        .grid-bg {
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridMove 20s linear infinite;
            mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
        }
        
        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }
        
        /* Floating Elements */
        .float-chip {
            position: absolute;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: 12px;
            backdrop-filter: blur(10px);
            animation: float 6s ease-in-out infinite;
        }
        
        .float-chip:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
        .float-chip:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
        .float-chip:nth-child(3) { bottom: 15%; left: 15%; animation-delay: 2s; }
        .float-chip:nth-child(4) { bottom: 25%; right: 10%; animation-delay: 1.5s; }
        
        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }
        
        /* 3D Isometric Card */
        .iso-card {
            perspective: 1500px;
            transform-style: preserve-3d;
        }
        
        .iso-content {
            position: relative;
            transform: rotateX(10deg) rotateY(-15deg);
            transition: transform 0.6s ease;
            transform-style: preserve-3d;
        }
        
        .iso-card:hover .iso-content {
            transform: rotateX(5deg) rotateY(-10deg) scale(1.02);
        }
        
        .iso-layer {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
            border-radius: 2rem;
            border: 1px solid rgba(255,255,255,0.2);
            backdrop-filter: blur(20px);
        }
        
        .iso-layer-1 {
            transform: translateZ(0px);
            box-shadow: 0 50px 100px rgba(0,0,0,0.3);
        }
        
        .iso-layer-2 {
            transform: translateZ(-20px);
            opacity: 0.6;
        }
        
        .iso-layer-3 {
            transform: translateZ(-40px);
            opacity: 0.3;
        }
        
        /* Holographic Effect */
        .holo-text {
            background: linear-gradient(
                45deg,
                #60a5fa 0%,
                #a78bfa 25%,
                #f472b6 50%,
                #fb923c 75%,
                #60a5fa 100%
            );
            background-size: 300% 300%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: holoShift 3s ease infinite;
        }
        
        @keyframes holoShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        /* Interactive Supply Chain */
        .supply-chain {
            position: relative;
            width: 100%;
            height: 400px;
        }
        
        .supply-node {
            position: absolute;
            width: 80px;
            height: 80px;
            border-radius: 20px;
            background: rgba(99, 102, 241, 0.2);
            border: 2px solid rgba(99, 102, 241, 0.5);
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.4s ease;
            cursor: pointer;
        }
        
        .supply-node:hover {
            transform: scale(1.2) translateY(-10px);
            background: rgba(99, 102, 241, 0.4);
            box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
        }
        
        .supply-line {
            position: absolute;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent,
                rgba(99, 102, 241, 0.5),
                transparent
            );
            transform-origin: left;
        }
        
        .supply-line::before {
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            background: rgba(99, 102, 241, 0.8);
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
            animation: moveDot 3s ease-in-out infinite;
        }
        
        @keyframes moveDot {
            0%, 100% { left: 0; opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { left: 100%; opacity: 0; }
        }
        
        /* Stats Counter Animation */
        .stat-glow {
            text-shadow: 0 0 20px currentColor;
            animation: statPulse 2s ease-in-out infinite;
        }
        
        @keyframes statPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        
        /* Particle System */
        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(99, 102, 241, 0.6);
            border-radius: 50%;
            pointer-events: none;
            animation: particleFloat 8s ease-in-out infinite;
        }
        
        @keyframes particleFloat {
            0% { transform: translate(0, 0) scale(1); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
        }
        
        /* Glitch Button */
        .btn-glitch {
            position: relative;
            overflow: hidden;
        }
        
        .btn-glitch::before {
            content: attr(data-text);
            position: absolute;
            inset: 0;
            background: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
            transform: translateX(-2px);
            opacity: 0;
        }
        
        .btn-glitch:hover::before {
            animation: glitch 0.3s ease;
        }
        
        @keyframes glitch {
            0%, 100% { transform: translateX(0); opacity: 0; }
            20% { transform: translateX(-4px); opacity: 0.8; }
            40% { transform: translateX(4px); opacity: 0.8; }
            60% { transform: translateX(-4px); opacity: 0.8; }
            80% { transform: translateX(4px); opacity: 0.8; }
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .iso-content {
                transform: rotateX(5deg) rotateY(-8deg);
            }
            .supply-chain {
                height: 300px;
            }
            .supply-node {
                width: 60px;
                height: 60px;
            }
        }
        
        
        
/* کارت‌های مخفی (کابل‌ها و تجهیزات مخابراتی) */
.hidden-cards {
    display: none;
}

.hidden-cards.show {
    display: contents; /* فرزندان به‌صورت مستقیم وارد گرید اصلی می‌شوند */
}

/* انیمیشن نمایان شدن کارت‌های جدید */
.hidden-cards.show .glass-card {
    animation: fadeInProductCard 0.45s ease-in-out;
}

@keyframes fadeInProductCard {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-preview {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-height: 210px;
    overflow: hidden;

    /* این‌بار از کارتِ کامل به ترنسپرنت در انتهای سکشن */
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.7) 55%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.7) 55%,
        rgba(0, 0, 0, 0) 100%
    );
}

@media (max-width: 1024px) {
    .fade-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 190px;
    }
}

@media (max-width: 640px) {
    .fade-preview {
        max-height: 180px; /* اگه خواستی می‌تونی همینو هم کم‌وزیاد کنی */
    }
}

@media (max-width: 440px) {
    /* محو شدگی کمتر، برش بالاتر */
    .fade-preview {
        max-height: 160px; /* اگه زیادیه/کمه، اینو تنظیم کن */
    }

    /* جابه‌جایی دکمه مشاهده ادامه */
    #categoriesViewMoreContainer {
        margin-top: -6rem;
    }
}

/* برای زمانی که پیش‌نمایش رو کامل مخفی می‌کنی */
.fade-preview.hidden {
    display: none;
}

/* کانتینر دکمه */
/* جابه‌جایی دکمه "مشاهده ادامه" به بالا */
#categoriesViewMoreContainer {
    margin-top: -4rem;   /* می‌تونی بین -0.5 تا -1.5 تست کنی */
    position: relative;
    z-index: 3;             /* مطمئن شیم روی فید و کارت‌هاست */
    display: flex;
    justify-content: center;
}

/* دکمه شیشه‌ای با استروک آبی */
#categoriesViewMoreBtn {
    position: relative;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2161d5;
    color: #2161d5;
    border-radius: 999px;

    padding-inline: 2.5rem;
    padding-block: 0.85rem;

    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* هاور ساده و تمیز، نور پشت دکمه نه روی خود متن */
/* هاور ساده با نور جمع‌وجورتر */
#categoriesViewMoreBtn:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 14px rgba(235, 153, 7, 0.35); /* نور کمتر و متمرکزتر */
    transform: translateY(-1px);
}


/* بعد از کلیک، دیگه هاور نداشته باشه و خنثی‌تر بشه */
#categoriesViewMoreBtn.is-clicked {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(0);
    cursor: default;
}

/* کلاس خروج روی خود دکمه: اسلاید رو به پایین + محو */
#categoriesViewMoreBtn.categories-view-more-btn--leaving {
    animation: categoriesViewMoreBtnSlideOut 0.45s ease-in forwards;
}

@keyframes categoriesViewMoreBtnSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(40px);
    }
}
