/* =============================================
   Yizhen Jia — Personal Portfolio
   Style: Minimal, warm, typography-driven
   Fonts: Playfair Display (titles) + Inter (body)
   ============================================= */

/* ---- CSS Reset & Variables ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --color-slate:       #37474F;
    --color-secondary:   #546E7A;
    --color-terracotta:  #B0764A;
    --color-bg:          #F7F5F2;
    --color-card:        #FFFFFF;
    --color-text:        #263238;
    --color-muted:       #78909C;
    --color-border:      #E0E0E0;
    --color-terracotta-light: #D4A574;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing (8px base) */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Layout */
    --content-max: 1100px;
    --nav-height:  68px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ---- Base Styles ---- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---- Section Titles ---- */
.section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-slate);
    margin-bottom: var(--space-2xl);
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background-color: var(--color-terracotta);
    border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: #fff;
    border-color: var(--color-terracotta);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #9a6540;
    border-color: #9a6540;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(176, 118, 74, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-slate);
    border-color: var(--color-slate);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--color-slate);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Tags / Chips ---- */
.tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-terracotta);
    background-color: rgba(176, 118, 74, 0.1);
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-slate);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: width var(--transition-base);
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-slate);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-terracotta);
    border: 2px solid var(--color-terracotta);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.nav-resume-btn:hover {
    background-color: var(--color-terracotta);
    color: #fff;
}

/* ---- Hamburger ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-slate);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text {
    animation: fadeUp 0.8s ease forwards;
}

.hero-greeting {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-slate);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.hero-description {
    font-size: 16px;
    color: var(--color-muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ---- Hero Image ---- */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-image-frame {
    position: relative;
    width: 360px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    border: 2px solid var(--color-terracotta);
    z-index: 0;
    opacity: 0.3;
    transform: rotate(3deg);
    transition: transform var(--transition-slow);
}

.hero-image-frame:hover::before {
    transform: rotate(0deg);
}

.hero-portrait {
    width: 90%;
    height: 90%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.06));
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-muted);
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-arrow {
    animation: bounceDown 2s ease infinite;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
    padding: var(--space-4xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-image-wrapper {
    position: relative;
}

.about-photo {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.about-text:last-of-type {
    margin-bottom: var(--space-lg);
}

/* ---- Quick Info ---- */
.quick-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background-color: var(--color-card);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-slate);
}

.info-value a {
    color: var(--color-terracotta);
    font-weight: 500;
}

.info-value a:hover {
    text-decoration: underline;
}

/* ---- Skills ---- */
.skills-section {
    margin-top: var(--space-sm);
}

.skills-heading {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-slate);
    margin-bottom: var(--space-md);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    display: inline-flex;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-slate);
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(176, 118, 74, 0.12);
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */
.experience-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-card);
}

.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-xl) + 4px);
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-terracotta);
    border: 3px solid var(--color-card);
    box-shadow: 0 0 0 2px var(--color-terracotta);
    z-index: 2;
}

.timeline-card {
    padding-bottom: var(--space-xl);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.timeline-company {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-slate);
    line-height: 1.3;
}

.timeline-role {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
    margin-top: 2px;
}

.timeline-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: var(--color-terracotta);
    border-radius: 6px;
}

.timeline-location {
    font-size: 13px;
    color: var(--color-muted);
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.timeline-achievements li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: var(--space-md);
    position: relative;
}

.timeline-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-terracotta);
    opacity: 0.6;
}

.achievement-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
}


.achievement-images {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.achievement-figure {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    margin: 0;
}

.achievement-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
    cursor: pointer;
}

.achievement-figure figcaption {
    font-size: 12px;
    color: var(--color-text-light, #888);
    text-align: center;
    margin-top: 4px;
    line-height: 1.4;
}
   EDUCATION SECTION
   ============================================= */
.education-section {
    padding: var(--space-4xl) 0;
}

.edu-card {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background-color: var(--color-card);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
    max-width: 700px;
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.edu-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-slate);
    border-radius: 14px;
    flex-shrink: 0;
}

.edu-initials {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.edu-school {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-slate);
    line-height: 1.3;
    margin-bottom: 4px;
}

.edu-degree {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.edu-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-muted);
}

.edu-meta-item svg {
    flex-shrink: 0;
}

.edu-meta-item.gpa strong {
    color: var(--color-terracotta);
    font-weight: 700;
}

/* =============================================
   LEADERSHIP SECTION
   ============================================= */
.leadership-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-card);
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.leadership-card {
    padding: var(--space-xl);
    background-color: var(--color-bg);
    border-radius: 14px;
    transition: all var(--transition-base);
    position: relative;
}

.leadership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.leadership-badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background-color: var(--color-terracotta);
    border-radius: 6px;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.leadership-org {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-slate);
    line-height: 1.3;
    margin-bottom: 4px;
}

.leadership-role {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.leadership-date {
    color: var(--color-muted);
    font-weight: 400;
}

.leadership-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
}

/* =============================================
   CONTACT / FOOTER
   ============================================= */
.contact-section {
    padding: var(--space-4xl) 0 var(--space-xl);
    background-color: var(--color-slate);
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-title::after {
    background-color: var(--color-terracotta-light);
}

.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
}

.contact-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.contact-btn {
    margin: 0 auto var(--space-xl);
    background-color: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: #fff;
    font-size: 16px;
    padding: 14px 32px;
    display: inline-flex;
}

.contact-btn:hover {
    background-color: #9a6540;
    border-color: #9a6540;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.social-link:hover {
    color: #fff;
    background-color: var(--color-terracotta);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-card);
    color: var(--color-slate);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-slate);
    color: #fff;
    border-color: var(--color-slate);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible:hover {
    transform: translateY(-3px);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* ---- Scroll-triggered reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* =============================================
   RESPONSIVE — Tablet (768–1199px)
   ============================================= */
@media (max-width: 1199px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image-frame {
        width: 280px;
        height: 320px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 340px;
        margin: 0 auto;
    }

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

    .timeline-header {
        flex-direction: column;
    }

    .timeline-meta {
        text-align: left;
        flex-direction: row;
        align-items: center;
        gap: var(--space-md);
    }

    .edu-card {
        max-width: 100%;
    }
}

/* =============================================
   RESPONSIVE — Mobile (<768px)
   ============================================= */
@media (max-width: 767px) {
    :root {
        --space-4xl: 64px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-name {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-image-frame {
        width: 220px;
        height: 260px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        transition: right var(--transition-base);
        z-index: 1000;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 20px;
    }

    .nav-toggle {
        display: flex;
    }

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

    .quick-info {
        grid-template-columns: 1fr;
    }

    .edu-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-lg);
    }

    .edu-meta {
        justify-content: center;
    }

    .timeline {
        padding-left: var(--space-lg);
    }

    .timeline-dot {
        left: calc(-1 * var(--space-lg) + 4px);
    }

    .timeline-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .scroll-indicator {
        display: none;
    }

    .back-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .nav-resume-btn {
        font-size: 18px;
        padding: 10px 24px;
    }
}

/* =============================================
   GALLERY / CAROUSEL
   ============================================= */
.gallery-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg);
}

.gallery-carousel {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    user-select: none;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background-color: var(--color-card);
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-card);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---- Buttons ---- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
    color: var(--color-slate);
}

.carousel-btn:hover {
    background-color: var(--color-slate);
    color: #fff;
    border-color: var(--color-slate);
}

.carousel-prev {
    left: -22px;
}

.carousel-next {
    right: -22px;
}

/* ---- Dots ---- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-lg);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-dot:hover {
    background-color: var(--color-muted);
}

.carousel-dot.active {
    background-color: var(--color-terracotta);
    transform: scale(1.3);
}

@media (max-width: 767px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    .carousel-prev {
        left: var(--space-sm);
    }
    .carousel-next {
        right: var(--space-sm);
    }
    .carousel-slide {
        aspect-ratio: 4 / 3;
    }
}

/* ---- Leadership Card Images ---- */
.leadership-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.leadership-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background-color: var(--color-border);
    transition: transform var(--transition-fast);
    cursor: pointer;
}

.leadership-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .leadership-images {
        grid-template-columns: 1fr 1fr;
    }
}

.achievement-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-terracotta);
    transition: all var(--transition-fast);
}
.achievement-link:hover {
    color: #9a6540;
    text-decoration: underline;
}
/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    padding: var(--space-lg);
}

.lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay .lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    cursor: default;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.lightbox-overlay.open .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 1;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
}
