/* Contact Page Specific Styles */

/* Contact Page Cover */
.contact-cover {
    width: 100%;
    height: 70vh;
    background: linear-gradient(0deg, rgba(58, 12, 163, 0.15), rgba(58, 12, 163, 0.15)),
        url('../../images/illustrations/wallpapers/05-section-contact-background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
    padding-top: var(--header-height, 80px);
}


.cover-content {
    position: relative;
    z-index: 10;
}

.contact-cover h1 {
    font-size: 5rem;
    color: white;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.contact-cover .hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.team-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    width: 100%;
}

.team-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 0;
    margin-right: 2.5rem;
    border: 4px solid var(--bg-light);
    flex-shrink: 0;
}

.team-header-info {
    flex: 1;
}

.team-info {
    padding: 0;
}

.team-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: block;
    letter-spacing: 0.05em;
}

.team-bio {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0;
}

.team-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Ecosystem Section Style (Adopted from Home) */
.ecosystem-section {
    background: var(--primary);
    /* Deep Slate (#476573) */
    color: white;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.ecosystem-section .section-header {
    margin: 0 0 3rem;
    max-width: 800px;
}

.ecosystem-section .section-title,
.ecosystem-section .section-subtitle,
.ecosystem-section p {
    color: white !important;
}

.ecosystem-section .section-title::before {
    left: 0;
    transform: none;
    background: linear-gradient(90deg, white, var(--accent));
}

.ecosystem-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(71, 101, 115, 0.3);
    flex-shrink: 0;
}

.tool-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--text-dark);
    font-weight: 700;
    flex: 1;
    text-align: left;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-dark) !important;
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .ecosystem-tools {
        grid-template-columns: 1fr;
    }
}

/* Contact Info Section */
.contact-info-section {
    text-align: center;
    background: white;
}

.contact-channels {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.channel-item {
    text-align: center;
}

.channel-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

/* Mission Section */
.mission-quote {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin: 2rem 0;
    position: relative;
    font-style: italic;
}

.mission-quote::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -2rem;
    left: -1rem;
    opacity: 0.1;
    font-family: serif;
}

/* Origins Section Style (Adopted from Home 'Problem' Section) */
.problem-section {
    background: var(--primary-light);
    /* Soft Teal (#6f959e) */
    color: white;
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.problem-section .section-title,
.problem-section .section-subtitle,
.problem-section p {
    color: white !important;
}

.problem-section .section-title::before {
    background: linear-gradient(90deg, white, var(--accent));
}

.problem-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--danger) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}



@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .btn-group {
        display: flex;
        justify-content: center;
    }

    .section-image {
        order: 1;
    }
}

/* Partners Grid (2x2 with labels) */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.partner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    text-align: center;
    text-decoration: none;
}

.partner-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.partner-box img {
    max-height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.partner-box:hover img {
    transform: scale(1.05);
}

.partner-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: auto;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .partner-box {
        padding: 1.25rem 0.75rem;
    }
    .partner-box img {
        max-height: 35px;
        margin-bottom: 1rem;
    }
    .partner-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .contact-cover {
        height: 30vh;
        padding-top: calc(var(--header-height, 80px) + 2rem);
    }

    .contact-cover h1 {
        font-size: 2.8rem;
        padding: 0 1rem;
        margin-bottom: 0.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-cover .hero-subtitle {
        font-size: 1.25rem;
        padding: 0 1.5rem;
        line-height: 1.5;
    }

    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card {
        padding: 2rem 1.5rem;
    }

    .team-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-img {
        width: 140px;
        height: 140px;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .team-header-info {
        text-align: center;
    }

    .team-social {
        justify-content: center;
    }

    .team-bio {
        text-align: left;
    }

    .contact-channels {
        flex-direction: column;
        gap: 2.5rem;
    }

    .mission-quote {
        font-size: 1.6rem;
    }
}