/* ================================================================ */
/* صفحه معرفی شرکت                                                 */
/* ================================================================ */

/* ---------------------------------------------------------------- */
/* 1. PAGE HERO - هیرو کوچک                                         */
/* ---------------------------------------------------------------- */
.page-hero {
    min-height: 40vh;
    position: relative;
    background: url('/image/about-background.png') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 72px;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 1rem; }
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}
.page-hero-breadcrumb a { color: var(--accent); text-decoration: none; transition: var(--transition); }
.page-hero-breadcrumb a:hover { color: var(--accent-light); }
.page-hero-breadcrumb i { font-size: 0.7rem; }

/* ---------------------------------------------------------------- */
/* 2. ABOUT DETAILS - جزئیات شرکت                                   */
/* ---------------------------------------------------------------- */
.about-details-section { padding: 80px 0; background: var(--bg-white); }
.about-details-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-details-image img { width: 100%; height: auto; transition: transform 0.5s ease; }
.about-details-image:hover img { transform: scale(1.05); }
.about-details-exp {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    min-width: 120px;
    animation: pulse 2s infinite;
}
.about-details-exp .exp-number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.about-details-exp .exp-text { font-size: 0.8rem; color: var(--primary-dark); font-weight: 600; }
.about-details-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.about-details-text { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-details-text {
    line-height: 2;
    text-align: justify;
    overflow-wrap: break-word;
}

.about-details-text p {
    display: block;
    margin: 0 0 22px;
    line-height: 2;
}

.about-details-text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.9;
    margin: 30px 0 16px;
    color: var(--text-dark);
}

.about-details-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-details-text p {
        margin-bottom: 18px;
        text-align: right;
    }

    .about-details-text h3 {
        font-size: 1.15rem;
        margin-top: 24px;
    }
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-light);
}
.about-stats-grid .stat-item { text-align: center; }
.about-stats-grid .stat-number { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.about-stats-grid .stat-label { font-size: 0.7rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- */
/* 3. MISSION & VISION - چشم‌انداز و رسالت                          */
/* ---------------------------------------------------------------- */
.mission-vision-section { padding: 80px 0; background: linear-gradient(145deg, var(--bg-light), var(--bg-white)); }
.mission-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid transparent;
}
.mission-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-bottom-color: var(--accent); }
.mission-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.mission-icon i { font-size: 2rem; color: var(--accent); }
.mission-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-dark); }
.mission-card p { color: var(--text-muted); line-height: 1.7; }

/* ---------------------------------------------------------------- */
/* 4. VALUES - ارزش‌های شرکت                                        */
/* ---------------------------------------------------------------- */
.values-section { padding: 80px 0; background: var(--bg-white); }
.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.value-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}
.value-card:hover .value-icon { background: var(--accent); }
.value-icon i { font-size: 2.2rem; color: var(--accent); transition: var(--transition); }
.value-card:hover .value-icon i { color: var(--primary-dark); }
.value-card h4 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.8rem; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ---------------------------------------------------------------- */
/* 5. TEAM - تیم شرکت                                               */
/* ---------------------------------------------------------------- */
.team-section { padding: 80px 0; background: var(--bg-white); }
.team-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-image { position: relative; overflow: hidden; }
.team-image img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-image img { transform: scale(1.1); }
.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 1rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    transition: bottom 0.3s ease;
}
.team-card:hover .team-social { bottom: 0; }
.team-social a {
    width: 35px;
    height: 35px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: var(--transition);
}
.team-social a:hover { background: var(--accent-dark); transform: scale(1.1); }
.team-info { padding: 1.5rem; text-align: center; }
.team-info h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.3rem; }
.team-info p { color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.team-info small { color: var(--text-muted); font-size: 0.7rem; }

/* ---------------------------------------------------------------- */
/* 6. GALLERY - گالری با اسکرول افقی                               */
/* ---------------------------------------------------------------- */
.gallery-section { padding: 80px 0; background: var(--bg-light); overflow: hidden; }
.gallery-section .scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--primary-light);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}
.gallery-section .scroll-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); transform: scale(1.1); }
.gallery-section .horizontal-scroll-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.gallery-section .horizontal-scroll-container::-webkit-scrollbar { display: none; }
.gallery-section .horizontal-scroll-track { display: flex; flex-direction: row; gap: 1.5rem; padding: 0.5rem 0.2rem; }
.gallery-grid-item {
    position: relative;
    min-width: 280px;
    width: 280px;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex-shrink: 0;
}
.gallery-grid-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.gallery-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid-item:hover img { transform: scale(1.1); }
.gallery-grid-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    padding: 1rem;
    text-align: center;
    transition: bottom 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gallery-grid-item:hover .gallery-grid-overlay { bottom: 0; }
.gallery-grid-overlay i { color: var(--accent); font-size: 1rem; }
.gallery-grid-overlay span { color: white; font-size: 0.8rem; font-weight: 500; }
.gallery-section .horizontal-scroll-track .gallery-grid-item.active-card { transform: scale(1.05); box-shadow: var(--shadow-lg); border: 2px solid var(--accent); }
.gallery-section .scroll-dots { display: flex; justify-content: center; gap: 12px; margin-top: 2rem; padding: 0.5rem; }
.gallery-section .scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-section .scroll-dot.active { width: 28px; border-radius: 10px; background: var(--accent); }
.gallery-section .scroll-dot:hover { background: var(--accent); transform: scale(1.2); }

/* ---------------------------------------------------------------- */
/* 7. LIGHTBOX - لایتباکس بزرگنمایی عکس                             */
/* ---------------------------------------------------------------- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
}
.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 100000;
    animation: lightboxIn 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.lightbox-close:hover { background: var(--accent); color: white; transform: rotate(90deg); }
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.lightbox-prev { right: -60px; }
.lightbox-next { left: -60px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-50%) scale(1.1); }
.lightbox-prev i,
.lightbox-next i { font-size: 1.2rem; font-weight: bold; }
.lightbox-content {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
}
.lightbox-content img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
    background: var(--bg-white);
}
.lightbox-caption {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 16px;
    margin-top: 1rem;
    text-align: center;
}
.lightbox-caption h4 { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.3rem; }
.lightbox-caption p { font-size: 0.8rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- */
/* 8. CONTACT - تماس با ما                                          */
/* ---------------------------------------------------------------- */
.contact-section { padding: 80px 0; background: var(--bg-white); }
.contact-info ul { list-style: none; padding: 0; margin-top: 2rem; }
.contact-info li {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 3px solid var(--primary-light);
}
.contact-info li:hover { transform: translateX(-5px); box-shadow: var(--shadow-sm); border-right-color: var(--accent); }
.contact-info li i { color: var(--accent); font-size: 1.2rem; width: 30px; }
.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.contact-form h3 { font-weight: 700; margin-bottom: 1.5rem; color: var(--text-dark); }
.contact-form .form-control {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-family: 'Vazirmatn', sans-serif;
}
.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}
.btn-submit {
    background: var(--primary);
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-submit:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-2px); gap: 12px; }

/* ---------------------------------------------------------------- */
/* 9. FOOTER - فوتر                                                 */
/* ---------------------------------------------------------------- */
.footer {
    background: var(--primary-dark);
    color: var(--bg-light);
    padding: 2rem 0;
    text-align: center;
}
.footer-content p { margin: 0; }
.footer-content .footer-small { font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.7; }

/* ---------------------------------------------------------------- */
/* 10. RESPONSIVE - ریسپانسیو کامل                                  */
/* ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .page-hero { margin-top: 68px; min-height: 35vh; }
    .about-details-section { padding: 50px 0; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .mission-vision-section, .values-section, .gallery-section, .team-section { padding: 50px 0; }
    .team-image img { height: 250px; }
    .gallery-section .scroll-btn { width: 35px; height: 35px; }
    .gallery-section .scroll-btn i { font-size: 0.8rem; }
    .gallery-grid-item { min-width: 240px; width: 240px; }
    .gallery-section .horizontal-scroll-track .gallery-grid-item.active-card { transform: scale(1.03); }
    .lightbox-prev { right: -40px; width: 35px; height: 35px; }
    .lightbox-next { left: -40px; width: 35px; height: 35px; }
    .lightbox-close { top: -40px; width: 35px; height: 35px; font-size: 1.5rem; }
    .lightbox-content img { max-height: 60vh; }
}
@media (max-width: 576px) {
    .page-hero { min-height: 30vh; }
    .about-details-exp { min-width: 90px; padding: 0.6rem; }
    .about-details-exp .exp-number { font-size: 1.3rem; }
    .mission-card { padding: 1.5rem; }
    .value-card { padding: 1.5rem; }
    .team-info { padding: 1rem; }
    .team-info h4 { font-size: 1rem; }
    .gallery-grid-item { min-width: 200px; width: 200px; }
    .lightbox-prev { right: -30px; width: 30px; height: 30px; }
    .lightbox-next { left: -30px; width: 30px; height: 30px; }
    .lightbox-close { top: -35px; width: 30px; height: 30px; font-size: 1.3rem; }
    .lightbox-caption { padding: 0.7rem; }
    .lightbox-caption h4 { font-size: 1rem; }
}

/* ---------------------------------------------------------------- */
/* 11. ANIMATIONS - انیمیشن‌های سفارشی                              */
/* ---------------------------------------------------------------- */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
/* ================================================================ */
/* اسلایدر سه‌تایی - نسخه تصحیح شده                                */
/* ================================================================ */

.slider-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: #1e293b;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    z-index: 3;
}

/* دکمه‌های قبلی/بعدی */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(5px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

/* دات‌ها */
.slider-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 10px;
}

.slider-dot:hover {
    background: var(--accent);
    transform: scale(1.2);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .slider-dots {
        bottom: 50px;
    }
    .slide-caption {
        font-size: 0.7rem;
        padding: 12px 10px 10px;
    }
}

@media (max-width: 576px) {
    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .slider-dots {
        bottom: 40px;
        gap: 6px;
    }
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    .slider-dot.active {
        width: 20px;
    }
}