/* ==========================================================
   PLC & CNC Premium Theme
   Base design system
========================================================== */

/* Google Font */
/*@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');*/
@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir.woff2') format('woff2'), url('/assets/fonts/Vazir.woff') format('woff'), url('/assets/fonts/Vazir.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir-Bold.woff2') format('woff2'), url('/assets/fonts/Vazir-Bold.woff') format('woff'), url('/assets/fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir-Light.woff2') format('woff2'), url('/assets/fonts/Vazir-Light.woff') format('woff'), url('/assets/fonts/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}


/* ---------------- Root variables ---------------- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 12px rgba(15,23,42,.06);
    --shadow: 0 12px 30px rgba(15,23,42,.08);
    --shadow-lg: 0 24px 60px rgba(15,23,42,.12);
    --transition: all .35s ease;
}

/* ---------------- Reset ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazir',sans-serif;
    font-feature-settings: 'ss01';
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------------- Container ---------------- */
.container {
    max-width: 1240px;
}

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.3;
    color: var(--secondary);
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

/* ---------------- Buttons ---------------- */
.btn {
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg,var(--primary),var(--accent));
    border: none;
    box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(37,99,235,.35);
    }

.btn-outline {
    border: 1px solid var(--border);
    background: #fff;
}

    .btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

/* ---------------- Cards ---------------- */
.card-premium {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .card-premium:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

/* ---------------- Glass effect ---------------- */
.glass {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.4);
}

/* ---------------- Preloader ---------------- */
#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: .4s;
}

.loader {
    width: 54px;
    height: 54px;
    border: 4px solid #dbeafe;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------- Back to top ---------------- */
.back-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--primary-dark);
    }

/* ---------------- Utilities ---------------- */
.text-muted {
    color: var(--muted) !important;
}

.bg-surface {
    background: var(--surface);
}

.shadow-premium {
    box-shadow: var(--shadow);
}

.rounded-premium {
    border-radius: 24px;
}

/* ---------------- Responsive ---------------- */
@media (max-width:991px) {
    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width:768px) {
    .section-padding {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* ================= Hero Premium ================= */

.hero-premium {
    position: relative;
    min-height: 100vh;
    background: url('/assets/images/HomePages/Slider/hero-industrial.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(37,99,235,.65));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 999px;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-title {
    font-size: 3.6rem;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    color: rgba(255,255,255,.85);
    font-size: 1.15rem;
    margin-bottom: 36px;
    max-width: 620px;
}

.hero-buttons .btn {
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
}

.hero-floating-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 32px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.floating-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.hero-stats h3 {
    color: #fff;
    margin-bottom: 6px;
    font-weight: 800;
}

.hero-stats span {
    color: rgba(255,255,255,.75);
    font-size: .9rem;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
}

    .hero-scroll a {
        color: #fff;
        font-size: 1.6rem;
        animation: bounce 2s infinite;
    }

@keyframes bounce {
    0%,20%,50%,80%,100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width:991px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-floating-card {
        margin-top: 40px;
    }
}

@media (max-width:768px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 12px;
    }
}
.slider-counter {
    font-family: 'Vazir', sans-serif;
    font-feature-settings: 'ss01';
}
/* ================= About Premium ================= */

.about-premium {
    background: #fff;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 18px;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.experience-card {
    position: absolute;
    left: -20px;
    bottom: 30px;
    background: #fff;
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

    .experience-card h2 {
        color: var(--primary);
        font-size: 3rem;
        margin-bottom: 6px;
    }

    .experience-card p {
        color: var(--muted);
        margin: 0;
        font-weight: 600;
    }

.about-text {
    color: var(--muted);
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
}

    .feature-item:hover {
        transform: translateX(-6px);
        box-shadow: var(--shadow);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.feature-item h5 {
    margin-bottom: 6px;
}

.feature-item p {
    margin: 0;
    color: var(--muted);
}

@media (max-width:991px) {
    .experience-card {
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width:768px) {
    .experience-card {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 20px;
    }

    .feature-item:hover {
        transform: none;
    }
}

/* ================= Services Premium ================= */

.services-premium {
    background: linear-gradient(180deg,#ffffff,#f8fafc);
}

.service-card-premium {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px 30px;
    height: 100%;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .service-card-premium::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg,var(--primary),var(--accent));
        transform: scaleX(0);
        transform-origin: right;
        transition: .4s;
    }

    .service-card-premium:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

        .service-card-premium:hover::before {
            transform: scaleX(1);
        }

.service-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    box-shadow: 0 15px 35px rgba(37,99,235,.25);
}

.service-card-premium h4 {
    margin-bottom: 16px;
    font-weight: 800;
}

.service-card-premium p {
    color: var(--muted);
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
}

    .service-link i {
        transition: .3s;
    }

    .service-link:hover i {
        transform: translateX(-6px);
    }

@media (max-width:768px) {
    .service-card-premium {
        padding: 28px 24px;
    }

    .service-icon {
        width: 68px;
        height: 68px;
        font-size: 1.7rem;
    }
}
/* ================= Projects Premium ================= */

.projects-premium {
    background: #fff;
}

.project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    min-width: 92px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--secondary);
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover,
.filter-btn:focus-visible {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .18);
    outline-offset: 2px;
}

.project-card-premium {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: #e9eef5;
}

.project-image img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform .5s ease;
}

.project-image img.project-image-error {
    display: none;
}

.project-card-premium:hover .project-image img:not(.project-image-error) {
    transform: scale(1.06);
}

.project-image-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--muted);
    background: linear-gradient(135deg, #eef2f7, #dfe7f0);
    font-weight: 700;
}

.project-image-placeholder.show {
    display: flex;
}

.project-image-placeholder i {
    font-size: 3rem;
    opacity: .7;
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .05) 15%, rgba(15, 23, 42, .9) 100%);
    opacity: 0;
    transition: opacity .35s ease;
}

.project-card-premium:hover .project-overlay,
.project-card-premium:focus-within .project-overlay {
    opacity: 1;
}

.project-content {
    width: 100%;
}

.project-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    font-size: .82rem;
    margin-bottom: 12px;
}

.project-title {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.55;
    margin-bottom: 10px;
}

.project-description {
    color: rgba(255, 255, 255, .88);
    font-size: .9rem;
    line-height: 1.9;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-link {
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.project-link i {
    transition: transform .3s ease;
}

.project-link:hover i,
.project-link:focus-visible i {
    transform: translateX(-5px);
}

.project-empty-state {
    padding: 55px 25px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 24px;
    background: #f8fafc;
}

.project-empty-state i {
    display: block;
    margin-bottom: 15px;
    font-size: 2.8rem;
    color: var(--primary);
}

.project-empty-state h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.project-empty-state p {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 991px) {
    .project-image,
    .project-image img {
        min-height: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .project-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 4px 2px 10px;
        scrollbar-width: none;
    }

    .project-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .project-image,
    .project-image img {
        min-height: 260px;
        height: 260px;
    }

    .project-overlay {
        opacity: 1;
        padding: 22px;
        background: linear-gradient(180deg, rgba(15, 23, 42, .12) 15%, rgba(15, 23, 42, .88) 100%);
    }

    .project-card-premium:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .project-image,
    .project-image img {
        min-height: 240px;
        height: 240px;
    }

    .project-title {
        font-size: 1.08rem;
    }

    .project-description {
        font-size: .85rem;
        -webkit-line-clamp: 2;
    }
}

/* ================= Statistics Premium ================= */

.statistics-premium {
    position: relative;
    margin-top: -70px;
    z-index: 10;
}

.statistics-box {
    background: rgba(255,255,255,.9);
    border-radius: 30px;
    padding: 50px 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.5);
}

.stat-item {
    position: relative;
}

    .stat-item::after {
        content: '';
        position: absolute;
        left: -15px;
        top: 50%;
        width: 1px;
        height: 60px;
        background: var(--border);
        transform: translateY(-50%);
    }

    .stat-item:last-child::after {
        display: none;
    }

.stat-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-item h2 {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

@media (max-width:991px) {
    .statistics-premium {
        margin-top: 0;
        padding-top: 80px;
    }

    .stat-item::after {
        display: none;
    }
}
/* ================= Process Premium ================= */

.process-premium {
    background: #f8fafc;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

    /* اتصال مراحل فقط بین دو مرحله؛ خط بعد از آخرین مرحله ادامه پیدا نمی‌کند. */
    .process-step:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 64px;
        right: 30.5px;
        width: 3px;
        height: calc(100% + 50px - 64px);
        background: linear-gradient(180deg,#2563eb,#06b6d4);
        z-index: 1;
    }

.process-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 15px 35px rgba(37,99,235,.25);
    position: relative;
    z-index: 2;
}

.step-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    transition: var(--transition);
}

    .step-content:hover {
        transform: translateX(-6px);
        box-shadow: var(--shadow);
    }

    .step-content h4 {
        margin-bottom: 12px;
    }

    .step-content p {
        color: var(--muted);
        margin: 0;
    }

@media (max-width:768px) {
    .process-step:not(:last-child)::before {
        top: 46px;
        right: 20.5px;
        height: calc(100% + 50px - 46px);
    }

    .process-step {
        gap: 18px;
    }

    .step-number {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .step-content {
        padding: 20px;
    }

        .step-content:hover {
            transform: none;
        }
}
/* ================= Blog Premium ================= */

.blog-premium {
    background: #f8fafc;
}

.blog-card-premium {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

    .blog-card-premium:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

.blog-image {
    position: relative;
    overflow: hidden;
}

    .blog-image img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        transition: transform .5s ease;
    }

.blog-card-premium:hover .blog-image img {
    transform: scale(1.08);
}

.blog-category {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(37,99,235,.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}

.blog-content {
    padding: 28px;
}

.blog-meta {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 16px;
}

    .blog-meta i {
        color: var(--primary);
        margin-left: 4px;
    }

.blog-content h4 {
    margin-bottom: 16px;
    line-height: 1.5;
}

    .blog-content h4 a {
        color: var(--secondary);
    }

        .blog-content h4 a:hover {
            color: var(--primary);
        }

.blog-content p {
    color: var(--muted);
    margin-bottom: 24px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
}

    .blog-link i {
        transition: .3s;
    }

    .blog-link:hover i {
        transform: translateX(-6px);
    }

@media (max-width:768px) {
    .blog-image img {
        height: 220px;
    }

    .blog-content {
        padding: 22px;
    }
}
/* ================= Contact Validation ================= */

.contact-field-wrap {
    position: relative;
}

.contact-field-wrap .contact-valid-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) scale(.7);
    color: #198754;
    font-size: 1.15rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 3;
}

.contact-field-wrap.is-valid .contact-valid-icon {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.contact-field-wrap.is-valid .form-control {
    border-color: #198754;
    padding-left: 48px;
}

.contact-field-wrap.is-invalid .form-control {
    border-color: #dc3545;
}

.contact-textarea-wrap .contact-valid-icon {
    top: 18px;
    transform: scale(.7);
}

.contact-textarea-wrap.is-valid .contact-valid-icon {
    transform: scale(1);
}

.contact-textarea-wrap.is-valid .form-control {
    padding-left: 48px;
}

.contact-form-card .invalid-feedback {
    display: none;
}

#contactForm.was-validated .contact-field-wrap.is-invalid + .invalid-feedback,
.contact-field-wrap.is-invalid + .invalid-feedback {
    display: block;
}

@media (max-width:768px) {
    .contact-field-wrap .contact-valid-icon {
        left: 14px;
    }
}


/* ================= Contact Premium ================= */

.contact-premium {
    background: linear-gradient(180deg,#ffffff,#f8fafc);
}

.contact-text {
    color: var(--muted);
    margin-bottom: 32px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-info-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-info-item h6 {
    margin-bottom: 6px;
}

.contact-info-item p {
    margin: 0;
    color: var(--muted);
}

.contact-form-card {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 30px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

    .contact-form-card .form-control {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 16px 18px;
        font-size: 1rem;
    }

        .contact-form-card .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(37,99,235,.12);
        }

.contact-map {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .contact-map iframe {
        display: block;
    }

@media (max-width:768px) {
    .contact-form-card {
        padding: 24px;
    }

    .contact-info-icon {
        width: 54px;
        height: 54px;
    }
}
/* =========================
Hero slider (RTL)
========================= */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#homeSlider {
    position: relative;
}

/* =========================
Image
========================= */

.slider-image {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 7s ease;
}

.carousel-item.active .slider-image {
    transform: scale(1);
}

/* =========================
Overlay
========================= */

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 270deg, rgba(6,18,38,.92) 0%, rgba(6,18,38,.72) 45%, rgba(6,18,38,.30) 100% );
    z-index: 1;
}
/* =========================
Caption
========================= */

.carousel-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

    .carousel-caption .container {
        width: 100%;
    }
    .carousel-caption .row {
        min-height: 90vh;
        align-items: center;
    }

.text-end {
    text-align: right !important;
}
/* متن سمت راست */

.slider-title-wrap {
    border-right: 4px solid #0d6efd;
    padding-right: 20px;
    margin-bottom: 20px;
}

.slider-title {
    color: #fff;
    font-family: 'Vazir', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.7;
    margin: 0 0 18px;
    text-align: right;
    max-width: 100%;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-description {
    color: rgba(255,255,255,.9);
    font-size: 1.05rem;
    line-height: 2;
    margin-top: 20px;
    max-width: 700px;
   text-align:right;
}

/* دکمه‌ها سمت چپ */

.slider-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

    .slider-buttons .btn {
        min-width: 230px;
        text-align: center;
    }

.btn-glass {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    backdrop-filter: blur(10px);
}

    .btn-glass:hover {
        background: rgba(255,255,255,.18);
        color: #fff;
    }

@media (max-width:992px) {

    .slider-title {
        font-size: 2rem;
    }

    .slider-buttons {
        margin-top: 30px;
        align-items: stretch;
    }

        .slider-buttons .btn {
            width: 100%;
        }
}

/* =========================
Progress
========================= */

.slider-progress {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,.12);
    z-index: 20;
}

.slider-progress-bar {
    width: 0;
    height: 100%;
    background: #0d6efd;
}

/* =========================
Controls
========================= */

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: all .3s ease;
    z-index: 10;
}

.carousel-control-prev {
    right: 30px;
    left: auto;
}

.carousel-control-next {
    left: 30px;
    right: auto;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: #0d6efd;
        border-color: #0d6efd;
        transform: translateY(-50%) scale(1.05);
    }

/* =========================
Indicators
========================= */

.carousel-indicators {
    bottom: 24px;
}

    .carousel-indicators button {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50%;
        border: 0;
        margin: 0 6px !important;
        background: rgba(255,255,255,.45);
        transition: all .3s ease;
    }

    .carousel-indicators .active {
        background: #fff;
        transform: scale(1.3);
    }

/* =========================
Counter
========================= */

.slider-counter {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    z-index: 15;
}

    .slider-counter span {
        font-size: 2rem;
        font-weight: 800;
    }

/* =========================
Animations
========================= */

.carousel-item.active .slider-tag,
.carousel-item.active .slider-title,
.carousel-item.active .slider-description,
.carousel-item.active .slider-buttons {
    animation: fadeUp .8s ease both;
}

.carousel-item.active .slider-tag {
    animation-delay: .2s;
}

.carousel-item.active .slider-title {
    animation-delay: .4s;
}

.carousel-item.active .slider-description {
    animation-delay: .6s;
}

.carousel-item.active .slider-buttons {
    animation-delay: .8s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
Responsive
========================= */

@media (max-width:1199.98px) {

    /* The public header is fixed on tablet/mobile. Keep the hero content
       below the full topbar + navigation height so the title is not hidden. */
    .hero-slider {
        margin-top: 124px;
    }

    .slider-image {
        height: 75vh;
    }

    .slider-content {
        max-width: 100%;
    }

    .slider-title {
        font-size: 2.2rem;
    }
}

@media (max-width:768px) {

    .slider-image {
        height: 65vh;
    }

    .carousel-caption {
        padding: 0 20px;
    }

    .slider-title {
        font-size: 1.8rem;
    }

    .slider-description {
        font-size: .95rem;
    }

    .slider-buttons {
        flex-direction: column;
        align-items: stretch;
        direction: rtl;
    }

        .slider-buttons .btn {
            width: 100%;
        }

    .slider-counter {
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width:575.98px) {

    .hero-slider {
        margin-top: 116px;
    }

    .slider-image {
        height: 58vh;
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .slider-description {
        font-size: .9rem;
    }

    .slider-tag {
        font-size: .75rem;
    }
}
/* ================= Reveal Animation ================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;
}

.reveal.reveal-active {
        opacity: 1;
        transform: translateY(0);
    }

/* ================= Statistics v3 ================= */

.statistics-premium {
    position: relative;
    margin-top: 0;
    padding-top: 70px;
    padding-bottom: 40px;
    background: #f8fafc;
}

.statistics-box {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 30px;
    padding: 42px 30px 46px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.statistics-box .section-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    direction: rtl;
}

.stat-item {
    position: relative;
    min-width: 0;
    min-height: 274px;
    padding: 30px 14px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .75);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .09);
    border-color: rgba(37, 99, 235, .18);
}

.stat-item::after {
    display: none;
}

.stat-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
    flex: 0 0 auto;
}

.stat-value-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    direction: ltr;
    min-height: 55px;
}

.stat-item .counter {
    display: inline-block;
    font-size: 2.55rem;
    line-height: 1;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -.03em;
}

.stat-suffix {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.stat-title {
    color: var(--muted);
    margin: 13px 0 0;
    font-weight: 700;
    line-height: 1.7;
    min-height: 29px;
}

@media (max-width: 1199px) {
    .statistics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .statistics-premium {
        margin-top: 0;
        padding-top: 70px;
    }
}

@media (max-width: 767px) {
    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-item {
        min-height: 245px;
        padding: 24px 10px 20px;
    }
}

@media (max-width: 576px) {
    .statistics-box {
        padding: 30px 14px 34px;
        border-radius: 24px;
    }

    .stat-item {
        min-height: 225px;
        padding: 20px 7px 18px;
        border-radius: 16px;
    }

    .stat-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 18px;
        border-radius: 17px;
        font-size: 1.45rem;
    }

    .stat-item .counter {
        font-size: 2rem;
    }

    .stat-suffix {
        font-size: 1rem;
    }

    .stat-title {
        font-size: .84rem;
    }
}

/* ================= Contact Final Refinement ================= */
.contact-premium .section-tag,
.contact-page-hero .section-tag { display:inline-flex; align-items:center; gap:8px; margin-bottom:14px; }
.contact-link { color: inherit; text-decoration: none; transition: color .2s ease; }
.contact-link:hover { color: var(--primary); }
.contact-form-kicker { color: var(--primary); font-weight:700; font-size:.9rem; }
.contact-form-card h3 { font-weight:800; }
.contact-form-card .form-label { font-weight:700; margin-bottom:8px; }
.contact-form-card .form-control { background:#fff; }
.contact-form-card .form-control.is-invalid { background-image:none; }
.contact-socials { display:flex; flex-wrap:wrap; gap:10px; }
.contact-socials a { width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:14px; background:#fff; color:var(--primary); border:1px solid var(--border); box-shadow:0 8px 22px rgba(15,23,42,.06); text-decoration:none; transition:all .2s ease; }
.contact-socials a:hover { transform:translateY(-3px); box-shadow:0 12px 26px rgba(15,23,42,.12); }
.contact-map { min-height:300px; background:#f1f5f9; }
.contact-page-hero { background:linear-gradient(180deg,#f8fafc,#fff); padding-bottom:30px; }
@media (max-width:576px) { .contact-form-card { padding:20px; border-radius:22px; } .contact-info-item { gap:12px; } }


/* ================= Header Top Bar - Front Final ================= */
.header-premium .header-topbar {
    position: relative;
    min-height: 42px;
    background: linear-gradient(90deg, #07111f 0%, #0f2035 50%, #07111f 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: .78rem;
    letter-spacing: .01em;
}

.header-premium .header-topbar::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56,189,248,.55), transparent);
    pointer-events: none;
}

.header-topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-topbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 3px 10px;
    color: rgba(255,255,255,.84);
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.header-topbar-item:hover,
.header-topbar-item:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.10);
}

.header-topbar-icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    color: #38bdf8;
    background: rgba(56,189,248,.10);
    border: 1px solid rgba(56,189,248,.18);
    border-radius: 50%;
    font-size: .7rem;
}

.header-topbar-value {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-topbar-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.68);
    white-space: nowrap;
}

.header-topbar-caption-icon {
    color: #38bdf8;
    font-size: .9rem;
}

.header-premium.scrolled .header-topbar {
    background: rgba(7,17,31,.96);
    backdrop-filter: blur(16px);
}

@media (max-width: 991.98px) {
    .header-topbar-caption {
        display: none;
    }

    .header-topbar-inner {
        justify-content: center;
    }

    .header-topbar-info {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .header-premium .header-topbar {
        min-height: 40px;
        font-size: .72rem;
    }

    .header-topbar-inner {
        min-height: 40px;
    }

    .header-topbar-info {
        gap: 5px;
    }

    .header-topbar-item {
        gap: 6px;
        padding: 2px 7px;
    }

    .header-topbar-icon {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    .header-topbar-value {
        max-width: 150px;
    }
}

@media (max-width: 380px) {
    .header-topbar-item {
        padding-inline: 4px;
    }

    .header-topbar-value {
        max-width: 118px;
    }
}


