﻿/* ===== هدر صفحه ===== */
.page-header {
    margin-top: 100px;
    padding: 80px 20px;
    text-align: center;
}

    .page-header h1 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 20px;
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

    .breadcrumb a {
        color: var(--green-2);
        text-decoration: none;
        transition: all 0.3s;
    }

        .breadcrumb a:hover {
            color: var(--cyan);
        }

/* ===== عنوان بخش‌ها ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section-title h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-title p {
        color: var(--text-secondary);
        font-size: 1.1rem;
    }

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== بخش اطلاعات تماس ===== */
.contact-info-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

    .contact-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient-main);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.4s;
    }

    .contact-card:hover::before {
        transform: scaleX(1);
        transform-origin: left;
    }

    .contact-card:hover {
        transform: translateY(-10px);
        border-color: var(--green-1);
        box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
    }

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    transition: all 0.4s;
}

.contact-card:hover .contact-icon {
    transform: rotateY(360deg);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 5px;
}

/* ===== بخش فرم تماس و نقشه ===== */
.contact-form-section {
    padding: 100px 0;
    background: var(--gradient-soft);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* فرم */
.contact-form-wrapper {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 25px;
}

.form-header {
    margin-bottom: 35px;
}

    .form-header h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: var(--text-primary);
    }

    .form-header p {
        color: var(--text-secondary);
        line-height: 1.8;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        color: var(--text-primary);
        font-weight: 500;
        font-size: 0.95rem;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper i {
        position: absolute;
        right: 18px;
        color: var(--green-2);
        font-size: 1rem;
        pointer-events: none;
        z-index: 2;
    }

    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        width: 100%;
        padding: 14px 50px 14px 18px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        color: var(--text-primary);
        font-family: 'Vazirmatn', sans-serif;
        font-size: 0.95rem;
        transition: all 0.3s;
        outline: none;
    }

    .input-wrapper textarea {
        resize: vertical;
        min-height: 120px;
        padding-top: 18px;
    }

        .input-wrapper input::placeholder,
        .input-wrapper textarea::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .input-wrapper input:focus,
        .input-wrapper select:focus,
        .input-wrapper textarea:focus {
            border-color: var(--green-1);
            background: rgba(16, 185, 129, 0.05);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }

    .input-wrapper select {
        cursor: pointer;
        appearance: none;
    }

        .input-wrapper select option {
            background: var(--dark-bg);
            color: var(--text-primary);
        }

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    }

    .submit-btn i {
        transition: transform 0.3s;
    }

    .submit-btn:hover i {
        transform: translateX(-5px);
    }

/* نقشه */
.map-wrapper {
    position: sticky;
    top: 120px;
}

.map-container {
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 100%;
    min-height: 500px;
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.15);
}

    .map-container iframe {
        width: 100%;
        height: 100%;
        min-height: 500px;
        border: none;
        filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
    }

/* ===== بخش شبکه‌های اجتماعی ===== */
.social-section {
    padding: 100px 0;
}

.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 40px;
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    min-width: 160px;
}

    .social-card:hover {
        transform: translateY(-10px);
    }

.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s;
}

.social-card:hover .social-icon {
    transform: scale(1.1) rotate(10deg);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.telegram {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
}

.social-icon.linkedin {
    background: #0077B5;
}

.social-icon.twitter {
    background: #1DA1F2;
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* ===== بخش سوالات متداول ===== */
.faq-section {
    padding: 100px 0;
    background: var(--gradient-soft);
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

    .faq-item:hover {
        border-color: var(--green-1);
    }

    .faq-item.active {
        border-color: var(--green-1);
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
    }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
}

    .faq-question:hover {
        color: var(--green-2);
    }

    .faq-question i {
        transition: transform 0.3s;
        color: var(--green-2);
    }

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 2;
    text-align: justify;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 20px;
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--gradient-main);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

    .cta-box::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: white;
    color: var(--green-1);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

    .btn-white:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

/* ===== پیام موفقیت فرم ===== */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

    .form-success.show {
        display: block;
        animation: fadeInUp 0.5s ease;
    }

    .form-success i {
        font-size: 4rem;
        color: var(--green-2);
        margin-bottom: 20px;
    }

    .form-success h3 {
        font-size: 1.5rem;
        color: var(--text-primary);
        margin-bottom: 10px;
    }

    .form-success p {
        color: var(--text-secondary);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ریسپانسیو ===== */
@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        position: relative;
        top: 0;
    }

    .map-container {
        min-height: 350px;
    }

        .map-container iframe {
            min-height: 350px;
        }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .contact-form-wrapper {
        padding: 35px 25px;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        gap: 15px;
    }

    .social-card {
        min-width: 130px;
        padding: 20px 25px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .page-header {
        margin-top: 80px;
        padding: 60px 20px;
    }

        .page-header h1 {
            font-size: 1.8rem;
        }
}
