@font-face {
    font-family: vazirFont;
    src: url(../font/vazir/Vazirmatn-Regular.ttf);
    src: url(../font/vazir/Vazir-Regular-FD-WOL.ttf);

}

@font-face {
    font-family: nunitoFont;
    src: url(../font/Nunito/Nunito-VariableFont_wght.ttf);
    src: url(../font/Nunito/Nunito-Italic-VariableFont_wght.ttf);

}

:root {
    --primary: #0A2540;
    --accent: #00C8E0;
    --accent-dark: #008C99;
    --accent-hover: #116DFF;
    --white: #FFFFFF;
    --text: #7A7A7A;
    --highlight: #FFD700;
    --light-bg: #F8F9FA;
    --border: #E9ECEF;
    --text-light: #7A7A7A;
    --quote-bg: #F0F7FA;
    --accent-500: #3b82f6;
    --accent-600: #1d4ed8;
    --accent-grad: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --yellow: #fbbf24;
    --muted: #6b7280;
    --card-bg: #ffffff;
    --card-border: #eef2f7;
    --shadow-soft: 0 10px 25px rgba(2, 6, 23, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Vazir, vazirFont, nunitoFont, serif !important;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-dark);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.section {
    padding: 50px 0;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 40px;
    max-width: 700px;
}


.pagination-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.pagination .page-item .page-link {
    padding: 0.5rem 1rem;
    border-radius: 100%;
    background-color: var(--bs-info);
    text-decoration: none;
}

.pagination li.active .page-link {
    background-color: var(--primary);
    color: white;
    border-radius: 100%;
}

.page-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--bs-pagination-color);
    background-color: var(--bs-pagination-bg);
    border: 1px solid var(--bs-pagination-border-color);
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

.page-link:hover {
    color: var(--bs-pagination-hover-color);
    background-color: var(--accent);
}

.page-item.active .page-link {
    color: var(--bs-pagination-active-color);
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link:focus {
    box-shadow: var(--bs-pagination-focus-box-shadow);
}

.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    order: 3;
}

.logo img {
    height: 40px;
    margin-left: 10px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    order: 2;
    margin: 0 auto;
    flex-grow: 1;
    justify-content: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: var(--primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent) !important;
}

.header-btn {
    order: 3;
}

.navbar-toggler {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    order: 1;
}

.offcanvas {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.offcanvas.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.offcanvas-title {
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
}

.close-offcanvas {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.offcanvas-menu {
    margin-top: 20px;
}

.offcanvas-item {
    margin-bottom: 15px;
}

.offcanvas-link {
    color: var(--white);
    font-size: 1rem;
    display: block;
    padding: 10px 0;
}

.offcanvas-link:hover {
    color: var(--accent);
}

.offcanvas-link.active {
    color: var(--accent) !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

@media (max-width: 991px) {
    .header-container {
        justify-content: space-between;
    }

    .navbar-toggler {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .header-btn {
        order: 1;
    }

    .logo {
        order: 2;
        justify-content: center;
        flex-grow: 1;
    }

}

.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: absolute;
    top: 20%;
    right: 10%;
    color: white;
    z-index: 2;
    max-width: 600px;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
}

.slide-subtitle {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    width: 30%;
}

.about-content {
    width: 70%;
}

.about-text {
    margin-bottom: 30px;
    text-align: justify;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1rem;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(to left, var(--primary), #0F3A5F);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
}

.breadcrumb-item {
    margin: 0 5px;
    opacity: 0.8;
}

.breadcrumb-item.active {
    opacity: 1;
    color: var(--accent);
}

.breadcrumb-separator {
    margin: 0 5px;
}

/* History Section */
.history {
    background-color: var(--white);
}

.history-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.history-content {
    text-align: justify;
    width: 100%;
    margin: auto;
}

.history-image {
    width: 40%;
}

.history-text {
    margin-bottom: 30px;
}

.history-text p {
    margin-bottom: 15px;
}

.history-items {
    display: flex;
    justify-content: space-around;
    margin: 20px;
}

.circle-box {
    text-align: center;
}

.circle {
    width: 120px;
    height: 120px;
    padding: 10px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
}

.circle-box span {
    display: block;
    margin-top: 8px;
    font-weight: bold;
    color: var(--primary);
}

/* Certificates Section */
.certificates {
    background-color: var(--light-bg);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.certificate-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.certificate-image {
    height: 220px;
    display: flex;
}

.certificate-image svg {
    max-height: 100%;
    max-width: 100%;
}

.certificate-title {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.certificate-year {
    font-size: 1.2rem;
    color: var(--accent);
    background: none;
}

/* Vision Section */
.vision {
    background: linear-gradient(to left, var(--primary), #0F3A5F);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.vision-container {
    position: relative;
    z-index: 2;
}

.vision .section-title {
    color: var(--white);
}

.vision .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.vision-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.vision-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

.vision-item {
    position: relative;
    width: 20%;
    text-align: center;
    padding-top: 80px;
}

.vision-year {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 2;
}

.vision-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.vision-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 30px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 100px;
    height: 100px;
    color: var(--accent);
    margin: auto;
}

.service-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-text {
    margin-bottom: 20px;
}

.clients-section {
    background: #f8f9fa;
}

.client-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 20px;
}

.client-section-title::before,
.client-section-title::after {
    content: "";
    flex: 1;
    border-bottom: 3px solid var(--accent-dark);
    margin: 0 10px;
}

.client-logo {
    width: 100px;
    height: 100px;
    margin: auto;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

.client-logo img {
    object-fit: contain;
}

.client-logo:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

.table-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.table-wrapper.single table {
    width: 50%;
}

.table-wrapper.double {
    gap: 20px;
}

.table-wrapper.double .table-half {
    flex: 1;
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
}

/* Projects Section */
.projects {
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    height: 300px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.9), transparent);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.projects-title {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.projects-category {
    color: var(--accent);
    font-size: 0.9rem;
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(0, 200, 224, 0.1);
    border-radius: 20px;
    margin-bottom: 10px;
}

.projects-description {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Project Banner */
.project-banner {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.project-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 37, 64, 0.2), rgba(10, 37, 64, 0.8));
    display: flex;
    align-items: flex-end;
}

.project-banner-content {
    padding: 40px;
    color: var(--white);
    width: 100%;
}

.project-title {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Project Info */
.project-info {
    background-color: var(--white);
    padding: 40px 0;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.info-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: bold;
}

.project-details-wrapper {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.description-container {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: flex-start;
}

.description-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.description-content p {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.8;
}

.gallery-container {
    display: flex;
    flex-direction: column;
}

.gallery-main {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #f2f2f2;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumbnail.active {
    opacity: 1;
    border: 2px solid var(--accent);
}

.gallery-thumbnail:hover {
    opacity: 1;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Timeline */
.project-timeline {
    background-color: var(--white);
    padding: 60px 0;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}


.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--accent);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    right: auto;
    left: -10px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.left::after {
    left: auto;
    right: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text);
}

/* Comments */
.star {
    transition: all 0.2s ease;
    cursor: pointer;
}

.star:hover {
    transform: scale(1.1);
}

.star.filled {
    color: #fbbf24;
}

.star.empty {
    color: #d1d5db;
}

.comment-card {
    transition: all 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.reply-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-right: 4px solid #3b82f6;
}

.submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to left, var(--primary), #0F3A5F);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Gallery Section */
.gallery {
    background-color: var(--light-bg);
    overflow: hidden;
}

.gallery-container {
    position: relative;
    padding: 60px 0;
}

.gallery-carousel {
    position: relative;
    perspective: 1000px;
    height: 400px;
}

.carousel-container {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}

.carousel-item {
    position: absolute;
    width: 60%;
    height: 100%;
    left: 20%;
    top: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    opacity: 0.7;
    transform-origin: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 20;
}

.carousel-btn {
    background-color: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background-color: var(--accent);
    transform: scale(1.1);
}

/* Page Header */
.page-header {
    padding: 60px 0;
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 200, 224, 0.3) 0%, rgba(10, 37, 64, 0.3) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 40px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--light-bg);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--border);
}

.filter-btn.active {
    background-color: var(--accent);
    color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Blog Section */
.blog {
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.blog-excerpt {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 14px;
}

.related-link {
    display: inline-block;
    font-weight: bold;
    color: var(--accent);
    position: relative;
}

.related-link::after {
    content: '\f177';
    font-family: 'Font Awesome 5 Free', serif;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.related-link:hover::after {
    margin-right: 10px;
}

.article-header {
    padding: 60px 0 40px;
    background-color: var(--light-bg);
}

.article-header-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.article-header-content {
    padding-right: 20px;
}

.article-category {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-author {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 10px;
}

.article-date {
    display: flex;
    align-items: center;
}

.article-date i,
.article-author i {
    margin-left: 5px;
    color: var(--accent);
}

.article-header-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Article Content */
.article-content {
    padding: 60px 0;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.9;
}

.article-subheading {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 40px 0 20px;
    position: relative;
    padding-right: 15px;
}

.article-subheading::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.article-quote {
    background-color: var(--quote-bg);
    border-right: 4px solid var(--accent);
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
    position: relative;
}

.article-quote::before {
    content: '\201D';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: serif;
}

.article-quote p {
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.article-quote cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--primary);
    font-style: normal;
}

.article-list {
    margin: 30px 0;
    padding-right: 20px;
}

.article-list li {
    margin-bottom: 15px;
    position: relative;
    padding-right: 25px;
}

.article-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.article-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Article Tags */
.article-tags {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.tags-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background-color: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a2540' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.testimonials-container {
    position: relative;
    z-index: 2;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 15px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    border: 3px solid var(--accent);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--accent);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* Team Section */
.team {
    position: relative;

    background-color: var(--light-bg);
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a2540' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none; /* برای جلوگیری از پوشاندن کلیک‌ها */
    z-index: 1;
}

.team > * {
    position: relative;
    z-index: 2; /* برای اینکه محتوای درون تیم روی پس‌زمینه باشه */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    background-color: rgba(10, 37, 64, 0.8);
    transition: all 0.3s ease;
}

.team-member:hover .member-social {
    bottom: 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.member-position {
    font-size: 0.9rem;
    color: var(--accent);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-container {
    margin: auto;
}

.footer-about p {
    margin-bottom: 20px;
    text-align: justify;
    opacity: 0.8;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .history-items {
        margin: 5px !important;
    }

    .circle {
        width: 105px !important;
        height: 105px !important;
    }

    .contact-info-container,
    .contact-form-container {
        width: 100% !important;
    }

    .hamburger {
        display: block;
    }

    .about-container {
        flex-direction: column-reverse;
    }

    .about-image, .about-content {
        width: 100%;
    }

    .services-grid, .projects-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-container, .mission-container {
        flex-direction: column;
    }

    .article-title {
        font-size: 1.5rem !important;
    }

    .history-content, .history-image, .mission-content, .mission-image {
        width: 100%;
    }

    .services-grid, .certificates-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .machinery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vision-timeline {
        flex-wrap: wrap;
    }

    .vision-item {
        width: 45%;
        margin-bottom: 50px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .slider {
        height: 500px;
    }

    .contact-info-container,
    .contact-form-container {
        width: 100% !important;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-image {
        display: none;
    }

    .services-grid, .projects-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        gap: 20px;
    }

    .carousel-item {
        width: 80%;
        left: 10%;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .project-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .description-container {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-container::after {
        right: 31px;
        margin-right: 0;
    }

    .timeline-item {
        width: 100%;
        padding-right: 70px;
        padding-left: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: auto;
        right: 21px;
    }

}

@media (max-width: 768px) {
    .project-title {
        font-size: 2.5rem;
    }

    .project-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-main {
        height: 350px;
    }

    .contact-info-container,
    .contact-form-container {
        width: 100% !important;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 30px;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .services-grid, .certificates-grid, .machinery-grid {
        grid-template-columns: 1fr;
    }

    .vision-item {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .project-banner {
        height: 350px;
    }

    .project-title {
        font-size: 2rem;
    }

    .contact-info-container,
    .contact-form-container {
        width: 100%;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 250px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 20px;
    }

    .map-container {
        height: 300px;
    }

    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
}