/* ==================== VARIABLES ==================== */
:root {
    --primary-blue: #0a2463;
    --secondary-blue: #1e3a8a;
    --accent-gold: #d4af37;
    --light-gold: #f4e4b3;
    --dark-navy: #05192d;
    --light-navy: #1a365d;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --text-light: #495057;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== PROJECTS HERO ==================== */
.projects-hero {
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    color: var(--white);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/images/background/Engineering.gif') center/cover no-repeat;
    opacity: 0.15;
}

.projects-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.projects-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.projects-hero p {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ==================== FILTER SECTION ==================== */
.filter-section {
    background: var(--white);
    padding: 40px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-tab {
    padding: 12px 24px;
    background: var(--light-gray);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-tab:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 36, 99, 0.3);
}

.filter-tab i {
    font-size: 1rem;
}

.search-filter {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.sort-select {
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
}

/* ==================== PROJECTS GRID ==================== */
.projects-grid-section {
    padding: 60px 0;
    background: var(--off-white);
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-badge.completed {
    background: #27ae60;
    color: white;
}

.project-badge.ongoing {
    background: #3498db;
    color: white;
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.4;
    min-height: 60px;
    font-weight: 700;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    padding: 6px 12px;
    background: var(--light-gray);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.project-tag.category {
    background: rgba(10, 36, 99, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
    border: 1px solid rgba(10, 36, 99, 0.2);
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-size: 0.9rem;
    text-align: justify;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.stat-item {
    text-align: center;
    padding: 5px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 3px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--medium-gray);
}

.project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.detail-btn, .gallery-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.detail-btn {
    background: var(--primary-blue);
    color: var(--white);
}

.detail-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.3);
}

.gallery-btn {
    background: var(--light-gray);
    color: var(--text-dark);
}

.gallery-btn:hover {
    background: var(--medium-gray);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==================== FEATURED PROJECT ==================== */
.featured-project-section {
    padding: 60px 0;
    background: var(--white);
}

.featured-project {
    background: linear-gradient(135deg, var(--white), var(--off-white));
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    border: 2px solid var(--accent-gold);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-gallery {
    position: relative;
}

.main-featured-image {
    height: 400px;
    overflow: hidden;
}

.main-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-thumbnails {
    display: flex;
    padding: 15px;
    background: var(--light-gray);
    overflow-x: auto;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: var(--accent-gold);
}

.featured-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.featured-info h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.featured-meta span {
    padding: 8px 18px;
    background: var(--light-gray);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.featured-meta .featured-category {
    background: rgba(10, 36, 99, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
}

.featured-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.featured-features {
    margin-bottom: 30px;
}

.featured-features h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.featured-features ul {
    list-style: none;
    padding: 0;
}

.featured-features li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-right: 25px;
}

.featured-features li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.featured-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.cta-btn {
    padding: 15px 35px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.cta-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 36, 99, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.cta-btn.secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ==================== PROJECT STATS ==================== */
.projects-stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    color: var(--white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.stats-container h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.stats-container p {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    border-top: 3px solid var(--accent-gold);
    backdrop-filter: blur(10px);
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 10px;
    display: block;
}

.stat-box .label {
    font-size: 1rem;
    color: var(--light-gray);
}

/* ==================== PAGINATION ==================== */
.pagination-section {
    padding: 40px 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(.active):not(:disabled) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--medium-gray);
    font-size: 1.2rem;
}

.page-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ==================== MODAL ==================== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.modal-content-project {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.4s ease;
}

.modal-close-project {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-project:hover {
    background: #ff5252;
    transform: rotate(90deg);
}

.modal-body-project {
    padding: 40px;
}

.modal-gallery {
    margin-bottom: 30px;
}

.modal-main-image {
    height: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 15px;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.modal-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnail.active {
    border-color: var(--accent-gold);
}

.modal-info h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.modal-meta span {
    padding: 8px 18px;
    background: var(--light-gray);
    border-radius: 20px;
    font-size: 0.9rem;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.detail-column h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-column ul {
    list-style: none;
    padding: 0;
}

.detail-column li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    padding-right: 20px;
}

.detail-column li:before {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--primary-blue);
    font-size: 20px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .projects-hero h1 {
        font-size: 2.3rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .main-featured-image {
        height: 300px;
    }
    
    .featured-info {
        padding: 30px;
    }
    
    .modal-body-project {
        padding: 30px;
    }
    
    .modal-main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 80px 0 40px;
    }
    
    .projects-hero h1 {
        font-size: 2rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tab {
        text-align: center;
        justify-content: center;
    }
    
    .search-filter {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .modal-body-project {
        padding: 20px;
    }
    
    .modal-main-image {
        height: 300px;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .projects-hero h1 {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-btn {
        justify-content: center;
    }
    
    .project-image {
        height: 180px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 400px) {
    .projects-hero {
        padding: 60px 0 30px;
    }
    
    .projects-hero h1 {
        font-size: 1.5rem;
    }
    
    .projects-hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .filter-section {
        padding: 20px 0;
    }
    
    .filter-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .search-box, .sort-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .projects-grid {
        gap: 15px;
        padding: 0 10px;
    }
    
    .project-card {
        border-radius: 6px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-content h3 {
        font-size: 1rem;
        min-height: auto;
    }
    
    .project-description {
        font-size: 0.8rem;
        text-align: right;
    }
    
    .project-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 10px 0;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-btn, .gallery-btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .featured-project-section {
        padding: 30px 0;
    }
    
    .featured-info {
        padding: 20px;
    }
    
    .featured-info h2 {
        font-size: 1.3rem;
    }
    
    .featured-description {
        font-size: 0.9rem;
    }
    
    .projects-stats-section {
        padding: 30px 0;
    }
    
    .stats-container h2 {
        font-size: 1.5rem;
    }
    
    .modal-body-project {
        padding: 15px;
    }
    
    .modal-main-image {
        height: 200px;
    }
    
    .modal-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .modal-info h2 {
        font-size: 1.3rem;
    }
}
/* ==================== HAMBURGER MENU FIX ==================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
       
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid var(--light-gray);
        justify-content: flex-end;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }
    
    .menu-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .menu-backdrop.active {
        display: block;
    }
    
    /* تنظیم padding برای محتوای اصلی زیر هدر */
    .hero-banner {
        margin-top: 60px;
    }
    
    .content-wrapper {
        margin-top: 30px;
    }
}
/* ==================== گالری مودال ==================== */
.project-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.project-gallery-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.project-gallery-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-gallery-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.project-gallery-close:hover {
    background: #ff5252;
    transform: rotate(90deg);
}

.project-gallery-header {
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-gallery-header h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 0;
}

.project-gallery-counter {
    background: var(--light-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.project-gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--dark-navy);
    position: relative;
}

.project-gallery-image-container {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-nav-btn:hover:not(:disabled) {
    background: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav-btn.prev-btn {
    right: 20px;
}

.gallery-nav-btn.next-btn {
    left: 20px;
}

.project-gallery-thumbnails {
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-item.active {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.gallery-thumb-item:hover {
    border-color: var(--primary-blue);
}

/* برای موبایل */
@media (max-width: 768px) {
    .project-gallery-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .project-gallery-image-container {
        height: 400px;
    }
    
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .gallery-thumb-item {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .project-gallery-header h3 {
        font-size: 1.2rem;
    }
    
    .project-gallery-image-container {
        height: 300px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-nav-btn.prev-btn {
        right: 10px;
    }
    
    .gallery-nav-btn.next-btn {
        left: 10px;
    }
    
    .gallery-thumb-item {
        width: 50px;
        height: 50px;
    }
}