/* ============================================
   Team Page Styles - Enhanced with Animations
   ============================================ */

/* CSS Variables for Animations */
:root {
    --team-transition-fast: 0.2s;
    --team-transition-normal: 0.35s;
    --team-transition-slow: 0.5s;
    --team-ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --team-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hero Section */
.team-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d1f3c 100%);
    overflow: hidden;
}

/* Animated gradient overlay */
.team-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/solar.png") center/cover no-repeat;
    opacity: 0.12;
    animation: subtleZoom 30s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Floating orbs effect */
.team-hero .hero-content::before {
    content: "";
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(181, 244, 51, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.team-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to top, #ffffff, transparent);
    z-index: 1;
}

.team-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.team-hero .hero-content {
    text-align: center;
    padding: 140px 0 100px;
    max-width: 850px;
    margin: 0 auto;
}

.team-hero .hero-title {
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.team-hero .hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-weight: 400;
}

.team-hero .hero-ctas {
    justify-content: center;
    margin-bottom: 50px;
}

.team-hero .hero-stats {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.team-hero .stat {
    text-align: center;
}

.team-hero .stat-value {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.team-hero .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Section Common Styles */
.team-section {
    padding: 100px 0;
    background: #ffffff;
}

.governance-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.values-section {
    padding: 100px 0;
    background: #f8faf5;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-overline {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: inline-block;
}

.section-overline.light {
    color: var(--color-primary);
}

.section-header .heading {
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0 0 18px 0;
}

.section-header .heading.light {
    color: #ffffff;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.7);
}

/* Board of Directors Grid - 4 columns */
.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.board-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all var(--team-transition-normal) var(--team-ease-spring);
    border: 1px solid #f1f5f9;
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
}

.board-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
    border-color: rgba(181, 244, 51, 0.3);
}

.board-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5f2a 0%, #268226 100%);
}

/* Image overlay on hover */
.board-card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 70%);
    opacity: 0;
    transition: opacity var(--team-transition-normal) ease;
    z-index: 1;
}

.board-card:hover .board-card-image::before {
    opacity: 1;
}

.board-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--team-transition-slow) var(--team-ease-out-expo);
}

.board-card:hover .board-card-image img {
    transform: scale(1.1);
}

.board-card-content {
    padding: 24px;
    position: relative;
    transition: transform var(--team-transition-fast) ease;
}

.board-card:hover .board-card-content {
    transform: translateY(-5px);
}

.board-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 4px 0;
    transition: color var(--team-transition-fast) ease;
}

.board-card:hover .board-card-name {
    color: var(--color-dark-primary);
}

.board-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px 0;
}

.board-card-bio {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--team-transition-fast) var(--team-ease-spring);
    position: relative;
}

.read-more-btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--team-transition-normal) ease;
}

.read-more-btn:hover {
    color: var(--color-dark-primary);
    gap: 12px;
}

.read-more-btn:hover::after {
    width: 100%;
}

.board-card-social {
    display: flex;
    gap: 10px;
}

.board-card-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-heading);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--team-transition-normal) var(--team-ease-spring);
    position: relative;
    overflow: hidden;
}

.board-card-social a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: scale(0);
    border-radius: 50%;
    transition: transform var(--team-transition-normal) var(--team-ease-spring);
}

.board-card-social a i {
    position: relative;
    z-index: 1;
    transition: transform var(--team-transition-fast) ease;
}

.board-card-social a:hover {
    color: #000000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(181, 244, 51, 0.4);
}

.board-card-social a:hover::before {
    transform: scale(1);
}

.board-card-social a:hover i {
    transform: scale(1.1);
}

/* Governance Highlights */
.governance-highlights {
    background: linear-gradient(135deg, #f8faf5 0%, #ffffff 100%);
    border: 1px solid rgba(181, 244, 51, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    transition: all var(--team-transition-normal) ease;
}

.governance-highlights:hover {
    box-shadow: 0 20px 50px rgba(181, 244, 51, 0.15);
    transform: translateY(-5px);
}

.governance-highlights h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0 0 10px 0;
}

.governance-highlights p {
    font-size: 15px;
    color: var(--color-text);
    margin: 0 0 20px 0;
}

.governance-values {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.value-tag {
    background: var(--color-primary);
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all var(--team-transition-fast) var(--team-ease-spring);
}

.value-tag:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(181, 244, 51, 0.4);
}

/* Corporate Governance / Board Oversight Grid */
.oversight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.oversight-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    transition: all var(--team-transition-normal) var(--team-ease-spring);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on hover */
.oversight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 244, 51, 0.08), transparent);
    transition: left var(--team-transition-slow) ease;
}

.oversight-card:hover::before {
    left: 100%;
}

.oversight-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(181, 244, 51, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.oversight-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(181, 244, 51, 0.2);
    background: linear-gradient(135deg, #1a5f2a 0%, #268226 100%);
    transition: all var(--team-transition-normal) var(--team-ease-spring);
    position: relative;
}

.oversight-card:hover .oversight-image {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(181, 244, 51, 0.4);
}

.oversight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--team-transition-normal) ease;
}

.oversight-card:hover .oversight-image img {
    transform: scale(1.1);
}

.oversight-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    transition: color var(--team-transition-fast) ease;
}

.oversight-card:hover .oversight-name {
    color: var(--color-primary);
}

.oversight-title {
    font-size: 11px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.oversight-bio {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.oversight-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.oversight-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all var(--team-transition-normal) var(--team-ease-spring);
    position: relative;
    overflow: hidden;
}

.oversight-social a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: scale(0);
    border-radius: 50%;
    transition: transform var(--team-transition-normal) var(--team-ease-spring);
}

.oversight-social a i {
    position: relative;
    z-index: 1;
}

.oversight-social a:hover {
    color: #000000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(181, 244, 51, 0.4);
}

.oversight-social a:hover::before {
    transform: scale(1);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all var(--team-transition-normal) var(--team-ease-spring);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* Gradient border effect on hover */
.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #268226, var(--color-primary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--team-transition-normal) ease;
}

.value-card:hover::before {
    transform: scaleX(1);
    animation: gradientSlide 2s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.value-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(181, 244, 51, 0.3);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #268226 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(181, 244, 51, 0.3);
    transition: all var(--team-transition-normal) var(--team-ease-spring);
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(181, 244, 51, 0.5);
}

.value-icon img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
    transition: transform var(--team-transition-fast) ease;
}

.value-card:hover .value-icon img {
    transform: scale(1.1);
}

.value-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0 0 14px 0;
    transition: color var(--team-transition-fast) ease;
}

.value-card:hover .value-title {
    color: var(--color-dark-primary);
}

.value-text {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* Join CTA Section */
.join-cta-section {
    padding: 100px 0;
    text-align: center;
}

.join-cta-content {
    max-width: 650px;
    margin: 0 auto;
}

.join-cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #000000;
    margin: 0 0 18px 0;
}

.join-cta-text {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.7);
    margin: 0 0 36px 0;
    line-height: 1.7;
}

.join-cta-section .button.white {
    display: inline-flex;
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.join-cta-section .button.white:hover {
    background: #1c1c1c;
    transform: translateY(-3px);
}

/* Bio Modal - Enhanced Animations */
.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--team-transition-normal) ease;
}

.bio-modal.active {
    opacity: 1;
    visibility: visible;
}

.bio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bio-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: all var(--team-transition-normal) var(--team-ease-spring);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.bio-modal.active .bio-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.bio-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-heading);
    transition: all var(--team-transition-fast) var(--team-ease-spring);
    z-index: 10;
}

.bio-modal-close:hover {
    background: var(--color-primary);
    color: #000000;
    transform: rotate(90deg) scale(1.1);
}

.bio-modal-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 40px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.bio-modal-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(181, 244, 51, 0.3);
    transition: transform var(--team-transition-normal) ease;
}

.bio-modal-header img:hover {
    transform: scale(1.05);
}

.bio-modal-title h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 6px 0;
}

.bio-modal-title p {
    font-size: 13px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    font-weight: 600;
}

.bio-modal-body {
    padding: 30px 40px;
}

.bio-modal-body p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.bio-modal-body h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 28px 0 16px 0;
}

.bio-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.bio-modal-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
}

.bio-modal-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.bio-modal-footer {
    padding: 24px 40px 40px;
    display: flex;
    justify-content: center;
}

.bio-modal-footer .button {
    gap: 10px;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1200px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .oversight-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .team-hero .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .team-hero .stat-value {
        font-size: clamp(28px, 4vw, 42px);
    }

    .team-hero .stat-label {
        font-size: 11px;
    }

    .bio-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 30px 20px;
    }

    .bio-modal-body,
    .bio-modal-footer {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .team-section,
    .governance-section,
    .values-section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .board-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .oversight-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .team-hero .hero-content {
        padding: 120px 0 80px;
    }

    .team-hero .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 250px;
    }

    .governance-highlights {
        padding: 30px 24px;
    }

    .join-cta-section {
        padding: 70px 0;
    }

    .bio-modal-content {
        border-radius: 16px;
    }

    .bio-modal-header img {
        width: 80px;
        height: 80px;
    }

    .bio-modal-title h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .team-hero .hero-title {
        font-size: 32px;
    }

    .team-hero .hero-subtitle {
        font-size: 15px;
    }

    .board-card-content {
        padding: 20px;
    }

    .board-card-name {
        font-size: 18px;
    }

    .oversight-card {
        padding: 24px 20px;
    }

    .value-card {
        padding: 35px 24px;
    }

    .bio-modal-header,
    .bio-modal-body,
    .bio-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}
