/* Hero Section */
.hero {
    height: 40vh;
    position: relative;
    background: var(--white);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #006c8dc0 0%, #0058af7a 100%), url('../assets/Leadership.gif');
    background-position-y: -52vh;
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

/* Leadership Section */
.leadership-section {
    padding: 100px 60px;
    background: var(--white);
}

.leadership-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.leader-tile {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leader-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--obx-mid-blue);
}

.leader-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.leader-tile:hover .leader-image img {
    transform: scale(1.05);
}

.leader-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 24px;
    transition: all 0.3s ease;
}

.leader-tile:hover .leader-overlay {
    background: linear-gradient(to top, rgba(0, 132, 169, 0.95) 0%, rgba(0, 132, 169, 0.75) 60%, rgba(0, 132, 169, 0.2) 100%);
}

.leader-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 60px 20px;
}

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

.modal-container {
    background: var(--white);
    max-width: 900px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--obx-red);
    border: none;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #c41531;
    transform: rotate(90deg);
}

.modal-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 48px;
    border-bottom: 1px solid #e0e0e0;
    background: var(--bg-light);
}

.modal-image {
    width: 200px;
    min-height: fit-content;
    object-fit: cover;
    object-position: top center;
}

.modal-title-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--obx-mid-blue);
    margin-bottom: 8px;
}

.modal-position {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.modal-linkedin {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.modal-linkedin:hover {
    opacity: 0.7;
}

.modal-linkedin img {
    height: 28px;
    width: auto;
}

.modal-bio {
    padding: 48px;
}

.modal-bio p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

/* Hide modal templates */
.modal-templates {
    display: none !important;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 60px 40px;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    font-size: 14px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--obx-light-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 968px) {
    
    .leadership-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .modal-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modal-image {
        width: 100%;
        height: 250px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .leadership-section {
        padding: 60px 24px;
    }

    .leadership-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .leader-name {
        font-size: 20px;
    }

    .modal-overlay {
        padding: 20px;
    }

    .modal-container {
        max-height: 95vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .modal-header {
        padding: 32px 24px;
    }

    .modal-bio {
        padding: 32px 24px;
    }

    .footer {
        padding: 60px 24px 40px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}