@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff') format('woff');
}

:root {
    --bg: #3A157F;
    --bg2: #3A157F;
    --bg3: #2e1066;
    --text: #fff;
    --muted: #cbd5e1;
    --muted2: #94a3b8;
    --primary: #F2B707;
    --border: #F2B707;
    --card: rgba(255, 255, 255, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container-custom {
    width: 90%;
    max-width: 1250px;
    margin: auto;
}

/* =========================
   NAVBAR
========================= */

.navbar-custom {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: rgba(58, 21, 127, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(242, 183, 7, 0.35);
}

.nav-container {
    width: 90%;
    max-width: 1250px;
    margin: auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 52px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    transition: .3s;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary);
}

.call-btn {
    background: var(--primary);
    color: #111;
    padding: 11px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: .3s;
    white-space: nowrap;
    font-family: 'Vazir', Tahoma, sans-serif;
    letter-spacing: 0.5px;
}

.call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(242, 183, 7, 0.35);
}

/* =========================
   BUTTONS
========================= */

.btn-main,
.btn-outline {
    padding: 15px 34px;
    border-radius: 50px;
    transition: .3s;
    text-align: center;
    display: inline-block;
    font-family: 'Vazir', Tahoma, sans-serif;
}

.btn-main {
    background: var(--primary);
    color: #111;
    font-weight: 700;
}

.btn-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(242, 183, 7, 0.35);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================
   HERO
========================= */

.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2e1066 0%, #3A157F 60%, #4a1fa0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(242, 183, 7, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(242, 183, 7, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
}

.hero-text h1 {
    font-weight: 900;
    font-size: 3.2rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    color: var(--muted);
    font-size: 17px;
    line-height: 2.4;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 45px;
    gap: 35px;
}

.hero-stats .num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.hero-stats .txt {
    color: var(--muted);
    font-size: 14px;
}

/* =========================
   SECTION
========================= */

.section {
    padding: 110px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 65px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text);
}

.section-title p {
    color: var(--muted);
    max-width: 650px;
    margin: auto;
    line-height: 2.2;
    font-size: 16px;
}

/* =========================
   SERVICES — 3 ستون بوت‌استرپ
========================= */

.services-row {
    margin-right: -14px;
    margin-left: -14px;
}

.services-row > [class*="col-"] {
    padding-right: 14px;
    padding-left: 14px;
    margin-bottom: 28px;
}

.feature-card {
    background: var(--card);
    border: 1px solid rgba(242, 183, 7, 0.25);
    border-radius: 28px;
    padding: 40px 28px;
    transition: .4s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 48px rgba(242, 183, 7, 0.12);
}

.feature-card i {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 22px;
    display: block;
}

.feature-card h4 {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
}

.feature-card p {
    color: var(--muted);
    line-height: 2.1;
    font-size: 15px;
}

/* =========================
   CONTACT + FOOTER — یک قسمت
========================= */

.contact-footer-section {
    background: var(--bg3);
    padding: 80px 0 0;
    margin-top: 60px;
}

.contact-footer-inner {
    text-align: center;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(242, 183, 7, 0.2);
}

.contact-footer-inner h3 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.contact-footer-inner p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 36px;
    line-height: 2;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(242, 183, 7, 0.18);
    border-radius: 18px;
    transition: .3s;
    font-size: 15px;
}

.contact-item:hover {
    background: rgba(242, 183, 7, 0.08);
    border-color: var(--primary);
}

.contact-item i {
    color: var(--primary);
    font-size: 18px;
}

/* FOOTER BOTTOM */
.footer-bottom {
    padding: 40px 0 30px;
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: .3s;
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-copy {
    text-align: center;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted2);
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .contact-footer-inner h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hero {
        padding-top: 160px;
        padding-bottom: 80px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-main,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }

    .contact-info,
    .footer-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
    }

    .contact-footer-inner h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {

    .logo img {
        height: 44px;
    }

    .call-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 28px 20px;
    }
}


    /* ===== WORK HERO ===== */
    .work-hero {
        padding: 160px 0 80px;
        text-align: center;
        background: linear-gradient(135deg, #2e1066 0%, #3A157F 60%, #4a1fa0 100%);
        position: relative;
        overflow: hidden;
    }
 
    .work-hero::before {
        content: '';
        position: absolute;
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(242, 183, 7, 0.07) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
 
    .work-hero h1 {
        font-size: 3.4rem;
        font-weight: 900;
        line-height: 1.6;
        margin-bottom: 20px;
    }
 
    .work-hero h1 span {
        color: var(--primary);
    }
 
    .work-hero p {
        color: var(--muted);
        max-width: 680px;
        margin: 0 auto;
        line-height: 2.3;
        font-size: 17px;
    }
 
    /* ===== WORKS GRID ===== */
    .works-section {
        padding: 90px 0 60px;
    }
 
    .tem {
        margin-bottom: 28px;
    }
 
    .work-item {
        position: relative;
        overflow: hidden;
        height: 500px;
        background: var(--card);
        border: 1px solid rgba(242, 183, 7, 0.25);
        border-radius: 26px;
        transition: .4s;
        cursor: pointer;
    }
 
    .work-item img {
        width: 100%;
        display: block;
        transition: 7s ease;
    }
 
    .work-item:hover {
        transform: translateY(-6px);
        border-color: var(--primary);
        box-shadow: 0 16px 48px rgba(242, 183, 7, 0.12);
    }
 
    .work-item:hover img {
        transform: translateY(calc(-100% + 500px));
    }
 
    .work-title {
        text-align: center;
        margin-top: 16px;
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
    }
 
    /* ===== RESPONSIVE ===== */
    @media (max-width: 992px) {
        .work-hero h1 {
            font-size: 2.6rem;
        }
 
        .work-item {
            height: 400px;
        }
 
        .work-item:hover img {
            transform: translateY(calc(-100% + 400px));
        }
    }
 
    @media (max-width: 768px) {
        .work-hero {
            padding-top: 150px;
            padding-bottom: 60px;
        }
 
        .work-hero h1 {
            font-size: 2rem;
        }
 
        .work-hero p {
            font-size: 15px;
        }
 
        .works-section {
            padding: 60px 0 40px;
        }
 
        .work-item {
            height: 320px;
        }
 
        .work-item:hover img {
            transform: translateY(calc(-100% + 320px));
        }
    }
 
    @media (max-width: 480px) {
        .work-hero h1 {
            font-size: 1.7rem;
        }
 
        .work-item {
            height: 260px;
        }
 
        .work-item:hover img {
            transform: translateY(calc(-100% + 260px));
        }
    }