/* ══════════════════════════════════════════════════════════════
   ARYAN JHA — IMMERSIVE PORTFOLIO
   Premium dark design with kinetic typography, horizontal scroll,
   and film grain overlay
   ══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #161616;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    --text-primary: #f5f5f5;
    --text-secondary: #888888;
    --text-muted: #555555;
    --text-accent: #c8ff00;

    --accent: #c8ff00;
    --accent-dim: rgba(200, 255, 0, 0.1);

    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── RESET ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background: var(--bg);
    scroll-behavior: auto; /* We use JS smooth scroll */
}

html.has-scroll-smooth {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: none;
    color: inherit;
}

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

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

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── LAYOUT ─── */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ═══════════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════════ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preloader-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.preloader-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.preloader-counter {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.05em;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════ */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease), height 0.35s var(--ease);
}

.cursor.is-link {
    width: 60px;
    height: 60px;
}

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

.cursor-follower.is-link {
    width: 80px;
    height: 80px;
    border-color: rgba(200, 255, 0, 0.6);
}

.cursor-trail-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.scramble-char {
    color: var(--accent);
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════
   CINEMATIC VIEWFINDER OVERLAY & ELEMENTS
   ═══════════════════════════════════════════════════════════════ */
.viewfinder-overlay {
    position: fixed;
    inset: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 9990;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: inset 0.6s var(--ease);
}

@media (max-width: 768px) {
    .viewfinder-overlay {
        inset: 1rem;
    }
}

/* Corners */
.vf-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.vf-top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.vf-top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.vf-bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.vf-bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Center Crosshair */
.vf-center-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.vf-center-reticle::before,
.vf-center-reticle::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
}

.vf-center-reticle::before {
    top: 50%;
    left: -5px;
    width: 40px;
    height: 1px;
}

.vf-center-reticle::after {
    left: 50%;
    top: -5px;
    width: 1px;
    height: 40px;
}

/* Status Bars */
.vf-top-bar,
.vf-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vf-controls {
    display: flex;
    gap: 1rem;
    pointer-events: auto;
}

.vf-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.vf-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(200, 255, 0, 0.1);
}

.vf-rec-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.vf-rec-dot {
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s;
}

.vf-rec-dot.is-paused {
    background: rgba(255, 255, 255, 0.4);
    animation: none;
}

.vf-rec-dot.is-playing {
    background: var(--accent);
    animation: vfPulse 1s infinite alternate;
}

.vf-rec-dot.is-ffwd {
    background: #ffcc00;
    animation: vfPulse 0.4s infinite alternate;
}

@keyframes vfPulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.vf-timecode {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.vf-info {
    display: flex;
    gap: 1.5rem;
}

.vf-battery {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vf-bat-meter {
    width: 24px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1px;
    display: flex;
    border-radius: 1px;
}

.vf-bat-fill {
    height: 100%;
    width: 80%;
    background: rgba(255, 255, 255, 0.7);
}

/* Vignette Shadow */
.cinematic-vignette {
    position: fixed;
    inset: 0;
    z-index: 9988;
    pointer-events: none;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.8;
}

/* CRT Scanlines Overlay */
.cinematic-scanlines {
    position: fixed;
    inset: 0;
    z-index: 9989;
    pointer-events: none;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    opacity: 0.15;
}

/* LUT Backdrop-Filter Overlay */
.cinematic-lut-overlay {
    position: fixed;
    inset: 0;
    z-index: 9987; /* Under viewfinder, above content */
    pointer-events: none;
    transition: backdrop-filter 0.5s var(--ease), -webkit-backdrop-filter 0.5s var(--ease);
}

.cinematic-lut-overlay.lut-mono {
    backdrop-filter: grayscale(1) contrast(1.1);
    -webkit-backdrop-filter: grayscale(1) contrast(1.1);
}

.cinematic-lut-overlay.lut-nv {
    backdrop-filter: sepia(0.8) hue-rotate(85deg) saturate(2.5) contrast(1.2);
    -webkit-backdrop-filter: sepia(0.8) hue-rotate(85deg) saturate(2.5) contrast(1.2);
}

/* Focal Focus transitions for sections */
section {
    transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}

section.out-of-focus {
    opacity: 0.9;
    transform: scale(0.99);
}

/* ═══════════════════════════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    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: 256px;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL PROGRESS
   ═══════════════════════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 9997;
    transition: none;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    mix-blend-mode: difference;
    transition: opacity 0.5s var(--ease);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
    position: relative;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.25rem 0;
}

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

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

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}

.nav-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav-menu-btn.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}
.nav-menu-btn.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ── MOBILE MENU ── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    transition: color 0.3s;
}

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

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent);
}

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

.hero-title {
    margin-bottom: 4rem;
}

.title-line {
    overflow: hidden;
}

.title-line span {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 14rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    will-change: transform;
}

.title-line:nth-child(2) span {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

.hero-scroll-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

@keyframes scrollPulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.001% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll-cta span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

/* Floating Stats */
.hero-floating-stats {
    position: absolute;
    right: clamp(2rem, 5vw, 6rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    z-index: 3;
}

.floating-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    opacity: 0.7;
    transition: opacity 0.4s var(--ease);
}

.floating-stat:hover {
    opacity: 1;
}

.fs-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.fs-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
    margin-top: 0.3rem;
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════ */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    padding-right: 3rem;
}

.marquee-content-reverse {
    animation-direction: reverse;
}

.marquee-dot {
    color: var(--accent);
    font-size: 0.6em;
}

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

/* ═══════════════════════════════════════════════════════════════
   SECTION LABEL
   ═══════════════════════════════════════════════════════════════ */
.section-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding-top: 8rem;
}

.label-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.label-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.label-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about {
    padding-bottom: 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

/* Word-by-word reveal: each word wrapped in a span */
.about-heading .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-top: 0.2em;
    padding-bottom: 0.4em;
    margin-top: -0.2em;
    margin-bottom: -0.4em;
    margin-right: 0.3em;
}

.about-heading .word-inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease);
}

.about-heading.revealed .word-inner {
    transform: translateY(0);
}

.about-heading.revealed .word {
    overflow: visible;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-bio p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-card {
    padding: 1.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.detail-card:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.dc-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dc-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
}

.dc-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Skills Orbit */
.skills-orbit {
    overflow: hidden;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.orbit-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: orbitScroll 40s linear infinite;
}

.orbit-tag {
    padding: 0.75rem 1.8rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.4s var(--ease);
    flex-shrink: 0;
}

.orbit-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: scale(1.05);
}

@keyframes orbitScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   WORK EXPERIENCE
   ═══════════════════════════════════════════════════════════════ */
.work {
    padding-bottom: 6rem;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.work-item {
    position: relative;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.work-item:last-child {
    border-bottom: 1px solid var(--border);
}

.work-item-inner {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 200px 1fr 1.5fr auto;
    gap: 2rem;
    align-items: start;
    transition: color 0.5s var(--ease);
}

.work-item:hover .work-item-inner {
    color: var(--bg);
}

.work-item-reveal {
    position: absolute;
    inset: 0;
    background: var(--accent);
    z-index: 1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s var(--ease);
}

.work-item:hover .work-item-reveal {
    transform: scaleY(1);
}

.work-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.work-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.5s var(--ease);
}

.work-item:hover .work-date {
    color: var(--bg);
}

.work-type {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.5s var(--ease);
}

.work-item:hover .work-type {
    color: rgba(10, 10, 10, 0.6);
}

.work-role {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.work-company {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.5s var(--ease);
}

.work-item:hover .work-company {
    color: var(--bg);
}

.work-ext {
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease);
}

.work-ext:hover {
    transform: translate(2px, -2px);
}

.work-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.5s var(--ease);
}

.work-item:hover .work-details p {
    color: rgba(10, 10, 10, 0.8);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-self: center;
}

.work-tags span {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.5s var(--ease);
}

.work-item:hover .work-tags span {
    border-color: var(--bg);
    color: var(--bg);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS (HORIZONTAL SCROLL)
   ═══════════════════════════════════════════════════════════════ */
.projects {
    position: relative;
    padding-bottom: 0;
}

.projects-horizontal-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.projects-track {
    display: flex;
    gap: 2rem;
    padding: 0 clamp(1.5rem, 4vw, 4rem) 6rem;
    width: max-content;
}

.project-panel {
    position: relative;
    width: clamp(400px, 50vw, 700px);
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.6s var(--ease);
}

.project-panel:hover {
    transform: translateY(-8px);
}

.project-panel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-panel-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    min-height: 100%;
    justify-content: flex-end;
}

.project-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.project-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.project-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 500px;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.project-stack span {
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-actions {
    margin-top: 1rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(200, 255, 0, 0.3);
}

.project-btn .arrow {
    font-size: 1.1rem;
    transition: transform 0.3s var(--ease);
}

.project-btn:hover .arrow {
    transform: translate(3px, -3px);
}

/* Project Visual Shapes */
.project-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.project-visual-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    transition: transform 1s var(--ease);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #ff6b6b;
    bottom: 30%;
    left: 20%;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #4ecdc4;
    bottom: -30px;
    right: 30%;
}

.project-panel:hover .shape-1 {
    transform: translate(-20px, 20px) scale(1.2);
}

.project-panel:hover .shape-2 {
    transform: translate(10px, -15px) scale(1.1);
}

.project-panel:hover .shape-3 {
    transform: translate(-10px, 10px) scale(1.15);
}

/* ═══════════════════════════════════════════════════════════════
   ACHIEVEMENTS
   ═══════════════════════════════════════════════════════════════ */
.achievements {
    padding-bottom: 6rem;
}

.achievements-list {
    display: flex;
    flex-direction: column;
}

.ach-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}

.ach-item:last-child {
    border-bottom: 1px solid var(--border);
}

.ach-item:hover {
    padding-left: 1.5rem;
}

.ach-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.ach-content {
    flex: 1;
}

.ach-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.ach-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ach-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.4s var(--ease);
    flex-shrink: 0;
}

.ach-item:hover .ach-arrow {
    color: var(--accent);
    transform: translate(4px, -4px);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
    padding-bottom: 6rem;
}

.contact-content {
    max-width: 900px;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

/* Reveal type animation */
.contact-heading .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-top: 0.2em;
    padding-bottom: 0.4em;
    margin-top: -0.2em;
    margin-bottom: -0.4em;
    margin-right: 0.2em;
}

.contact-heading .word-inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease);
}

.contact-heading.revealed .word-inner {
    transform: translateY(0);
}

.contact-heading.revealed .word {
    overflow: visible;
}

.contact-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.6;
}

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

.contact-link {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    transition: padding 0.4s var(--ease);
}

.contact-link:last-child {
    border-bottom: 1px solid var(--border);
}

.contact-link:hover {
    padding-left: 1rem;
}

.cl-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cl-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

.cl-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.4s var(--ease);
}

.contact-link:hover .cl-arrow {
    color: var(--accent);
    transform: translate(4px, -4px);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATION HELPER
   ═══════════════════════════════════════════════════════════════ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-floating-stats {
        display: none;
    }

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

    .work-item-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .work-tags {
        margin-top: 0.5rem;
    }

    .contact-link {
        grid-template-columns: 100px 1fr auto;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-menu-btn { display: flex; }

    .hero {
        padding-top: 6rem;
    }

    .hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-scroll-cta {
        display: none;
    }

    .title-line span {
        font-size: clamp(3.5rem, 15vw, 8rem);
    }

    .section-label {
        padding-top: 5rem;
    }

    .project-panel {
        width: 85vw;
    }

    .ach-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .contact-link {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .cl-label {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Disable custom cursor on mobile */
    .cursor, .cursor-follower {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    a, button {
        cursor: pointer;
    }
}
