﻿/* ==================== ENHANCED LEADERSHIP PAGE UI/UX ==================== */

/* ==================== MAIN SECTION ==================== */
.leadership-section {
    background: var(--bg-primary);
    padding: 140px 0 100px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

    .leadership-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 30%, var(--glow-color) 0%, transparent 40%), radial-gradient(circle at 80% 70%, var(--glow-color) 0%, transparent 40%);
        opacity: 0.15;
        pointer-events: none;
        animation: pulseGlow 8s ease-in-out infinite;
    }

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.25;
    }
}

.leadership-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ==================== HERO HEADER ==================== */
.leadership-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

    .hero-title i {
        font-size: 0.8em;
        color: var(--accent-primary);
        animation: float 3s ease-in-out infinite;
    }

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
}

html.light-mode .hero-subtitle {
    color: #555555;
}

/* ==================== CEO SPOTLIGHT ==================== */
.ceo-spotlight {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border-radius: 35px;
    padding: 80px 60px;
    margin-bottom: 8rem;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 30px 80px var(--shadow-color), 0 0 60px var(--glow-color), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    .ceo-spotlight::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -30%;
        width: 80%;
        height: 180%;
        background: conic-gradient( from 0deg, transparent, var(--glow-color), transparent 90deg );
        animation: rotateConic 10s linear infinite;
        opacity: 0.15;
    }

@keyframes rotateConic {
    100% {
        transform: rotate(360deg);
    }
}

.ceo-spotlight:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 100px var(--shadow-color), 0 0 80px var(--glow-color);
}

html.light-mode .ceo-spotlight {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 40px rgba(249, 168, 37, 0.3);
}

/* ==================== CEO IMAGE WRAPPER ==================== */
.ceo-image-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.image-glow {
    position: absolute;
    inset: -30px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: pulseImage 4s ease-in-out infinite;
}

@keyframes pulseImage {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.image-frame {
    position: relative;
    width: 400px;
    height: 400px;
    padding: 25px;
}

/* Animated Corners */
.corner {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 4px solid var(--accent-primary);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.corner-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 20px 0 0 0;
}

.corner-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 20px 0 0;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 20px;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 20px 0;
}

.image-frame:hover .corner {
    width: 90px;
    height: 90px;
    box-shadow: 0 0 30px var(--glow-color);
}

/* CEO Image */
.ceo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.image-frame:hover .ceo-img {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}

html.light-mode .ceo-img {
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

/* Image Badge */
.image-badge {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px var(--glow-color);
    z-index: 2;
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

html.light-mode .image-badge {
    color: #1a1a1a;
}

/* ==================== CEO CONTENT ==================== */
.ceo-content {
    flex: 1;
    z-index: 1;
}

.ceo-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(249, 168, 37, 0.15);
    color: var(--accent-primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border: 2px solid rgba(249, 168, 37, 0.3);
}

.ceo-name {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.ceo-position {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

html.light-mode .ceo-position {
    color: #555555;
    font-weight: 900;
}

.ceo-bio {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 500;
}

html.light-mode .ceo-bio {
    color: #444444;
    font-weight: 600;
}

/* ==================== CEO ACTIONS ==================== */
.ceo-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-ceo,
.btn-secondary-ceo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary-ceo {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 40px var(--glow-color);
}

html.light-mode .btn-primary-ceo {
    color: #1a1a1a;
}

.btn-primary-ceo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff8c00, #ffd700);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn-primary-ceo:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 60px var(--glow-color);
}

    .btn-primary-ceo:hover::before {
        transform: translateX(0);
    }

.btn-primary-ceo span,
.btn-primary-ceo i {
    position: relative;
    z-index: 1;
}

.btn-secondary-ceo {
    background: transparent;
    color: var(--accent-primary);
    border: 3px solid var(--accent-primary);
}

html.light-mode .btn-secondary-ceo {
    color: #f9a825;
}

.btn-secondary-ceo:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--glow-color);
}

/* ==================== SECTION DIVIDER ==================== */
.section-divider {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 6rem 0 4rem;
}

.divider-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    position: relative;
}

    .divider-line::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 100%;
        background: linear-gradient(90deg, transparent, var(--glow-color), transparent);
        filter: blur(8px);
    }

.divider-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 40px var(--glow-color);
    animation: iconRotate 20s linear infinite;
}

@keyframes iconRotate {
    100% {
        transform: rotate(360deg);
    }
}

html.light-mode .divider-icon {
    color: #1a1a1a;
}

/* ==================== SECTION HEADER ==================== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

html.light-mode .section-description {
    color: #555555;
    font-weight: 600;
}

/* ==================== LEADERSHIP GRID ==================== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 50px;
}

/* ==================== LEADER CARD WITH FLIP EFFECT ==================== */
.leader-card {
    perspective: 1000px;
    height: 550px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.leader-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
    overflow: hidden;
}

/* Card Front */
.card-front {
    background: var(--card-bg-alt);
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 60px var(--shadow-color);
    transition: all 0.5s ease;
}

html.light-mode .card-front {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.card-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.leader-img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(30%);
}

.leader-card:hover .leader-img {
    transform: scale(1.15);
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.leader-card:hover .image-overlay {
    opacity: 1;
}

.overlay-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: repeating-linear-gradient( 45deg, transparent, transparent 15px, rgba(249, 168, 37, 0.08) 15px, rgba(249, 168, 37, 0.08) 30px );
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px var(--glow-color);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.leader-card:hover .card-badge {
    transform: scale(1) rotate(360deg);
}

html.light-mode .card-badge {
    color: #1a1a1a;
}

.card-content {
    padding: 35px 30px;
    text-align: center;
}

.leader-name {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leader-position {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

html.light-mode .leader-position {
    color: #555555;
    font-weight: 900;
}

.card-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 0 auto 1.5rem;
    border-radius: 5px;
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--accent-primary);
    padding: 12px 30px;
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-view-details:hover {
        background: var(--accent-primary);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 30px var(--glow-color);
    }

/* Card Back */
.card-back {
    background: var(--accent-gradient);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 80px var(--shadow-color), 0 0 50px var(--glow-color);
}

.back-content {
    text-align: center;
    padding: 40px;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 2rem;
}

.back-name {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.back-position {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-full-profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--accent-primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-full-profile:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    }

/* ==================== CTA SECTION ==================== */
.leadership-cta {
    margin-top: 8rem;
    padding: 80px 60px;
    background: var(--card-bg);
    border-radius: 35px;
    text-align: center;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 60px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

    .leadership-cta::before {
        content: '';
        position: absolute;
        inset: -50%;
        background: conic-gradient(from 0deg, transparent, var(--glow-color), transparent);
        animation: rotateConic 10s linear infinite;
        opacity: 0.1;
    }

html.light-mode .leadership-cta {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.cta-content {
    position: relative;
    z-index: 1;
}

    .cta-content i {
        font-size: 4rem;
        color: var(--accent-primary);
        margin-bottom: 2rem;
        animation: float 3s ease-in-out infinite;
    }

    .cta-content h3 {
        font-size: clamp(2rem, 3vw, 3rem);
        font-weight: 900;
        margin-bottom: 1.5rem;
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .cta-content p {
        font-size: 1.2rem;
        color: var(--text-secondary);
        max-width: 600px;
        margin: 0 auto 3rem;
        font-weight: 500;
    }

html.light-mode .cta-content p {
    color: #555555;
    font-weight: 600;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--accent-gradient);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 15px 50px var(--glow-color);
    transition: all 0.3s ease;
}

html.light-mode .btn-cta {
    color: #1a1a1a;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 70px var(--glow-color);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .ceo-spotlight {
        padding: 60px 40px;
        gap: 60px;
    }

    .image-frame {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .leadership-section {
        padding: 120px 0 80px;
    }

    .ceo-spotlight {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .image-frame {
        width: 320px;
        height: 320px;
    }

    .ceo-actions {
        justify-content: center;
    }

    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .leadership-section {
        padding: 100px 0 60px;
    }

    .ceo-spotlight {
        padding: 40px 25px;
    }

    .image-frame {
        width: 280px;
        height: 280px;
    }

    .leadership-cta {
        padding: 60px 30px;
    }
}

@media (max-width: 576px) {
    .ceo-spotlight {
        padding: 30px 20px;
    }

    .image-frame {
        width: 240px;
        height: 240px;
    }

    .ceo-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-ceo,
    .btn-secondary-ceo {
        width: 100%;
        justify-content: center;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .leader-card {
        height: 500px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
