/* ===== COUNCIL OF MAGES - TEAM SECTION ===== */

.team-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, #FFFFFF 100%);
    padding: 120px 20px;
    overflow: hidden;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ===== FLOATING ORBS ===== */
.team-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.team-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(177, 0, 0, 0.2), transparent);
    border-radius: 50%;
    filter: blur(60px);
    animation: float-orb 10s ease-in-out infinite;
}

.team-orb:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.team-orb:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.team-orb:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* ===== CONTAINER ===== */
.team-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */
.team-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
}

.team-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    background: linear-gradient(45deg, #B10000, #000000, #B10000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.team-subtitle {
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #8B0000;
}

/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* ===== MAGE CARD ===== */
.mage-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
    border: 2px solid rgba(177, 0, 0, 0.12);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    transition: all 0.5s ease;
    perspective: 1000px;
}

.mage-card:hover {
    border-color: #B10000;
    transform: translateY(-15px) rotateX(0deg);

}

/* ===== MAGE AVATAR ===== */
.mage-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.avatar-ring {
    position: absolute;
    inset: -15px;
    border: 3px solid rgba(177, 0, 0, 0.12);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(177, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #B10000;
    animation: spin-ring 4s linear infinite;
}

@keyframes spin-ring {
    to {
        transform: rotate(360deg);
    }
}

.mage-card:hover .avatar-ring {
    border-color: #B10000;
    transform: scale(1.1) rotate(180deg);
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(177, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.mage-card:hover .avatar-image {
    border-color: #B10000;
    transform: scale(1.05);
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(177, 0, 0, 0.15), transparent);
    border-radius: 50%;
    opacity: 0;
    filter: blur(30px);
    transition: opacity 0.5s ease;
}

.mage-card:hover .avatar-glow {
    opacity: 1;
}

/* ===== MAGE INFO ===== */
.mage-name {
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
    color: #B10000;
    margin-bottom: 10px;
    font-weight: 700;
}

.mage-title {
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    color: #8B0000;
    font-style: italic;
    margin-bottom: 20px;
}

.mage-specialty {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    color: #B10000;
    background: rgba(177, 0, 0, 0.1);
    border: 1px solid rgba(177, 0, 0, 0.12);
    border-radius: 25px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mage-bio {
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    color: #000000;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ===== MAGE STATS ===== */
.mage-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid rgba(177, 0, 0, 0.2);
}

.mage-stats .stat-item {
    text-align: center;
    opacity: 1 !important;
    transform: scale(1) !important;
}

.mage-stats .stat-value {
    font-size: 2rem;
    font-family: 'Cinzel', serif;
    color: #B10000;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.mage-stats .stat-label {
    font-size: 0.85rem;
    font-family: 'Cormorant Garamond', serif;
    color: #8B0000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SOCIAL LINKS ===== */
.mage-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #B10000;
    background: rgba(177, 0, 0, 0.1);
    border: 2px solid rgba(177, 0, 0, 0.12);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(177, 0, 0, 0.2);
    border-color: #B10000;
    transform: translateY(-5px) rotate(360deg);

}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .team-section {
        padding: 100px 20px 80px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 100px 20px 80px;
        overflow-x: hidden;
    }

    .team-container {
        max-width: 100%;
        padding: 0 10px;
    }

   

    .mage-avatar {
        width: 150px;
        height: 150px;
    }
}
