:root {
    --bg: #ffffff;
    --primary: #1E3A8A;
    /* سرمه‌ای تیره‌تر و غنی‌تر */
    --secondary: #131d35;
    --gold: #d7a53c;
    --gold-light: #f3d48d;
    --text: #0B132B;
    /* تغییر رنگ متن از خاکستری به سرمه‌ای */
    --muted: #0B132B;
    /* رنگ متن‌های کم‌رنگ با تناژ سرمه‌ای */
    --border: #ededed;
    --shadow: 0 20px 40px rgba(12, 24, 56, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    /* سایه چندلایه برای حالت ۳ بعدی */
    --radius: 34px;
    --bg-color: #F9F6F0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(215, 165, 60, .07), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(215, 165, 60, .05), transparent 30%),
        #F9F6F0;
    color: var(--text);
    overflow-x: hidden;
}

/* =========================
LOBAL
===================== */
.container {
    width: min(1180px, 92%);
    margin: auto;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================
ACKGROUND EFFECTS
===================== */
.blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: .5;
}

.blur.one {
    width: 320px;
    height: 320px;
    background: rgba(215, 165, 60, .18);
    top: -120px;
    right: -100px;
    animation: floatY 9s infinite ease-in-out;
}

.blur.two {
    width: 260px;
    height: 260px;
    background: rgba(0, 0, 0, .04);
    bottom: -100px;
    left: -100px;
    animation: floatX 11s infinite ease-in-out;
}

@keyframes floatY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(40px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes floatX {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(40px);
    }

    100% {
        transform: translateX(0);
    }
}

/* =========================
EADER
===================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* تبدیل لوگو به شکل بیضی (چشم) */
.logo img {
    width: 70px;
    min-width: 70px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    /* با توجه به تفاوت عرض و ارتفاع، بیضی می‌شود */
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.logo h2 {
    font-size: 1.05rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--primary);
    font-weight: 500;
    transition: .3s;
}

.nav-links a:not(.nav-btn-online):hover {
    color: var(--gold);
}

/* =========================
ERO
===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    padding-top: 120px;
}

.hero-text span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(215, 165, 60, .10);
    color: #b67d08;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-text h1 {
    font-size: clamp(2.7rem, 6vw, 5.7rem);
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 900;
}

.hero-text p {
    color: var(--muted);
    line-height: 2.1;
    font-size: 1.08rem;
    max-width: 580px;
    margin-bottom: 38px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 30px;
    border-radius: 18px;
    font-weight: 700;
    transition: .35s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #f2d188);
    color: #111;
    box-shadow: 0 18px 40px rgba(215, 165, 60, .22);
}

.btn-primary:hover {
    transform: translateY(-5px);
}

.btn-outline {
    border: 1px solid #ddd;
    color: var(--primary);
}

.btn-outline:hover {
    background: #f8f8f8;
}

/* =========================
ERO IMAGE
===================== */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-shape {
    width: 520px;
    height: 620px;
    border: 2px solid rgba(215, 165, 60, .35);
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .08),
        0 0 80px rgba(215, 165, 60, .10);
    animation: floating 5s infinite ease-in-out;
}

.hero-shape::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), transparent);
    z-index: 2;
}

.hero-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================
ECTION
===================== */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    color: var(--gold);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

/* =========================
ARDS
===================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.card {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .6);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 38px;
    position: relative;
    overflow: hidden;
    transition: .4s;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.card .btn {
    margin-top: auto;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 55px rgba(215, 165, 60, .18);
}

.card::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(215, 165, 60, .08);
    top: -90px;
    left: -90px;
}

.icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #f2d188);
    margin-bottom: 24px;
}

.card h3 {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.3rem;
}

.card p {
    line-height: 2;
    color: var(--muted);
}

/* =========================
ONTACT
===================== */
.contact-wrapper {
    background: linear-gradient(145deg, var(--secondary), var(--primary));
    border-radius: 38px;
    padding: 55px;
    overflow: hidden;
    position: relative;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(215, 165, 60, .08);
    border-radius: 50%;
    top: -130px;
    left: -100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    padding: 30px;
    backdrop-filter: blur(14px);
}

.contact-card h3 {
    color: var(--gold-light);
    margin-bottom: 16px;
}

.contact-card p,
.contact-card a {
    color: #ededed;
    line-height: 2;
}

.phone {
    font-size: 1.35rem;
    font-weight: 800;
}

/* =========================
AP
===================== */
.map-box {
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: white;
}

.map-box iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.map-actions {
    padding: 26px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================
OOTER
===================== */
footer {
    padding: 45px 0;
    text-align: center;
    color: #888;
}

/* =========================
OBILE
===================== */
@media(max-width:980px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-text p {
        margin: auto auto 38px;
    }
}

@media(max-width:768px) {

    /* قرارگیری لوگو بالا و منوها زیر آن */
    .nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0 5px 0;
    }

    /* نمایش منوها به صورت اسکرول افقی */
    .nav-links {
        display: flex;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
        /* اسکرول نرم در گوشی */
    }

    /* مخفی کردن نوار اسکرول برای زیبایی */
    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .hero-shape {
        width: 320px;
        height: 420px;
    }

    .hero-shape {
        width: 320px;
        height: 420px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .contact-wrapper {
        padding: 32px 22px;
    }

    section {
        padding: 95px 0;
    }
}

.nav-btn-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    background-color: #D4AF37;
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.3s;
}


.nav-links .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    /* قبلاً 16px 30px بود */
    border-radius: 14px;
    line-height: 1;
}

.nav-btn-online:focus,
.nav-btn-online:active,
.nav-btn-online:focus-visible {
    background-color: #D4AF37;
    color: #fff;
    outline: none;
}

/* =========================
   CREATIVE ABOUT SECTION (Theme Colors)
===================== */
#about-creative {
    padding: 100px 0;
    background: transparent;
    /* هماهنگ با پس‌زمینه اصلی سایت */
    overflow: hidden;
    padding-bottom: 20px !important;

}

.creative-grid {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.creative-image-box {
    flex: 1;
    position: relative;
    z-index: 1;
}

.creative-img {
    width: 100%;
    max-width: 550px;
    border-radius: 40px 0 40px 0;
    box-shadow: 25px 25px 0px #f4e8d3;
    /* سایه طلایی بسیار روشن */
    object-fit: cover;
    display: block;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: #e2b75a;
    /* رنگ طلایی تم */
    color: #1a1a1a;
    /* رنگ تیره برای خوانایی روی طلایی */
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(226, 183, 90, 0.3);
    border: 4px solid #fff;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.badge-num {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
}

.creative-glass-card {
    flex: 1.2;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 18px 45px rgba(215, 165, 60, .10);
    transform: translateX(60px);
    z-index: 2;
}

.creative-tag {
    display: inline-block;
    padding: 6px 15px;
    background: #fbf5e9;
    /* پس‌زمینه تگ با هاله طلایی */
    color: #c09438;
    /* متن طلایی تیره */
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.creative-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--primary);
    /* <<<< این خط را ویرایش کنید */
    /* مشکی تم */
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 20px;
}

.creative-title .highlight {
    color: #e2b75a;
    /* طلایی تم */
    font-size: 1.6rem;
}

.creative-desc {
    color: #555;
    line-height: 2;
    font-size: 1.05rem;
    text-align: justify;
    margin-bottom: 35px;
}

.btn-elegant {
    background: #e2b75a;
    /* دکمه طلایی */
    color: #1a1a1a;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-elegant:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(226, 183, 90, 0.4);
    color: #000;
}

/* واکنش‌گرا */
@media(max-width: 992px) {
    .creative-grid {
        flex-direction: column;
    }

    .creative-glass-card {
        transform: translateX(0);
        margin-top: -60px;
        padding: 30px;
    }

    .creative-img {
        margin: 0 auto;
    }

    .floating-badge {
        left: 0;
    }
}

#hero-title {
    font-size: 48px;
}

#hero-desc {
    max-width: 900px;
    width: 100%;
    text-align: right;
    direction: rtl;
}

#creative-signature {
    margin-bottom: 30px;
    font-weight: bold;
    color: #c09438;
    font-size: 1.1rem;
}

#map-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

#main-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 15px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    margin-top: 40px;
}

#footer-ig-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary, #007bff);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

/* قرارگیری باکس‌ها کنار هم (ستونی) با ارتفاع برابر */
#services .cards {
    /* کلاس والد باکس‌ها */
    display: flex;
    flex-direction: row;
    /* قرارگیری در یک ردیف کنار هم */
    align-items: stretch;
    /* هم‌تراز کردن و برابر شدن ارتفاع تمام باکس‌ها */
    gap: 20px;
}

/* تنظیم عرض برابر برای هر ۴ باکس */
#services .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;

}

#services .container {
    width: 98%;
    max-width: 1400px;
}

#services .card p {
    text-align: justify;
    text-align-last: right;
    direction: rtl;
    line-height: 1.8;
}

/* برای موبایل و تبلت که باکس‌ها به هم نریزند */
@media (max-width: 992px) {
    #services .cards {
        flex-wrap: wrap;
    }

    #services .card {
        min-width: 45%;
        /* در تبلت ۲ ستونه */
    }
}

@media (max-width: 768px) {
    #services .card {
        min-width: 100%;
        /* در موبایل زیر هم */
    }
}

/* تنظیم عکس در مرکز */
.center-img-box {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;

}

.mini-creative-img {
    max-width: 550px;
    /* می‌توانید این عدد را هر چقدر خواستید بیشتر کنید */
    width: 100%;
    aspect-ratio: 4 / 5;
    /* قفل کردن تناسب عرض و ارتفاع (مثبت و مستطیلی) */
    object-fit: cover;
    /* پر کردن کادر بدون دفرمه شدن عکس */
    box-shadow: 15px 15px 0px #f4e8d3;
}

/* شبکه ۳ تایی برای باکس‌ها */
.mini-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* برای جلوگیری از به هم ریختگی در صورت بزرگ شدن باکس‌ها */
    justify-content: center;
    gap: 30px;
    /* فاصله بین باکس‌ها */
    margin-top: 40px;
}

/* بازنویسی ویژگی‌های باکس برای حالت ۳تایی */
.creative-glass-card.mini-glass {
    flex: 1;
    transform: none;
    /* حذف جابجایی (translateX) که در دیزاین تکی بود */
    padding: 30px 25px;
    /* پدینگ کمتر برای جا شدن ۳ باکس */
    margin: 0;
}

.mini-glass {
    width: 100%;
    max-width: 400px;
    /* این عدد را برای عرض بیشتر (مثلا 450px) افزایش دهید */
    flex: 1 1 350px;
    /* باکس‌ها سعی می‌کنند حداقل 350 پیکسل عرض داشته باشند */
    padding: 25px;
    /* کمی فضای داخلی بیشتر برای زیباتر شدن */
}

/* تنظیم سایز فونت‌ها برای باکس‌های کوچکتر */
.mini-title {
    font-size: 1.3rem !important;
    margin-bottom: 15px;
}

.mini-title .highlight {
    font-size: 1.3rem !important;
}

.mini-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ریسپانسیو برای تبلت و موبایل */
@media(max-width: 992px) {
    .mini-cards-wrapper {
        flex-wrap: wrap;
    }

    .creative-glass-card.mini-glass {
        min-width: 45%;
    }
}

@media(max-width: 768px) {
    .creative-glass-card.mini-glass {
        min-width: 100%;
    }
}

.card,
.creative-glass-card {
    box-shadow: var(--shadow);
    border-bottom: 3px solid rgba(215, 165, 60, 0.2);
    /* به جای all فقط مواردی که تغییر میکنند را انیمیت کنید */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;

    /* استفاده از پردازنده گرافیکی (GPU) برای رفع باگ پرش و صفحه سفید */
    transform: translateZ(0);
    will-change: transform, opacity;
}


.card:hover,
.creative-glass-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(12, 24, 56, 0.15), 0 15px 25px rgba(215, 165, 60, 0.2);
    border-bottom: 3px solid var(--gold);
}