﻿/* === Leader Details Page - Matching Layout Theme === */

/* === Navbar === */
#mainNavbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* === Leader Details Section === */
.leader-details {
    padding: 140px 0 100px;
    background: var(--bg-primary, #0a0a0a);
    min-height: 100vh;
    transition: background 0.5s ease;
}

html.light-mode .leader-details {
    background: var(--bg-primary, #f5f5f5);
}

/* === Profile Card === */
.profile-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(249, 168, 37, 0.2);
    backdrop-filter: blur(20px);
}

html.light-mode .profile-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(249, 168, 37, 0.3);
}

/* === Profile Header === */
.profile-header {
    background: linear-gradient(135deg, #1a1a2e, #0a0a0a);
    padding: 3rem 2rem;
    color: #ffffff;
    position: relative;
    border-bottom: 2px solid rgba(249, 168, 37, 0.2);
}

html.light-mode .profile-header {
    background: linear-gradient(135deg, #f9a825, #ff8c00);
    color: #1a1a1a;
    border-bottom-color: rgba(249, 168, 37, 0.3);
}

.profile-header::before {
    content: "";
    position: absolute;
    inset: -50% -50% auto auto;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(249, 168, 37, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: scale(2);
}

html.light-mode .profile-header::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

/* === Profile Image === */
.profile-image {
    width: 260px;
    height: 320px;
    border-radius: 20px;
    border: 4px solid rgba(249, 168, 37, 0.3);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 15, 25, 0.95);
    display: block;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html.light-mode .profile-image {
    background: rgba(248, 248, 248, 0.95);
    border-color: rgba(249, 168, 37, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-image:hover,
.profile-image:focus {
    border-color: #f9a825;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    outline: none;
}

html.light-mode .profile-image:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.profile-image:focus-visible {
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.5);
}

/* === Profile Text === */
.profile-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #f9a825, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

html.light-mode .profile-title {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-role {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    opacity: 0.9;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

html.light-mode .profile-role {
    color: #ffffff;
    font-weight: 800;
}

.profile-content {
    padding: 3rem 2.5rem;
    color: #bbbbbb;
    background: rgba(15, 15, 25, 0.5);
}

html.light-mode .profile-content {
    color: #444444;
    background: rgba(255, 255, 255, 0.5);
}

/* === Profile Bio === */
.profile-bio {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.9;
    margin-bottom: 2rem;
    font-weight: 500;
}

html.light-mode .profile-bio {
    font-weight: 600;
}

/* === Section Title === */
.section-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 900;
    text-align: center;
    margin: 3rem 0 2rem;
    background: linear-gradient(135deg, #f9a825, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Achievements List === */
.achievements-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
    margin-top: 2rem;
}

.achievement-item {
    background: rgba(26, 26, 46, 0.7);
    padding: 1.8rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(249, 168, 37, 0.2);
}

html.light-mode .achievement-item {
    background: rgba(248, 248, 248, 0.9);
    border-color: rgba(249, 168, 37, 0.3);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: #f9a825;
}

html.light-mode .achievement-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f9a825, #ff8c00);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-right: 1.5rem;
    color: #ffffff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

html.light-mode .achievement-icon {
    color: #1a1a1a;
}

/* === Timeline === */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin-left: 2rem;
    border-left: 4px solid #f9a825;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.5rem;
}

    .timeline-item::before {
        content: "";
        position: absolute;
        left: -14px;
        top: 5px;
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, #f9a825, #ff8c00);
        border: 4px solid rgba(26, 26, 46, 0.95);
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(249, 168, 37, 0.6);
    }

html.light-mode .timeline-item::before {
    border-color: #ffffff;
}

.timeline-date {
    font-weight: 800;
    color: #f9a825;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin: 0.5rem 0;
    font-weight: 800;
    color: #ffffff;
}

html.light-mode .timeline-content h3 {
    color: #1a1a1a;
}

.timeline-content p {
    color: #bbbbbb;
    font-weight: 500;
}

html.light-mode .timeline-content p {
    color: #444444;
    font-weight: 600;
}

/* === Experience Timeline === */
.experience-timeline {
    position: relative;
    margin: 4rem auto;
    padding: 3rem 0;
    width: min(100%, 1200px);
}

    .experience-timeline::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #f9a825, #ff8c00);
        transform: translateX(-50%);
        box-shadow: 0 0 10px rgba(249, 168, 37, 0.6);
    }

    .experience-timeline .timeline-item {
        display: flex;
        justify-content: flex-start;
        margin: 3rem 0;
        padding-left: 0;
    }

        .experience-timeline .timeline-item:nth-child(even) {
            justify-content: flex-end;
        }

    .experience-timeline .timeline-content {
        width: 45%;
        background: rgba(26, 26, 46, 0.8);
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid rgba(249, 168, 37, 0.2);
    }

html.light-mode .experience-timeline .timeline-content {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(249, 168, 37, 0.3);
}

.experience-timeline .timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: #f9a825;
}

html.light-mode .experience-timeline .timeline-content:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.experience-timeline .timeline-item::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 50%;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f9a825, #ff8c00);
    border: 4px solid rgba(26, 26, 46, 0.95);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(249, 168, 37, 0.8);
    z-index: 1;
}

html.light-mode .experience-timeline .timeline-item::before {
    border-color: #ffffff;
}

.experience-timeline .timeline-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

html.light-mode .experience-timeline .timeline-content h3 {
    color: #1a1a1a;
}

.experience-timeline .timeline-content p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: #bbbbbb;
    line-height: 1.7;
    font-weight: 500;
}

html.light-mode .experience-timeline .timeline-content p {
    color: #444444;
    font-weight: 600;
}

/* === Experience Cards === */
.experience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 1s ease;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(249, 168, 37, 0.2);
}

html.light-mode .experience-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(249, 168, 37, 0.3);
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: #f9a825;
}

html.light-mode .experience-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.InfoLeader {
    min-height: 130px;
}

/* === PDF Download === */
.pdf-download {
    margin: 3rem 0;
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f9a825, #ff8c00);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(249, 168, 37, 0.6);
    border: none;
}

html.light-mode .download-button {
    color: #1a1a1a;
}

.download-button i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.download-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 60px rgba(249, 168, 37, 0.8);
}

html.light-mode .download-button:hover {
    box-shadow: 0 12px 50px rgba(249, 168, 37, 0.5);
}

/* === Leadership Gallery === */
.leadership-gallery {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(15, 15, 25, 0.5);
}

html.light-mode .leadership-gallery {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(249, 168, 37, 0.2);
}

html.light-mode .gallery-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(249, 168, 37, 0.3);
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(249, 168, 37, 0.6);
}

html.light-mode .gallery-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(249, 168, 37, 0.4);
}

.image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid rgba(249, 168, 37, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: popIn 0.8s ease forwards, float 3s ease-in-out infinite;
}

html.light-mode .image-wrapper {
    border-color: rgba(249, 168, 37, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-card:hover .image-wrapper {
    transform: scale(1.08);
    border-color: #f9a825;
}

.image-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

html.light-mode .image-loading {
    background: rgba(255, 255, 255, 0.7);
}

.image-wrapper:hover .image-loading {
    opacity: 1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(249, 168, 37, 0.2);
    border-top: 4px solid #f9a825;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.card-info h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin: 0.8rem 0;
    color: #ffffff;
    font-weight: 900;
}

html.light-mode .card-info h3 {
    color: #1a1a1a;
}

.card-info p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: #bbbbbb;
    margin-bottom: 1rem;
    font-weight: 600;
}

html.light-mode .card-info p {
    color: #444444;
    font-weight: 700;
}

.details-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f9a825, #ff8c00);
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(249, 168, 37, 0.4);
}

html.light-mode .details-btn {
    color: #1a1a1a;
}

.details-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(249, 168, 37, 0.6);
}

html.light-mode .details-btn:hover {
    box-shadow: 0 10px 35px rgba(249, 168, 37, 0.5);
}

/* === Animations === */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeUpZoom {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === Responsive Design === */
@media (max-width: 992px) {
    .leader-details {
        padding: 120px 0 80px;
    }

    .experience-timeline::before {
        left: 30px;
    }

    .experience-timeline .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
    }

        .experience-timeline .timeline-item:nth-child(even) {
            justify-content: flex-start;
        }

    .experience-timeline .timeline-content {
        width: 100%;
    }

    .experience-timeline .timeline-item::before {
        left: 30px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .leader-details {
        padding: 100px 0 60px;
    }

    .profile-header {
        padding: 2rem 1.5rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .profile-content {
        padding: 2rem 1.5rem;
    }

    .achievements-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline {
        margin-left: 1rem;
    }
}

@media (max-width: 576px) {
    .profile-image {
        width: 160px;
        height: 160px;
    }

    .profile-content {
        padding: 1.5rem;
    }

    .download-button {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .image-wrapper {
        width: 150px;
        height: 150px;
    }
}
