/* ──────────────────────────────────────────────────────────────────── */
/* ROOT & TYPOGRAPHY */
/* ──────────────────────────────────────────────────────────────────── */

:root {
    --color-primary: #967423;
    --color-accent: #FCDD76;
    --color-bg: #1a1a1a;
    --color-surface: #252525;
    --color-text: #f5f2ed;
    --color-text-muted: #b8cdd6;
    --color-border: #3a4a52;

    --font-mono: 'Courier New', monospace;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

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

a:hover {
    color: #fff;
}

/* ──────────────────────────────────────────────────────────────────── */
/* LAYOUT */
/* ──────────────────────────────────────────────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ──────────────────────────────────────────────────────────────────── */
/* NAVIGATION */
/* ──────────────────────────────────────────────────────────────────── */

.navbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(37, 37, 37, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ──────────────────────────────────────────────────────────────────── */
/* HERO */
/* ──────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(150, 116, 35, 0.1), rgba(252, 221, 118, 0.05));
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroBgFade 9s infinite;
    z-index: 0;
}

@keyframes heroBgFade {
    0% {
        opacity: 0;
    }
    11% {
        opacity: 0.09;
    }
    78% {
        opacity: 0.07;
    }
    100% {
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

.hero-content h1 {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────── */
/* BUTTONS */
/* ──────────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg,
        rgba(150, 116, 35, 0.25) 0%,
        rgba(252, 221, 118, 0.15) 50%,
        rgba(150, 116, 35, 0.2) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(252, 221, 118, 0.4);
    box-shadow:
        0 2px 12px rgba(150, 116, 35, 0.25),
        inset 0 1px 0 rgba(252, 221, 118, 0.3);
    color: var(--color-accent);
}

.btn-primary:hover {
    background: linear-gradient(135deg,
        rgba(150, 116, 35, 0.38) 0%,
        rgba(252, 221, 118, 0.25) 50%,
        rgba(150, 116, 35, 0.32) 100%
    );
    border-color: rgba(252, 221, 118, 0.7);
    box-shadow:
        0 6px 20px rgba(150, 116, 35, 0.4),
        inset 0 1px 0 rgba(252, 221, 118, 0.4);
    transform: translateY(-2px);
    color: var(--color-accent);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ──────────────────────────────────────────────────────────────────── */
/* ABOUT */
/* ──────────────────────────────────────────────────────────────────── */

.about {
    background: linear-gradient(135deg, rgba(150, 116, 35, 0.05), rgba(37, 37, 37, 0.5));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 5rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto 0 15%;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* ──────────────────────────────────────────────────────────────────── */
/* WORK */
/* ──────────────────────────────────────────────────────────────────── */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.work-section {
    margin-top: 3rem;
}

.work-section-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(184, 205, 214, 0.45);
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
}


.work-card {
    background: var(--color-surface);
    border: 1px solid rgba(58, 74, 82, 0.4);
    border-radius: 6px;
    padding: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    aspect-ratio: 16 / 13.6;
}

.work-card:not(:has(> .work-thumbnail)) {
    padding: 2rem;
    aspect-ratio: auto;
}

.work-card:hover {
    border-color: rgba(252, 221, 118, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Flush bottom — thumbnail last child (kept for fallback) */
.work-card:has(> .work-thumbnail:last-child) {
    padding-bottom: 0;
}

.work-card:has(> .work-thumbnail:last-child) > .work-thumbnail {
    margin-bottom: 0;
}

.work-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.work-card-header {
    padding: 0.625rem 0.875rem;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.work-card:not(:has(> .work-thumbnail)) .work-card-header {
    padding: 0;
    margin-bottom: 1rem;
}

.work-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    color: var(--color-text);
}

.work-badge {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    background: rgba(150, 116, 35, 0.25);
    color: var(--color-accent);
    border: 1px solid rgba(252, 221, 118, 0.2);
    flex-shrink: 0;
}

.work-badge-teal {
    background: rgba(45, 110, 110, 0.3);
    color: #b8e0e0;
    border-color: rgba(184, 224, 224, 0.2);
}

.work-thumbnail {
    position: relative;
    flex: 1;
    width: 100%;
    margin: 0;
    padding-bottom: 0;
    border-radius: 0;
    overflow: hidden;
}

.work-thumbnail iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Video overlay — poster + play button, sits above iframe */
.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
}

.video-overlay[hidden] {
    display: none;
}

.video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.play-btn {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(150, 116, 35, 0.80);
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(4px);
    padding: 0;
}

.play-btn:hover {
    background: rgba(150, 116, 35, 0.98);
    transform: scale(1.06);
}

.play-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

/* Fullscreen button — bottom-right corner, outside iframe */
.fullscreen-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

.fullscreen-btn svg {
    width: 14px;
    height: 14px;
}

.showreel-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.showreel-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.5;
}

.showreel-placeholder p {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.work-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.work-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(252, 221, 118, 0.05);
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
}

.work-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.work-details p:last-child {
    margin-bottom: 0;
}

.work-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ──────────────────────────────────────────────────────────────────── */
/* PARTICIPATION BAR */
/* ──────────────────────────────────────────────────────────────────── */

.participation-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.participation-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(184, 205, 214, 0.45);
}

.participation-cards {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;          /* prevent clipped box-shadows */
    scrollbar-width: none;            /* hide scrollbar — Firefox */
    scroll-snap-type: x mandatory;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.participation-cards::-webkit-scrollbar {
    display: none;                    /* hide scrollbar — Chrome/Safari */
}

.participation-tagline {
    font-size: 0.75rem;
    color: rgba(184, 205, 214, 0.45);
    text-align: center;
    margin: 0;
    letter-spacing: 0.03em;
}

.participation-card {
    flex: 0 0 240px;                  /* fixed width per card, row doesn't wrap */
    scroll-snap-align: start;
    border: 1px solid rgba(252, 221, 118, 0.18);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    background: none;
    font-family: inherit;
    display: block;
}

.participation-card:hover {
    border-color: rgba(252, 221, 118, 0.45);
    box-shadow: 0 4px 20px rgba(150, 116, 35, 0.18);
}

.participation-card:focus-visible {
    outline: 1px solid var(--color-accent);
    outline-offset: 2px;
}

.participation-card-header {
    padding: 0.75rem 1.125rem;
    background: linear-gradient(135deg,
        rgba(150, 116, 35, 0.28) 0%,
        rgba(252, 221, 118, 0.16) 50%,
        rgba(150, 116, 35, 0.22) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(252, 221, 118, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.participation-card-header h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: var(--color-accent);
}

.participation-card-body {
    padding: 1rem 1.125rem;
    background: var(--color-surface);
}

.participation-card-body p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────── */
/* CLICKABLE WORK CARD */
/* ──────────────────────────────────────────────────────────────────── */

.work-card-clickable {
    cursor: pointer;
}

.work-card-clickable .btn {
    pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────────── */
/* PROJECT MODAL */
/* ──────────────────────────────────────────────────────────────────── */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
}

.modal-header .work-badge {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-details {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(252, 221, 118, 0.05);
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
}

.modal-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-actions .btn {
    width: 100%;
    text-align: center;
}

/* ──────────────────────────────────────────────────────────────────── */
/* FULLSCREEN GALLERY */
/* ──────────────────────────────────────────────────────────────────── */

.fs-gallery {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
}

.fs-gallery.active {
    display: block;
}

.fs-gallery-player {
    position: absolute;
    inset: 0;
}

.fs-gallery-player iframe,
#fsGalleryYT {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#fsGalleryYT { display: none; }
#fsGalleryYT iframe { position: static; width: 100%; height: 100%; }

/* Close — circle, top center, fades out */
.fs-gallery-header {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.fs-gallery.active:hover .fs-gallery-header,
.fs-gallery.active:focus-within .fs-gallery-header {
    opacity: 1;
    pointer-events: auto;
}

.fs-gallery-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.fs-gallery-close:hover {
    background: rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

.fs-gallery-title {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* Prev/Next — floating pills on left and right, fade out */
.fs-gallery-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.fs-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 1s ease, background 0.2s;
    pointer-events: none;
}

.fs-gallery-btn:hover {
    background: rgba(0,0,0,0.75);
    border-color: rgba(255,255,255,0.5);
}

#fsGalleryPrev { left: 1.25rem; }
#fsGalleryNext { right: 1.25rem; }

.fs-gallery.active:hover .fs-gallery-btn,
.fs-gallery.active:focus-within .fs-gallery-btn {
    opacity: 1;
    pointer-events: auto;
}

.fs-gallery-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.fs-gallery.active:hover .fs-gallery-counter,
.fs-gallery.active:focus-within .fs-gallery-counter {
    opacity: 1;
}

.fs-gallery-autoplay {
    position: absolute;
    bottom: 2.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1s ease, background 0.2s, color 0.2s, border-color 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.fs-gallery.active:hover .fs-gallery-autoplay,
.fs-gallery.active:focus-within .fs-gallery-autoplay {
    opacity: 1;
    pointer-events: auto;
}

.fs-gallery-autoplay.is-on {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(0,0,0,0.6);
}

/* ──────────────────────────────────────────────────────────────────── */
/* MOOTOOLS MODAL */
/* ──────────────────────────────────────────────────────────────────── */

.mootools-modal-content {
    max-width: 400px;
}

.mootools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.mootools-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.mootools-tool-card svg {
    width: 52px;
    height: 52px;
}

.mootools-tool-card:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(252, 221, 118, 0.05);
}

.mootools-github svg {
    color: var(--color-text-muted);
}

.mootools-github:hover svg {
    color: var(--color-accent);
}

/* ──────────────────────────────────────────────────────────────────── */
/* CONTACT */
/* ──────────────────────────────────────────────────────────────────── */

.contact {
    background: linear-gradient(135deg, rgba(150, 116, 35, 0.1), rgba(252, 221, 118, 0.05));
    border-top: 1px solid var(--color-border);
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────── */
/* WEB DEVELOPMENT SECTION */
/* ──────────────────────────────────────────────────────────────────── */

.web-dev-section {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
}

.web-dev-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.web-dev-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.web-dev-link {
    color: var(--color-accent);
    font-weight: 500;
    transition: var(--transition);
}

.web-dev-link:hover {
    color: var(--color-text);
}

/* ──────────────────────────────────────────────────────────────────── */
/* FOOTER */
/* ──────────────────────────────────────────────────────────────────── */

.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 2rem;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-note {
    margin-top: 1rem;
}

.footer a {
    color: var(--color-accent);
}

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

.footer-webdev-text {
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
}

.btn-mootools {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    background: rgba(252, 221, 118, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(252, 221, 118, 0.2);
    color: var(--color-accent);
    transition: var(--transition);
}

.btn-mootools:hover {
    background: rgba(252, 221, 118, 0.15);
    border-color: rgba(252, 221, 118, 0.4);
    transform: translateY(-1px);
}

/* ──────────────────────────────────────────────────────────────────── */
/* TIMELINE */
/* ──────────────────────────────────────────────────────────────────── */

.timeline {
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    bottom: 0;
    width: 1px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 1.25rem;
    align-items: baseline;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.3em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px var(--color-bg);
}

.timeline-year {
    min-width: 44px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.timeline-content {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.timeline-gap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px 0;
}

.timeline-gap:last-child {
    padding-top: 0;
}

.timeline-tail {
    position: absolute;
    left: -1.5rem;
    top: calc(0.3em + 14px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-tail span {
    display: block;
    width: 6px;
    height: 1px;
    background: var(--color-border);
    opacity: 0.6;
    margin-left: 1px;
}

.timeline-gap span {
    display: block;
    width: 6px;
    height: 1px;
    background: var(--color-border);
    opacity: 0.6;
    margin-left: calc(-1.5rem + 1px);
}

/* ──────────────────────────────────────────────────────────────────── */
/* RESPONSIVE */
/* ──────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    section {
        padding: 3rem 0;
    }

    .participation-card {
        flex: 0 0 200px;
    }

    .modal-content {
        padding: 2rem;
        max-height: 85vh;
    }

    .modal-header {
        flex-direction: column;
        gap: 0.5rem;
        padding-right: 2.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

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

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

    .contact-links {
        flex-direction: column;
    }

    .contact-links .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        min-height: 60vh;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    section {
        padding: 2rem 0;
    }
}
