/* ==========================================================================
   AWARD-WINNING INTERACTIVE PORTFOLIO — DESIGN SYSTEM
   Features: Dark/Light mode, interactive graphics, animations
   ========================================================================== */
:root {
    /* Light Mode (Default) */
    --bg: #f5f0eb;
    --bg-alt: #ece6df;
    --surface: #ffffff;
    --surface-hover: #faf8f6;
    --text: #1a1a1a;
    --text-secondary: #6b6560;
    --text-muted: #a8a29e;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.08);
    --accent-glow: rgba(99, 102, 241, 0.15);
    --secondary: #ec4899;
    --success: #10b981;
    --border: rgba(26, 26, 26, 0.08);
    --border-strong: rgba(26, 26, 26, 0.15);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.06);
    --card-bg: rgba(255,255,255,0.7);
    --glass: rgba(255,255,255,0.6);
    --glass-border: rgba(255,255,255,0.3);
    --invert: 0;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --duration: 0.6s;
    --duration-slow: 1s;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #0f0f13;
    --bg-alt: #18181f;
    --surface: #1e1e28;
    --surface-hover: #252530;
    --text: #f1f0ee;
    --text-secondary: #9a958f;
    --text-muted: #5c5853;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-light: rgba(129, 140, 248, 0.1);
    --accent-glow: rgba(129, 140, 248, 0.2);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.4);
    --card-bg: rgba(30,30,40,0.7);
    --glass: rgba(30,30,40,0.6);
    --glass-border: rgba(255,255,255,0.06);
    --invert: 1;
}

/* Smooth theme transition on everything */
*,*::before,*::after {
    transition: background-color 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

a { color: inherit; text-decoration: none; cursor: none; }
button,input,textarea { font-family: inherit; cursor: none; background: none; border: none; outline: none; }
ul { list-style: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.text-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
    position: fixed; top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s linear, width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
    opacity: 0.35;
    mix-blend-mode: difference;
}

.cursor-follower.hovering {
    width: 56px; height: 56px;
    opacity: 0.55;
}

@media (pointer: coarse) {
    .cursor,.cursor-follower { display: none; }
    body,a,button,input,textarea { cursor: auto; }
}

/* ==========================================================================
   PAGE LOADER
   ========================================================================== */
.loader {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--text);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.9s var(--ease);
}

.loader.done { transform: translateY(-100%); }

.loader-text {
    display: block; color: var(--bg);
    font-size: 0.75rem; letter-spacing: 4px;
    font-weight: 600; margin-top: 1.5rem;
}

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

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

@keyframes loaderSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed; top: 0; left: 0;
    width: 100%; z-index: 100;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.5px; }
.logo-dot { color: var(--accent); }

.nav-menu { display: flex; gap: 2rem; align-items: center; }

.nav-link {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    position: relative; transition: color 0.3s;
}
.nav-link:hover { color: var(--text); }

/* Theme Toggle */
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s var(--ease);
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(180deg);
}

.theme-toggle svg { width: 18px; height: 18px; }

.mobile-menu-btn {
    display: none; flex-direction: column;
    gap: 6px; background: none; border: none; padding: 6px;
}

.hamburger-line {
    display: block; width: 24px; height: 1.5px;
    background: var(--text);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.mobile-menu-btn.active .hamburger-line:first-child { transform: translateY(3.75px) rotate(45deg); }
.mobile-menu-btn.active .hamburger-line:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex; align-items: flex-end;
    padding: 0 0 clamp(3rem, 6vw, 6rem) 0;
    position: relative;
}

.hero-layout { width: 100%; padding-top: 140px; }
.hero-intro { margin-bottom: 1.5rem; }

.hero-eyebrow {
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px; text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.8rem, 7.5vw, 7rem);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -2.5px;
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.title-line { overflow: hidden; }

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

.hero-description { max-width: 480px; }

.hero-description p {
    font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
}

.hero-cta-row {
    display: flex; gap: 1rem;
    margin-top: 2rem; flex-wrap: wrap;
}

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.6rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    transition: all 0.35s var(--ease);
    position: relative; overflow: hidden;
}

.btn-fill {
    background: var(--text); color: var(--bg);
}

.btn-fill:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-ghost {
    border: 1px solid var(--border-strong); color: var(--text);
}

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

.hero-scroll {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.75rem; flex-shrink: 0;
}

.scroll-line {
    width: 1px; height: 60px;
    background: var(--border-strong);
    position: relative; overflow: hidden;
}

.scroll-line::after {
    content: ''; position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: var(--text);
    animation: scrollDown 2s var(--ease) infinite;
}

@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

.scroll-label {
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal-wrap { overflow: hidden; display: inline-block; }

.anim-reveal {
    display: inline-block;
    transform: translateY(105%);
    transition: transform var(--duration-slow) var(--ease);
}

.anim-reveal.visible { transform: translateY(0); }

.anim-fade {
    opacity: 0; transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}

.anim-fade.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   FLOATING SHAPES (INTERACTIVE GRAPHICS)
   ========================================================================== */
.floating-shapes {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.shape-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: 10%; right: -5%;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    bottom: 20%; left: -3%;
    animation: float2 25s ease-in-out infinite;
}

.shape-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--success), transparent 70%);
    top: 50%; left: 40%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -40px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px, 20px) scale(1.1); } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-alt);
}

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

.marquee-content {
    display: flex; align-items: center;
    gap: 2.5rem;
    animation: marquee 25s linear infinite;
    font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-secondary);
    white-space: nowrap; padding-right: 2.5rem;
}

.marquee-dot { font-size: 0.4rem; color: var(--accent); }

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

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding: clamp(5rem, 10vw, 10rem) 0; }

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 8rem);
    margin-bottom: clamp(4rem, 8vw, 8rem);
}

.section-label {
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 2rem;
}

.about-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700; line-height: 1.35;
    letter-spacing: -0.5px;
}

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

.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 3rem;
    padding-top: 2.5rem; border-top: 1px solid var(--border);
}

.about-stat { text-align: center; }

.stat-num {
    display: block; font-size: 2rem;
    font-weight: 800; letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.stat-desc {
    display: block; font-size: 0.78rem;
    color: var(--text-muted); font-weight: 500;
}

/* Interactive Skill Bars */
.skills-section {
    padding-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.4s var(--ease);
}

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

.skill-card-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 1rem;
}

.skill-card-icon {
    width: 36px; height: 36px;
    background: var(--accent-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}

.skill-card-icon svg { width: 18px; height: 18px; }

.skill-card-percent {
    font-size: 0.8rem; font-weight: 700;
    color: var(--accent);
}

.skill-card-name {
    font-weight: 600; font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

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

.skill-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 10px;
    transition: width 1.2s var(--ease);
}

.skill-bar-fill.animated {
    /* width set via JS */
}

/* ==========================================================================
   WORK / PROJECTS
   ========================================================================== */
.work { padding: clamp(5rem, 10vw, 10rem) 0 0 0; }

.work-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800; letter-spacing: -1px;
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

.projects-list { border-top: 1px solid var(--border); }

.project-row {
    display: grid;
    grid-template-columns: 60px 1.2fr 1.5fr auto 40px;
    align-items: center; gap: 2rem;
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}

.project-row:hover {
    background: var(--bg-alt);
    padding-left: clamp(2.5rem, 5vw, 5rem);
}

.project-index {
    font-family: var(--font-serif);
    font-style: italic; font-size: 1.1rem;
    color: var(--text-muted);
}

.project-name {
    font-size: 1.4rem; font-weight: 700;
    letter-spacing: -0.3px; margin-bottom: 0.15rem;
}

.project-type {
    font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
}

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

.project-tags-row { display: flex; gap: 0.5rem; }

.project-tags-row span {
    font-size: 0.7rem; font-weight: 600;
    padding: 0.3rem 0.75rem; border-radius: 50px;
    background: var(--accent-light); color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.project-arrow {
    color: var(--text-muted);
    transition: transform 0.3s var(--ease), color 0.3s;
}

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

/* ==========================================================================
   JOURNEY
   ========================================================================== */
.journey { padding: clamp(5rem, 10vw, 10rem) 0; }

.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.journey-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 2.2rem;
    transition: all 0.4s var(--ease);
    position: relative; overflow: hidden;
}

.journey-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; width: 3px; height: 0;
    background: var(--accent);
    transition: height 0.5s var(--ease);
}

.journey-card:hover::before { height: 100%; }

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

.journey-year {
    font-size: 0.75rem; font-weight: 700;
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 1px; display: block; margin-bottom: 0.75rem;
}

.journey-title {
    font-size: 1.15rem; font-weight: 700;
    margin-bottom: 0.4rem; letter-spacing: -0.2px;
}

.journey-place {
    font-size: 0.9rem; color: var(--text-secondary);
}

/* ==========================================================================
   INTERACTIVE GRAPHICS SECTION
   ========================================================================== */
.graphics-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.graphics-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700; letter-spacing: -0.5px;
    margin-bottom: 3rem; text-align: center;
}

.graphics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.graphic-card {
    aspect-ratio: 1;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem;
    transition: all 0.4s var(--ease);
    overflow: hidden; position: relative;
}

.graphic-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-glow);
}

.graphic-card-label {
    font-size: 0.75rem; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px; margin-top: 1.5rem;
}

/* Orbit Graphic */
.orbit-container {
    width: 120px; height: 120px;
    position: relative;
}

.orbit-center {
    width: 16px; height: 16px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent-glow);
}

.orbit-ring {
    position: absolute; top: 50%; left: 50%;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-1 { width: 60px; height: 60px; animation: spin 8s linear infinite; }
.orbit-ring-2 { width: 100px; height: 100px; animation: spin 12s linear infinite reverse; }
.orbit-ring-3 { width: 120px; height: 120px; animation: spin 18s linear infinite; }

.orbit-dot {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    top: -3px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 8px var(--secondary);
}

@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Pulse Bars */
.bars-container {
    display: flex; align-items: flex-end;
    gap: 4px; height: 80px;
}

.pulse-bar {
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    border-radius: 3px;
    animation: barPulse 1.2s ease-in-out infinite alternate;
}

.pulse-bar:nth-child(1) { height: 30px; animation-delay: 0s; }
.pulse-bar:nth-child(2) { height: 50px; animation-delay: 0.1s; }
.pulse-bar:nth-child(3) { height: 70px; animation-delay: 0.2s; }
.pulse-bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.pulse-bar:nth-child(5) { height: 60px; animation-delay: 0.4s; }
.pulse-bar:nth-child(6) { height: 35px; animation-delay: 0.5s; }
.pulse-bar:nth-child(7) { height: 55px; animation-delay: 0.6s; }
.pulse-bar:nth-child(8) { height: 45px; animation-delay: 0.7s; }

@keyframes barPulse {
    0% { transform: scaleY(0.4); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* DNA Helix */
.dna-container {
    display: flex; gap: 8px;
    align-items: center;
}

.dna-strand {
    display: flex; flex-direction: column;
    gap: 6px;
}

.dna-node {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: dnaBounce 2s ease-in-out infinite;
}

.dna-strand:nth-child(2) .dna-node { background: var(--secondary); animation-direction: reverse; }
.dna-node:nth-child(1) { animation-delay: 0s; }
.dna-node:nth-child(2) { animation-delay: 0.15s; }
.dna-node:nth-child(3) { animation-delay: 0.3s; }
.dna-node:nth-child(4) { animation-delay: 0.45s; }
.dna-node:nth-child(5) { animation-delay: 0.6s; }
.dna-node:nth-child(6) { animation-delay: 0.75s; }

.dna-connector {
    display: flex; flex-direction: column;
    gap: 6px; margin: 0 -2px;
}

.dna-line {
    width: 20px; height: 1px;
    background: var(--border-strong);
}

@keyframes dnaBounce {
    0%,100% { transform: translateX(0); }
    50% { transform: translateX(12px); }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
    padding: clamp(5rem, 10vw, 10rem) 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(3rem, 6vw, 6rem);
}

.contact-heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; line-height: 1.3;
    letter-spacing: -0.5px;
}

.contact-links {
    display: flex; flex-direction: column;
    margin-top: 3rem;
}

.contact-link-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.3s var(--ease);
}

.contact-link-item:first-child { border-top: 1px solid var(--border); }
.contact-link-item:hover { padding-left: 0.75rem; }

.contact-link-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); width: 65px; flex-shrink: 0;
}

.contact-link-value {
    font-size: 0.95rem; font-weight: 500; flex-grow: 1;
}

.contact-link-arrow {
    width: 14px; height: 14px;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease), color 0.3s;
    flex-shrink: 0;
}

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

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
}

.form-title {
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex; flex-direction: column;
    gap: 0.35rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-label {
    font-size: 0.72rem; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

textarea.form-input { resize: none; min-height: 120px; }

.form-actions { margin-top: 1.5rem; }

.btn-submit {
    width: 100%; justify-content: center;
    background: var(--text); color: var(--bg);
    padding: 0.85rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.35s var(--ease);
    border: none;
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-submit:disabled {
    opacity: 0.6; transform: none;
}

.form-status {
    font-size: 0.85rem; font-weight: 600;
    text-align: center; margin-top: 1rem;
    min-height: 1.5em;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--secondary); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 2rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex; justify-content: space-between;
    align-items: center; font-size: 0.8rem;
    font-weight: 500; color: var(--text-muted);
}

.footer-right a {
    display: inline-flex; align-items: center;
    gap: 0.4rem; transition: color 0.3s;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
.mobile-only { display: none; }

@media (max-width: 1024px) {
    .project-row {
        grid-template-columns: 40px 1fr auto;
        gap: 1.2rem;
    }
    .project-desc, .project-tags-row { display: none; }
    .about-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .journey-grid { grid-template-columns: 1fr; }
    .graphics-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Compact text scaling */
    html { font-size: 14px; }
    
    .nav-menu {
        position: fixed; top: 72px; left: 0;
        width: 100%; height: calc(100vh - 72px);
        background: var(--glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center; justify-content: center;
        gap: 2rem; opacity: 0; pointer-events: none;
        transition: opacity 0.4s var(--ease);
    }
    .nav-menu.open { opacity: 1; pointer-events: all; }
    .nav-menu .nav-link { font-size: 1.6rem; font-weight: 700; }
    .mobile-menu-btn { display: flex; }
    .mobile-only { display: flex; }
    
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .hero-scroll { display: none; }
    
    /* 2 by 2 Grids for Mobile */
    .skills-grid, .journey-grid, .graphics-grid, .about-stats { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1rem; 
    }
    
    /* Compact card padding to fit side-by-side gracefully */
    .skill-card, .journey-card, .graphic-card {
        padding: 1.25rem;
    }
    .skill-card-name, .journey-title, .graphic-card-label {
        font-size: 0.9rem;
    }
    .journey-place { font-size: 0.8rem; }
    
    .project-row { grid-template-columns: 1fr; padding: 1.25rem; gap: 0.8rem; }
    .project-index,.project-arrow { display: none; }
    
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .form-grid { grid-template-columns: 1fr; gap: 1rem; }
    .contact-form { padding: 1.5rem; }
}
