/* ============================================================
   PERSONAL HOMEPAGE — Main Stylesheet
   Design: Clean, modern, academic — optimized for readability
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #1a2744;       /* Deep navy */
    --color-primary-light: #243456;
    --color-accent: #c8a45a;        /* Warm gold */
    --color-accent-light: #e0c78a;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f2ed;        /* Warm off-white */
    --color-text: #2d2d2d;
    --color-text-light: #5c5c5c;
    --color-text-muted: #8a8a8a;
    --color-border: #e0dcd5;
    --color-card: #ffffff;
    --color-card-hover: #faf8f4;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 72px;
    --container-max: 1100px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul { list-style: none; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.3;
    color: var(--color-primary);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 17px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

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

.hint {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
    background: #fffbe6;
    border-left: 3px solid var(--color-accent);
    padding: 8px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hint code {
    background: #f0ece0;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-family: var(--font-sans);
}

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

.btn-primary:hover {
    background: #b8943d;
    border-color: #b8943d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: rgba(26, 39, 68, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 39, 68, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent) !important;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8) !important;
    border-radius: 6px;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f1c33 0%, #1a2744 30%, #1f3355 60%, #162040 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 20%, rgba(200, 164, 90, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(200, 164, 90, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
    animation: heroBgShift 20s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(2%, -1%) rotate(1deg); }
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-avatar {
    margin-bottom: 28px;
}

.hero-avatar .avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-accent);
    box-shadow: 0 0 0 6px rgba(200, 164, 90, 0.15);
    margin: 0 auto;
    display: block;
}

.hero-name {
    font-size: clamp(36px, 6vw, 56px);
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-tagline {
    font-size: 18px;
    color: var(--color-accent-light);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.about-quick-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.fact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
}

.fact-icon {
    font-size: 16px;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-photo {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   TIMELINE (Education)
   ============================================================ */
.timeline {
    position: relative;
    padding-left: 28px;
    max-width: 760px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.timeline-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    position: relative;
    transition: all var(--transition);
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-card h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-sub {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
}

.timeline-card ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-card ul li {
    font-size: 15px;
    color: var(--color-text-light);
    padding-left: 16px;
    position: relative;
}

.timeline-card ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.test-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.test-score {
    background: var(--color-bg-alt);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.test-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.test-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================================
   CARDS GRID (Activities)
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.card h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
}

.card-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

.card-period {
    font-size: 13px;
    color: var(--color-text-muted);
}

.card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================================
   COMMUNITY SERVICE
   ============================================================ */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-left: 4px solid var(--color-accent);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.service-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.service-header h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
}

.service-role {
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
}

.service-card > p {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.service-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.stat {
    font-size: 14px;
    color: var(--color-text-light);
}

.stat strong {
    color: var(--color-primary);
    font-size: 18px;
}

/* ============================================================
   HONORS & AWARDS
   ============================================================ */
.honors-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.honor-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-card);
    transition: all var(--transition);
}

.honor-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}

.honor-rank {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.honor-detail h3 {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}

.honor-detail p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.honor-desc {
    margin-top: 6px;
    color: var(--color-text-light) !important;
    font-size: 14px;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition);
    cursor: default;
    min-height: 180px;
}

.gallery-placeholder:hover {
    border-color: var(--color-accent);
    background: #fdfaf4;
}

.gallery-placeholder .placeholder-icon {
    font-size: 36px;
    opacity: 0.5;
}

.gallery-placeholder span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
}

.gallery-placeholder small {
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: monospace;
}

/* ============================================================
   VIDEOS
   ============================================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.video-card {
    transition: all var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition);
    margin-bottom: 12px;
}

.video-placeholder.youtube {
    background: #fff5f0;
    border-color: #ffcdb0;
}

.video-placeholder:hover {
    border-color: var(--color-accent);
}

.video-placeholder .placeholder-icon {
    font-size: 40px;
    opacity: 0.5;
}

.video-placeholder span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
}

.video-placeholder small {
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: monospace;
}

.video-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.video-hint code {
    background: #f0ece0;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
}

.video-card h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    padding: 0 4px;
}

.video-card > p {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 0 4px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    font-size: 15px;
    color: var(--color-text);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--transition);
}

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

/* Contact Form */
.contact-form {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    transition: all var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.12);
}

.form-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ============================================================
   LIGHTBOX (full-screen overlay for gallery & videos)
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.35s ease;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-content video,
.lightbox-content iframe {
    width: 80vw;
    height: 70vh;
    max-width: 1100px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: #000;
}

.lightbox-content .lightbox-placeholder {
    width: 80vw;
    max-width: 700px;
    aspect-ratio: 16 / 10;
    background: rgba(255,255,255,0.04);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
}

.lightbox-placeholder .lb-icon {
    font-size: 56px;
    opacity: 0.5;
}

.lightbox-placeholder span {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}

.lightbox-placeholder small {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    font-family: monospace;
}

/* Lightbox info bar */
.lightbox-info {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin-top: 24px;
    padding: 0 24px;
    transform: translateY(12px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.lightbox.open .lightbox-info {
    transform: translateY(0);
    opacity: 1;
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.lightbox-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.lightbox-counter {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* Lightbox buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-family: var(--font-sans);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 28px;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 30px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Cursor pointer for clickable gallery / video items */
[data-lightbox] {
    cursor: pointer;
}

[data-lightbox]:hover .gallery-placeholder,
[data-lightbox]:hover .video-placeholder {
    border-color: var(--color-accent);
}

[data-lightbox]:hover .gallery-placeholder .placeholder-icon,
[data-lightbox]:hover .video-placeholder .placeholder-icon {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 700px) {
    .lightbox-content img {
        max-height: 50vh;
    }

    .lightbox-content video,
    .lightbox-content iframe {
        width: 95vw;
        height: 40vh;
    }

    .lightbox-content .lightbox-placeholder {
        width: 90vw;
        aspect-ratio: 4 / 3;
    }

    .lightbox-title {
        font-size: 20px;
    }

    .lightbox-desc {
        font-size: 14px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 32px 0;
    font-size: 14px;
}

.footer-tagline {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.7;
}

/* ============================================================
   PANEL CARDS (About / Geneva / Activities)
   ============================================================ */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.panel-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.panel-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.panel-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.panel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.panel-card:hover .panel-thumb img {
    transform: scale(1.08);
}

.panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.panel-card:hover .panel-overlay {
    opacity: 1;
}

.panel-label {
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.panel-body {
    padding: 24px;
}

.panel-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.panel-body p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================================
   PANEL LIGHTBOX (popup for About / Geneva / Activities)
   ============================================================ */
.panel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.panel-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.panel-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.panel-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.panel-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.panel-lightbox-content {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 880px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s ease;
}

.panel-lightbox.open .panel-lightbox-content {
    transform: scale(1) translateY(0);
}

.panel-lightbox-content::-webkit-scrollbar {
    width: 6px;
}

.panel-lightbox-content::-webkit-scrollbar-track {
    background: transparent;
}

.panel-lightbox-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

/* Panel inner content */
.panel-content {
    padding: 0;
}

.panel-content h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    color: var(--color-primary);
    padding: 32px 36px 0;
}

.panel-content > p {
    padding: 0 36px;
    margin-top: 12px;
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.panel-lead {
    font-size: 18px !important;
    color: var(--color-text) !important;
    line-height: 1.8 !important;
}

.panel-header-img {
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.panel-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-header-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    cursor: pointer;
}

.panel-header-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 36px 32px;
    margin-top: 20px;
    border-top: 1px solid var(--color-border);
}

.panel-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
}

.panel-fact span {
    font-size: 18px;
}

/* Panel gallery (inside Geneva popup) */
.panel-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px 36px 32px;
}

.panel-gallery-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.panel-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.panel-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Panel activity cards (inside Activities popup) */
.panel-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 36px 32px;
}

.panel-act-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-act-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.panel-act-card h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    padding: 0;
}

.panel-act-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
}

.panel-act-period {
    font-size: 12px;
    color: var(--color-text-muted);
}

.panel-act-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-top: 8px;
 }

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
}

.play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    padding-left: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
}

.panel-header-video:hover .play-btn {
    transform: scale(1.1);
}

/* ============================================================
   GALLERY TABS
   ============================================================ */
.gallery-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 10px 24px;
    border: 2px solid var(--color-border);
    background: var(--color-card);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-tab:hover {
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.gallery-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ============================================================
   GALLERY GRID WITH REAL IMAGES
   ============================================================ */
.gallery-item-photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.gallery-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-photo:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item-photo:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.gallery-more {
    text-align: center;
    margin-top: 32px;
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition);
}

.btn-outline-dark:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* ============================================================
   VIDEO CARDS WITH THUMBNAILS
   ============================================================ */
.video-placeholder.has-thumb {
    position: relative;
    border: none;
    overflow: hidden;
    background: #000;
}

.video-placeholder.has-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition);
}

.video-card:hover .video-placeholder.has-thumb img {
    transform: scale(1.05);
}

.video-placeholder.has-thumb .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.video-placeholder.has-thumb .play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding-left: 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
}

.video-card:hover .play-btn {
    transform: scale(1.1);
    background: #fff;
}

/* ============================================================
   DOCUMENTS SECTION
   ============================================================ */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
}

.doc-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--color-accent);
}

.doc-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

.doc-info {
    flex: 1;
}

.doc-info h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.doc-info p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.doc-type {
    display: inline-block;
    padding: 2px 10px;
    background: var(--color-bg-alt);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 0.5px;
}

.doc-download {
    font-size: 20px;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.doc-card:hover .doc-download {
    color: var(--color-accent);
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

/* Stagger children */
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-visual {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

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

    .panel-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .panel-cards {
        grid-template-columns: 1fr;
    }

    .panel-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .panel-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        background: var(--color-primary);
        padding: 100px 28px 40px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-links a {
        font-size: 16px;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-name {
        font-size: clamp(28px, 7vw, 40px);
    }

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 140px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .panel-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .panel-lightbox-content {
        width: 95vw;
        max-height: 90vh;
    }

    .panel-content h2 {
        padding: 24px 24px 0;
    }

    .panel-content > p {
        padding: 0 24px;
    }

    .panel-facts {
        padding: 16px 24px 24px;
    }

    .panel-cards {
        grid-template-columns: 1fr;
        padding: 16px 24px 24px;
    }

    .panel-gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 24px 24px;
    }

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

    .section {
        padding: 56px 0;
    }
}

@media (max-width: 440px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

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

    .gallery-item.large {
        grid-column: span 1;
    }

    .gallery-item-photo.large {
        grid-column: span 1;
    }

    .geneva-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-tabs {
        gap: 6px;
    }

    .gallery-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

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

    .panel-cards {
        grid-template-columns: 1fr;
    }

    .panel-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
