﻿/* ==========================================================================
   VICTOR Simonet — Portfolio 2025
   Clean, minimal, professional design
   ========================================================================== */

/* =========================================
   1. VARIABLES & THEMES
   ========================================= */
:root {
    --bg: #fdfdfd;
    --bg-alt: #e3e9f1;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #5a6477;
    --accent: #3a3f73;
    --accent-hover: #2d3159;
    --accent-subtle: rgba(58, 63, 115, 0.07);
    --border: #d5dce6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --radius: 10px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.2s ease;
}

html.dark {
    --bg: #0f1219;
    --bg-alt: #1a2030;
    --bg-card: #1a2030;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #9aa6e0;
    --accent-hover: #b6c0f0;
    --accent-subtle: rgba(154, 166, 224, 0.12);
    --border: #2a3444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    opacity: 0;
}
body.loaded {
    opacity: 1;
    transition: opacity 0.35s ease, background-color 0.3s, color 0.3s;
}
h1, h2, h3, h4, h5 {
    font-family: var(--font);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Skip link (a11y) — removed */

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Canvas background */
#interactive-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

/* Z-index layering above canvas */
.navbar, #mobile-menu, main, footer, .skip-link {
    position: relative;
    z-index: 1;
}

/* =========================================
   3. LAYOUT
   ========================================= */
.section-padding {
    padding: clamp(4rem, 8vh, 7rem) clamp(1.25rem, 5vw, 3rem);
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.section-label {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.section-label::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-intro {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.subsection-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text);
}
.subsection-title i { color: var(--accent); font-size: 1rem; }

/* =========================================
   4. NAVIGATION
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1rem 0;
    display: flex; justify-content: center;
    z-index: 100;
}
.nav-content {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    display: flex; align-items: center; gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    max-width: calc(100vw - 2rem);
    transition: background-color 0.3s, border-color 0.3s;
}
.nav-logo {
    font-weight: 700; font-size: 1.15rem;
    color: var(--text); letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links a {
    font-size: 0.875rem; color: var(--text-secondary);
    font-weight: 500; margin-left: 0.75rem;
    transition: color var(--transition), transform 0.2s ease;
    position: relative; padding-bottom: 0.2rem;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.25s ease, left 0.25s ease;
    border-radius: 1px;
}
.nav-links a:hover::after, .nav-links a.nav-active::after {
    width: 100%; left: 0;
}
.nav-links a:hover {
    color: var(--accent); transform: translateY(-1px);
}
.nav-links a.nav-active { color: var(--accent); }
.nav-tools {
    display: flex; gap: 0.35rem; margin-left: auto;
    border-left: 1px solid var(--border); padding-left: 0.75rem;
    flex-shrink: 0;
}
.btn-tool {
    background: transparent; border: none;
    font-size: 0.95rem; color: var(--text-secondary);
    transition: color var(--transition); padding: 0.25rem;
}
.btn-tool:hover { color: var(--accent); }

/* Magic mode button */
#interaction-toggle { position: relative; transition: color var(--transition); }
#interaction-toggle.active { color: var(--accent); }
#interaction-toggle.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.text-xs {
    font-size: 0.7rem; font-weight: 700;
    border: 1px solid var(--border); border-radius: 4px;
    padding: 2px 5px; font-family: var(--font-mono);
}

/* Mobile menu */
.mobile-only { display: none; }
#mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    background: var(--bg); z-index: 2000;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
#mobile-menu.active { transform: translateX(0); }
#close-menu-btn {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; font-size: 1.75rem;
    color: var(--text);
}
.mobile-nav-links a {
    display: block; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700;
    color: var(--text); margin: 1.25rem 0; text-align: center;
}

/* =========================================
   5. HERO
   ========================================= */
#home {
    min-height: 100dvh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    max-width: 960px; margin: 0 auto;
    width: 100%;
}
#home h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0; line-height: 1.05;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 1.5rem;
}
html.dark .hero-eyebrow {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}
.status-dot {
    width: 7px; height: 7px;
    background: #16a34a; border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
html.dark .status-dot { background: #4ade80; }

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-secondary);
    margin: 1rem 0 1.5rem 0;
    max-width: 560px;
    line-height: 1.7;
}

/* Hero Metrics Strip */
.hero-metrics {
    display: flex; align-items: center; gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.metric { text-align: center; }
.metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.metric-label {
    display: block; margin-top: 0.2rem;
    font-size: 0.72rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500;
}
.metric-sep {
    width: 1px; height: 32px;
    background: var(--border);
}

/* CTA */
.cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.4rem; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem;
    transition: all var(--transition); white-space: nowrap; border: none;
}
.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 8px rgba(58, 63, 115, 0.22);
}
html.dark .btn-primary { color: #0f1219; }
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 63, 115, 0.28);
}
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.78rem; }

/* Icon-only button used in CTAs (compact) */
.btn-icon {
    padding: 0.6rem; gap: 0; width: auto; min-width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
}
.cta-group .btn-icon { width: auto; }

/* Typing */
.typing-wrapper {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    min-height: 1.5em;
}
.prompt { color: var(--accent); margin-right: 0.4rem; }
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }

/* =========================================
   6. ABOUT
   ========================================= */
.about-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .about-intro { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* Video embed */
.about-video {
    display: flex;
    align-items: flex-start;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    background: var(--bg-alt);
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.about-timeline-wrapper {
    margin-bottom: 3rem;
}

.bio-lead {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute; left: -2rem; top: 4px;
    width: 12px; height: 12px;
    background: var(--border); border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 2px var(--border);
}
.timeline-marker.current {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-subtle);
}
.timeline-date {
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--accent); font-weight: 500;
}
.timeline-content h3 {
    font-size: 0.95rem; font-weight: 600;
    margin: 0.15rem 0 0.25rem 0;
}
.timeline-content p {
    font-size: 0.85rem; color: var(--text-secondary);
    margin: 0; line-height: 1.5;
}

/* Tech Stack */
.tech-stack { margin-top: 0.5rem; }
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.25rem;
}
.stack-group {
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stack-label {
    display: block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); margin-bottom: 0.6rem;
}
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    font-size: 0.78rem; padding: 0.25rem 0.6rem;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text-secondary);
    font-weight: 500; transition: all var(--transition);
}
html.dark .tag { background: var(--bg); }

/* =========================================
   7. CASE STUDIES
   ========================================= */
.cases-grid {
    display: flex; flex-direction: column;
    gap: 2rem;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, border-color 0.3s;
}
.case-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.case-header {
    padding: 1.75rem 2rem 1.25rem;
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: flex-start;
    gap: 1rem;
}
.case-header-left { flex: 1; min-width: 200px; }
.case-number {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.case-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}
.case-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.case-tags {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    align-self: flex-start; margin-top: 0.25rem;
}
.case-tag {
    font-size: 0.68rem; padding: 0.2rem 0.55rem;
    background: var(--accent-subtle);
    color: var(--accent);
    border-radius: 999px; font-weight: 600;
}

.case-body {
    padding: 0 2rem 1.75rem;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
}
.case-block h4 {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--accent); margin-bottom: 0.4rem;
}
.case-block p {
    font-size: 0.88rem; color: var(--text-secondary);
    line-height: 1.6; margin: 0;
}
.case-block ul {
    list-style: none; padding: 0; margin: 0;
}
.case-block ul li {
    font-size: 0.85rem; color: var(--text-secondary);
    padding: 0.15rem 0; padding-left: 1rem;
    position: relative;
}
.case-block ul li::before {
    content: '\2022'; position: absolute; left: 0;
    color: var(--accent); font-weight: 600;
}

.case-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
}
.case-link {
    font-size: 0.82rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.case-result {
    font-size: 0.82rem; color: var(--text-secondary);
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.case-result i { color: var(--accent); }

/* =========================================
   8. EXPERIENCES
   ========================================= */
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.experience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, border-color 0.3s;
    position: relative; overflow: hidden;
}
.experience-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
    border-radius: 3px 0 0 3px;
    opacity: 0.5;
}
.experience-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.experience-card:hover::before { opacity: 1; }

.experience-icon {
    width: 36px; height: 36px;
    background: var(--accent-subtle);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 0.95rem;
    margin-bottom: 0.6rem;
}
.experience-date {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent); font-weight: 600;
    margin-bottom: 0.35rem; display: block;
}
.experience-role {
    font-size: 0.95rem; font-weight: 700;
    margin: 0 0 0.2rem 0;
}
.experience-company {
    font-size: 0.8rem; color: var(--text-secondary);
    font-weight: 500; margin-bottom: 0.6rem; display: block;
}
.experience-desc {
    font-size: 0.82rem; color: var(--text-secondary);
    line-height: 1.6; margin: 0 0 0.75rem 0;
}
.experience-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.experience-tag {
    font-size: 0.65rem; padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-subtle);
    color: var(--accent); font-weight: 600;
}

/* =========================================
   9. PROJECT CARDS
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.project-card.featured {
    border-color: var(--accent);
}

.featured-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--accent); color: #fff;
    font-size: 0.62rem; font-weight: 700;
    padding: 0.2rem 0.55rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.04em; z-index: 2;
}
html.dark .featured-badge { color: #0f172a; }

.fork-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--bg-alt); color: var(--text-muted);
    font-size: 0.6rem; font-weight: 600;
    padding: 0.2rem 0.5rem; border-radius: 999px;
    border: 1px solid var(--border);
    text-transform: uppercase; letter-spacing: 0.04em; z-index: 2;
}
.fork-badge i { margin-right: 0.2em; }

.project-img {
    width: 100%; height: 160px;
    object-fit: cover; object-position: top;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.project-img-placeholder {
    width: 100%; height: 160px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 2.5rem; color: var(--accent); opacity: 0.4;
}

.project-body { padding: 1.15rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-header { margin-bottom: 0.4rem; }
.project-title {
    font-size: 1rem; font-weight: 700; margin: 0;
    color: var(--accent);
}
.project-title a { color: inherit; }
.project-title a:hover { text-decoration: underline; }
.project-desc {
    font-size: 0.82rem; color: var(--text-secondary);
    margin-bottom: 0.75rem; flex-grow: 1; line-height: 1.55;
}
.project-topics { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.project-topic {
    font-size: 0.65rem; padding: 0.15rem 0.5rem;
    border-radius: 999px; background: var(--accent-subtle);
    color: var(--accent); font-weight: 600;
}
.project-footer {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.75rem; color: var(--text-secondary); margin-top: auto;
}
.project-stat { display: inline-flex; align-items: center; gap: 0.25rem; }
.lang-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.project-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 0.6rem; padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}
.project-updated {
    font-size: 0.7rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 0.25rem;
}

.project-card-placeholder {
    background: var(--bg-card); padding: 2rem; border-radius: var(--radius);
    text-align: center; color: var(--text-secondary);
    border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}

/* Spinner */
.spinner {
    width: 24px; height: 24px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.center-link { text-align: center; margin-top: 1.5rem; }
.text-link {
    color: var(--accent); font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.3rem;
    transition: gap var(--transition);
}
.text-link:hover { gap: 0.5rem; }

/* GitHub Stats */
.github-stats-bar {
    display: flex; justify-content: center; gap: clamp(1.25rem, 4vw, 2.5rem);
    padding: 1.25rem 0; margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.stat-item { text-align: center; min-width: 65px; }
.stat-number {
    display: block; font-family: var(--font-mono);
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    font-weight: 700; color: var(--accent); line-height: 1;
}
.stat-label {
    display: block; margin-top: 0.2rem;
    font-size: clamp(0.62rem, 1.5vw, 0.72rem);
    color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}

/* =========================================
   9b. CURRENT PROJECTS
   ========================================= */
.current-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.current-card {
    display: flex; gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.current-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
html.dark .current-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.current-card-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 1.15rem;
    color: var(--accent);
}
.current-card-body { flex: 1; min-width: 0; }
.current-card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap;
}
.current-card-header h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--text); margin: 0;
}
.current-status {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; font-weight: 600;
    padding: 0.2rem 0.6rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.03em;
    white-space: nowrap;
}
.status-prod {
    background: #dcfce7; color: #166534;
}
html.dark .status-prod {
    background: rgba(34, 197, 94, 0.15); color: #86efac;
}
.status-dev {
    background: #fef3c7; color: #92400e;
}
html.dark .status-dev {
    background: rgba(251, 191, 36, 0.15); color: #fcd34d;
}
.current-card-body > p {
    font-size: 0.85rem; color: var(--text-secondary);
    line-height: 1.5; margin: 0 0 0.75rem;
}
.current-tags {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
}

/* =========================================
   10. CONTACT
   ========================================= */
.contact-card {
    text-align: center;
    background: var(--bg-card);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.contact-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}
.contact-card p {
    color: var(--text-secondary);
    max-width: 420px; margin: 0 auto 2rem auto;
    font-size: 0.95rem;
}
.social-links {
    margin-top: 1.5rem;
    display: flex; justify-content: center; gap: 1.25rem;
    font-size: 1.35rem;
}
.social-links a {
    color: var(--text-secondary); transition: color var(--transition), transform var(--transition);
}
.social-links a:hover { color: var(--accent); transform: translateY(-2px); }

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    display: flex; justify-content: center; align-items: center;
    padding: 2rem 1.25rem; margin-top: 1rem;
}
footer p {
    font-size: 0.8rem; color: var(--text-secondary);
    text-align: center;
    display: inline-flex; align-items: baseline; gap: 0.4rem;
    flex-wrap: wrap; justify-content: center;
}
.signature {
    font-family: 'Caveat', cursive;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

/* =========================================
   12. ANIMATIONS
   ========================================= */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Theme toggle sun/moon */
#theme-toggle .fa-sun { display: none; }
#theme-toggle .fa-moon { display: inline-block; }
html.dark #theme-toggle .fa-moon { display: none; }
html.dark #theme-toggle .fa-sun { display: inline-block; }

/* =========================================
   13. RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 768px) {
    .mobile-only { display: inline-block; font-size: 1.15rem; }
    .nav-links { display: none; }
    .nav-tools { border-left: none; padding-left: 0; }
    .nav-content { padding: 0.45rem 0.9rem; gap: 0.4rem; }

    #home { padding-top: 5rem; }

    .section-padding { padding: 3.5rem clamp(1rem, 4vw, 2rem); }

    .cta-group { flex-direction: column; }
    .cta-group .btn { width: 100%; justify-content: center; }

    .hero-metrics { gap: 1rem; }
    .metric-sep { height: 24px; }

    .about-intro { gap: 1.5rem; }

    .case-header { padding: 1.25rem 1.25rem 1rem; }
    .case-body { padding: 0 1.25rem 1.25rem; }
    .case-footer { padding: 0.75rem 1.25rem; }

    .experiences-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }

    .contact-card { padding: 1.75rem 1.25rem; }
    .social-links { gap: 1rem; font-size: 1.2rem; }

    .project-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    .github-stats-bar { gap: 1rem; padding: 1rem 0; }
}

/* Small mobile */
@media (max-width: 480px) {
    #home { padding-top: 4.5rem; }
    .section-padding { padding: 3rem 1rem; }

    .nav-content { padding: 0.4rem 0.75rem; }
    .btn-tool { font-size: 0.85rem; }
    .text-xs { font-size: 0.62rem; padding: 1px 3px; }

    .hero-metrics { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .metric-sep { display: none; }
    .metric { display: flex; align-items: baseline; gap: 0.5rem; }
    .metric-value { font-size: 1.2rem; }
    .metric-label { font-size: 0.68rem; }

    .case-header { flex-direction: column; }
    .case-grid { grid-template-columns: 1fr; }

    .experience-card { padding: 1rem 1rem 1rem 1.25rem; }
    .experience-role { font-size: 0.88rem; }
    .experience-desc { font-size: 0.78rem; }

    .project-body { padding: 1rem; }
    .project-title { font-size: 0.92rem; }
    .project-desc { font-size: 0.78rem; }

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

    .current-card { flex-direction: column; }
    .current-card-icon { width: 36px; height: 36px; font-size: 1rem; }

    .contact-card { padding: 1.5rem 1rem; }

    .github-stats-bar { gap: 0.75rem; justify-content: space-around; }
    .stat-item { min-width: 55px; }

    footer p { font-size: 0.75rem; }
}
