/* ============================================
   AHMED BILAL — PORTFOLIO STYLES
   Indaco-inspired 3D Bento Grid
   ============================================ */

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

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text: #f0f0f0;
    --text-muted: #888888;
    --accent: #c8ff00;
    --accent-dim: #a5d600;
    --border: #222222;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

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

em {
    font-style: italic;
    color: var(--accent);
}

/* === Custom Cursor === */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.15s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

body.performance-mode .cursor,
body.performance-mode .cursor-follower {
    display: none;
}

body.performance-mode {
    cursor: auto;
}

.cursor.hover { transform: scale(2.5); }
.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    opacity: 0.5;
}

/* === Loader === */
.loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner { text-align: center; }

.loader-line {
    width: 200px;
    height: 2px;
    background: var(--border);
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loaderSlide 1.2s ease-in-out forwards;
}

@keyframes loaderSlide { to { left: 0; } }

.loader-text {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    letter-spacing: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 40px;
    border-bottom: 1px solid var(--border);
}

.nav-logo a {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    transition: var(--transition-fast);
}

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

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

.music-toggle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.music-icon,
.music-icon-muted {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.music-icon-muted {
    display: none;
}

.music-toggle:hover {
    transform: scale(1.06);
}

.music-toggle.is-muted {
    border-color: var(--border);
    background: rgba(0, 0, 0, 0.6);
}

.music-toggle.is-muted .music-icon {
    display: none;
}

.music-toggle.is-muted .music-icon-muted {
    display: block;
    color: #8a8a8a;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

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

.mobile-link {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

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

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 40px 80px;
}

.hero-bg-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif;
    font-size: clamp(100px, 18vw, 280px);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    opacity: 0.3;
    user-select: none;
    white-space: nowrap;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
    font-weight: 500;
}

.tag-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(60px, 10vw, 140px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero-line { display: block; overflow: hidden; }
.hero-line-inner { display: inline-block; }

.hero-subtitle { margin-bottom: 48px; }
.hero-subtitle p {
    font-size: clamp(14px, 1.8vw, 20px);
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 300;
}

.separator {
    color: var(--accent);
    margin: 0 8px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;
    color: var(--accent);
    display: inline;
}

.stat-plus {
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 60px; }
    50% { opacity: 0.3; height: 40px; }
}

.hero-scroll span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

/* === About Section === */
.about {
    padding: 140px 0;
    position: relative;
}

.section-header { margin-bottom: 60px; }

.section-number {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 60px;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-intro {
    font-family: 'Syne', sans-serif;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

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

.about-text strong {
    color: var(--text);
    font-weight: 600;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.about-card-icon {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 12px;
}

.about-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* === Marquee === */
.marquee {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: flex;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-inner span {
    font-family: 'Syne', sans-serif;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-right: 20px;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* === Arsenal Section === */
.arsenal {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.arsenal-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.arsenal-category:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.arsenal-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.arsenal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(200, 255, 0, 0.08);
    border: 1px solid rgba(200, 255, 0, 0.15);
    color: var(--accent);
    flex-shrink: 0;
}

.arsenal-category-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.arsenal-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.arsenal-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.item-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.item-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-dim));
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   WORK SECTION — 3D Bento Grid (Indaco-style)
   ============================================ */
.work {
    padding: 100px 0 120px;
    overflow: hidden;
}

.work-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.work-header {
    margin-bottom: 40px;
}

/* Filter Bar */
.work-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.work-drive-note {
    display: none;
    margin-top: -24px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--text-muted);
}

.work-drive-note a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wf-btn {
    padding: 10px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.wf-btn:hover,
.wf-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.longform-cta {
    display: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.longform-cta.active {
    display: flex;
}

.longform-copy {
    max-width: 760px;
}

.longform-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.longform-cta h3 {
    margin: 0 0 8px;
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    letter-spacing: -0.4px;
    color: var(--text);
}

.longform-cta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.longform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.longform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.25);
}

/* Bento Wrapper */
.bento-wrapper {
    perspective: none;
}

/* The Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: row;
    gap: 14px;
    transform: none;
}

/* Bento Item */
.bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease;
    isolation: isolate;
    pointer-events: auto;
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

body.performance-mode .bento-item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Size Variants */
.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* Media Container */
.bento-media {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
}

.bento-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.bento-item:hover .bento-media video {
    transform: scale(1.08);
}

body.performance-mode .bento-item:hover .bento-media video {
    transform: scale(1.03);
}

/* Placeholder (before videos added) */
.bento-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    background-size: 400% 400%;
    animation: shimmer 8s ease infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ph-play {
    font-size: 36px;
    color: var(--accent);
    opacity: 0.3;
    transition: var(--transition);
}

.bento-item:hover .ph-play {
    opacity: 0.8;
    transform: scale(1.3);
}

/* Hover Overlay */
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.bento-item:hover .bento-overlay,
.bento-item:focus .bento-overlay {
    opacity: 1;
}

.bento-overlay .bento-cat,
.bento-overlay h3 {
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.bento-item:hover .bento-overlay .bento-cat,
.bento-item:hover .bento-overlay h3,
.bento-item:focus .bento-overlay .bento-cat,
.bento-item:focus .bento-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.bento-cat {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.bento-overlay h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Filtered Out */
.bento-item.filtered-out {
    display: none;
}

@media (hover: none) {
    .bento-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            transparent 100%
        );
    }

    .bento-overlay .bento-cat,
    .bento-overlay h3 {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bento-grid,
    .bento-item,
    .bento-overlay,
    .bento-overlay .bento-cat,
    .bento-overlay h3,
    .bento-media video {
        transition: none;
    }
}

/* ============================================
   HALF-SCREEN VIDEO PANEL
   ============================================ */
.panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.video-panel {
    position: fixed;
    top: 0;
    right: -55%;
    width: 52%;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid var(--border);
    overflow-y: auto;
}

.video-panel.open {
    right: 0;
}

.panel-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.panel-close:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.panel-video-wrap {
    width: 100%;
    background: #000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-video-wrap video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.panel-video-wrap .panel-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 12px;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

.panel-ph .ph-play {
    font-size: 60px;
    opacity: 0.4;
}

.panel-ph span:last-child {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.panel-info {
    padding: 40px;
    flex: 1;
}

.panel-tags {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.panel-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.panel-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
}

/* === Journey Section === */
.journey {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    padding-left: 48px;
    max-width: 800px;
}

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

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

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -44px;
    top: 6px;
    width: 12px; height: 12px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent);
    transform: translateX(8px);
}

.timeline-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.timeline-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === Contact Section === */
.contact { padding: 140px 0; }
.contact-content { max-width: 800px; }

.contact-intro {
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.contact-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contact-card:hover .contact-value {
    color: var(--accent);
}

/* === Footer === */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.footer-left p {
    font-size: 13px;
    color: var(--text-muted);
}

.back-to-top {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.back-to-top:hover { color: var(--accent); }

/* === Reveal Animations === */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body.performance-mode .reveal-up {
    transition-duration: 0.35s;
}

.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        transform: none;
    }

    .video-panel {
        width: 70%;
        right: -75%;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav { padding: 20px 24px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .hero { padding: 100px 24px 60px; }
    .hero-title { letter-spacing: -1px; }
    .hero-stats { gap: 32px; }
    .hero-scroll { display: none; }

    .about, .arsenal, .work, .journey, .contact {
        padding: 80px 0;
    }

    .work-inner { padding: 0 16px; }

    .longform-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        gap: 14px;
        margin-bottom: 20px;
    }

    .longform-cta h3 {
        font-size: 18px;
    }

    .longform-cta p {
        font-size: 14px;
    }

    .longform-btn {
        width: 100%;
    }

    .section-header { margin-bottom: 40px; }
    .section-subtitle { margin-bottom: 40px; }
    .arsenal-grid { grid-template-columns: 1fr; }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 10px;
        transform: none;
    }

    .bento-overlay {
        padding: 14px;
    }

    .bento-overlay h3 {
        font-size: 14px;
    }

    .bento-cat {
        font-size: 8px;
    }

    .wf-btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .video-panel {
        width: 100%;
        right: -105%;
    }

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .timeline { padding-left: 36px; }
    .timeline-marker { left: -32px; }

    .cursor, .cursor-follower {
        display: none;
    }

    body { cursor: auto; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 48px; }
    .section-title { font-size: 40px; }
    .mobile-link { font-size: 28px; }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 120px;
    }

    .bento-wide { grid-column: span 2; }
    .bento-tall { grid-row: span 2; }
}
