/* ─── Design System ──────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-primary: #080B10;
    --bg-secondary: #0D1117;
    --bg-elevated: #161C27;
    --bg-card: #111722;

    /* Accent — Indigo (distinctive, professional) */
    --accent: #6366F1;
    --accent-dim: rgba(99, 102, 241, 0.1);
    --accent-border: rgba(99, 102, 241, 0.25);
    --accent-glow: rgba(99, 102, 241, 0.18);

    /* Semantic colors */
    --emerald: #10B981;
    --emerald-dim: rgba(16, 185, 129, 0.1);
    --emerald-border: rgba(16, 185, 129, 0.25);

    /* Text */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-dim: #4B5563;

    /* Borders */
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);

    /* Typography */
    --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    /* Layout */
    --section-padding: 96px;
    --container-width: 1160px;

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

    /* Easing */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ─── Utilities ──────────────────────────────────────────── */
.font-mono {
    font-family: var(--font-mono);
}

.text-gradient {
    background: linear-gradient(130deg, #818CF8 0%, #6366F1 45%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-header {
    margin-bottom: 52px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 2.625rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 560px;
    line-height: 1.65;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--t-base);
    white-space: nowrap;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background: #E2E8F0;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Reading Progress ───────────────────────────────────── */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 1001;
    transition: width 0.08s linear;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: padding var(--t-base), background var(--t-base), border-color var(--t-base);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(8, 11, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    flex-shrink: 0;
    margin-right: 8px;
}

.brand-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.brand-initials.sm {
    width: 24px;
    height: 24px;
    font-size: 0.625rem;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    margin-left: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Command palette trigger button */
.cmd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--t-fast);
}

.cmd-trigger:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.cmd-trigger kbd {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-hover);
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--text-dim);
}

/* Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

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

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

.mobile-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 8px 24px 20px;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-link {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 0;
    transition: color var(--t-fast);
}

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

@media (max-width: 860px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* ─── Command Palette ────────────────────────────────────── */
.cmd-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base);
}

.cmd-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cmd-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cmd-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--accent-border);
    transform: scale(0.95) translateY(-10px);
    transition: transform var(--t-slow);
    margin: 0 16px;
}

.cmd-overlay.open .cmd-modal {
    transform: scale(1) translateY(0);
}

.cmd-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.cmd-search-icon {
    color: var(--text-dim);
    flex-shrink: 0;
}

.cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    caret-color: var(--accent);
    min-width: 0;
}

.cmd-input::placeholder {
    color: var(--text-dim);
}

.cmd-esc-key {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.cmd-results {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
}

.cmd-group-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 8px 10px 4px;
}

.cmd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.cmd-item:hover,
.cmd-item.focused {
    background: var(--accent-dim);
    color: var(--accent);
}

.cmd-item-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: background var(--t-fast), color var(--t-fast);
}

.cmd-item.focused .cmd-item-icon {
    background: var(--accent-border);
    color: var(--accent);
}

.cmd-item-label {
    flex: 1;
    font-weight: 450;
}

.cmd-footer {
    display: flex;
    gap: 16px;
    padding: 9px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.cmd-footer kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.6875rem;
    margin-right: 2px;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-grid-texture {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.038) 1px, transparent 0);
    background-size: 30px 30px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 0%, transparent 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--emerald-dim);
    color: var(--emerald);
    border: 1px solid var(--emerald-border);
    border-radius: 99px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 28px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    flex-shrink: 0;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    }

    50% {
        box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.375rem, 5.5vw, 3.625rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.hero-meta-dot {
    color: var(--border-hover);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease-spring),
        transform 0.75s var(--ease-spring);
    transition-delay: var(--delay, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .status-dot {
        animation: none;
    }

    .term-cursor {
        animation: none;
    }
}

/* ─── Terminal ───────────────────────────────────────────── */
.terminal {
    background: #050811;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal-header {
    background: var(--bg-elevated);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
    background: #FF5F57;
}

.terminal-dots span:nth-child(2) {
    background: #FFBD2E;
}

.terminal-dots span:nth-child(3) {
    background: #27C93F;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.terminal-body {
    padding: 18px 20px;
    font-size: 0.8125rem;
    line-height: 1.8;
    min-height: 210px;
}

.term-line {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 1px;
}

.term-user {
    color: #34D399;
}

.term-prompt {
    color: #818CF8;
}

.term-path {
    color: #60A5FA;
}

.term-cmd {
    color: var(--text-primary);
    margin-left: 6px;
}

.term-output {
    color: var(--text-secondary);
    padding-left: 4px;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    line-height: 1.7;
}

.term-key {
    color: #F59E0B;
}

.term-val {
    color: #34D399;
}

.term-string {
    color: #A78BFA;
}

.term-cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: #818CF8;
    vertical-align: middle;
    border-radius: 1px;
    animation: blink 1.1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ─── Hero Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ─── About ──────────────────────────────────────────────── */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 80px;
    align-items: start;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.8vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 20px;
}

.about-p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 580px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    transition: border-color var(--t-base);
}

.stat-card:hover {
    border-color: var(--accent-border);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

@media (max-width: 860px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ─── Timeline ───────────────────────────────────────────── */
.timeline {
    max-width: 780px;
    position: relative;
}

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

.timeline-item {
    position: relative;
    padding-left: 52px;
    margin-bottom: 36px;
}

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

.timeline-marker {
    position: absolute;
    top: 10px;
    left: 14px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--text-dim);
    z-index: 1;
    transition: border-color var(--t-base);
}

.timeline-marker.current {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline-item:hover .timeline-marker:not(.current) {
    border-color: var(--border-hover);
}

.timeline-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: border-color var(--t-base), transform var(--t-base);
}

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

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.role {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 12px;
}

.company-loc {
    color: var(--text-dim);
}

.description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.role-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 3px 8px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
}

/* ─── Projects ───────────────────────────────────────────── */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 24px;
    align-items: start;
    position: relative;
}

.project-link-demo {
    position: absolute;
    top: 28px;
    right: 28px;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
}

.project-card.featured {
    border-color: var(--accent-border);
    background: linear-gradient(145deg, var(--bg-elevated), rgba(99, 102, 241, 0.04));
}

.project-card.featured:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.15);
}

.project-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--border-hover);
    line-height: 1;
    letter-spacing: -0.05em;
    padding-top: 3px;
    transition: color var(--t-base);
}

.project-card:hover .project-num {
    color: var(--accent);
}

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

.project-body {
    min-width: 0;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.project-field {
    margin-bottom: 12px;
}

.project-field-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 3px;
}

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

.project-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--t-fast);
}

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

/* Skeleton */
.project-skeleton {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 24px;
}

.skel-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton {
    background: linear-gradient(90deg,
            var(--bg-elevated) 25%,
            rgba(255, 255, 255, 0.04) 50%,
            var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: 4px;
}

.sk-number {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.sk-title {
    width: 50%;
    height: 20px;
}

.sk-label {
    width: 60px;
    height: 10px;
}

.sk-text {
    width: 100%;
    height: 14px;
}

.sk-w70 {
    width: 70%;
}

.sk-w80 {
    width: 80%;
}

.sk-w60 {
    width: 60%;
}

.sk-tags {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.sk-tag {
    width: 56px;
    height: 22px;
    border-radius: 4px;
}

.sk-tag-lg {
    width: 90px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 560px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .project-num {
        font-size: 1.5rem;
    }
}

/* ─── Skills ─────────────────────────────────────────────── */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.skill-group {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: border-color var(--t-base);
}

.skill-group:hover {
    border-color: var(--border-hover);
}

.skill-category-title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-chip {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-secondary);
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
    cursor: default;
}

.skill-chip:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-dim);
}

.skill-chip.primary {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-dim);
}

.skill-group-sk {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.skill-chips-sk {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ─── Principles ─────────────────────────────────────────── */
.principles-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

.principles-header {
    position: sticky;
    top: 100px;
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.principle-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: border-color var(--t-base);
}

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

.principle-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 14px;
}

.principle-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.principle-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .principles-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .principles-header {
        position: static;
    }
}

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

/* ─── Contact ────────────────────────────────────────────── */
.contact-card {
    max-width: 780px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 52px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.8vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.contact-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-link-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--t-fast);
    margin-bottom: 10px;
    word-break: break-all;
}

.contact-link-primary:hover {
    background: #4F46E5;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.contact-secondary-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-link-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--t-fast);
}

.contact-link-sm:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

@media (max-width: 700px) {
    .contact-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 28px;
    }
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-dim);
    font-size: 0.8125rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── Custom Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

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

/* ─── Focus Visible ──────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ─── Global Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
    :root {
        --section-padding: 64px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
