/* ===== PORTFOLIO — FOREST EDITORIAL STYLE ===== */
/* Palette: Dark Bark, Redwood, Path Mist, Kodak Yellow, Fern Green */
/* Author: Benjamin LELEU · 2026 */

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --bg: #1E1B18;
    --bg-elevated: #3E2F28;
    --bg-card: #2A221D;
    --text: #D6CFC7;
    --text-secondary: #A89E94;
    --text-muted: #6E6259;
    --accent: #F2C94C;
    --accent-light: #F7D96E;
    --accent-dark: #C9A836;
    --green: #4A5D44;
    --green-light: #5E7656;
    --border: rgba(214, 207, 199, 0.08);
    --border-hover: rgba(214, 207, 199, 0.15);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-height: 80px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background: var(--accent);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(242, 201, 76, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.35s;
}

.cursor.hovering {
    width: 50px;
    height: 50px;
    background: rgba(242, 201, 76, 0.12);
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
}

@media (pointer: coarse) {
    .cursor, .cursor-follower { display: none; }
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-text {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
}

.loader-text:last-of-type {
    color: var(--accent);
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    margin: 2rem auto 0;
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.nav.scrolled {
    background: rgba(30, 27, 24, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    transition: color 0.3s;
    z-index: 1001;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.nav-link::before {
    content: attr(data-index);
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.6rem;
    color: var(--accent);
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
    border-radius: 100px;
    letter-spacing: 0.03em;
    transition: background 0.3s, transform 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.nav-menu span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-menu.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-menu.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
}

.mobile-link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 700;
    color: var(--text);
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: color 0.3s;
}

.mobile-link::before {
    content: attr(data-index) ". ";
    font-size: 0.5em;
    color: var(--accent);
    vertical-align: super;
}

.mobile-link:hover {
    color: var(--accent);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.mobile-menu-footer a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mobile-menu-footer a:hover {
    color: var(--accent);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ===== SECTIONS ===== */
.section {
    padding: clamp(5rem, 12vw, 10rem) 0;
    position: relative;
}

.section-dark {
    background: rgba(62, 47, 40, 0.55);
    backdrop-filter: blur(2px);
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: var(--nav-height) clamp(1.5rem, 4vw, 4rem) 2rem;
    overflow: hidden;
}

/* hero::before glow removed — global bg-canvas handles it */

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
}

.hero-line-inner {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    transform: translateY(100%);
}

.hero-line-inner.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2rem;
    opacity: 0;
}

.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(242, 201, 76, 0.06);
    border: 1px solid rgba(242, 201, 76, 0.15);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
}

.hero-scroll span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== MARQUEE ===== */
.marquee {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: flex;
    width: max-content;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: marquee 20s linear infinite;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.marquee-dot {
    color: var(--accent) !important;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
    margin-bottom: 4rem;
}

.about-description {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-description strong {
    color: var(--text);
    font-weight: 600;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.about-detail-item:first-child {
    border-top: 1px solid var(--border);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.detail-value {
    font-size: 1rem;
    color: var(--text);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===== PROJECTS ===== */
.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: grid;
    grid-template-columns: 60px 1fr auto 50px;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.project-item:first-child {
    border-top: 1px solid var(--border);
}

.project-item::before {
    content: '';
    position: absolute;
    left: -clamp(1.5rem, 4vw, 4rem);
    right: -clamp(1.5rem, 4vw, 4rem);
    top: 0;
    bottom: 0;
    background: rgba(242, 201, 76, 0.03);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
}

.project-item:hover::before {
    opacity: 1;
}

.project-item:hover {
    border-color: rgba(242, 201, 76, 0.2);
}

.project-index {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.project-info {
    min-width: 0;
}

.project-name {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.project-item:hover .project-name {
    color: var(--accent);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-live {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--green-light);
    margin-top: 0.5rem;
    font-weight: 600;
}

.project-status-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status-tag.archived {
    color: var(--text-muted);
    background: rgba(110, 98, 89, 0.2);
    border: 1px solid rgba(110, 98, 89, 0.35);
}

.project-status-tag.active {
    color: var(--green-light);
    background: rgba(74, 93, 68, 0.15);
    border: 1px solid rgba(74, 93, 68, 0.4);
}

.project-meta {
    text-align: right;
}

.project-type {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(214, 207, 199, 0.06);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.project-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.4s var(--ease-out), color 0.3s;
}

.project-item:hover .project-arrow {
    transform: translateX(8px);
    color: var(--accent);
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: 2rem;
}

.skill-category {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.skill-category:hover {
    border-color: rgba(242, 201, 76, 0.15);
    transform: translateY(-4px);
}

.skill-category-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-chip {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(214, 207, 199, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
}

.skill-chip:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(242, 201, 76, 0.06);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--green), var(--border), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    padding: 2.5rem 0;
    padding-left: 3rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 2.8rem;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-elevated);
}

.timeline-date {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 0.2rem;
    white-space: nowrap;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.timeline-tags span {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    color: var(--text-muted);
    background: rgba(214, 207, 199, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
}

/* ===== CONTACT ===== */
.contact-content {
    max-width: 700px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
}

.contact-link-item {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.contact-link-item:first-child {
    border-top: 1px solid var(--border);
}

.contact-link-item:hover {
    padding-left: 1rem;
    border-color: rgba(242, 201, 76, 0.2);
}

.contact-link-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-link-value {
    font-size: 1rem;
    color: var(--text);
    transition: color 0.3s;
}

.contact-link-item:hover .contact-link-value {
    color: var(--accent);
}

.contact-link-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: right;
    transition: transform 0.3s var(--ease-out), color 0.3s;
}

.contact-link-item:hover .contact-link-arrow {
    transform: translateX(5px);
    color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== VIDEO BACKGROUND SYSTEM ===== */
.video-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.video-bg__vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s var(--ease-in-out);
}

.video-bg__vid.active {
    opacity: 1;
}

.video-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 27, 24, 0.55) 0%,
        rgba(30, 27, 24, 0.65) 30%,
        rgba(30, 27, 24, 0.7) 60%,
        rgba(30, 27, 24, 0.8) 100%
    );
    pointer-events: none;
}

/* ===== GLOBAL ANIMATED BACKGROUND (fallback if no video) ===== */
.bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.bg-grain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ===== SECTION GLOW EFFECTS ===== */
.section-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.07;
}

.section-glow--right {
    top: 10%;
    right: -200px;
    background: var(--green);
}

.section-glow--left {
    top: 20%;
    left: -200px;
    background: var(--accent);
}

/* ===== ABOUT TERMINAL ===== */
.about-terminal {
    background: #161210;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.about-terminal:hover {
    border-color: rgba(242, 201, 76, 0.2);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(214, 207, 199, 0.04);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }

.terminal-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
}

.terminal-body code {
    display: block;
    white-space: pre;
}

.code-keyword { color: var(--accent); }
.code-var { color: #C9A836; }
.code-prop { color: var(--green-light); }
.code-string { color: #8FA87E; }
.code-bool { color: var(--accent-light); }

/* ===== PROJECT THUMBNAIL (Floating) ===== */
.project-thumbnail {
    position: fixed;
    width: 320px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    border: 1px solid rgba(242, 201, 76, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(242, 201, 76, 0.08);
}

.project-thumbnail.visible {
    opacity: 1;
    transform: scale(1);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .timeline-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links, .nav-cta {
        display: none;
    }

    .nav-menu {
        display: flex;
    }

    .project-thumbnail {
        display: none;
    }

    .section-glow {
        width: 300px;
        height: 300px;
        opacity: 0.04;
    }

    .hero-line-inner {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .project-item {
        grid-template-columns: 40px 1fr 40px;
        gap: 1rem;
    }

    .project-meta {
        display: none;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-link-item {
        grid-template-columns: 80px 1fr 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -3px;
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 480px) {
    .hero-availability {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .contact-title {
        font-size: 2rem;
    }

    .project-item {
        grid-template-columns: 1fr 30px;
        gap: 0.5rem;
    }

    .project-index {
        display: none;
    }
}
