/* ===============================
   TEAM SECTION - RESPONSIVE PRO
   (FINAL PREMIUM VERSION)
================================= */

.paveny-team-section{
    padding: 20px 20px;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #fff;
    overflow: hidden;
}

/* Container */
.paveny-team-section .container{
    max-width: 1200px;
    margin: 0 auto;
}

/* ===============================
   HEADER
================================= */

.team-header{
    text-align: center;
    margin-bottom: 60px;
}

.team-header h2{
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 10px;
}

.team-header p{
    opacity: 0.7;
    font-size: clamp(14px, 2vw, 16px);
}

/* ===============================
   FEATURED CARD
================================= */

.team-featured{
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.team-card{
    width: 100%;
    max-width: 300px;
    perspective: 1000px;
}

/* FLIP INNER */
.team-card .inner{
    position: relative;
    width: 100%;
    min-height: 380px;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

/* Hover only desktop */
@media (hover: hover){
    .team-card:hover .inner{
        transform: rotateY(180deg);
    }
}

/* Touch support */
.team-card.active .inner{
    transform: rotateY(180deg);
}

/* FACE */
.team-face{
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* FRONT IMAGE */
.team-img img{
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* INFO */
.team-info{
    padding: 18px;
    text-align: center;
}

/* BACK */
.team-back{
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* ===============================
   SOCIAL ICONS
================================= */

.team-socials{
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.team-socials a{
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;

    border-radius: 50%;
    text-decoration: none;

    background: rgba(255,255,255,0.08);
    color: #fff;

    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);

    transition: 0.3s ease;
}

.team-socials a:hover{
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 25px rgba(59,130,246,0.4);
}

/* ===============================
   TEAM GRID (2 MEMBERS)
================================= */

.team-row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ===============================
   GROUP IMAGE
================================= */

.team-group-image{
    text-align: center;
    margin: 50px 0;
}

.team-group-image img{
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

/* ===============================
   CTA BUTTON - PREMIUM UPGRADE
================================= */

.team-cta{
    text-align: center;
}

/* 💎 PREMIUM BUTTON */
.team-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #CE0F2C;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    letter-spacing: .5px;
    cursor: pointer;
    z-index: 1;

    /* animation */
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.7s ease-out forwards;
}

.team-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-20deg);
    transition: .5s;
}

.team-btn:hover::before {
    left: 120%;
}

.team-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 28px rgba(206,15,44,0.4);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   RESPONSIVE BREAKPOINTS
================================= */

/* Tablet */
@media (max-width: 992px){
    .team-row{
        grid-template-columns: 1fr;
    }

    .team-card{
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 576px){
    .paveny-team-section{
        padding: 70px 15px;
    }

    .team-img img{
        height: 220px;
    }

    .team-socials a{
        width: 34px;
        height: 34px;
    }
}

/* Small mobile */
@media (max-width: 400px){
    .team-btn{
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}