/* TEAM SECTION ULTRA PREMIUM */
.team-section {
    padding: 120px 0;
    background: #050505;
    position: relative;
    overflow: hidden;
}

/* Background elements for depth */
.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(245, 166, 35, 0.03), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- HEADER STYLING --- */
.team-section .section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.team-section .section-header h2 {
    font-size: 3.5rem;
    /* Much larger */
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.team-section .section-header .highlight-text {
    font-size: 1.1em;
    /* Make "Couldy Company" slightly larger */
    display: inline-block;
    margin-top: 5px;
}

.team-section .section-header .subtitle {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.9;
    margin-top: 15px;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

/* Decorative lines for subtitle */
.team-section .section-header .subtitle::before,
.team-section .section-header .subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(245, 166, 35, 0.5);
}

.team-section .section-header .subtitle::before {
    left: -40px;
}

.team-section .section-header .subtitle::after {
    right: -40px;
}

/* --- GRID OVERHAUL --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- MEMBER CARD --- */
.team-member {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Card Hover */
.team-member:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(245, 166, 35, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Subtle gold line at bottom on hover */
.team-member::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.team-member:hover::after {
    transform: scaleX(1);
}

/* --- IMAGE WRAPPER (BIGGER & BOLDER) --- */
.team-member-img-wrapper {
    width: 280px;
    /* HUGE wrapper */
    height: 280px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 50%;
    padding: 0;
    /* No padding, direct border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    overflow: hidden;
    background: #000;
}

.team-member:hover .team-member-img-wrapper {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(245, 166, 35, 0.4);
    transform: scale(1.02);
}

/* --- IMAGE STYLE (ZOOMED) --- */
.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Adjusted to focus higher on faces */
    border-radius: 50%;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1.4);
    /* ZOOMED IN BY DEFAULT */
}

/* Hover Image interaction */
.team-member:hover img {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.5);
    /* Slight movement on hover */
}

/* --- TEXT STYLING --- */
.team-member h4 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.team-member:hover h4 {
    color: var(--color-primary);
}

.team-member .role {
    color: #fff;
    opacity: 0.7;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.team-member p {
    color: #888;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        gap: 20px;
    }

    .team-member-img-wrapper {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 500px;
    }

    .team-section .section-header h2 {
        font-size: 2.5rem;
    }
}