@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-light: #dbeafe;
    --brand-soft: #eff6ff;
    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --page: #f8fafc;
    --success: #059669;
    --danger: #e11d48;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Vazirmatn", sans-serif !important;
    color: var(--body);
    background-color: var(--page);
    line-height: 1.7;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

section {
    scroll-margin-top: 92px;
}

.container {
    width: min(100% - 40px, 1240px);
    max-width: 1240px;
}

/* =========================
   هدر و منو
========================= */
.site-header {
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.logo-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--brand);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.nav-link {
    position: relative;
    padding: 8px 2px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand), #60a5fa);
    content: "";
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid transparent;
    transition: max-height 0.35s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.mobile-menu.show {
    max-height: 460px;
    opacity: 1;
    border-top-color: var(--line);
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--body);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--brand);
    background-color: var(--brand-soft);
    transform: translateX(-2px);
}

/* =========================
   بخش نخست صفحه
========================= */
.hero-section {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 14% 20%, rgba(147, 197, 253, 0.38), transparent 29%),
        radial-gradient(circle at 84% 72%, rgba(196, 181, 253, 0.28), transparent 25%),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 52%, #f8faff 100%);
}

.hero-glow {
    position: absolute;
    inset: 8% 5%;
    z-index: -1;
    border-radius: 50%;
    background: #bfdbfe;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
}

.chart-bar {
    min-width: 15px;
    flex: 1;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(to top, #2563eb, #93c5fd);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.14);
    animation: chartGrow 1.2s ease-out both;
}

.chart-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.chart-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.chart-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.chart-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.chart-bar:nth-child(6) {
    animation-delay: 0.5s;
}

.chart-bar:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes chartGrow {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

/* =========================
   عنوان بخش‌ها
========================= */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(239, 246, 255, 0.85);
    font-size: 13px;
    font-weight: 800;
}

.section-title {
    margin-top: 14px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.6;
    text-align: center;
}

.section-description {
    max-width: 700px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
    text-align: center;
}

/* =========================
   کارت خدمات
========================= */
.service-card {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    transform: translateY(-6px);
}

.service-icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 24px;
}

.service-card h3 {
    margin-top: 18px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
}

.service-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.service-card ul {
    margin-top: 18px;
    color: #475569;
    font-size: 13px;
    line-height: 2.2;
}

.service-card ul li::before {
    margin-left: 7px;
    color: var(--brand);
    content: "✓";
    font-weight: 900;
}

/* =========================
   مراحل همکاری
========================= */
.process-card {
    position: relative;
    height: 100%;
    padding: 28px;
    border: 1px solid rgba(100, 116, 139, 0.35);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.7);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.process-card:hover {
    border-color: rgba(147, 197, 253, 0.7);
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-5px);
}

.process-card > span {
    position: absolute;
    top: 18px;
    left: 20px;
    color: #64748b;
    font-size: 30px;
    font-weight: 900;
}

.process-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.17);
    font-size: 20px;
}

.process-card h3 {
    margin-top: 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.process-card p {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 2;
}

/* =========================
   نمونه‌کارها
========================= */
.portfolio-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    transform: translateY(-6px);
}

.portfolio-cover {
    position: relative;
    display: flex;
    height: 205px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
}

.portfolio-cover::before {
    position: absolute;
    bottom: -150px;
    left: -85px;
    width: 280px;
    height: 280px;
    border: 35px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.portfolio-cover span {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    font-size: 12px;
    font-weight: 700;
}

.portfolio-cover i {
    font-size: 67px;
    opacity: 0.9;
}

.cover-bi {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
}

.cover-research {
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
}

.cover-web {
    background: linear-gradient(135deg, #047857, #34d399);
}

.portfolio-card h3 {
    margin-top: 8px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.portfolio-card p:last-child {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

/* =========================
   درباره ما
========================= */
.about-visual {
    position: relative;
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.7);
    border-radius: 24px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.about-visual::before,
.about-visual::after {
    position: absolute;
    border: 30px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    content: "";
}

.about-visual::before {
    top: -140px;
    right: -80px;
    width: 280px;
    height: 280px;
}

.about-visual::after {
    bottom: -120px;
    left: -65px;
    width: 230px;
    height: 230px;
}

.about-main-icon {
    z-index: 2;
    display: flex;
    width: 150px;
    height: 150px;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 20px 35px rgba(37, 99, 235, 0.3);
    font-size: 65px;
    transform: rotate(-8deg);
}

.about-floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.about-floating-card i {
    font-size: 26px;
}

.about-floating-card b,
.about-floating-card span {
    display: block;
}

.about-floating-card b {
    color: #1e293b;
    font-size: 13px;
}

.about-floating-card span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.top-card {
    top: 45px;
    right: 25px;
}

.bottom-card {
    bottom: 45px;
    left: 25px;
}

.feature-item {
    display: flex;
    gap: 12px;
}

.feature-item > i {
    display: flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--brand);
    background: var(--brand-light);
}

.feature-item h3 {
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
}

.feature-item p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* =========================
   فرم تماس
========================= */
#contact-form label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

#contact-form label span {
    color: var(--danger);
}

#contact-form input,
#contact-form textarea,
#contact-form select {
    width: 100%;
    outline: none;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    color: #1e293b;
    background: #f8fafc;
    padding: 12px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #94a3b8;
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    border-color: var(--brand);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.contact-info > div {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #bfdbfe;
    background: rgba(255, 255, 255, 0.12);
    font-size: 18px;
}

.contact-info small,
.contact-info b {
    display: block;
}

.contact-info small {
    color: #bfdbfe;
    font-size: 12px;
}

.contact-info b {
    margin-top: 3px;
    color: #ffffff;
    font-size: 14px;
}

/* =========================
   فوتر
========================= */
.footer-title {
    margin-bottom: 17px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.footer-links a {
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.footer-links a:hover {
    padding-right: 4px;
    color: #93c5fd;
}

.social-icon {
    display: flex;
    width: 37px;
    height: 37px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    color: #cbd5e1;
    background: #1e293b;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    color: #ffffff;
    background: var(--brand);
    transform: translateY(-3px);
}

/* =========================
   دکمه بازگشت به بالا
========================= */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 40;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.38);
    transform: translateY(-3px);
}

/* =========================
   انیمیشن ورود به صفحه
========================= */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================
   نمایش در موبایل
========================= */
@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, 1240px);
    }

    .section-title {
        font-size: 26px;
        line-height: 1.55;
    }

    .section-description {
        font-size: 14px;
    }

    .service-card {
        padding: 23px;
        border-radius: 16px;
    }

    .about-visual {
        min-height: 300px;
        border-radius: 20px;
    }

    .about-main-icon {
        width: 120px;
        height: 120px;
        border-radius: 25px;
        font-size: 50px;
    }

    .about-floating-card {
        transform: scale(0.84);
    }

    .top-card {
        right: -8px;
    }

    .bottom-card {
        left: -8px;
    }

    .back-to-top {
        bottom: 16px;
        left: 16px;
    }
}
