/* ===== گالری تصاویر ===== */
:root {
    --primary-color: #000000;
    --secondary-color: #04ecff;
    --accent-color: #ff1cf8;
    --hover-gradient: linear-gradient(270deg, #04ecff 0%, #ff1cf8 100%);
    --shadow-color: rgba(97, 196, 255, 0.5);
    --glow-effect: 0 0 20px rgba(97, 196, 255, 0.3);
}

/* استایل‌های عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Vazirmatn, Tahoma;
    background: var(--primary-color);
    color: white;
    line-height: 1.8;
    overflow-x: hidden;
    padding-top: 70px;
}

/* ===== ناوبری ===== */
.navbar {
    background: rgba(0, 0, 0, 0.97) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    height: 70px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-right: 45px;
    margin: 0;
    background: var(--hover-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand h2 i {
    font-size: 1.7rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    -webkit-text-fill-color: initial;
    color: var(--secondary-color);
    animation: dumbbellPulse 2s infinite ease-in-out;
}

@keyframes dumbbellPulse {
    0%, 100% { 
        transform: translateY(-50%) scale(1);
        filter: drop-shadow(0 0 5px var(--secondary-color));
    }
    50% { 
        transform: translateY(-50%) scale(1.1);
        filter: drop-shadow(0 0 15px var(--secondary-color));
    }
}

.nav-link {
    color: #ddd !important;
    font-weight: 500;
    padding: 10px 5px !important;
    margin: 0 3px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 40%;
    height: 2px;
    background: var(--hover-gradient);
    border-radius: 2px;
    animation: lineWidth 2s ease-in-out infinite alternate;
}

@keyframes lineWidth {
    from { width: 40%; }
    to { width: 60%; }
}

.cta-button {
    background: linear-gradient(90deg, #04ecff 0%, #ff1cf8 100%) !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(97, 196, 255, 0.4) !important;
    color: white !important;
}

/* ===== هدر گالری ===== */
.gallery-header {
    padding: 40px 0 20px;
    background: linear-gradient(135deg, rgba(4, 236, 255, 0.05), rgba(255, 28, 248, 0.05));
}

.section-title {
    background: var(--hover-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 2.5rem;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #04ecff 0%, #ff1cf8 50%, #04ecff 100%);
    border-radius: 2px;
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

/* ===== فیلتر دکمه‌ها ===== */
.gallery-filter-section {
    padding: 20px 0 10px;
    position: sticky;
    top: 70px;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #aaa;
    border-radius: 50px;
    font-family: Vazirmatn, Tahoma;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: white;
    border-color: var(--secondary-color);
    background: rgba(4, 236, 255, 0.1);
}

.filter-btn.active {
    background: var(--hover-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(97, 196, 255, 0.3);
}

/* ===== گرید گالری ===== */
.gallery-grid-section {
    padding: 40px 0 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(4, 236, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #111;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(4, 236, 255, 0.2);
}

.gallery-item.hide {
    display: none;
}

.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.08);
}

/* ===== اورلی ===== */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info {
    color: white;
}

.gallery-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    background: var(--hover-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-info p {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 8px;
}

.gallery-category-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ddd;
}

/* ===== انیمیشن ورود ===== */
.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.10s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.20s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.30s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.40s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.50s; }
.gallery-item:nth-child(11) { animation-delay: 0.55s; }
.gallery-item:nth-child(12) { animation-delay: 0.60s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== مودال ===== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 15px;
    border: 2px solid rgba(4, 236, 255, 0.3);
    box-shadow: 0 0 60px rgba(4, 236, 255, 0.2);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-nav:hover {
    background: rgba(4, 236, 255, 0.2);
    color: var(--secondary-color);
}

.modal-prev {
    right: 20px;
}

.modal-next {
    left: 20px;
}

.modal-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 80%;
}

/* ===== بخش تماس ===== */
.branch-card {
    background: linear-gradient(135deg, rgba(4, 236, 255, 0.05), rgba(255, 28, 248, 0.05));
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(4, 236, 255, 0.2);
    margin-bottom: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.branch-card:hover {
    box-shadow: var(--glow-effect);
    border-color: var(--accent-color);
}

.branch-icon {
    background: var(--hover-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin-left: 10px;
}

.grad {
    background: var(--hover-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
    background-size: 200% 100%;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gra {
    background: var(--hover-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icon {
    background: var(--hover-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px var(--shadow-color));
}

.bg-dark {
    background: #0a0a0a;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    body {
        padding-top: 65px;
    }
    
    .gallery-filter-section {
        top: 65px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .navbar {
        height: 60px;
        padding: 0.7rem 0;
    }
    
    .navbar-brand h2 {
        font-size: 1.3rem;
        padding-right: 35px;
    }
    
    .gallery-filter-section {
        top: 60px;
        padding: 15px 0 10px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
    
    .modal-nav {
        font-size: 1.8rem;
        padding: 15px 10px;
    }
    
    .modal-prev {
        right: 10px;
    }
    
    .modal-next {
        left: 10px;
    }
    
    .modal-caption {
        font-size: 0.9rem;
        padding: 10px 20px;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    .gallery-overlay {
        padding: 20px 15px 15px;
    }
    
    .gallery-info h4 {
        font-size: 0.9rem;
    }
    
    .gallery-info p {
        font-size: 0.75rem;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}