/* Team Intro Hero */
.team-intro {
    position: relative;
    padding: 150px 8% 100px;
    overflow: hidden;
    background: var(--bg-color);
}

/* Background Glow Effect */
.team-intro::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    top: 80px;
    left: -180px;
    background: rgba(0, 191, 255, 0.12);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

/* Main Content Grid */
.team-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
}

/* Team Hero Image */
.team-image {
    position: relative;
}

/* Decorative Image Frame */
.team-image::before {
    content: "";
    position: absolute;
    inset: -15px 15px 15px -15px;
    border: 1px solid var(--button-bg);
    border-radius: 28px;
    opacity: 0.35;
    z-index: 0;
}

/* Hero Image Style */
.team-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 25px 60px var(--shadow-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hero Image Hover */
.team-image img:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px var(--shadow-color);
}

/* Team Intro Content */
.team-content {
    max-width: 560px;
}

/* Intro Title Heading */
.team-content h1 {
    margin-bottom: 25px;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--heading-color);
}

.team-content h1::after {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin: 16px 0 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--button-bg), var(--accent));
}

/* Intro Summary Text */
.team-content p {
    margin-top: 25px;
    color: var(--paragraph-color);
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: left;
}

/* Section Header Titles */
.section-title {
    position: relative;
    width: fit-content;
    margin: 0 auto 55px;
    color: var(--heading-color);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -1px;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--button-bg), var(--accent));
}

/* Shared Section Layouts */
.mentors-section,
.members-section {
    position: relative;
    width: min(100% - 40px, var(--max-width));
    margin: auto;
    padding: 80px 0 100px;
}

.members-section {
    padding-top: 65px;
}

.mentors-section::before,
.members-section::before {
    content: "";
    position: absolute;
    left: 50%;
    width: min(700px, 80%);
    height: 1px;
    top: 0;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(102, 217, 255, 0.22),
        transparent
    );
}

/* Mentor Card Grid */
.mentor-container,
.member-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* Office Bearer Cards */
.member-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-card {
    min-height: 325px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.member-card .social-icons {
    margin-top: auto;
    padding-top: 18px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.social-icons a,
.social-icons i {
    text-decoration: none;
}

.social-icons i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--paragraph-color);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.social-icons a:hover i,
.social-icons i:hover {
    color: white;
    border-color: transparent;
    background: var(--button-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 140, 255, 0.25);
}

/* Mentors Section Grid */
.mentors-section {
    padding: 100px 8%;
}

.mentor-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mentor-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    width: 280px;
    transition: .4s;
}

.mentor-card:hover {
    transform: translateY(10px);
    box-shadow: 0 0 25px var(--shadow-color);
}

.mentor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Team Members Grid */
.members-section {
    padding: 100px 8%;
}

.member-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.member-card {
    width: 280px;
    background: var(--card-bg);
    border-radius: 20px;
    text-align: center;
    padding: 25px;
    transition: .4s;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--shadow-color);
}

.member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.member-card h3 {
    margin-top: 15px;
}

.member-card p {
    color: var(--paragraph-color);
}

.social-icons {
    margin-top: 15px;
}

.social-icons i {
    margin: 0 8px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--button-bg);
}

/* Team Name Buttons */
.team-name {
    margin-top: 30px;
}

.team-name .btn {
    display: inline-block;
    padding: 14px 34px;
    text-decoration: none;
    border-radius: 40px;
    margin: 10px;
    transition: 0.4s;
    background: var(--card-bg);
    color: var(--text-color);
}

.team-name .btn:hover {
    background: var(--button-bg);
    transform: translateY(-5px);
    color: white;
}
