/* ================================================================
   PORTFOLIO — styles.css
   Palette: Deep Navy + Electric Indigo + Warm Amber
   Philosophy: Premium SaaS / Linear-inspired — refined, modern,
   immediately professional. No harsh green-on-black.
   Fonts: Syne (display) + DM Mono (mono accents)
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
    /* ── Core backgrounds ── */
    --bg-base: #080c16; /* deepest navy */
    --bg-alt: #0d1225; /* section alternates */
    --bg-card: #111827; /* card surface */
    --bg-card-hover: #151f35; /* card hover lift */
    --bg-surface: #1a2340; /* raised elements */
    --bg-glass: rgba(17, 24, 39, 0.7);
    /* ── Accent — Indigo/Violet ── */
    --accent: #7c6df5; /* primary CTA, highlights */
    --accent-bright: #9d91ff; /* hover / lighter pop */
    --accent-dim: #5b4fd4; /* subdued indigo */
    --accent-glow: rgba(124, 109, 245, 0.18);
    --accent-glow-sm: rgba(124, 109, 245, 0.10);
    --accent-border: rgba(124, 109, 245, 0.35);
    /* ── Secondary — Amber ── */
    --amber: #f59e0b; /* secondary accent, badges, tags */
    --amber-dim: #d97706;
    --amber-glow: rgba(245, 158, 11, 0.12);
    --amber-border: rgba(245, 158, 11, 0.3);
    /* ── Tertiary — Cyan (data/metrics) ── */
    --cyan: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.12);
    /* ── Text ── */
    --text-primary: #f1f5fd; /* near-white, warm tint */
    --text-secondary: #8896b3; /* muted slate-blue */
    --text-muted: #4d5d7a; /* faint, for dates/labels */
    --text-faint: #2a3555; /* barely visible */
    /* ── Borders ── */
    --border: rgba(255, 255, 255, 0.07);
    --border-md: rgba(255, 255, 255, 0.11);
    /* ── Semantic ── */
    --tag-problem-bg: rgba(239, 68, 68, 0.1);
    --tag-problem-color: #fca5a5;
    --tag-problem-border: rgba(239, 68, 68, 0.25);
    --tag-solution-bg: rgba(56, 189, 248, 0.1);
    --tag-solution-color: #7dd3fc;
    --tag-solution-border: rgba(56, 189, 248, 0.25);
    /* ── Typography ── */
    /* --font-display: 'Syne', sans-serif;
    --font-mono: 'DM Mono', monospace;*/
    /* Headings / Hero Titles */
    --font-display: 'Space Grotesk', sans-serif;
    /* Body Text / UI */
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    /* Code / Tech Labels */
    --font-mono: 'JetBrains Mono', monospace;
    /* ── Spacing ── */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 5rem;
    --sp-4xl: 8rem;
    /* ── Layout ── */
    --container-w: 1180px;
    --nav-h: 68px;
    /* ── Motion ── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fast: 160ms;
    --base: 300ms;
    --slow: 550ms;
    /* ── Radii ── */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* ----------------------------------------------------------------
   3. UTILITIES
   ---------------------------------------------------------------- */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--sp-xl);
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--sp-md);
    }
}

.section {
    padding: var(--sp-4xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--sp-3xl) 0;
    }
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--sp-md);
    margin-bottom: var(--sp-3xl);
}

.section-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    flex-shrink: 0;
    opacity: 0.8;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
}

/* ----------------------------------------------------------------
   4. SCROLL REVEAL
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

    .reveal:nth-child(2) {
        transition-delay: 0.08s;
    }

    .reveal:nth-child(3) {
        transition-delay: 0.16s;
    }

    .reveal:nth-child(4) {
        transition-delay: 0.24s;
    }

/* ----------------------------------------------------------------
   5. NAVIGATION
   ---------------------------------------------------------------- */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background var(--slow) var(--ease), backdrop-filter var(--slow) var(--ease), border-color var(--slow) var(--ease);
}

    .nav-header.scrolled {
        background: rgba(8, 12, 22, 0.85);
        backdrop-filter: blur(20px);
        border-bottom-color: var(--border);
    }

.nav-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--sp-xl);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
    letter-spacing: 0.02em;
}

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

.logo-initials {
    color: var(--text-primary);
    transition: color var(--fast);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    transition: color var(--fast);
    position: relative;
}

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

    .nav-link:hover, .nav-link.active {
        color: var(--text-primary);
    }

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

.nav-link--cta {
    color: var(--accent-bright);
    border: 1px solid var(--accent-border);
    padding: var(--sp-xs) var(--sp-md);
    border-radius: var(--r-sm);
    transition: background var(--fast), color var(--fast);
}

    .nav-link--cta::after {
        display: none;
    }

    .nav-link--cta:hover {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    border-radius: var(--r-sm);
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: transform var(--base), opacity var(--base);
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(8, 12, 22, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--sp-xl);
        gap: var(--sp-lg);
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--base), opacity var(--base);
    }

        .nav-links.open {
            transform: translateY(0);
            opacity: 1;
            pointer-events: all;
        }

    .nav-link {
        font-size: 1rem;
    }
}

/* ----------------------------------------------------------------
   6. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}

/* Subtle grid */
.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(124, 109, 245, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 109, 245, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 20%, transparent 100%);
}
/* Ambient glow orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 20%;
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(124, 109, 245, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero__noise {
    position: absolute;
    inset: 0;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--sp-xl);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--sp-2xl);
    align-items: center;
}

@media (max-width: 900px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__text-col {
        order: 2;
    }

    .hero__photo-col {
        order: 1;
        display: flex;
        justify-content: center;
    }
}

/* ── Text column ── */
.hero__text-col {
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-md);
    border-radius: var(--r-full);
    padding: var(--sp-xs) var(--sp-md);
    margin-bottom: var(--sp-xl);
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.03);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.hero__name {
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: var(--sp-lg);
}

.hero__firstname {
    display: block;
    color: var(--text-primary);
}

.hero__lastname {
    display: block;
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__title {
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xl);
    letter-spacing: 0.04em;
    flex-wrap: wrap;
}

.title-separator {
    color: var(--accent);
    opacity: 0.5;
}

.hero__tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: var(--sp-2xl);
}

    .hero__tagline em {
        font-style: normal;
        color: var(--text-primary);
        font-weight: 600;
    }

.hero__cta {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    margin-bottom: var(--sp-2xl);
}

.hero__stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.stack-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
}

.stack-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--amber);
    background: var(--amber-glow);
    border: 1px solid var(--amber-border);
    padding: 2px var(--sp-sm);
    border-radius: var(--r-sm);
    letter-spacing: 0.03em;
}

/* ── Photo column ── */
.hero__photo-col {
}

.hero__photo-frame {
    position: relative;
    width: 300px;
    height: 360px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero__photo-frame {
        width: 200px;
        height: 240px;
    }
}

/* Decorative border rings */
.hero__photo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--accent) 0%, var(--amber) 60%, transparent 100%);
    z-index: 0;
}

.hero__photo-frame::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: calc(var(--r-xl) + 6px);
    border: 1px solid var(--accent-border);
    z-index: 0;
    animation: rotate-border 10s linear infinite;
    background: transparent;
    box-shadow: 0 0 40px var(--accent-glow);
}

@keyframes rotate-border {
    0% {
        box-shadow: 0 0 30px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 50px var(--amber-glow);
    }

    100% {
        box-shadow: 0 0 30px var(--accent-glow);
    }
}

.hero__photo-img-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-surface);
}

    .hero__photo-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
    }

/* Fallback avatar when no photo */
.hero__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    background: linear-gradient(160deg, var(--bg-surface) 0%, #1e2d50 100%);
}

.avatar-initials {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--accent-bright), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Floating badge on photo */
.photo-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--r-full);
    padding: var(--sp-xs) var(--sp-lg);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-bright);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
}

.photo-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--sp-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    animation: fadeIn 2s ease 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--text-faint), transparent);
    animation: scrollDown 2.2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ----------------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--font-mono);
    font-size: 0.83rem;
    letter-spacing: 0.06em;
    padding: var(--sp-md) var(--sp-xl);
    border-radius: var(--r-sm);
    transition: all var(--base) var(--ease);
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 28px rgba(124, 109, 245, 0.3);
}

    .btn--primary:hover {
        background: var(--accent-bright);
        box-shadow: 0 0 44px rgba(124, 109, 245, 0.5);
        transform: translateY(-2px);
    }

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-md);
}

    .btn--ghost:hover {
        border-color: var(--accent-border);
        color: var(--accent-bright);
        background: var(--accent-glow-sm);
    }

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ----------------------------------------------------------------
   8. ABOUT SECTION
   ---------------------------------------------------------------- */
.about {
    background: var(--bg-alt);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: var(--sp-3xl);
    align-items: start;
}

@media (max-width: 968px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }
}

.about__lead {
    font-size: 1.18rem;
    line-height: 1.72;
    margin-bottom: var(--sp-lg);
    color: var(--text-primary);
}

.about__text p {
    color: var(--text-secondary);
    margin-bottom: var(--sp-md);
    line-height: 1.8;
}

    .about__text p strong {
        color: var(--text-primary);
        font-weight: 600;
    }

.about__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-md);
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-2xl);
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .about__metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

.metric__number {
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-bright), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric__label {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.about__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-xl);
    transition: border-color var(--base);
}

    .sidebar-card:hover {
        border-color: var(--border-md);
    }

.sidebar-card__title {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    color: var(--accent-bright);
    text-transform: uppercase;
    margin-bottom: var(--sp-md);
}

.sidebar-card__list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

    .sidebar-card__list li {
        font-size: 0.88rem;
        color: var(--text-secondary);
        padding-left: var(--sp-md);
        position: relative;
    }

        .sidebar-card__list li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--amber);
            font-size: 0.72rem;
        }

.sidebar-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--sp-md);
}

.sidebar-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-bright);
    border-bottom: 1px solid var(--accent-border);
    padding-bottom: 2px;
    transition: border-color var(--fast), color var(--fast);
}

    .sidebar-link:hover {
        color: var(--amber);
        border-color: var(--amber-border);
    }

/* ----------------------------------------------------------------
   9. SKILLS SECTION
   ---------------------------------------------------------------- */
.skills__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl) var(--sp-3xl);
}

@media (max-width: 768px) {
    .skills__grid {
        grid-template-columns: 1fr;
    }
}

.skill-category__title {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: var(--sp-lg);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.skill-icon {
    color: var(--amber);
    font-style: normal;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.skill-bar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-xs);
    font-size: 0.87rem;
    color: var(--text-secondary);
}

.skill-bar__pct {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-bright);
}

.skill-bar__track {
    height: 3px;
    background: var(--bg-surface);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
    border-radius: 2px;
    transition: width 1.3s cubic-bezier(0.4,0,0.2,1);
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--sp-xs) var(--sp-md);
    border-radius: var(--r-sm);
    letter-spacing: 0.03em;
    transition: color var(--fast), border-color var(--fast), background var(--fast);
    cursor: default;
}

    .badge:hover {
        color: var(--accent-bright);
        border-color: var(--accent-border);
        background: var(--accent-glow-sm);
    }

/* ----------------------------------------------------------------
   10. PROJECTS SECTION
   ---------------------------------------------------------------- */
.projects {
    background: var(--bg-alt);
}

.projects__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
}

@media (max-width: 968px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: transform var(--base) var(--ease), border-color var(--base), box-shadow var(--base);
    position: relative;
}

    .project-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(600px circle at var(--mouse-x,50%) var(--mouse-y,50%), rgba(124,109,245,0.05), transparent 40%);
        opacity: 0;
        transition: opacity var(--base);
        pointer-events: none;
        border-radius: var(--r-xl);
    }

    .project-card:hover::before {
        opacity: 1;
    }

    .project-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent-border);
        box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,109,245,0.12);
    }

.project-card__inner {
    padding: var(--sp-xl);
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
    height: 100%;
}

.project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.project-client {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--amber);
    letter-spacing: 0.04em;
    opacity: 0.8;
}

.project-card__title {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-card__problem,
.project-card__solution {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

    .project-card__problem p,
    .project-card__solution p {
        font-size: 0.87rem;
        color: var(--text-secondary);
        line-height: 1.65;
    }

.tag {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px var(--sp-sm);
    border-radius: var(--r-sm);
    align-self: flex-start;
}

.tag--problem {
    color: var(--tag-problem-color);
    background: var(--tag-problem-bg);
    border: 1px solid var(--tag-problem-border);
}

.tag--solution {
    color: var(--tag-solution-color);
    background: var(--tag-solution-bg);
    border: 1px solid var(--tag-solution-border);
}

.project-card__stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
}

.project-card__impact {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: var(--sp-sm);
    padding-top: var(--sp-md);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.impact-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.impact-value {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-bright), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ----------------------------------------------------------------
   11. EXPERIENCE SECTION
   ---------------------------------------------------------------- */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, var(--accent-dim), var(--border), transparent);
    }

.timeline-item {
    position: relative;
    padding-left: var(--sp-2xl);
    padding-bottom: var(--sp-3xl);
}

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

.timeline-marker {
    position: absolute;
    top: 6px;
    left: -5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--accent);
    box-shadow: 0 0 14px rgba(124,109,245,0.5);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xs);
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.timeline-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-bright);
    background: var(--accent-glow-sm);
    border: 1px solid var(--accent-border);
    padding: 2px var(--sp-sm);
    border-radius: var(--r-sm);
}

.timeline-role {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-xs);
}

.timeline-company {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.timeline-client {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--amber);
    margin-bottom: var(--sp-lg);
    opacity: 0.8;
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

    .timeline-achievements li {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.65;
        padding-left: var(--sp-lg);
        position: relative;
    }

        .timeline-achievements li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-size: 0.68rem;
            top: 0.18em;
        }

/* ----------------------------------------------------------------
   12. CONTACT SECTION
   ---------------------------------------------------------------- */
.contact {
    background: var(--bg-alt);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
    align-items: start;
}

@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }
}

.contact__lead {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: var(--sp-md);
}

.contact__info p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: var(--sp-2xl);
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-md) var(--sp-lg);
    transition: all var(--base) var(--ease);
    background: var(--bg-card);
}

    .contact-link:hover {
        color: var(--accent-bright);
        border-color: var(--accent-border);
        background: var(--accent-glow-sm);
        transform: translateX(5px);
    }

.contact-link__icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--accent-bright);
    background: var(--accent-glow);
    border: 1px solid var(--accent-border);
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

/* Cert card */
.cert-card {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-top: var(--sp-xl);
    background: var(--bg-card);
    border: 1px solid var(--amber-border);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
}

.cert-card__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cert-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cert-card__sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--amber);
}

/* ----------------------------------------------------------------
   13. CONTACT FORM
   ---------------------------------------------------------------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

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

.form-input {
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.93rem;
    padding: var(--sp-md) var(--sp-lg);
    transition: border-color var(--fast), box-shadow var(--fast);
    outline: none;
    width: 100%;
}

    .form-input::placeholder {
        color: var(--text-faint);
    }

    .form-input:focus {
        border-color: var(--accent-dim);
        box-shadow: 0 0 0 3px rgba(124,109,245,0.12);
    }

    .form-input.error {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
    }

.form-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.65;
}

.form-error {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #fca5a5;
    min-height: 1em;
}

.form-success {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #4ade80;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.25);
    border-radius: var(--r-md);
    padding: var(--sp-md) var(--sp-lg);
    display: none;
}

    .form-success.visible {
        display: block;
    }

/* ----------------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--sp-xl) 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.footer__copy {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: var(--sp-lg);
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    transition: color var(--fast);
}

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

@media (max-width: 640px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ----------------------------------------------------------------
   15. SCROLL TO TOP
   ---------------------------------------------------------------- */
.scroll-top {
    position: fixed;
    bottom: var(--sp-xl);
    right: var(--sp-xl);
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all var(--base) var(--ease);
    z-index: 50;
}

    .scroll-top.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .scroll-top:hover {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
        box-shadow: 0 0 24px rgba(124,109,245,0.35);
    }

/* ----------------------------------------------------------------
   16. SELECTION & SCROLLBAR
   ---------------------------------------------------------------- */
::selection {
    background: rgba(124,109,245,0.28);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent-dim);
    }

/* ----------------------------------------------------------------
   17. MOBILE TWEAKS
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
    .hero__title {
        flex-direction: column;
        gap: var(--sp-xs);
        align-items: flex-start;
    }

    .title-separator {
        display: none;
    }

    .hero__cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .project-card__impact {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 900px) {
    .hero__badge,
    .hero__title,
    .hero__tagline,
    .hero__cta,
    .hero__stack {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__title {
        justify-content: center;
    }
}
