/* css/team.css */
/* ---------- PRO TEAM SECTION (exactly as provided, with original :root variables) ---------- */
:root {
    --surface-card: rgba(255, 255, 255, 0.98);
    --surface-card-dark: #ffffff;
    --text-primary: #0a0c10;
    --text-secondary: #2c3e4f;
    --accent-gold: #ffd966;
    --accent-gold-dark: #e6b422;
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 35px -10px rgba(0, 0, 0, 0.12), 0 5px 12px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 30px 45px -12px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 35px 45px -15px rgba(0, 0, 0, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --transition-image: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1), filter 0.4s ease;
    --radius-card: 2rem;
    --radius-image: 1.5rem;
    --grid-gap: 1.8rem;
}
.pro-team-section {
    position: relative;
    width: 100%;
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, #10151f 0%, #0a0e14 100%);
    isolation: isolate;
    overflow: hidden;
}
.pro-team-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}
.pro-team-section::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 220, 100, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.container-pro {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.team-card {
    background: var(--surface-card);
    backdrop-filter: blur(0px);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
}
@media (prefers-color-scheme: dark) {
    .team-card {
        background: rgba(18, 22, 30, 0.95);
        backdrop-filter: blur(2px);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    :root {
        --surface-card-dark: #13171f;
        --text-primary: #f0f3f8;
        --text-secondary: #cbd5e6;
    }
    .team-card {
        background: #13171f;
    }
    .mbr-section-title, .mbr-section-subtitle {
        color: #f0f3f8 !important;
    }
    .mbr-section-subtitle {
        color: #cbd5e6 !important;
    }
}
@media (max-width: 768px) {
    .pro-team-section {
        padding: 3rem 1rem;
    }
    .team-card {
        padding: 1.8rem;
    }
}
.team-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: stretch;
}
@media (min-width: 860px) {
    .team-layout {
        gap: 5rem;
    }
}
@media (min-width: 1280px) {
    .team-layout {
        gap: 6rem;
    }
}
.images-grid {
    flex: 1.2;
    min-width: 240px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    align-items: stretch;
}
.image-frame {
    position: relative;
    border-radius: var(--radius-image);
    overflow: hidden;
    background: #eef2f5;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    aspect-ratio: 0.75 / 1;
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-image);
    will-change: transform;
}
.image-frame:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.image-frame:hover img {
    transform: scale(1.05);
    filter: brightness(1.02) contrast(1.03);
}
.image-frame::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0 0 var(--radius-image) var(--radius-image);
}
.image-frame:hover::after {
    opacity: 0.6;
}
.text-content {
    flex: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
}
.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold-dark);
    background: rgba(255, 217, 102, 0.15);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    width: fit-content;
    backdrop-filter: blur(2px);
}
.mbr-section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0a0c10 0%, #2c3e50 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 0;
}
@media (prefers-color-scheme: dark) {
    .mbr-section-title {
        background: linear-gradient(135deg, #ffffff, #ffdd88);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
}
.mbr-section-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 450;
    text-align: justify;
    margin: 0;
    max-width: 95%;
}
.quote-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), #ffb347);
    border-radius: 4px;
    margin-top: 0.5rem;
}
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.2rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold-dark);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c7a8e;
}
@media (prefers-color-scheme: dark) {
    .stat-label {
        color: #9aa9bf;
    }
}
@media (max-width: 860px) {
    .team-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .images-grid {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    .text-content {
        text-align: left;
    }
    .mbr-section-subtitle {
        max-width: 100%;
    }
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.team-card {
    animation: fadeUp 0.7s ease-out forwards;
}
.image-frame {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: calc(0.1s * var(--order, 1));
}
.image-frame:nth-child(1) { --order: 1; }
.image-frame:nth-child(2) { --order: 2; }
.image-frame {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.3s;
}
/* IMPORTANT: Only hide buttons inside the team section, not globally */
.pro-team-section .btn-container,
.pro-team-section .mbr-section-btn,
.pro-team-section .custom-mbr-section-btn,
.pro-team-section .btn {
    display: none !important;
}
.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
@media (max-width: 480px) {
    .images-grid {
        gap: 1rem;
    }
    .team-card {
        padding: 1.5rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
}
.mbr-overlay, .mbr-fallback-image {
    display: none;
}
