/* ==================== RESET & BASE ==================== */
:root {
    /* رنگ‌های روشن (پیش‌فرض) */
    --primary: #1CA9C9;
    --primary-dark: #0E7A94;
    --primary-light: #E0F6FB;
    --secondary: #0A2540;
    --accent: #FF7A00;
    --accent-hover: #E56B00;
    --text-dark: #1A1A2E;
    --text-mid: #4A5568;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: rgba(255,255,255,0.95);
    --about-card-bg: #F8FCFD;
    --about-card-border: rgba(28, 169, 201, 0.12);

    /* رنگ کارت‌ها و سطوح */
    --card-bg: #FFFFFF;
    --card-border: rgba(0,0,0,0.05);
    --border-color: #E2E8F0;
    --input-bg: #F7FAFC;

    /* تم */
    color-scheme: light;
}

/* ==================== REMOVE LINK UNDERLINES ==================== */
a {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    -moz-text-decoration: none !important;
    -ms-text-decoration: none !important;
    -o-text-decoration: none !important;
}

/* برای اطمینان از حذف زیرخط در همه حالت‌ها */
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

/* حذف زیرخط از عناصر داخل لینک‌ها (مثل آیکون‌ها یا متن‌های تودرتو) */
a * {
    text-decoration: none !important;
}

/* ==================== DARK MODE ==================== */
[data-theme="dark"] {
    --primary: #22B8D8;
    --primary-dark: #1CA9C9;
    --primary-light: rgba(28, 169, 201, 0.15);
    --secondary: #0D1117;
    --accent: #FF8C1A;
    --accent-hover: #FF7A00;
    --text-dark: #E6EDF3;
    --text-mid: #B1BAC4;
    --text-light: #8B949E;
    --bg-light: #161B22;
    --bg-white: #0D1117;
    --white: #0D1117;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
    --about-card-bg: #1C2128;
    --about-card-border: rgba(28, 169, 201, 0.25);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.6);

    --card-bg: #1C2128;
    --card-border: rgba(255,255,255,0.08);
    --border-color: #30363D;
    --input-bg: #1C2128;
    --header-bg: rgba(13, 17, 23, 0.95);

    color-scheme: dark;
}

/* ==================== TRANSITION نرم برای تغییر تم ==================== */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* ==================== BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== HEADER ==================== */
.header {
    background: var(--header-bg, rgba(255,255,255,0.95));   /* ← تغییر */
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 12px 0;
    z-index: 1000;
}

.header.scrolled {
    padding: 6px 0;
    box-shadow: var(--shadow-md);
}

/* ★★ کانتینر هدر — دسکتاپ: لوگو راست، منو وسط، CTA چپ ★★ */
.header .navbar {
    padding: 0;
    display: block;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 15px;
    max-width: 1320px;
    margin: 0 auto;
}

/* لوگو */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.header.scrolled .brand-logo-img {
    height: 48px;
}

.navbar-brand:hover .brand-logo-img {
    transform: scale(1.05);
}

/* ★★ منوی دسکتاپ ★★ */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.desktop-nav .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-dark);
    padding: 8px 14px !important;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

/* فقط hover */
.desktop-nav .nav-link:hover {
     color: var(--primary);
    background: var(--primary-light);
}

/* ★★ active (صفحه فعلی یا اسکرول) ★★ */
.desktop-nav .nav-link.active {
     color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

.desktop-nav .btn-cta {
    padding: 9px 22px;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF7A00 0%, #E56B00 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.desktop-nav .btn-cta:hover {
    background: linear-gradient(135deg, #E56B00 0%, #C95A00 100%);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 122, 0, 0.45);
}

/* ★★ دکمه منو — در دسکتاپ مخفی ★★ */
.header .navbar-toggler {
    display: none !important;
}

/* ==================== RESPONSIVE — زیر 1024px ★★ */
@media (max-width: 1023.98px) {

    /* منوی دسکتاپ مخفی */
    .desktop-nav {
        display: none !important;
    }

    /* دکمه منو — نمایان */
    .header .navbar-toggler {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        border: none;
        padding: 8px 14px;
        border-radius: 10px;
        background: linear-gradient(135deg, #1CA9C9, #0E7A94);
        color: white;
        font-weight: 700;
        font-size: 0.78rem;
        box-shadow: 0 3px 10px rgba(28, 169, 201, 0.28);
        margin: 0;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .header .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(28, 169, 201, 0.25);
        outline: none;
    }

    .header .navbar-toggler-icon {
        width: 15px;
        height: 15px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-size: 100%;
    }

    .header .navbar-toggler .menu-label {
        font-size: 0.78rem;
        font-weight: 700;
        color: white;
    }

    /* کانتینر هدر موبایل — دکمه راست، لوگو چپ */
    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .header .navbar-toggler {
        order: 0;
    }

    .header .navbar-brand {
        order: 1;
    }

    .brand-logo-img {
        height: 34px;
        max-width: 110px;
    }

    .header.scrolled .brand-logo-img {
        height: 30px;
    }
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #0A2540 0%, #1CA9C9 100%);
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(28,169,201,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,122,0,0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ★★★ HERO TITLE — نسخه‌ی جدید ★★★ */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;         /* ★ راست‌چین در RTL */
    gap: 8px;
    margin-bottom: 25px;
    line-height: 1.3;
    text-align: right;                /* ★ راست‌چین */
    direction: rtl;
}

/* ★ خط اول: توسکا — بزرگ‌تر و زرد */
.hero-title-line1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #f1dec6;              /* ★ فیروزه‌ای روشن */
    line-height: 1.1;
    display: block;
    text-shadow: 0 0 30px rgba(77, 208, 225, 0.4);
}

/* ★ خط دوم: تایپ انیمیشن + گرادیانت */
.hero-title-line2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    min-height: 1.3em;
    white-space: nowrap;
}

.typing-text {
    background: linear-gradient(90deg, #ff922e, #f1dec6);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ★ خط عمودی چشمک‌زن */
.typing-caret {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #f1dec6;              /* ★ فیروزه‌ای */
    margin-right: 6px;
    animation: caretBlink 0.8s step-end infinite;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(77, 208, 225, 0.8);
}

@keyframes caretBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* ★ خط سوم: متن عادی سفید */
.hero-title-line3 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 900;
    color: white;
    line-height: 1.4;
    display: block;
}

/* ★★★ HERO SUBTITLE — راست‌چین ★★★ */
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    text-align: right;
    direction: rtl;
    line-height: 1.9;
}

/* ★★ HERO BUTTONS — راست‌چین ★★ */
.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;      /* ★ به راست در RTL */
    margin-top: 10px;
    padding-right: 0;                /* ★ بدون padding */
}

/* ★ موبایل — همه چیز وسط‌چین */
@media (max-width: 767.98px) {
    .hero-title {
        gap: 4px;
        margin-bottom: 16px;
        align-items: center;         /* ★ وسط‌چین افقی */
        text-align: center;           /* ★ متن وسط */
    }
    .hero-title-line1 {
        font-size: 1.4rem;
    }
    .hero-title-line2 {
        font-size: 1.15rem;
        min-height: 1.2em;
        justify-content: center;      /* ★ وسط‌چین برای flex */
    }
    .hero-title-line3 {
        font-size: 1.05rem;
        text-align: center;
    }
    .typing-caret {
        width: 2px;
        height: 0.9em;
        margin-right: 4px;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.8;
        text-align: center;           /* ★ وسط‌چین */
        margin-left: auto;            /* ★ وسط‌چین کادر */
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;      /* ★ دکمه‌ها وسط */
    }
}

/* ★ تبلت */
@media (max-width: 991.98px) and (min-width: 768px) {
    .hero-title-line1 {
        font-size: 2rem;
    }
    .hero-title-line2 {
        font-size: 1.8rem;
    }
    .hero-title-line3 {
        font-size: 1.5rem;
    }
}


.btn-primary-custom {
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,122,0,0.4);
}

.btn-outline-custom {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-dark);
    border-color: white;
}

/* ============================================================
   ★★★ HERO DECORATIONS — آبجکت‌های شناور تزئینی ★★★
   ============================================================ */

.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* ★★★ دایره‌های نورانی ★★★ */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(77, 208, 225, 0.3);
    animation: decoRotate 20s linear infinite;
}

.deco-circle-1 {
    width: 120px;
    height: 120px;
    top: 8%;
    left: 5%;
    border-style: dashed;
    border-color: rgba(77, 208, 225, 0.4);
    animation-duration: 25s;
}

.deco-circle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 8%;
    border-color: rgba(255, 122, 0, 0.3);
    animation-duration: 30s;
    animation-direction: reverse;
}

.deco-circle-3 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 45%;
    border-color: rgba(77, 208, 225, 0.15);
    border-style: dotted;
    animation-duration: 40s;
}

@keyframes decoRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ★★★ آیکون‌های شناور ★★★ */
.deco-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #4DD0E1;
    box-shadow: 
        0 8px 25px rgba(28, 169, 201, 0.15),
        inset 0 0 15px rgba(77, 208, 225, 0.05);
    animation: decoFloat 6s ease-in-out infinite;
}

.deco-icon-1 {
    top: 18%;
    right: 10%;
    animation-delay: 0s;
    color: #4DD0E1;
}

.deco-icon-2 {
    top: 55%;
    left: 3%;
    animation-delay: 1s;
    color: #4DD0E1;
}

.deco-icon-3 {
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
    color: #FF7A00;
}

.deco-icon-4 {
    bottom: 35%;
    left: 12%;
    animation-delay: 3s;
    color: #4DD0E1;
}

@keyframes decoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* ★★★ نقاط درخشان چشمک‌زن ★★★ */
.deco-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4DD0E1;
    box-shadow: 0 0 10px #4DD0E1, 0 0 20px rgba(77, 208, 225, 0.5);
    animation: decoBlink 3s ease-in-out infinite;
}

.deco-dot-1 { top: 15%; left: 15%; animation-delay: 0s; }
.deco-dot-2 { top: 25%; right: 25%; animation-delay: 0.5s; }
.deco-dot-3 { top: 70%; left: 20%; animation-delay: 1s; }
.deco-dot-4 { bottom: 15%; right: 30%; animation-delay: 1.5s; }
.deco-dot-5 { top: 45%; right: 5%; animation-delay: 2s; }
.deco-dot-6 { bottom: 25%; left: 8%; animation-delay: 2.5s; }

@keyframes decoBlink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ★★★ خطوط تزئینی مورب ★★★ */
.deco-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.4), transparent);
    animation: decoLineMove 8s ease-in-out infinite;
}

.deco-line-1 {
    width: 200px;
    height: 1px;
    top: 30%;
    left: 5%;
    transform: rotate(-30deg);
    animation-delay: 0s;
}

.deco-line-2 {
    width: 150px;
    height: 1px;
    bottom: 40%;
    right: 10%;
    transform: rotate(30deg);
    animation-delay: 2s;
}

@keyframes decoLineMove {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(-30deg) scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: rotate(-30deg) scaleX(1.2);
    }
}

/* ★★★ موبایل — کاهش تعداد آبجکت‌ها برای سبک‌تر شدن ★★★ */
@media (max-width: 767.98px) {
    .deco-circle-3,
    .deco-icon-2,
    .deco-icon-4,
    .deco-line-1,
    .deco-line-2,
    .deco-dot-5,
    .deco-dot-6 {
        display: none;    /* فقط ۴-۵ آبجکت در موبایل */
    }
    
    .deco-circle-1 { width: 80px; height: 80px; }
    .deco-circle-2 { width: 60px; height: 60px; }
    
    .deco-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* سرعت کمتر در موبایل */
    .deco-icon,
    .deco-circle,
    .deco-dot {
        animation-duration: 8s;
    }
}

/* ============================================================
   ★★★ HERO DECORATIONS — سمت راست (کنار متن توسکا) ★★★
   ============================================================ */

/* ★★★ آیکون‌های سمت راست ★★★ */

/* آیکون ۱: هارد دیسک شبکه — بالا راست */
.deco-icon-right-1 {
    top: 12%;
    right: 8%;
    animation-delay: 0.3s;
    color: #4DD0E1;
}

/* آیکون ۲: روتر — راست وسط بالا */
.deco-icon-right-2 {
    top: 22%;
    right: 22%;
    animation-delay: 1.2s;
    color: #4DD0E1;
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

/* آیکون ۳: امنیت — راست وسط */
.deco-icon-right-3 {
    top: 38%;
    right: 5%;
    animation-delay: 2.1s;
    color: #FF7A00;
}

/* آیکون ۴: CPU — راست پایین‌تر */
.deco-icon-right-4 {
    top: 50%;
    right: 20%;
    animation-delay: 0.8s;
    color: #4DD0E1;
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

/* آیکون ۵: WiFi — راست بالا (خیلی نزدیک به متن) */
.deco-icon-right-5 {
    top: 8%;
    right: 28%;
    animation-delay: 1.6s;
    color: #4DD0E1;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
}

/* آیکون ۶: قفل — راست وسط پایین */
.deco-icon-right-6 {
    top: 65%;
    right: 12%;
    animation-delay: 2.7s;
    color: #FFF5DF;
    opacity: 50%;
}

/* ★★★ دایره‌های سمت راست ★★★ */

.deco-circle-right-1 {
    width: 60px;
    height: 60px;
    top: 6%;
    right: 18%;
    border: 1px solid rgba(77, 208, 225, 0.3);
    border-style: dashed;
    animation-duration: 22s;
}

.deco-circle-right-2 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 0%;
    border: 1px solid rgba(255, 122, 0, 0.25);
    border-style: dotted;
    animation-duration: 35s;
    animation-direction: reverse;
}

.deco-circle-right-3 {
    width: 50px;
    height: 50px;
    top: 55%;
    right: 28%;
    border: 1px solid rgba(77, 208, 225, 0.35);
    animation-duration: 28s;
}

.deco-circle-right-4 {
    width: 80px;
    height: 80px;
    bottom: 8%;
    right: 5%;
    border: 1px dashed rgba(77, 208, 225, 0.25);
    animation-duration: 32s;
    animation-direction: reverse;
}

/* ★★★ نقاط درخشان جدید ★★★ */

.deco-dot-7 {
    top: 10%;
    right: 35%;
    animation-delay: 0.3s;
    background: #FF7A00;
    box-shadow: 0 0 10px #FF7A00, 0 0 20px rgba(255, 122, 0, 0.5);
}

.deco-dot-8 {
    top: 32%;
    right: 40%;
    animation-delay: 1.2s;
}

.deco-dot-9 {
    top: 48%;
    right: 35%;
    animation-delay: 2.1s;
    background: #FF7A00;
    box-shadow: 0 0 10px #FF7A00, 0 0 20px rgba(255, 122, 0, 0.5);
}

.deco-dot-10 {
    bottom: 20%;
    right: 45%;
    animation-delay: 1.8s;
}

/* ★★★ خط تزئینی سمت راست ★★★ */

.deco-line-3 {
    width: 180px;
    height: 1px;
    top: 20%;
    right: 5%;
    background: linear-gradient(90deg, rgba(77, 208, 225, 0.4), transparent);
    transform: rotate(45deg);
    animation: decoLineMoveRight 10s ease-in-out infinite;
}

@keyframes decoLineMoveRight {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(45deg) scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) scaleX(1.3);
    }
}

/* ★★★ موبایل — کاهش تعداد ★★★ */
@media (max-width: 767.98px) {
    /* در موبایل، آبجکت‌های سمت راست رو حذف یا کمتر کن */
    .deco-icon-right-2,
    .deco-icon-right-4,
    .deco-icon-right-5,
    .deco-circle-right-2,
    .deco-circle-right-3,
    .deco-dot-8,
    .deco-dot-10,
    .deco-line-3 {
        display: none;
    }
    
    /* آبجکت‌های باقی‌مونده رو کوچیک‌تر کن */
    .deco-icon-right-1,
    .deco-icon-right-3,
    .deco-icon-right-6 {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .deco-circle-right-1 {
        width: 40px;
        height: 40px;
    }
    
    .deco-circle-right-4 {
        width: 50px;
        height: 50px;
    }
    
    /* موقعیت‌های سمت راست رو در موبایل تنظیم کن */
    .deco-icon-right-1 {
        top: 15%;
        right: 5%;
    }
    
    .deco-icon-right-3 {
        top: 42%;
        right: 8%;
    }
    
    .deco-icon-right-6 {
        top: 68%;
        right: 10%;
    }
}

.hero-mouse-glow {
    position: absolute;
    width: 500px;                          /* ★ از 300 به 500 (بزرگ‌تر) */
    height: 500px;                         /* ★ از 300 به 500 */
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(77, 208, 225, 0.5) 0%,        /* ★ از 0.15 به 0.5 (پرنورتر) */
        rgba(28, 169, 201, 0.25) 30%,      /* ★ لایه‌ی میانی اضافه شد */
        transparent 75%);                  /* ★ از 70 به 75 */
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    will-change: transform;
    filter: blur(20px);                    /* ★ نرم‌تر */
}

/* Trust Bar */
.trust-bar {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 30px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
}

.trust-item i {
    font-size: 2rem;
    color: #FFD93D;
}

.trust-item h4 {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.trust-item p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 90px 0;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.4;
}

.section-subtitle {
    color: var(--text-mid);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    color: var(--text-mid);
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

/* ==================== ABOUT ==================== */
.about-section { background: var(--bg-white); }

.about-features {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ★★★ تغییر ۱: افزایش ارتفاع کادر والد ★★★ */
.about-visual {
    position: relative;
    height: 600px; /* از 450px به 600px افزایش یافت */
}

/* ★★★ تغییر ۲: بزرگ‌تر کردن کادر آبی پشت آیکون‌ها ★★★ */
.about-main-img {
    position: absolute;
    /* استفاده از inset منفی برای بزرگتر شدن از کادر والد */
    inset: -40px; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    opacity: 0.1;
}

.about-card {
    position: absolute;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 150px;
    transition: var(--transition);
    border: 1px solid rgba(28,169,201,0.1);
    border-color: var(--card-border);
}

.about-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.about-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.about-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.about-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ==================== ABOUT CARDS POSITIONS ==================== */

/* کارت ۱: زیرساخت - بالا راست */
.floating {
    top: 4%;
    right: 18%;
    animation: float 4s ease-in-out infinite;
}

/* کارت ۲: امنیت - چپ وسط */
.floating-2 {
    top: 38%;
    left: 2%;
    animation: float 4s ease-in-out infinite 1s;
}

/* کارت ۳: شبکه - پایین وسط-راست */
.floating-3 {
    bottom: 7%;
    right: 25%;
    animation: float 4s ease-in-out infinite 2s;
}

/* کارت ۴: نرم‌افزار - بالا چپ */
.floating-4 {
    top: 8%;
    left: 22%;
    animation: float 4s ease-in-out infinite 0.5s;
}

/* کارت ۵: مخابرات - پایین چپ */
.floating-5 {
    bottom: 12%;
    left: 23%;
    animation: float 4s ease-in-out infinite 1.5s;
}

/* کارت ۶: پشتیبانی - وسط راست */
.floating-6 {
    top: 45%;
    right: 2%;
    animation: float 4s ease-in-out infinite 2.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
/* ==================== INDUSTRIES ==================== */
.industries-section {
    background: var(--bg-light);
}

.industry-card {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: var(--radius);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    border-color: var(--card-border);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.industry-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    transition: var(--transition);
}

.bg-blue { background: linear-gradient(135deg, #1CA9C9, #0E7A94); }
.bg-green { background: linear-gradient(135deg, #28A745, #1E7E34); }
.bg-orange { background: linear-gradient(135deg, #FF7A00, #E56B00); }
.bg-purple { background: linear-gradient(135deg, #6F42C1, #553098); }

.industry-card:hover .industry-icon {
    transform: rotate(-10deg) scale(1.1);
}

.industry-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin: 0;
}

/* ==================== SERVICES ==================== */
.services-section { background: var(--bg-white); }

.service-card {
    background: var(--card-bg);
    padding: 35px 28px;
    border-radius: var(--radius);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    border-color: var(--card-border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 65px;
    height: 65px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: rotate(-8deg) scale(1.1);
}

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-mid);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ==================== BRANDS SECTION ==================== */
.brands-section {
    background: linear-gradient(135deg, #0A2540 0%, #0E3A5C 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(28,169,201,0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255,122,0,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.brands-section .section-tag {
    background: rgba(28,169,201,0.2);
    color: #4DD0E1;
    border: 1px solid rgba(28,169,201,0.3);
}

.brands-section .section-title {
    color: white;
}

.brands-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

/* Grid */
.brands-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));  /* ★ ۶ ستون صریح */
    gap: 16px;
    max-width: 1100px;                                  /* ★ محدودیت عرض */
    width: 100%;
    margin: 0 auto;                                     /* ★ وسط‌چین */
    padding: 0 14px;
}

/* Card */
.brand-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 20px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-color: var(--card-border);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;

    /* ★★★ ساده‌ترین انیمیشن: فقط تغییر شفافیت ★★★ */
    animation: brandFade 4s ease-in-out infinite;
    will-change: opacity;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.brand-card:hover {
    animation-play-state: paused;
    opacity: 1 !important;
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(28,169,201,0.4) !important;
    border-color: var(--primary);
}


/* ★★★ فقط opacity — سبک‌ترین انیمیشن ممکن ★★★ */
@keyframes brandFade {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}





/* Logo */
.brand-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: var(--transition);
}

.brand-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: var(--transition);
    filter: grayscale(0%);      /* ← همیشه رنگی */
    opacity: 1;                 /* ← همیشه واضح */
}

.brand-card:hover .brand-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Brand Name */
.brand-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-mid);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.brand-card:hover .brand-name {
    color: var(--primary-dark);
}

/* ==================== RESPONSIVE ==================== */

/* تبلت افقی */
@media (max-width: 1199.98px) {
    .brands-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

/* تبلت */
@media (max-width: 991.98px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .brand-card {
        padding: 16px 10px 12px;
    }
    .brand-logo { height: 55px; margin-bottom: 8px; }
    .brand-logo img { max-height: 45px; }
    .brand-name { font-size: 0.78rem; }
}

/* موبایل — بدون انیمیشن (سبک‌تر و بدون لگ) */
@media (max-width: 767.98px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 100%;
    }
    .brand-card {
        padding: 12px 6px 10px;
        border-radius: 12px;
        animation: none;                   /* ← انیمیشن کاملاً قطع */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }
    .brand-card:hover {
        transform: translateY(-4px) scale(1.02) !important;
        animation: none !important;
    }
    .brand-logo { height: 40px; margin-bottom: 5px; }
    .brand-logo img { max-height: 32px; }
    .brand-name { font-size: 0.62rem; }
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
    background: var(--bg-light);
}

.projects-section .section-subtitle {
    color: var(--text-mid);
}

/* Card */
.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    border-color: var(--card-border);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border-color: transparent;
}

/* Image Container */
.project-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #E2E8F0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.project-card:hover .project-img img {
    transform: scale(1.12);
}

/* Overlay on image */
.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(10, 37, 64, 0.4) 100%
    );
    opacity: 0.6;
    transition: var(--transition);
    pointer-events: none;
}

.project-card:hover .project-img::after {
    opacity: 0.85;
}

/* Floating Tag on Image */
.project-tag-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.project-card:hover .project-tag-floating {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Body */
.project-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.project-card:hover .project-body::before {
    transform: scaleX(1);
    transform-origin: left;
}

.project-body h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.5;
    transition: var(--transition);
}

.project-card:hover .project-body h5 {
    color: var(--primary-dark);
}

.project-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
}

.project-body p i {
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .project-img {
        height: 200px;
    }
    
    .project-body {
        padding: 18px 20px 22px;
    }
    
    .project-body h5 {
        font-size: 0.98rem;
    }
    
    .project-body p {
        font-size: 0.8rem;
    }
    
    .project-tag-floating {
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .project-img {
        height: 180px;
    }
    
    .project-body {
        padding: 16px 18px 20px;
    }
    
    .project-body h5 {
        font-size: 0.92rem;
    }
}

/* ==================== CLIENTS SECTION ==================== */
.clients-section {
    background: var(--bg-light);
    padding-bottom: 60px;
    overflow: hidden;
}

.clients-section .section-subtitle {
    color: var(--text-mid);
}

/* Marquee Container */
.clients-marquee {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    width: 100%;
}

/* Track — حالا لوگوها دو بار تکرار شدن، پس ۵۰٪ حرکت = یه دور کامل */
.marquee-track {
    display: flex;
    gap: 20px;
    animation: clientsMarquee 60s linear infinite;
    width: max-content;
    padding: 10px 0;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}
/* Animation — از 0 به -50% (چون دو نسخه‌ست) */
@keyframes clientsMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Client Card */
.client-item {
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    min-width: 200px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.client-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(28,169,201,0.15);
    border-color: var(--primary);
}

/* Client Logo */
.client-logo {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.client-logo img {
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-item:hover .client-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Client Name */
.client-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-mid);
    line-height: 1.4;
    transition: var(--transition);
    white-space: nowrap;
}

.client-item:hover .client-name {
    color: var(--primary-dark);
}

/* Animation */
@keyframes clientsMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .client-item {
        min-width: 160px;
        padding: 16px 18px;
        gap: 10px;
    }
    
    .client-logo {
        height: 55px;
    }
    
    .client-logo img {
        max-height: 50px;
    }
    
    .client-name {
        font-size: 0.78rem;
    }
    
    .marquee-track {
        gap: 14px;
        animation-duration: 60s;
    }
}

@media (max-width: 480px) {
    .client-item {
        min-width: 140px;
        padding: 14px 16px;
    }
    
    .client-logo {
        height: 45px;
    }
    
    .client-logo img {
        max-height: 42px;
    }
    
    .client-name {
        font-size: 0.72rem;
    }
}

/* ==================== WHY US ==================== */
.why-section {
    background: var(--bg-light);
}

.why-card {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: var(--radius);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    border-color: var(--card-border);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.why-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin: 0;
}

/* ==================== FAQ ==================== */
.faq-section { background: var(--bg-white); }

.accordion-item {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm) !important;
    border-color: var(--border-color);
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--card-bg);
    padding: 20px 24px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    color: var(--text-mid);
    font-size: 0.95rem;
    padding: 20px 24px;
    line-height: 1.9;
    background: var(--card-bg);
}

/* ==================== CONTACT ==================== */
.contact-section { background: var(--bg-light); }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h6 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 4px;
    font-weight: 500;
}

.contact-item a,
.contact-item p {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form {
     background: var(--card-bg);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-control,
.form-select {
    padding: 14px 18px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    border-color: var(--border-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(28,169,201,0.1);
   background: var(--card-bg);
   color: var(--text-dark);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 70px 0 25px;
}

.footer-brand {
    color: white;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.9;
}

.footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-img-icon {
    width: 13px;      /* ← از 20 به 14 */
    height: 13px;     /* ← از 20 به 14 */
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 25px;
}

.footer-bottom {
    display: flex;
    justify-content: center;      /* ★ اضافه شد */
    align-items: center;           /* ★ اضافه شد */
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ==================== FLOATING ELEMENTS ==================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37,211,102,0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== RESPONSIVE ==================== */

    
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-visual {
        height: 350px;
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .trust-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .trust-item i {
        font-size: 1.5rem;
    }
    
    .trust-item h4 {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .floating-whatsapp {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}


/* ==================== ADMIN LOGIN LINK ==================== */
.footer-bottom {
    display: flex;
    flex-direction: column;         /* ★ چیدمان عمودی */
    justify-content: center;        /* ★ وسط‌چین افقی */
    align-items: center;            /* ★ وسط‌چین عمودی */
    gap: 10px;
    text-align: center;
}

.admin-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.03);
}

.admin-login-link:hover {
    color: #4DD0E1;
    border-color: rgba(77,208,225,0.4);
    background: rgba(28,169,201,0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(28,169,201,0.2);
}

.admin-login-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.admin-login-link:hover i {
    transform: rotate(-10deg) scale(1.15);
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-login-link span {
        display: none; /* فقط آیکون در موبایل */
    }
    
    .admin-login-link {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

/* ==================== HERO IMAGE — ULTIMATE FIX ==================== */
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* حداقل ارتفاع را در دسکتاپ افزایش می‌دهیم تا فضا برای تصویر بزرگ باشد */
    min-height: 700px; 
    width: 100%;
}

/* هاله‌ی درخشان پشت تصویر */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, 
        rgba(255, 217, 61, 0.3) 0%, 
        rgba(255, 122, 0, 0.1) 40%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: heroGlow 4s ease-in-out infinite;
}

.hero-image {
    position: relative;
    z-index: 2;
    /* تغییر کلیدی: عرض را کنترل می‌کنیم نه ارتفاع را */
    width: 100%; 
    max-width: 1000px /* این عدد را می‌توانید تا 1000 هم افزایش دهید */
    height: auto;
    /* حذف محدودیت ارتفاع برای جلوگیری از کوچک شدن */
    max-height: none; 
    object-fit: contain;
    animation: heroFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.3));
}

/* ==================== ANIMATIONS ==================== */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes heroGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

/* ==================== RESPONSIVE — FINAL ==================== */

/* تبلت */
@media (max-width: 991px) {
    .hero-image-wrapper {
        margin-top: 20px;
        min-height: 500px; /* ارتفاع مناسب برای تبلت */
    }
    .hero-image {
        max-width: 90%; /* تقریبا تمام عرض ستون را پر کند */
    }
}

/* موبایل */
@media (max-width: 576px) {
    .hero-image-wrapper {
        min-height: 350px; /* ارتفاع مناسب برای موبایل */
        padding: 10px;
    }
    .hero-image {
        max-width: 100%; /* در موبایل کل عرض صفحه را بگیرد */
        width: 100%;
    }
}
/* ==================== ABOUT VISUAL - MOBILE ==================== */
@media (max-width: 767.98px) {
    .about-visual {
        height: 380px !important;
        margin-top: 25px;
    }
    
    .about-card {
        padding: 10px 12px !important;
        min-width: 95px !important;
    }
    
    .about-card i {
        font-size: 1.3rem !important;
        margin-bottom: 3px !important;
    }
    
    .about-card h5 {
        font-size: 0.75rem !important;
    }
    
    .about-card p {
        font-size: 0.65rem !important;
    }
    
    /* جابجایی کارت‌ها در موبایل برای جلوگیری از تداخل */
    .floating {
        top: 5% !important;
        right: 5% !important;
    }
    
    .floating-2 {
        top: 30% !important;
        left: 5% !important;
    }
    
    .floating-3 {
        bottom: 5% !important;
        right: 5% !important;
    }
    
    .floating-4 {
        top: 5% !important;
        left: 40% !important;
    }
    
    .floating-5 {
        bottom: 5% !important;
        left: 5% !important;
    }
    
    .floating-6 {
        bottom: 35% !important;
        right: 5% !important;
    }
}

@media (max-width: 480px) {
    .about-visual {
        height: 340px !important;
    }
    
    .about-card {
        min-width: 85px !important;
        padding: 8px 10px !important;
    }
    
    .about-card h5 {
        font-size: 0.7rem !important;
    }
    
    .about-card p {
        font-size: 0.6rem !important;
    }
}

/* ==================== ABOUT CARD COLORS ==================== */
.about-card:nth-child(1) i { color: #1CA9C9; }  /* زیرساخت - آبی */
.about-card:nth-child(2) i { color: #28A745; }  /* امنیت - سبز */
.about-card:nth-child(3) i { color: #FF7A00; }  /* شبکه - نارنجی */
.about-card:nth-child(4) i { color: #6F42C1; }  /* نرم‌افزار - بنفش */
.about-card:nth-child(5) i { color: #E83E8C; }  /* مخابرات - صورتی */
.about-card:nth-child(6) i { color: #FFD93D; }  /* پشتیبانی - زرد */


/* ==================== VIEW ALL PROJECTS BUTTON ==================== */
.btn-view-all-projects {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1CA9C9 0%, #0E7A94 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(28,169,201,0.3);
    position: relative;
    overflow: hidden;
}

.btn-view-all-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-view-all-projects:hover::before {
    left: 100%;
}

.btn-view-all-projects:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(28,169,201,0.4);
    color: white;
    gap: 18px;
}

.btn-view-all-projects i {
    font-size: 1.2rem;
}

.btn-view-all-projects i:last-child {
    transition: transform 0.3s;
}

.btn-view-all-projects:hover i:last-child {
    transform: translateX(-5px);
}

/* ==================== VIEW ALL ARTICLES BUTTON ==================== */
.btn-view-all-articles {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0A2540 0%, #1CA9C9 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(10,37,64,0.25);
    position: relative;
    overflow: hidden;
}

.btn-view-all-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-view-all-articles:hover::before {
    left: 100%;
}

.btn-view-all-articles:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(10,37,64,0.35);
    color: white;
    gap: 18px;
}

.btn-view-all-articles i {
    font-size: 1.2rem;
}

.btn-view-all-articles i:last-child {
    transition: transform 0.3s;
}

.btn-view-all-articles:hover i:last-child {
    transform: translateX(-5px);
}

/* ==================== BACK TO HOME BUTTON ==================== */
.back-home-btn {
    position: absolute;               /* ★ از fixed به absolute */
    top: 20px;                        /* ★ فاصله از بالای hero */
    right: 20px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    white-space: nowrap;
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0E7A94;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.back-home-btn i {
    font-size: 0.85rem;
}

/* ★ موبایل */
@media (max-width: 767.98px) {
    .back-home-btn {
        top: 12px;
        right: 12px;
        padding: 5px 11px;
        font-size: 0.66rem;
        gap: 4px;
    }
    .back-home-btn i {
        font-size: 0.72rem;
    }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ★ آیکون‌ها */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}

/* ★ موبایل */
@media (max-width: 1023.98px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ==================== FORM INPUTS — DARK MODE FIX ==================== */
.form-control,
.form-select {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--card-bg);
    border-color: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 0 4px rgba(28,169,201,0.15);
}

/* ★★ Placeholder — در دارک مود روشن‌تر ★★ */
.form-control::placeholder,
.form-select::placeholder {
    color: var(--text-light);
    opacity: 1;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #8B949E;    /* روشن‌تر برای خوانایی */
    opacity: 1;
}

/* ★★ Select Option — در دارک مود ★★ */
[data-theme="dark"] .form-select option {
    background: var(--card-bg);
    color: var(--text-dark);
}

/* ★★ متن داخل input/textarea در دارک مود ★★ */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea {
    color: #E6EDF3;
    background: var(--input-bg);
}

/* ★★ اتوفیل — جلوگیری از پس‌زمینه‌ی زرد ★★ */
[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] textarea:-webkit-autofill,
[data-theme="dark"] select:-webkit-autofill {
    -webkit-text-fill-color: #E6EDF3 !important;
    -webkit-box-shadow: 0 0 0 1000px #1C2128 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ==================== CROSS-BROWSER FIXES ==================== */

/* 1. اعمال color-scheme روی html به جای :root */
html {
    color-scheme: light;
}
html[data-theme="dark"] {
    color-scheme: dark;
}

/* 2. رفع مشکل backdrop-filter در سافاری و فایرفاکس */
.header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hero-badge {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.deco-icon {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.trust-bar {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.project-tag-floating {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.back-home-btn {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* 3. رفع مشکل mask-image در سافاری و فایرفاکس */
.clients-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

/* 4. رفع مشکل text-fill-color در سافاری */
.typing-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 5. رفع مشکل اسکرول‌بار در فایرفاکس (دارک مود) */
@-moz-document url-prefix() {
    html[data-theme="dark"] {
        scrollbar-color: #30363D #0D1117;
        scrollbar-width: thin;
    }
}

/* 6. رفع مشکل aspect-ratio در مرورگرهای قدیمی */
.project-gallery-item {
    aspect-ratio: 4/3;
}
@supports not (aspect-ratio: 4/3) {
    .project-gallery-item {
        height: 0;
        padding-bottom: 75%; /* 3/4 = 75% */
        position: relative;
    }
    .project-gallery-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 7. رفع مشکل transform در فایرفاکس */
.hero-mouse-glow {
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* 8. رفع مشکل will-change در سافاری */
.hero-image, .deco-icon, .deco-circle, .brand-card, .marquee-track {
    -webkit-will-change: transform, opacity;
    will-change: transform, opacity;
}

/* 9. رفع مشکل display: flex در مرورگرهای قدیمی */
.hero-image-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* 10. رفع مشکل gap در فلکس‌باکس (سافاری قدیمی) */
@supports not (gap: 1px) {
    .hero-btns > * + * {
        margin-right: 15px;
    }
    .support-channels > * + * {
        margin-right: 18px;
    }
    .phones-grid > * + * {
        margin-right: 12px;
    }
}

