/* ============================================
   Portfolio Wyron Musy
   Modern, Clean, Professional - Enhanced
   ============================================ */

/* ============================================
   Custom Properties
   ============================================ */
:root {
    --bg-base: #09090b;
    --bg-elevated: #111114;
    --bg-surface: #18181b;
    --bg-surface-hover: #1f1f23;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --rust: #ce422b;
    --node: #68a063;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-normal: 250ms;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    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");
    opacity: 0.015;
    pointer-events: none;
    z-index: 10000;
}

/* ============================================
   Accessibility
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-elevated);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition:
        background 0.3s var(--ease-out),
        border-color 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.95);
    border-bottom-color: var(--border-default);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-out);
}

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

.nav-links {
    display: none;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.nav-links a.active {
    color: var(--text-primary);
    background: var(--accent-glow);
}

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1rem;
    animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Scroll Reveal System
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
    will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Stagger delay for grids */
.skills-grid .reveal-on-scroll:nth-child(1),
.contact-cards .reveal-on-scroll:nth-child(1) {
    transition-delay: 0s;
}
.skills-grid .reveal-on-scroll:nth-child(2),
.contact-cards .reveal-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}
.skills-grid .reveal-on-scroll:nth-child(3),
.contact-cards .reveal-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}
.skills-grid .reveal-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    will-change: transform;
}

.btn-primary {
    position: relative;
    background: var(--accent);
    color: white;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow:
        0 0 30px var(--accent-glow),
        0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

/* Subtle gradient glow */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 60%;
    background: radial-gradient(
        ellipse at center top,
        rgba(99, 102, 241, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out) 0.1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s forwards;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 0.35s forwards;
}

.hero-highlight {
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        #a855f7 50%,
        var(--accent) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 0.5s forwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 0.65s forwards;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 0.8s forwards;
}

/* ============================================
   About / Profile
   ============================================ */
.about-layout {
    display: grid;
    gap: 3rem;
}

.about-main h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-text strong {
    color: var(--text-primary);
}

/* Compact info blocks */
.about-blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-block {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: default;
}

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

.about-block-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
}

.about-block h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-block p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-block strong {
    color: var(--text-primary);
}

/* Sidebar */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
}

.info-row:hover {
    border-color: var(--border-default);
}

.info-row-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-row-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Languages compact */
.languages-compact {
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.languages-compact h4 {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
}

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

.lang-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lang-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-bar {
    width: 60px;
    height: 4px;
    background: var(--bg-base);
    border-radius: 2px;
    overflow: hidden;
}

.lang-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.6s var(--ease-out);
}

.lang-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    min-width: 28px;
    text-align: right;
}

/* Stack tags */
.about-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.about-stack span {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    transition: all var(--duration-normal) var(--ease-out);
}

.about-stack span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Responsive */
@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 1.4fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .about-sidebar {
        padding-top: 3rem;
    }
}

/* ============================================
   Projects Showcase
   ============================================ */
.project-showcase {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out);
    will-change: transform;
}

.project-showcase:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--border-default);
}

.project-showcase:last-of-type {
    margin-bottom: 3rem;
}

.project-showcase-image {
    aspect-ratio: 16/10;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
}

.project-showcase:hover .project-showcase-image {
    border-color: var(--accent);
}

.project-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.project-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--bg-surface) 0%,
        var(--bg-base) 100%
    );
}

.project-image-placeholder.nes {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.project-image-placeholder.uno {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
}

.placeholder-icon {
    font-size: 3rem;
    transition: transform 0.4s var(--ease-out);
}

.project-showcase:hover .placeholder-icon {
    transform: scale(1.1);
}

.placeholder-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.project-showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-wip {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: var(--warning-bg);
    color: var(--warning);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.project-showcase h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-showcase > div > p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-showcase strong {
    color: var(--text-primary);
}

.project-showcase-content p a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration-normal) var(--ease-out);
}

.project-showcase-content p a:hover {
    border-bottom-color: var(--accent);
}

.project-features {
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.project-features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

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

.project-stack span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: default;
}

/* Tech stack hover colors */
.project-stack span[data-tech="typescript"]:hover {
    background: rgba(49, 120, 198, 0.15);
    border-color: #3178c6;
    color: #3178c6;
}

.project-stack span[data-tech="rust"]:hover {
    background: rgba(206, 66, 43, 0.15);
    border-color: #ce422b;
    color: #ce422b;
}

.project-stack span[data-tech="mariadb"]:hover {
    background: rgba(0, 100, 130, 0.15);
    border-color: #003545;
    color: #00758f;
}

.project-stack span[data-tech="discord"]:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865f2;
    color: #5865f2;
}

.project-stack span[data-tech="crypto"]:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.project-stack span[data-tech="angular"]:hover {
    background: rgba(221, 0, 49, 0.15);
    border-color: #dd0031;
    color: #dd0031;
}

.project-stack span[data-tech="postgresql"]:hover {
    background: rgba(51, 103, 145, 0.15);
    border-color: #336791;
    color: #336791;
}

.project-stack span[data-tech="nodejs"]:hover {
    background: rgba(104, 160, 99, 0.15);
    border-color: #68a063;
    color: #68a063;
}

.project-stack span[data-tech="htmx"]:hover {
    background: rgba(54, 54, 54, 0.15);
    border-color: #3366cc;
    color: #3366cc;
}

.project-stack span[data-tech="axum"]:hover {
    background: rgba(206, 66, 43, 0.15);
    border-color: #ce422b;
    color: #ce422b;
}

.project-stack span[data-tech="stripe"]:hover {
    background: rgba(99, 91, 255, 0.15);
    border-color: #635bff;
    color: #635bff;
}

.project-stack span[data-tech="sqlserver"]:hover {
    background: rgba(204, 41, 54, 0.15);
    border-color: #cc2936;
    color: #cc2936;
}

.project-stack span[data-tech="csharp"]:hover {
    background: rgba(104, 33, 122, 0.15);
    border-color: #68217a;
    color: #68217a;
}

.project-stack span[data-tech="sdl2"]:hover {
    background: rgba(23, 62, 155, 0.15);
    border-color: #173e9b;
    color: #173e9b;
}

.project-stack span[data-tech="socketio"]:hover {
    background: rgba(37, 37, 37, 0.15);
    border-color: #010101;
    color: #ffffff;
}

.project-stack span[data-tech="canvas"]:hover {
    background: rgba(255, 165, 0, 0.15);
    border-color: #ffa500;
    color: #ffa500;
}

.project-stack span[data-tech="sqlx"]:hover {
    background: rgba(206, 66, 43, 0.15);
    border-color: #ce422b;
    color: #ce422b;
}

.project-stack span[data-tech="aspnet"]:hover {
    background: rgba(81, 43, 212, 0.15);
    border-color: #512bd4;
    color: #512bd4;
}

.project-stack span[data-tech="asm"]:hover {
    background: rgba(100, 100, 100, 0.15);
    border-color: #888888;
    color: #cccccc;
}

.project-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all 0.3s var(--ease-out);
}

.project-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

.project-link:hover {
    color: var(--accent-hover);
    gap: 0.75rem;
}

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

.projects-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Benchmark visual */
.project-benchmark {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.benchmark-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.benchmark-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benchmark-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.benchmark-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.benchmark-bar {
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.benchmark-bar.rust {
    width: 20%;
    min-width: 80px;
    background: linear-gradient(90deg, var(--rust), #e25a3e);
}

.benchmark-bar.node {
    width: 100%;
    background: linear-gradient(90deg, var(--node), #8bc78b);
}

.benchmark-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.benchmark-note {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* Diagram visual */
.project-diagram {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.diagram-square {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.diagram-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.diagram-spacer {
    width: 60px;
}

.diagram-node {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-width: 100px;
}

.diagram-node.highlight {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
}

.diagram-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.diagram-caption {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 200px;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 180px;
    top: 1.75rem;
    bottom: 1.75rem;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--accent) 0%,
        var(--border-default) 30%,
        var(--border-default) 100%
    );
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

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

/* Dot on the line */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 1.75rem;
    width: 14px;
    height: 14px;
    background: var(--bg-base);
    border: 3px solid var(--text-tertiary);
    border-radius: 50%;
    z-index: 1;
    transition: all var(--duration-normal) var(--ease-out);
}

.timeline-item.featured::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-item:hover::before {
    transform: scale(1.2);
}

.timeline-date {
    position: absolute;
    right: calc(100% + 40px);
    top: 1rem;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.timeline-date .date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
    line-height: 1.4;
}

.timeline-date .duration {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

/* Content card - right of the line */
.timeline-content {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-default);
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-item.featured .timeline-content {
    border-color: var(--accent);
    background: linear-gradient(
        135deg,
        var(--bg-surface) 0%,
        rgba(99, 102, 241, 0.05) 100%
    );
}

.timeline-type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.timeline-type.secondary {
    background: var(--bg-base);
    color: var(--text-tertiary);
}

.timeline-type.education {
    background: var(--success-bg);
    color: var(--success);
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

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

.timeline-tasks {
    list-style: none;
    margin: 0.75rem 0;
}

.timeline-tasks li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.timeline-tasks li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.timeline-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.timeline-stack span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    transition: all var(--duration-normal) var(--ease-out);
}

.timeline-stack span:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-item::before {
        left: -1.5rem;
    }

    .timeline-date {
        position: static;
        width: auto;
        flex-direction: row;
        align-items: center;
        margin-bottom: 1rem;
    }

    .timeline-date .date {
        text-align: left;
    }
}

/* ============================================
   Skills
   ============================================ */
.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-card {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out);
    will-change: transform;
}

.skill-card:hover {
    border-color: var(--border-default);
    background: linear-gradient(
        135deg,
        var(--bg-surface) 0%,
        rgba(99, 102, 241, 0.03) 100%
    );
}

.skill-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.skill-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.skill-list strong {
    font-size: 0.9rem;
}

.skill-list span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ============================================
   Contact
   ============================================ */
.contact-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    will-change: transform;
}

a.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px var(--accent);
}

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

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s var(--ease-out);
}

.contact-cta {
    text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    background: var(--bg-elevated);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-note {
    margin-top: 0.75rem;
    font-size: 0.75rem !important;
    color: var(--text-tertiary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-note::before {
    content: "✦";
    color: var(--accent);
    font-size: 0.6rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 639px) {
    /* Hero mobile */
    .hero {
        min-height: calc(100vh - 64px);
        min-height: calc(100dvh - 64px);
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .stat {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .stat:last-child {
        border-bottom: none;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Section spacing mobile */
    .section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Project cards mobile */
    .project-showcase {
        padding: 1.25rem;
    }

    .project-showcase-image {
        aspect-ratio: 16/9;
    }

    /* Contact cards stack */
    .contact-cards {
        gap: 0.75rem;
    }

    .contact-card {
        padding: 1rem;
    }

    /* Nav mobile menu */
    .nav-links.active a {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

@media (min-width: 640px) {
    .hero-stats {
        gap: 4rem;
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .about-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
    }

    .about-sidebar {
        flex-direction: column;
    }

    .project-showcase {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .project-showcase.reverse {
        direction: rtl;
    }

    .project-showcase.reverse > * {
        direction: ltr;
    }

    .project-showcase-image {
        aspect-ratio: 4/3;
    }

    .timeline-item {
        grid-template-columns: 180px 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
/*@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-content,
    .hero-availability,
    .hero h1,
    .hero-description,
    .hero-stats,
    .hero-cta {
        opacity: 1;
        animation: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

    .cursor {
        display: none;
    }
}*/

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .cursor,
    .skip-link,
    .hero-cta,
    .projects-cta,
    .contact-cta {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    body::before {
        display: none;
    }

    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    .project-showcase,
    .timeline-content,
    .skill-card,
    .contact-card {
        background: #f5f5f5;
        border-color: #ddd;
        box-shadow: none;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ============================================
   Refined Micro-interactions
   ============================================ */

/* Project cards - subtle lift + border glow */
.project-showcase {
    position: relative;
    transition:
        transform 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out);
}

.project-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    box-shadow:
        0 0 0 1px var(--accent),
        0 25px 50px -12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.project-showcase:hover {
    transform: translateY(-4px);
}

.project-showcase:hover::after {
    opacity: 1;
}

/* Links with subtle underline animation */
.project-link {
    position: relative;
}

.project-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.project-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Tech tags - subtle color on hover */
.project-stack span {
    transition: all 0.2s ease;
}

.project-stack span:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* Timeline items - clean slide */
.timeline-content {
    transition:
        transform 0.3s var(--ease-out),
        border-color 0.3s var(--ease-out);
}

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

/* Nav links - underline effect */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a.active {
    background: transparent;
}

/* ============================================
   Section Transitions - Smooth Reveal
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger pour les project cards */
.project-showcase.reveal-on-scroll:nth-child(1) {
    transition-delay: 0s;
}
.project-showcase.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.15s;
}
.project-showcase.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}
.project-showcase.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.45s;
}
.project-showcase.reveal-on-scroll:nth-child(5) {
    transition-delay: 0.6s;
}

/* ============================================
   Footer - Dev Style
   ============================================ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-base);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.footer-separator {
    opacity: 0.5;
}

.footer-source {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-source:hover {
    color: var(--accent);
}

/* ============================================
   Typography
   ============================================ */
body {
    font-family:
        "Atkinson Hyperlegible",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:
        "Jost",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* Optionnel : appliquer Jost aussi au logo de navigation */
.nav-logo {
    font-family:
        "Jost",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-out);
}

body {
    font-family:
        "Space Grotesk",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-logo {
    font-family:
        "Jost",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

body {
    font-family:
        "Jost",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

body {
    font-family:
        "Urbanist",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-logo {
    font-family:
        "Jost",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

body {
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-logo {
    font-family: "Jost", sans-serif;
}
