﻿:root {
    --bg-deep: #060a16;
    --bg-soft: #0b1226;
    --panel: rgba(17, 25, 45, 0.72);
    --panel-solid: #0d1529;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --heading: #f4f7fd;
    --body-text: #d3dcec;
    --muted-text: #9aabc4;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --mint: #34d399;
    --blue: #38bdf8;
    --amber: #fbbf24;
    --main-font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    font-family: var(--main-font) !important;
    direction: rtl;
    background-color: var(--bg-deep);
    color: var(--body-text);
    overflow-x: hidden;
    line-height: 1.9;
}

    /* هاله‌های نئونی پس‌زمینه */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: radial-gradient( 650px circle at 88% 6%, rgba(236, 72, 153, 0.13), transparent 62% ), radial-gradient( 750px circle at 6% 38%, rgba(56, 189, 248, 0.1), transparent 60% ), radial-gradient( 700px circle at 60% 92%, rgba(52, 211, 153, 0.09), transparent 62% );
    }

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    line-height: 1.6;
    direction: rtl;
}

p {
    color: var(--body-text);
}

.text-muted,
.text-secondary {
    color: var(--muted-text) !important;
}

::selection {
    background: rgba(236, 72, 153, 0.35);
}

/* هدر بخش‌ها */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mint);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    margin-bottom: 0.9rem;
}

.section-title {
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.section-sub {
    max-width: 560px;
    margin: 0 auto;
}

section {
    padding: 4.5rem 0;
}

@media (max-width: 575.98px) {
    section {
        padding: 3.2rem 0;
    }
}

/* نوبار */
.custom-navbar {
    background: rgba(6, 10, 22, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-link {
    color: var(--muted-text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.25s ease;
    border-radius: 0.6rem;
}

    .nav-link:hover {
        color: #fff !important;
    }

    .nav-link.active {
        color: #fff !important;
    }

        .nav-link.active::after {
            content: "";
            position: absolute;
            right: 1rem;
            left: 1rem;
            bottom: 0.15rem;
            height: 2px;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--pink), var(--mint));
        }

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(10, 16, 32, 0.98);
        border: 1px solid var(--border);
        border-radius: 1rem;
        margin-top: 0.75rem;
        padding: 1rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(52, 211, 153, 0.1);
    }
}

/* لوگو با جایگاه عکس و آیکون */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo-img {
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-icon {
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient( 135deg, var(--pink), var(--purple) 45%, var(--mint) );
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.4), 0 4px 18px rgba(139, 92, 246, 0.35);
    outline: 1.5px solid rgba(251, 191, 36, 0.65);
    outline-offset: 2px;
    flex-shrink: 0;
}

.brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(120deg, #fff 20%, #a7f3d0 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* دکمه‌ها */
.btn-accent {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 0.8rem;
    padding: 0.7rem 1.8rem;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}

    .btn-accent:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(236, 72, 153, 0.45);
    }

.btn-outline-custom {
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: var(--mint);
    font-weight: 600;
    border-radius: 0.8rem;
    padding: 0.7rem 1.8rem;
    transition: all 0.25s ease;
}

    .btn-outline-custom:hover {
        background: rgba(52, 211, 153, 0.1);
        color: #fff;
        border-color: var(--mint);
        box-shadow: 0 0 18px rgba(52, 211, 153, 0.25);
    }

/* کارت شیشه‌ای */
.glass-card {
    background: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .glass-card:hover {
        transform: translateY(-5px);
        border-color: var(--border-strong);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    }

/* آیکون کارت‌ها */
.icon-box {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    border-radius: 1rem;
    color: var(--mint);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.28);
    margin-bottom: 1.1rem;
    transition: all 0.3s ease;
}

.icon-pink {
    color: var(--pink);
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
}

.icon-blue {
    color: var(--blue);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.icon-amber {
    color: var(--amber);
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.glass-card:hover .icon-box {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.2);
}

/* کنترلرها و اسلاید اسلایدر */
.slider-shell {
    overflow: hidden;
    position: relative;
}

.slider-slide {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 5rem 3.8rem;
}

    .slider-slide h3 {
        font-size: clamp(1.3rem, 2.6vw, 1.9rem);
        font-weight: 800;
        margin-bottom: 0.7rem;
    }

    .slider-slide .lead-text {
        max-width: 560px;
        font-size: 1rem;
        color: var(--muted-text);
    }

.slider-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 1.3rem;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03), 0 14px 30px rgba(0, 0, 0, 0.35);
}

    .slider-icon.grad-pink {
        background: linear-gradient(135deg, var(--pink), var(--purple));
    }

    .slider-icon.grad-mint {
        background: linear-gradient(135deg, #10b981, var(--blue));
    }

    .slider-icon.grad-amber {
        background: linear-gradient(135deg, #f59e0b, var(--pink));
    }

.carousel-indicators {
    margin-bottom: 1rem;
}

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        border-radius: 99px;
        border: 0;
        background: rgba(255, 255, 255, 0.35);
        opacity: 1;
        transition: all 0.3s ease;
        margin-inline: 4px;
    }

    .carousel-indicators .active {
        width: 26px;
        background: linear-gradient(90deg, var(--pink), var(--mint));
    }

/* رفع باگ دکمه‌های اسلایدر */
.custom-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 22, 40, 0.85);
    border: 1px solid var(--border-strong);
    color: var(--heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 1;
}

    .carousel-control-prev:hover .custom-nav-btn,
    .carousel-control-next:hover .custom-nav-btn {
        border-color: var(--mint);
        color: #fff;
        background: rgba(20, 30, 55, 0.95);
        box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
        transform: scale(1.08);
    }

@media (max-width: 767.98px) {
    .slider-slide {
        min-height: 290px;
        padding: 1.8rem 3.2rem 3.4rem;
    }

    .slider-icon {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
        margin-bottom: 0.9rem;
    }

    .custom-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 14%;
    }
}

/* کارت پروژه */
.project-card {
    position: relative;
    overflow: hidden;
}

    .project-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: linear-gradient( 90deg, var(--pink), var(--purple), var(--mint) );
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 2;
    }

    .project-card:hover::before {
        opacity: 1;
    }

.project-shot {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    margin-bottom: 1rem;
}

    .project-shot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        transition: transform 0.45s ease;
    }

.project-card:hover .project-shot img {
    transform: scale(1.04);
}

.mini-browser {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

    .mini-browser span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
    }

    .mini-browser i {
        margin-inline-start: auto;
        font-size: 0.55rem;
        color: var(--muted-text);
        font-style: normal;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1px 14px;
    }

.tech-chip {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted-text);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    margin-bottom: 0.55rem;
}

.tag-fin {
    color: var(--blue);
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.tag-shop {
    color: var(--amber);
    background: rgba(251, 191, 36, 0.09);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.tag-med {
    color: var(--mint);
    background: rgba(52, 211, 153, 0.09);
    border: 1px solid rgba(52, 211, 153, 0.28);
}

/* آواتار تیم */
.avatar-ring {
    width: 94px;
    height: 94px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient( from 210deg, var(--pink), var(--purple), var(--mint), var(--blue), var(--pink) );
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}

    .avatar-ring > div {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #0b1326;
        font-size: 2.1rem;
        color: var(--muted-text);
    }

.role-text {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.role-pink {
    color: var(--pink);
}

.role-mint {
    color: var(--mint);
}

.role-blue {
    color: var(--blue);
}

.role-amber {
    color: var(--amber);
}

/* CTA */
.cta-card {
    background: radial-gradient( 500px circle at 90% 0%, rgba(236, 72, 153, 0.16), transparent 55% ), radial-gradient( 500px circle at 10% 100%, rgba(52, 211, 153, 0.14), transparent 55% ), var(--panel);
    border: 1px solid var(--border-strong);
}

/* فوتر */
footer {
    background: #04070f;
    border-top: 1px solid var(--border);
}

.footer-head {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

    .footer-head i {
        color: var(--mint);
        font-size: 1rem;
    }

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

    .footer-link:hover {
        color: var(--mint);
        transform: translateX(-4px);
    }

    .footer-link i {
        font-size: 0.6rem;
    }

.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    color: var(--muted-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.25s ease;
}

    .social-btn:hover {
        color: #04070f;
        background: var(--mint);
        border-color: var(--mint);
        transform: translateY(-3px);
        box-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
    }

.phone-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 0.5rem;
    border-radius: 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .phone-chip i {
        font-size: 1rem;
    }

    .phone-chip.tel {
        color: var(--mint);
        background: rgba(52, 211, 153, 0.08);
        border: 1px solid rgba(52, 211, 153, 0.3);
    }

    .phone-chip.mob {
        color: var(--pink);
        background: rgba(236, 72, 153, 0.08);
        border: 1px solid rgba(236, 72, 153, 0.3);
    }

    .phone-chip:hover {
        color: #fff;
        transform: translateY(-2px);
    }

    .phone-chip.tel:hover {
        background: rgba(52, 211, 153, 0.2);
        border-color: var(--mint);
    }

    .phone-chip.mob:hover {
        background: rgba(236, 72, 153, 0.2);
        border-color: var(--pink);
    }

@media (max-width: 575.98px) {
    .phone-chip {
        font-size: 0.78rem;
        white-space: normal;
    }
}

.copy-bar {
    border-top: 1px solid var(--border);
}

/* استایل کارت‌های تیم نئونی */
.team-card {
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .team-card:hover {
        transform: translateY(-8px);
        border-color: rgba(236, 72, 153, 0.4);
        box-shadow: 0 15px 35px rgba(236, 72, 153, 0.15), 0 0 20px rgba(139, 92, 246, 0.1);
    }

.avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--pink), var(--violet), var(--blue));
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.25);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #080b14;
    display: grid;
    place-items: center;
}

.avatar-initials {
    font-weight: 900;
    font-size: 1.25rem;
    background: linear-gradient(90deg, #fbcfe8, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-text {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 750;
}

.role-pink {
    color: #f9a8d4;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.role-mint {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.role-blue {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-amber {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* تنظیمات کلی کارت تیم */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.4s ease;
}

    .glass-card:hover {
        transform: translateY(-10px);
        border-color: rgba(236, 72, 153, 0.5);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

/* استایل آواتار */
.avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.12);
    border: 2px solid rgba(236, 72, 153, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.15);
}

.avatar-initials {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f9a8d4;
    line-height: 1 !important;
    letter-spacing: 0;
    direction: rtl;
    white-space: nowrap;
    margin-top: 5px;
}

/* استایل بج سمت شغلی */
.role-text {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-pink {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
}

/* تنظیم فاصله متن زیر کارت */
.lh-base {
    line-height: 1.8 !important;
}

.project-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
}

    .project-card:hover {
        transform: translateY(-8px);
        border-color: rgba(56, 182, 255, 0.4) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 182, 255, 0.15);
    }

/* لایه لینک نامرئی روی کل کارت */
.card-full-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    cursor: pointer;
}

/* استایل تصویر تمیز بدون نوار مرورگر */
.project-shot {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
}

    .project-shot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.project-card:hover .project-shot img {
    transform: scale(1.06);
}

.tech-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 8px;
}

/* ========== پوسته و بدنه اسلایدر مدرن فرازکد ========== */
.slider-shell-custom {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0b1120;
}

.image-slide-wrapper {
    display: block;
    width: 100%;
    height: 480px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-slide-wrapper:hover .slide-bg-img {
    transform: scale(1.03);
}

/* ========== دکمه‌های ناوبری مستقل و دقیق ========== */
.custom-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* موقعیت فیزیکی دقیق دکمه راست */
.btn-nav-right {
    right: 20px !important;
    left: auto !important;
}

/* موقعیت فیزیکی دقیق دکمه چپ */
.btn-nav-left {
    left: 20px !important;
    right: auto !important;
}

.custom-nav-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.custom-slider-arrow:hover .custom-nav-icon {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

/* ========== نشانگرهای پایینی (Dots) ========== */
.slider-shell-custom .carousel-indicators {
    margin-bottom: 1.25rem;
    gap: 4px;
    z-index: 20;
}

    .slider-shell-custom .carousel-indicators [data-bs-target] {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        border: none;
        transition: all 0.35s ease;
        opacity: 0.7;
    }

    .slider-shell-custom .carousel-indicators .active {
        width: 26px;
        border-radius: 12px;
        opacity: 1;
        background: linear-gradient(135deg, #ec4899, #8b5cf6);
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    }

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .image-slide-wrapper {
        height: 240px;
    }

    .btn-nav-right {
        right: 10px !important;
    }

    .btn-nav-left {
        left: 10px !important;
    }

    .custom-nav-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}
/* =========================================================
   FARAZ CODE — PREMIUM DEV EXPERIENCE
   ========================================================= */

:root {
    --neon-pink: #ff3d9a;
    --neon-purple: #8b5cf6;
    --neon-blue: #38bdf8;
    --neon-mint: #2dd4bf;
    --neon-yellow: #facc15;
    --glow-pink: rgba(255, 61, 154, .24);
    --glow-purple: rgba(139, 92, 246, .22);
    --glow-blue: rgba(56, 189, 248, .18);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

/* =========================
   Global Background
   ========================= */

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient( circle at 15% 10%, rgba(139, 92, 246, .11), transparent 28% ), radial-gradient( circle at 85% 20%, rgba(255, 61, 154, .08), transparent 26% ), radial-gradient( circle at 50% 85%, rgba(56, 189, 248, .06), transparent 30% ), var(--bg-deep);
}

    /* Cyber grid */

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: -2;
        background-image: linear-gradient( rgba(255,255,255,.018) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,.018) 1px, transparent 1px );
        background-size: 46px 46px;
        mask-image: linear-gradient( to bottom, black, transparent 85% );
    }

/* =========================
   Cursor Glow
   ========================= */

.cursor-glow {
    position: fixed;
    top: -110px;
    left: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: .8;
    background: radial-gradient( circle, rgba(139, 92, 246, .13), rgba(255, 61, 154, .055) 35%, transparent 70% );
    filter: blur(5px);
    transition: opacity .25s ease;
}

/* =========================
   Section Polish
   ========================= */

section {
    position: relative;
}

    section::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 1px;
        top: 0;
        right: 10%;
        background: linear-gradient( 90deg, transparent, rgba(139,92,246,.45), transparent );
        opacity: .6;
    }

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid rgba(139,92,246,.25);
    border-radius: 999px;
    background: rgba(139,92,246,.07);
    box-shadow: 0 0 25px rgba(139,92,246,.06), inset 0 0 20px rgba(255,255,255,.015);
}

    .section-kicker::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--neon-mint);
        box-shadow: 0 0 8px var(--neon-mint), 0 0 18px rgba(45,212,191,.7);
    }

/* =========================
   Glass Cards
   ========================= */

.glass-card,
.project-card,
.service-card,
.team-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    background: linear-gradient( 145deg, rgba(255,255,255,.055), rgba(255,255,255,.018) );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 55px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.045);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}

    /* Mouse spotlight */

    .glass-card::after,
    .project-card::after,
    .service-card::after,
    .team-card::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient( 280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139,92,246,.11), transparent 65% );
        opacity: 0;
        transition: opacity .35s ease;
    }

    .glass-card:hover,
    .project-card:hover,
    .service-card:hover,
    .team-card:hover {
        transform: translateY(-8px);
        border-color: rgba(139,92,246,.26);
        box-shadow: 0 25px 70px rgba(0,0,0,.34), 0 0 35px rgba(139,92,246,.08), inset 0 1px 0 rgba(255,255,255,.07);
    }

        .glass-card:hover::after,
        .project-card:hover::after,
        .service-card:hover::after,
        .team-card:hover::after {
            opacity: 1;
        }

/* =========================
   Hero
   ========================= */

#home {
    isolation: isolate;
}

    #home::after {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        left: -180px;
        top: 5%;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(255,61,154,.12), transparent 68% );
        filter: blur(20px);
        pointer-events: none;
        z-index: -1;
    }

    .hero-title,
    .hero-title h1,
    #home h1 {
        letter-spacing: -1.8px;
    }

        #home h1 strong,
        #home h1 .gradient-text {
            background: linear-gradient( 110deg, var(--neon-pink), var(--neon-purple) 48%, var(--neon-blue) );
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 180% auto;
            animation: gradientFlow 7s ease-in-out infinite;
        }

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* =========================
   Buttons
   ========================= */

.btn-primary,
.btn-main,
.hero-btn-primary {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    background: linear-gradient( 110deg, var(--neon-purple), var(--neon-pink) ) !important;
    box-shadow: 0 12px 30px rgba(139,92,246,.2), 0 0 25px rgba(255,61,154,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .btn-primary::before,
    .btn-main::before,
    .hero-btn-primary::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 70%;
        height: 100%;
        transform: skewX(-20deg);
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.25), transparent );
        transition: left .65s ease;
    }

    .btn-primary:hover,
    .btn-main:hover,
    .hero-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(139,92,246,.28), 0 0 35px rgba(255,61,154,.12);
    }

        .btn-primary:hover::before,
        .btn-main:hover::before,
        .hero-btn-primary:hover::before {
            left: 140%;
        }

/* =========================
   Project Cards
   ========================= */

.project-card {
    border-radius: var(--radius-xl);
}

    .project-card .project-shot,
    .project-card img {
        transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
    }

    .project-card:hover .project-shot,
    .project-card:hover img {
        transform: scale(1.045);
        filter: saturate(1.12);
    }

.project-hidden {
    display: none !important;
}

/* =========================
   Tech Chips
   ========================= */

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.035);
    color: var(--body-text);
    font-size: .78rem;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

    .tech-chip:hover {
        transform: translateY(-2px);
        border-color: rgba(56,189,248,.3);
        background: rgba(56,189,248,.07);
    }

/* =========================
   Team Avatar
   ========================= */

.avatar-ring {
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 25px rgba(139,92,246,.14);
}

    .avatar-ring::after {
        content: "";
        position: absolute;
        inset: -5px;
        border-radius: inherit;
        border: 1px solid rgba(139,92,246,.2);
        opacity: .7;
    }

/* =========================
   Reveal
   ========================= */

.reveal-ready {
    opacity: 0;
    transform: translateY(28px) scale(.985);
    transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms);
}

    .reveal-ready.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* =========================
   Back To Top
   ========================= */

.back-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    color: white;
    background: rgba(13,21,41,.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0,0,0,.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, border-color .25s ease;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        border-color: rgba(139,92,246,.4);
        transform: translateY(-4px);
        box-shadow: 0 15px 40px rgba(139,92,246,.14);
    }

/* =========================
   Mobile
   ========================= */

@media (max-width: 768px) {
    body::after {
        background-size: 34px 34px;
    }

    .cursor-glow {
        display: none;
    }

    .glass-card:hover,
    .project-card:hover,
    .service-card:hover,
    .team-card:hover {
        transform: translateY(-4px);
    }

    .back-to-top {
        left: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* =========================
   Accessibility
   ========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-ready {
        opacity: 1;
        transform: none;
    }
}
/* =========================================================
   INDEX — PREMIUM DEVELOPER UI
========================================================= */

.fw-black {
    font-weight: 900;
}

.gradient-text {
    background: linear-gradient( 110deg, var(--neon-pink), var(--neon-purple) 50%, var(--neon-blue) );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section {
    min-height: 100vh;
    isolation: isolate;
}

.hero-code-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    color: var(--muted-text);
    font-family: monospace;
    font-size: .9rem;
}

    .hero-code-label span:first-child,
    .hero-code-label span:last-child {
        color: var(--neon-pink);
    }

    .hero-code-label span:nth-child(2) {
        color: var(--neon-mint);
    }

.hero-subtitle {
    max-width: 720px;
    color: var(--body-text);
    line-height: 2;
}

.hero-stats {
    max-width: 650px;
}

.hero-stat {
    position: relative;
    padding: 18px;
    border-right: 1px solid rgba(255,255,255,.08);
}

    .hero-stat:first-child {
        border-right: 0;
    }

    .hero-stat strong {
        display: block;
        font-size: 1.65rem;
        font-weight: 900;
        background: linear-gradient( 120deg, #fff, var(--neon-blue) );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-stat span {
        display: block;
        margin-top: 4px;
        color: var(--muted-text);
        font-size: .82rem;
    }


/* =========================================================
   HERO TERMINAL
========================================================= */

.hero-dev-wrapper {
    position: relative;
    padding: 30px;
}

.hero-terminal {
    position: relative;
    z-index: 3;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient( 145deg, rgba(15,23,42,.94), rgba(7,11,24,.88) );
    border: 1px solid rgba(139,92,246,.25);
    box-shadow: 0 35px 90px rgba(0,0,0,.4), 0 0 70px rgba(139,92,246,.09);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.025);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

    .terminal-dots span {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: rgba(255,255,255,.25);
    }

        .terminal-dots span:nth-child(1) {
            background: #ff5f57;
        }

        .terminal-dots span:nth-child(2) {
            background: #febc2e;
        }

        .terminal-dots span:nth-child(3) {
            background: #28c840;
        }

.terminal-title {
    flex: 1;
    color: var(--muted-text);
    font-family: monospace;
    font-size: .75rem;
    text-align: center;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--neon-mint);
    font-family: monospace;
    font-size: .7rem;
}

    .terminal-status i {
        font-size: .45rem;
    }

.terminal-body {
    padding: 25px;
    min-height: 350px;
    font-family: "JetBrains Mono", "Cascadia Code", monospace;
}

.terminal-line {
    display: flex;
    gap: 10px;
    color: #e7edf8;
    font-size: .8rem;
}

.terminal-prompt {
    color: var(--neon-purple);
}

.terminal-output {
    margin-top: 9px;
    color: #d7deec;
    line-height: 1.8;
}

.terminal-success {
    color: var(--neon-mint);
}

.terminal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

    .terminal-skills span {
        padding: 6px 9px;
        border: 1px solid rgba(139,92,246,.2);
        border-radius: 7px;
        background: rgba(139,92,246,.08);
        color: #c9baff;
        font-size: .7rem;
    }

.terminal-cursor {
    display: inline-block;
    width: 7px;
    height: 15px;
    margin-right: 4px;
    background: var(--neon-mint);
    box-shadow: 0 0 12px var(--neon-mint);
    animation: terminalBlink 1s steps(2) infinite;
}

@keyframes terminalBlink {
    50% {
        opacity: 0;
    }
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(139,92,246,.13);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit-one {
    inset: 5px;
    transform: rotate(18deg);
}

.hero-orbit-two {
    inset: -15px;
    border-color: rgba(56,189,248,.07);
    transform: rotate(-20deg);
}

.floating-dev-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(11,18,38,.85);
    backdrop-filter: blur(15px);
    color: var(--body-text);
    font-size: .72rem;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

    .floating-dev-badge i {
        color: var(--neon-mint);
    }

.floating-dev-badge-one {
    right: -5px;
    top: 12%;
}

.floating-dev-badge-two {
    left: -10px;
    bottom: 12%;
}

    .floating-dev-badge-two i {
        color: var(--neon-yellow);
    }


/* =========================================================
   SHOWCASE
========================================================= */

.slider-shell-custom {
    padding: 8px;
    border-radius: 28px;
}

.image-slide-wrapper {
    display: block;
    position: relative;
    height: min(600px, 65vh);
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
}

.slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}

.carousel-item.active .slide-bg-img {
    transform: scale(1.035);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(4,7,17,.85), rgba(4,7,17,.05) 65% );
}

.slide-caption {
    position: absolute;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

    .slide-caption span {
        color: var(--neon-pink);
        font-family: monospace;
    }

    .slide-caption strong {
        font-size: 1.1rem;
    }

.custom-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: rgba(7,11,24,.65);
    backdrop-filter: blur(12px);
    color: white;
    transform: translateY(-50%);
    transition: .25s ease;
}

    .custom-slider-arrow:hover {
        border-color: rgba(139,92,246,.45);
        background: rgba(139,92,246,.15);
        box-shadow: 0 0 25px rgba(139,92,246,.15);
    }

.btn-nav-right {
    right: 20px;
}

.btn-nav-left {
    left: 20px;
}


/* =========================================================
   SERVICES
========================================================= */

.service-card {
    padding: 28px;
    border-radius: 24px;
}

.service-number {
    position: absolute;
    top: 18px;
    left: 20px;
    color: rgba(255,255,255,.07);
    font-size: 2.5rem;
    font-weight: 900;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    border: 1px solid rgba(139,92,246,.2);
    border-radius: 17px;
    background: linear-gradient( 145deg, rgba(139,92,246,.13), rgba(56,189,248,.06) );
    color: var(--neon-purple);
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(139,92,246,.08);
}

.service-card h3 {
    position: relative;
    color: var(--heading);
    font-size: 1.1rem;
    font-weight: 800;
}

.service-card p {
    color: var(--muted-text);
    line-height: 1.9;
    font-size: .87rem;
}

.service-arrow {
    margin-top: 25px;
    color: var(--neon-blue);
    opacity: .65;
}


/* =========================================================
   TECH STACK
========================================================= */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tech-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 145px;
    padding: 22px;
    border-radius: 20px;
}

    .tech-box i {
        margin-bottom: auto;
        color: var(--neon-blue);
        font-size: 1.65rem;
    }

    .tech-box span {
        margin-top: 15px;
        color: var(--heading);
        font-weight: 800;
    }

    .tech-box small {
        margin-top: 4px;
        color: var(--muted-text);
        font-size: .7rem;
    }


/* =========================================================
   PROJECTS
========================================================= */

.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-bottom: 35px;
}

.project-filter {
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    color: var(--muted-text);
    cursor: pointer;
    transition: .25s ease;
}

    .project-filter:hover,
    .project-filter.active {
        border-color: rgba(139,92,246,.35);
        background: rgba(139,92,246,.1);
        color: white;
        box-shadow: 0 0 22px rgba(139,92,246,.08);
    }

.project-card {
    border-radius: 24px;
}

.project-image-wrap {
    position: relative;
    height: 245px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(4,7,17,.7), transparent 60% );
}

.project-index {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    background: rgba(5,8,18,.6);
    color: rgba(255,255,255,.7);
    font-family: monospace;
    font-size: .7rem;
}

.project-open {
    position: absolute;
    left: 16px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 13px;
    background: rgba(5,8,18,.65);
    color: white;
    backdrop-filter: blur(10px);
    transition: .25s ease;
}

    .project-open:hover {
        transform: translateY(-3px);
        border-color: rgba(45,212,191,.4);
        color: var(--neon-mint);
    }

.project-content {
    padding: 24px;
}

.project-category {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--neon-purple);
    font-size: .72rem;
    font-weight: 700;
}

.project-title {
    color: var(--heading);
    font-size: 1.2rem;
    font-weight: 850;
}

.project-description {
    color: var(--muted-text);
    line-height: 1.9;
    font-size: .84rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}


/* =========================================================
   PHILOSOPHY
========================================================= */

.philosophy-card {
    padding: clamp(25px, 5vw, 60px);
    border-radius: 30px;
}

.philosophy-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

    .philosophy-points div {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--body-text);
        font-size: .85rem;
    }

    .philosophy-points i {
        color: var(--neon-mint);
    }

.code-window {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: #070b15;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

    .code-window-header span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.25);
    }

    .code-window-header small {
        margin-right: auto;
        color: var(--muted-text);
        font-family: monospace;
        font-size: .65rem;
    }

.code-window pre {
    margin: 0;
    padding: 25px;
    overflow-x: auto;
    color: #cdd6e8;
    font-family: monospace;
    font-size: .76rem;
    line-height: 2;
}

.code-purple {
    color: #c084fc;
}

.code-blue {
    color: #38bdf8;
}


/* =========================================================
   TEAM
========================================================= */

.team-card {
    padding: 27px;
    border-radius: 24px;
}

.team-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.team-avatar {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 21px;
    background: linear-gradient( 145deg, rgba(139,92,246,.17), rgba(255,255,255,.035) );
    color: var(--avatar-color, var(--neon-purple));
    font-size: 1.5rem;
}

.team-badge {
    padding: 6px 10px;
    border: 1px solid color-mix( in srgb, var(--badge-color, #8b5cf6) 35%, transparent );
    border-radius: 999px;
    background: color-mix( in srgb, var(--badge-color, #8b5cf6) 9%, transparent );
    color: var(--badge-color, #8b5cf6);
    font-size: .7rem;
}

.team-info h3 {
    color: var(--heading);
    font-size: 1.1rem;
    font-weight: 850;
}

.role-text {
    color: var(--muted-text);
    line-height: 1.9;
    font-size: .84rem;
}

.team-line {
    width: 45px;
    height: 2px;
    margin-top: 22px;
    border-radius: 99px;
    background: linear-gradient( 90deg, var(--neon-purple), transparent );
}


/* =========================================================
   CONTACT
========================================================= */

.contact-card {
    position: relative;
    overflow: hidden;
    padding: clamp(25px, 5vw, 55px);
    border-radius: 30px;
}

.contact-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    left: -120px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(255,61,154,.12), transparent 70% );
    pointer-events: none;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-action {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
    color: inherit;
    text-decoration: none;
    transition: .3s ease;
}

    .contact-action:hover {
        transform: translateX(-5px);
        border-color: rgba(139,92,246,.3);
        background: rgba(139,92,246,.06);
    }

.contact-action-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    background: rgba(139,92,246,.1);
    color: var(--neon-purple);
}

.contact-action > span:nth-child(2) {
    flex: 1;
}

.contact-action small {
    display: block;
    color: var(--muted-text);
    font-size: .67rem;
}

.contact-action strong {
    display: block;
    margin-top: 2px;
    color: var(--heading);
    font-size: .83rem;
    direction: ltr;
    text-align: right;
}

.contact-action > i:last-child {
    color: var(--muted-text);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .hero-section .min-vh-100 {
        min-height: auto !important;
        padding-top: 130px !important;
        padding-bottom: 80px !important;
    }

    .hero-dev-wrapper {
        max-width: 650px;
        margin: 0 auto;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {

    .hero-dev-wrapper {
        padding: 10px;
    }

    .floating-dev-badge {
        display: none;
    }

    .terminal-body {
        padding: 18px;
        min-height: 300px;
    }

    .terminal-line {
        font-size: .68rem;
    }

    .terminal-output {
        font-size: .75rem;
    }

    .hero-stat {
        padding: 10px 5px;
    }

        .hero-stat strong {
            font-size: 1.15rem;
        }

        .hero-stat span {
            font-size: .65rem;
        }

    .image-slide-wrapper {
        height: 300px;
    }

    .custom-slider-arrow {
        width: 40px;
        height: 40px;
    }

    .btn-nav-right {
        right: 10px;
    }

    .btn-nav-left {
        left: 10px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-box {
        min-height: 125px;
        padding: 17px;
    }

    .philosophy-points {
        grid-template-columns: 1fr;
    }

    .project-image-wrap {
        height: 215px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
/* =========================================================
   FARAZ CODE — DEVELOPMENT PHILOSOPHY
   Premium / Dark / Professional
   ========================================================= */

.philosophy-section {
    position: relative;
    overflow: hidden;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.philosophy-card {
    position: relative;
    overflow: hidden;
    padding: 56px 54px;
    border-radius: 26px !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    background: linear-gradient( 135deg, rgba(28, 37, 52, 0.96), rgba(12, 21, 34, 0.98) ) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}


    /* نور خیلی ظریف گوشه کارت */

    .philosophy-card::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        top: -220px;
        left: -180px;
        border-radius: 50%;
        background: rgba(91, 128, 180, 0.07);
        filter: blur(80px);
        pointer-events: none;
    }


    /* =========================================================
   ROW
   ========================================================= */

    .philosophy-card .row {
        position: relative;
        z-index: 2;
    }


    /* =========================================================
   TEXT SIDE
   ========================================================= */

    .philosophy-card .section-title {
        margin-bottom: 0;
        color: #f2f5f8;
        font-size: clamp(28px, 3vw, 43px);
        line-height: 1.6;
        font-weight: 800;
        letter-spacing: -0.8px;
    }

    .philosophy-card .gradient-text {
        display: inline-block;
        background: linear-gradient( 90deg, #8ab4ff, #b36cff );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .philosophy-card .section-subtitle {
        max-width: 680px;
        color: #94a3b8;
        font-size: 14px;
        line-height: 2.25;
        margin-bottom: 0;
    }


/* =========================================================
   POINTS
   ========================================================= */

.philosophy-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 55px;
    row-gap: 18px;
    max-width: 650px;
}

    .philosophy-points > div {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 28px;
        color: #b5c0ce;
        font-size: 13px;
        transition: color 0.25s ease, transform 0.25s ease;
    }

        .philosophy-points > div:hover {
            color: #edf2f7;
            transform: translateX(-4px);
        }

    .philosophy-points i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #45d6cb;
        font-size: 15px;
        filter: drop-shadow( 0 0 7px rgba(69, 214, 203, 0.22) );
    }


/* =========================================================
   CODE WINDOW
   ========================================================= */

.code-window {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #070c15;
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.025);
    direction: ltr;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

    .code-window:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 26px 55px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    }


/* =========================================================
   CODE HEADER
   ========================================================= */

.code-window-header {
    position: relative;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    direction: ltr;
    background: rgba(255, 255, 255, 0.018);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}


    /* macOS style dots */

    .code-window-header > span {
        width: 7px;
        height: 7px;
        display: block;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.20);
    }


    /* filename */

    .code-window-header small {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        color: #8492a6;
        font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
        font-size: 9px;
        white-space: nowrap;
        direction: ltr;
    }


/* =========================================================
   IMPORTANT:
   CODE MUST ALWAYS BE LTR
   ========================================================= */

.code-window pre {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext;
    margin: 0 !important;
    padding: 28px 25px 30px !important;
    min-height: 245px;
    overflow-x: auto;
    background: transparent !important;
    color: #d6deea;
    font-family: "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 11px;
    line-height: 2.15;
    white-space: pre;
    tab-size: 4;
    scrollbar-width: thin;
}


    /* خود code */

    .code-window pre code {
        display: block;
        direction: ltr !important;
        text-align: left !important;
        unicode-bidi: plaintext;
        color: #d6deea;
        font-family: "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, monospace;
        font-size: inherit;
        line-height: inherit;
        white-space: inherit;
        background: transparent !important;
    }


    /* =========================================================
   CODE SCROLLBAR
   ========================================================= */

    .code-window pre::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    .code-window pre::-webkit-scrollbar-track {
        background: transparent;
    }

    .code-window pre::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 999px;
    }

        .code-window pre::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.20);
        }


/* =========================================================
   SUBTLE CODE GLOW
   ========================================================= */

.code-window::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: -130px;
    right: -100px;
    border-radius: 50%;
    background: rgba(92, 118, 180, 0.07);
    filter: blur(60px);
    pointer-events: none;
}


/* =========================================================
   DESKTOP — ENSURE CODE LEFT / TEXT RIGHT
   ========================================================= */

@media (min-width: 992px) {

    .philosophy-card .row {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
    }

    /*
       RTL صفحه:
       ستون Text در HTML اول است
       با row-reverse → Text سمت راست
       Code سمت چپ
    */

    .philosophy-card .col-lg-7 {
        text-align: right;
    }

    .philosophy-card .col-lg-5 {
        text-align: left;
    }

    .code-window {
        margin-left: 0;
        margin-right: auto;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .philosophy-card {
        padding: 42px 35px;
    }

        .philosophy-card .section-title {
            font-size: 32px;
        }

    .code-window {
        margin-top: 10px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .philosophy-card {
        padding: 32px 22px;
        border-radius: 20px !important;
    }

        .philosophy-card .section-title {
            font-size: 27px;
            line-height: 1.7;
        }

        .philosophy-card .section-subtitle {
            font-size: 13px;
            line-height: 2.15;
        }

    .philosophy-points {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .code-window {
        border-radius: 14px;
    }

        .code-window pre {
            min-height: 220px;
            padding: 22px 18px 25px !important;
            font-size: 10px;
            line-height: 2;
        }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .code-window,
    .philosophy-points > div {
        transition: none !important;
    }
}
/* =========================================================
   FARAZ CODE — MOBILE ONLY PREMIUM FIX
   =========================================================
   فقط موبایل
   دسکتاپ: بدون تغییر
   چیزی از CSS قبلی حذف نکن
   این کد را آخر فایل CSS قرار بده
   ========================================================= */
@media (max-width: 767.98px) {
    /* =====================================================
       01 — MOBILE FOUNDATION
       ===================================================== */

    html

{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    scroll-padding-top: 76px;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: hidden !important;
    position: relative;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

section,
header,
footer,
main,
nav {
    max-width: 100%;
    overflow-x: clip;
}

.container,
.container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.row {
    --bs-gutter-x: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

    .row > * {
        min-width: 0;
    }


/* =====================================================
       02 — TYPOGRAPHY
       ===================================================== */

h1 {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
}

h2 {
    font-size: clamp(1.65rem, 7vw, 2.35rem) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
}

h3 {
    font-size: clamp(1.25rem, 5vw, 1.7rem) !important;
    line-height: 1.35 !important;
}

h4,
h5,
h6 {
    line-height: 1.4 !important;
}

p {
    font-size: 0.92rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}


/* =====================================================
       03 — SECTIONS
       ===================================================== */

section {
    padding-top: 55px !important;
    padding-bottom: 55px !important;
}

.section-title {
    font-size: clamp(1.7rem, 7vw, 2.3rem) !important;
    margin-bottom: 10px !important;
}

.section-sub,
.section-description {
    font-size: 0.9rem !important;
    line-height: 1.9 !important;
    padding-left: 4px;
    padding-right: 4px;
}

.section-kicker {
    font-size: 0.72rem !important;
    letter-spacing: 1.5px !important;
}


/* =====================================================
       04 — NAVBAR
       ===================================================== */

.custom-navbar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
}

    .custom-navbar .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

.navbar-brand {
    max-width: calc(100% - 65px);
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

    .navbar-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.navbar-toggler {
    flex-shrink: 0;
    padding: 7px 9px !important;
    border-radius: 10px !important;
}

.navbar-collapse {
    width: 100%;
    margin-top: 12px;
    padding: 10px 0;
}

.navbar-nav {
    width: 100%;
    gap: 4px !important;
}

    .navbar-nav .nav-link {
        width: 100%;
        padding: 11px 13px !important;
        border-radius: 10px;
        text-align: right;
    }


/* =====================================================
       05 — HERO
       ===================================================== */

.hero,
.hero-section,
#home {
    min-height: auto !important;
    height: auto !important;
    padding-top: 95px !important;
    padding-bottom: 55px !important;
}

    .hero .container,
    .hero-section .container {
        width: 100% !important;
    }

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.1rem, 10vw, 3.1rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 16px !important;
}

.hero-subtitle,
.hero-description {
    font-size: 0.92rem !important;
    line-height: 1.9 !important;
    margin-bottom: 22px !important;
}

.hero-buttons,
.hero-actions {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
}

    .hero-buttons .btn,
    .hero-actions .btn {
        width: 100% !important;
        min-height: 48px;
    }


/* =====================================================
       06 — BUTTONS
       ===================================================== */

.btn-accent,
.btn-outline-custom,
.hero .btn,
.cta-section .btn {
    min-height: 46px;
    padding: 11px 17px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
}

.btn {
    white-space: normal !important;
}


/* =====================================================
       07 — SLIDER / CAROUSEL
       ===================================================== */

.slider-shell,
.slider-shell-custom {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
    border-radius: 18px !important;
}

    .slider-shell-custom .carousel,
    .slider-shell .carousel,
    .slider-shell-custom .carousel-inner,
    .slider-shell .carousel-inner {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .slider-shell-custom .carousel-item,
    .slider-shell .carousel-item {
        width: 100% !important;
        min-height: 340px !important;
        height: 340px !important;
        position: relative !important;
        overflow: hidden !important;
    }

.image-slide-wrapper {
    width: 100% !important;
    height: 100% !important;
    min-height: 340px !important;
    position: relative !important;
    overflow: hidden !important;
}

.slide-bg-img,
.slider-shell-custom img.slide-bg-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 0 !important;
}

.slide-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.slide-caption {
    position: absolute !important;
    z-index: 3 !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 38px !important;
    width: auto !important;
    max-width: calc(100% - 32px) !important;
    padding: 14px !important;
    border-radius: 14px !important;
    text-align: right !important;
    overflow-wrap: anywhere;
}

    .slide-caption h1,
    .slide-caption h2,
    .slide-caption h3 {
        font-size: 1.25rem !important;
        line-height: 1.35 !important;
        margin-bottom: 7px !important;
    }

    .slide-caption p {
        font-size: 0.8rem !important;
        line-height: 1.7 !important;
        margin-bottom: 0 !important;
    }


/* =====================================================
       08 — SLIDER ARROWS
       ===================================================== */

.custom-slider-arrow,
.custom-nav-btn,
.carousel-control-prev,
.carousel-control-next {
    width: 38px !important;
    height: 38px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    opacity: 1 !important;
}

.carousel-control-prev {
    left: 7px !important;
    right: auto !important;
}

.carousel-control-next {
    right: 7px !important;
    left: auto !important;
}

.custom-nav-icon {
    width: 34px !important;
    height: 34px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =====================================================
       09 — SLIDER INDICATORS
       ===================================================== */

.carousel-indicators {
    bottom: 8px !important;
    margin-bottom: 0 !important;
    gap: 4px !important;
    z-index: 12 !important;
}

    .carousel-indicators [data-bs-target] {
        width: 18px !important;
        height: 4px !important;
        margin: 0 2px !important;
        border-radius: 20px !important;
    }


/* =====================================================
       10 — SLIDER MOBILE ICON
       ===================================================== */

.slider-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 10px !important;
}


/* =====================================================
       11 — GLASS CARDS
       ===================================================== */

.glass-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px !important;
    margin-bottom: 16px !important;
    border-radius: 17px !important;
    overflow: hidden !important;
}

    .glass-card:hover {
        transform: none !important;
    }


/* =====================================================
       12 — SERVICES
       ===================================================== */

.services-grid,
.service-grid {
    width: 100%;
}

    .service-card,
    .services-grid .glass-card {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
    }

.icon-box {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}


/* =====================================================
       13 — TECH STACK
       ===================================================== */

.tech-stack,
.tech-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.tech-card,
.tech-item {
    min-width: 0 !important;
    width: 100% !important;
    padding: 13px 9px !important;
    text-align: center;
}

.tech-chip,
.tech-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
       14 — PROJECTS
       ===================================================== */

.projects-grid {
    width: 100% !important;
}

.project-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.project-shot {
    width: 100% !important;
    height: 210px !important;
    min-height: 210px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.project-card .card-body {
    padding: 16px !important;
}

.project-card h3,
.project-card h4,
.project-card h5 {
    overflow-wrap: anywhere;
}

.project-tags,
.tech-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}


/* =====================================================
       15 — PROJECT FILTERS
       ===================================================== */

.project-filters,
.filter-buttons {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding-bottom: 7px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .project-filters::-webkit-scrollbar,
    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .project-filters .btn,
    .filter-buttons .btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }


/* =====================================================
       16 — TEAM
       ===================================================== */

.team-grid {
    width: 100% !important;
}

.team-card {
    width: 100% !important;
    min-width: 0 !important;
}

.avatar-ring {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.role-text {
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
}


/* =====================================================
       17 — PHILOSOPHY / CODE WINDOW
       ===================================================== */

.philosophy-card,
.philosophy-section .glass-card {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.code-window {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    direction: ltr !important;
    text-align: left !important;
}

    .code-window pre,
    .code-window code,
    pre,
    code {
        max-width: none !important;
    }


/* =====================================================
       18 — CONTACT
       ===================================================== */

.contact-section .row {
    row-gap: 14px !important;
}

.contact-card {
    width: 100% !important;
    min-width: 0 !important;
}

    .contact-card input,
    .contact-card textarea,
    .contact-card select {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
    }

    .contact-card textarea {
        min-height: 130px !important;
        resize: vertical;
    }


/* =====================================================
       19 — CTA
       ===================================================== */

.cta-section {
    padding: 35px 16px !important;
}

    .cta-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cta-section .glass-card {
        padding: 20px 16px !important;
    }


/* =====================================================
       20 — FOOTER
       ===================================================== */

footer {
    width: 100% !important;
    padding: 30px 16px !important;
    text-align: center !important;
}

    footer .row {
        row-gap: 18px !important;
    }

    footer a {
        overflow-wrap: anywhere;
    }


/* =====================================================
       21 — BACK TO TOP
       ===================================================== */

#backToTop,
.back-to-top {
    width: 42px !important;
    height: 42px !important;
    right: 14px !important;
    bottom: 14px !important;
    z-index: 9999 !important;
}


/* =====================================================
       22 — CARD FULL LINK
       ===================================================== */

.card-full-link {
    min-width: 0 !important;
    width: 100% !important;
}


/* =====================================================
       23 — SAFE TOUCH
       ===================================================== */

a,
button,
.btn,
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators button {
    -webkit-tap-highlight-color: transparent;
}

button,
.btn {
    touch-action: manipulation;
}


/* =====================================================
       24 — MOBILE SPACING
       ===================================================== */

.mb-5 {
    margin-bottom: 2rem !important;
}

.mt-5 {
    margin-top: 2rem !important;
}

.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}


/* =====================================================
       25 — BOOTSTRAP COLUMN SAFETY
       ===================================================== */

[class*="col-"] {
    min-width: 0 !important;
}

.row > [class*="col-"] {
    max-width: 100%;
}


/* =====================================================
       26 — LONG TEXT / URLs
       ===================================================== */

a,
span,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
    word-break: normal;
}


/* =====================================================
       27 — MOBILE IMAGE SAFETY
       ===================================================== */

.project-shot,
.slide-bg-img,
.image-slide-wrapper img {
    max-width: 100% !important;
}


/* =====================================================
       28 — REMOVE MOBILE HORIZONTAL BUGS
       ===================================================== */

.container,
.container-fluid,
.row,
.glass-card,
.project-card,
.slider-shell,
.slider-shell-custom,
.image-slide-wrapper {
    transform: none;
}


/* =====================================================
       29 — PREVENT ANIMATED ELEMENTS FROM ESCAPING
       ===================================================== */

[data-aos],
.reveal,
.fade-in {
    max-width: 100%;
}


/* =====================================================
       30 — EXTRA SMALL PHONES
       ===================================================== */

@media (max-width: 380px) {

    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .hero-title {
        font-size: 1.9rem !important;
    }

    .section-title {
        font-size: 1.55rem !important;
    }

    .glass-card {
        padding: 15px !important;
    }

    .slider-shell-custom .carousel-item,
    .slider-shell .carousel-item,
    .image-slide-wrapper {
        min-height: 300px !important;
        height: 300px !important;
    }

    .slide-caption {
        left: 12px !important;
        right: 12px !important;
        bottom: 30px !important;
        max-width: calc(100% - 24px) !important;
        padding: 11px !important;
    }

        .slide-caption h1,
        .slide-caption h2,
        .slide-caption h3 {
            font-size: 1.05rem !important;
        }

        .slide-caption p {
            font-size: 0.74rem !important;
        }

    .project-shot {
        height: 180px !important;
        min-height: 180px !important;
    }

    .tech-stack,
    .tech-grid {
        gap: 7px !important;
    }
}


/* =====================================================
       31 — MOBILE LANDSCAPE
       ===================================================== */

@media (max-width: 767.98px) and (orientation: landscape) {

    .hero,
    .hero-section,
    #home {
        padding-top: 80px !important;
        padding-bottom: 35px !important;
    }

    .slider-shell-custom .carousel-item,
    .slider-shell .carousel-item,
    .image-slide-wrapper {
        height: 300px !important;
        min-height: 300px !important;
    }
}


/* =====================================================
       32 — REDUCE MOTION ONLY ON MOBILE
       ===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

}
/* =========================================================
   FARAZ CODE — MOBILE HERO / SLIDER GAP FIX
   فقط موبایل
   این بخش را آخر فایل CSS قرار بده
   ========================================================= */

@media (max-width: 767.98px) {

    /* -----------------------------------------
       HERO: فاصله‌ی اضافه‌ی پایین حذف شود
       ----------------------------------------- */

    .hero,
    .hero-section,
    #home {
        padding-top: 78px !important;
        padding-bottom: 20px !important;
        min-height: auto !important;
        height: auto !important;
    }

        /* اگر ساختار hero دارای min-vh-100 باشد */
        .hero-section .min-vh-100,
        #home .min-vh-100 {
            min-height: auto !important;
            height: auto !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }

    /* -----------------------------------------
       فاصله‌ی بعد از محتوای بالای صفحه
       ----------------------------------------- */

    .hero-content {
        margin-bottom: 18px !important;
    }

    .hero-title {
        margin-bottom: 12px !important;
    }

    .hero-subtitle,
    .hero-description {
        margin-bottom: 16px !important;
    }

    .hero-buttons,
    .hero-actions {
        margin-bottom: 0 !important;
    }

    /* -----------------------------------------
       اگر اسلایدر بلافاصله بعد از Hero است
       فاصله‌ی Bootstrap را خنثی کن
       ----------------------------------------- */

    #home + section,
    .hero-section + section {
        padding-top: 25px !important;
    }

    /* حالت‌هایی که اسلایدر داخل همان section است */
    #home .slider-shell,
    #home .slider-shell-custom,
    .hero-section .slider-shell,
    .hero-section .slider-shell-custom {
        margin-top: 18px !important;
    }

    /* -----------------------------------------
       خود اسلایدر
       ----------------------------------------- */

    .slider-shell,
    .slider-shell-custom {
        margin-bottom: 0 !important;
    }

    .slider-shell-custom {
        padding: 5px !important;
        border-radius: 18px !important;
    }

        .slider-shell-custom .carousel-item,
        .slider-shell .carousel-item {
            height: 300px !important;
            min-height: 300px !important;
        }

    .image-slide-wrapper {
        height: 300px !important;
        min-height: 300px !important;
    }

    /* -----------------------------------------
       موبایل خیلی کوچک
       ----------------------------------------- */

    @media (max-width: 380px) {

        .hero,
        .hero-section,
        #home {
            padding-top: 70px !important;
            padding-bottom: 15px !important;
        }

            #home + section,
            .hero-section + section {
                padding-top: 20px !important;
            }

            #home .slider-shell,
            #home .slider-shell-custom,
            .hero-section .slider-shell,
            .hero-section .slider-shell-custom {
                margin-top: 12px !important;
            }

        .slider-shell-custom .carousel-item,
        .slider-shell .carousel-item,
        .image-slide-wrapper {
            height: 280px !important;
            min-height: 280px !important;
        }
    }
}
/* =========================================================
   MOBILE FINAL FIX
   دکمه‌ها کنار هم + اسلایدر کاملاً ریسپانسیو
   ========================================================= */

@media (max-width: 767.98px) {

    /* =========================================
       HERO
       ========================================= */

    .hero,
    .hero-section,
    #home {
        min-height: auto !important;
        height: auto !important;
        padding-top: 70px !important;
        padding-bottom: 15px !important;
    }

        .hero-section .min-vh-100,
        #home .min-vh-100 {
            min-height: auto !important;
            height: auto !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }


    /* =========================================
       دکمه‌های Hero
       کنار هم + کوچیک‌تر
       ========================================= */

    .hero-buttons,
    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 10px auto 0 !important;
    }

        .hero-buttons a,
        .hero-buttons button,
        .hero-actions a,
        .hero-actions button {
            width: auto !important;
            min-width: 0 !important;
            max-width: 48% !important;
            height: 48px !important;
            padding: 0 18px !important;
            margin: 0 !important;
            font-size: 13px !important;
            line-height: 48px !important;
            white-space: nowrap !important;
            flex: 0 1 auto !important;
        }

    /* اگر دکمه‌ها کلاس btn دارند */
    .hero .btn,
    .hero-section .btn,
    #home .btn {
        width: auto !important;
        min-width: 0 !important;
        padding: 0 17px !important;
        font-size: 13px !important;
    }


    /* =========================================
       فاصله بعد Hero
       ========================================= */

    .hero-content {
        margin-bottom: 0 !important;
    }

    .hero-title {
        margin-bottom: 10px !important;
    }

    .hero-subtitle,
    .hero-description {
        margin-bottom: 12px !important;
    }


    /* =========================================
       SLIDER SECTION
       ========================================= */

    #home + section,
    .hero-section + section {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
        margin-top: 0 !important;
    }

    /* هر سکشنی که اسلایدر داخلش باشد */
    section:has(.slider-shell-custom),
    section:has(.slider-shell) {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }


    /* =========================================
       خود قاب اسلایدر
       ========================================= */

    .slider-shell-custom,
    .slider-shell {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 4px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
    }


        /* =========================================
       Bootstrap Carousel
       ========================================= */

        .slider-shell-custom .carousel,
        .slider-shell .carousel {
            width: 100% !important;
            height: auto !important;
            overflow: hidden !important;
        }

        .slider-shell-custom .carousel-inner,
        .slider-shell .carousel-inner {
            width: 100% !important;
            height: auto !important;
            overflow: hidden !important;
            border-radius: 13px !important;
        }

        .slider-shell-custom .carousel-item,
        .slider-shell .carousel-item {
            width: 100% !important;
            height: auto !important;
            min-height: 0 !important;
            position: relative !important;
            overflow: hidden !important;
        }


    /* =========================================
       کانتینر عکس
       ========================================= */

    .image-slide-wrapper {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        position: relative !important;
        border-radius: 13px !important;
    }


        /* =========================================
       خود عکس‌ها
       ========================================= */

        .slider-shell-custom img,
        .slider-shell img,
        .image-slide-wrapper img,
        .carousel-item img {
            display: block !important;
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            object-fit: cover !important;
            object-position: center center !important;
            margin: 0 !important;
            padding: 0 !important;
            border-radius: 13px !important;
        }


        /* =========================================
       اگر عکس‌ها با background-image هستند
       ========================================= */

        .image-slide-wrapper[style*="background-image"] {
            background-size: cover !important;
            background-position: center center !important;
            background-repeat: no-repeat !important;
        }


    /* =========================================
       فلش‌های اسلایدر
       ========================================= */

    .slider-shell-custom .carousel-control-prev,
    .slider-shell-custom .carousel-control-next,
    .slider-shell .carousel-control-prev,
    .slider-shell .carousel-control-next {
        width: 38px !important;
        height: 38px !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        opacity: 1 !important;
        z-index: 10 !important;
    }

    .slider-shell-custom .carousel-control-prev,
    .slider-shell .carousel-control-prev {
        left: 7px !important;
    }

    .slider-shell-custom .carousel-control-next,
    .slider-shell .carousel-control-next {
        right: 7px !important;
    }


    /* =========================================
       متن روی اسلایدر
       ========================================= */

    .slider-shell-custom .carousel-caption,
    .slider-shell .carousel-caption {
        left: 10px !important;
        right: 10px !important;
        bottom: 8px !important;
        padding: 8px 10px !important;
    }

        .slider-shell-custom .carousel-caption h1,
        .slider-shell-custom .carousel-caption h2,
        .slider-shell-custom .carousel-caption h3,
        .slider-shell .carousel-caption h1,
        .slider-shell .carousel-caption h2,
        .slider-shell .carousel-caption h3 {
            font-size: 14px !important;
            margin-bottom: 4px !important;
        }

        .slider-shell-custom .carousel-caption p,
        .slider-shell .carousel-caption p {
            font-size: 10px !important;
            margin-bottom: 0 !important;
        }


    /* =========================================
       موبایل خیلی کوچک
       ========================================= */

    @media (max-width: 380px) {

        .hero,
        .hero-section,
        #home {
            padding-top: 65px !important;
            padding-bottom: 10px !important;
        }

        .hero-buttons,
        .hero-actions {
            gap: 7px !important;
        }

            .hero-buttons a,
            .hero-buttons button,
            .hero-actions a,
            .hero-actions button,
            .hero .btn,
            .hero-section .btn,
            #home .btn {
                height: 44px !important;
                line-height: 44px !important;
                padding: 0 13px !important;
                font-size: 12px !important;
            }

        .image-slide-wrapper {
            aspect-ratio: 16 / 10 !important;
        }

        .slider-shell-custom .carousel-control-prev,
        .slider-shell-custom .carousel-control-next,
        .slider-shell .carousel-control-prev,
        .slider-shell .carousel-control-next {
            width: 32px !important;
            height: 32px !important;
        }
    }
}
@media (max-width: 767.98px) {

    .slider-shell-custom,
    .slider-shell {
        width: calc(100% - 4px) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 4px !important;
    }

        .slider-shell-custom .carousel,
        .slider-shell .carousel,
        .slider-shell-custom .carousel-inner,
        .slider-shell .carousel-inner {
            width: 100% !important;
        }

    .image-slide-wrapper {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }

        .slider-shell-custom img,
        .slider-shell img,
        .image-slide-wrapper img,
        .carousel-item img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
        }
}