/* ===== CSS VARIABLES ===== */
:root {
    /* Color Palette */
    --c-deep: #0a1428;
    --c-navy: #1e293b;
    --c-teal: #0891b2;
    --c-blue-light: #1e40af;
    --c-purple: #6366f1;
    --white: #FFFFFF;
    --light-gray: #f8fafc;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    
    /* Typography */
    --font-size-sm: 1rem;
    --font-size-base: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-5xl: 3.25rem;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    font-display: swap;
}

/* Prevent font flash by ensuring consistent rendering */
.navbar-brand,
.nav-link,
.btn-demo {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-display: swap;
}

/* ===== BACKGROUND ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 50%, var(--c-blue-light) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ===== HERO SECTION ===== */
.leadership-hero {
    background: rgba(4, 26, 51, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.leadership-hero h1 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
}

.leadership-hero h2 {
    font-size: var(--font-size-lg);
    color: var(--light-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
    white-space: nowrap;
}

/* ===== LEADERSHIP SECTION ===== */
.leadership-section {
    padding: 5rem 0;
    background: #ffffff;
}

.leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leadership-grid-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 0;
    justify-items: center;
    align-items: stretch;
}

.leadership-grid-row:last-child {
    margin-bottom: 0;
}

.leadership-grid-row.single {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: stretch;
}

.leadership-grid-row.triple {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
}

.leadership-grid-row.double {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    justify-items: center;
    align-items: stretch;
}

/* ===== LEADER CARDS ===== */
.leader-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 280px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-deep) 0%, var(--c-teal) 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.leader-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--c-teal);
    background: rgba(255, 255, 255, 0.95);
}

.leader-card:hover::before {
    transform: scaleX(1);
}

.leader-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.leader-card:hover .leader-image {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(10, 20, 40, 0.25);
}

.leader-image i {
    font-size: 2.25rem;
    color: var(--white);
}

.leader-name {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-deep);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.leader-title {
    font-size: 1rem;
    color: var(--c-teal);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

.leader-click-hint {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.leader-card:hover .leader-click-hint {
    color: var(--c-teal);
    opacity: 1;
}

.leader-linkedin {
    margin-top: 0.5rem;
}

.leader-linkedin a {
    color: var(--c-teal);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 116, 144, 0.08);
    border: 1px solid rgba(14, 116, 144, 0.15);
}

.leader-linkedin a:hover {
    color: var(--white);
    background: var(--c-teal);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.3);
}

/* ===== LEADER MODAL STYLES ===== */
.leader-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.leader-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-modal-content {
    background: #ffffff;
    border-radius: 0;
    padding: 1.5rem;
    max-width: 480px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leader-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.leader-modal-close:hover {
    background: #f1f5f9;
    color: var(--c-deep);
}

.leader-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.leader-modal-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.2);
}

.leader-modal-image i {
    font-size: 1.25rem;
    color: var(--white);
}

.leader-modal-name {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--c-deep);
    margin-bottom: 0.5rem;
}

.leader-modal-title {
    font-size: var(--font-size-sm);
    color: var(--c-teal);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.leader-modal-bio {
    color: var(--dark-gray);
    line-height: var(--line-height-relaxed);
}

.leader-modal-bio ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leader-modal-bio li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
    font-size: var(--font-size-sm);
}

.leader-modal-bio li:before {
    content: "▸";
    color: var(--c-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.leader-modal-bio li:last-child {
    margin-bottom: 0;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .leadership-grid {
        max-width: 900px;
    }
    
    .leadership-grid-row.triple {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .leadership-grid-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .leadership-grid-row.double {
        grid-template-columns: 1fr;
    }

    .leadership-grid-row.triple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .leadership-grid-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .leadership-grid-row.double {
        grid-template-columns: 1fr;
    }

    .leadership-hero h1 {
        font-size: 2rem;
    }

    .leader-card {
        padding: 1.5rem 1.25rem;
        width: 100%;
        max-width: 300px;
    }

    .leader-name {
        font-size: 1.25rem;
    }

    .leader-title {
        font-size: 0.95rem;
    }

    .leader-modal-content {
        padding: 2rem;
        margin: 1rem;
    }

    .leader-modal-image {
        width: 80px;
        height: 80px;
    }

    .leader-modal-image i {
        font-size: 1.5rem;
    }
}
