:root {
    --bg: #020617;
    --bg-soft: rgba(15, 23, 42, 0.9);
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.16);
    --border-subtle: rgba(148, 163, 184, 0.25);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-soft: 0 32px 90px rgba(15, 23, 42, 0.9);
    --shadow-subtle: 0 14px 45px rgba(15, 23, 42, 0.7);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "SF Pro Display", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% 0%, #0f172a 0, #020617 55%),
        radial-gradient(circle at 90% 100%, #022c22 0, #020617 55%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

@keyframes bg-pan {
    0% {
        background-position: 0% 0%, 100% 100%;
    }

    100% {
        background-position: 10% -5%, 90% 105%;
    }
}

body {
    background-size: 140% 140%, 180% 180%;
    animation: bg-pan 28s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 72px;
}

@media (min-width: 1024px) {
    .page {
        padding: 40px 24px 96px;
    }
}

/* Header */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-orb {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 10%, #e0f2fe 0, #38bdf8 40%, #0f172a 100%);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.65);
    position: relative;
    overflow: hidden;
}

.logo-orb::after {
    content: "";
    position: absolute;
    inset: 45% -40% -40% -40%;
    background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.8), transparent 60%);
    opacity: 0.75;
}

.logo-text-main {
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 13px;
    text-transform: uppercase;
}

.logo-text-sub {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    transition: color 0.18s ease-out, background-color 0.18s ease-out;
}

.nav a:hover {
    color: var(--text);
    background-color: rgba(15, 23, 42, 0.9);
}

.nav-pill {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.85),
            rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(16px);
}

.nav-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 10%, #bbf7d0 0, #22c55e 50%, #166534 100%);
    box-shadow: 0 0 14px rgba(22, 163, 74, 0.8);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-left: 8px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-radius: 99px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    color: #020617;
    background: var(--text);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.lang-divider {
    font-size: 10px;
    color: rgba(148, 163, 184, 0.3);
    margin: 0 2px;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 56px;
}

@media (max-width: 880px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero-left {
    padding: 24px 24px 32px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 0 0, rgba(15, 118, 110, 0.35), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(30, 64, 175, 0.45), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-left::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image: radial-gradient(circle at 10% 0%,
            rgba(56, 189, 248, 0.12),
            transparent 65%),
        radial-gradient(circle at 90% 110%, rgba(52, 211, 153, 0.12), transparent 60%);
    opacity: 0.8;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.85);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
}

.hero-title {
    font-size: clamp(32px, 4.1vw, 44px);
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.hero-title span.accent {
    background: linear-gradient(120deg, #38bdf8, #a855f7, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 460px;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.btn {
    border-radius: 999px;
    border: none;
    outline: none;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
        background-color 0.18s ease-out, border-color 0.18s ease-out,
        color 0.18s ease-out;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    color: #020617;
    box-shadow: 0 14px 35px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(56, 189, 248, 0.45);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 1);
}

.btn-icon {
    font-size: 12px;
    opacity: 0.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 10%, #fee2e2 0, #f97316 50%, #9a3412 100%);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.8);
}

.hero-right {
    position: relative;
}

.panel {
    position: relative;
    padding: 20px 18px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg,
            rgba(15, 23, 42, 0.96),
            rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image: radial-gradient(circle at 0 0,
            rgba(56, 189, 248, 0.2),
            transparent 55%),
        radial-gradient(circle at 100% 100%,
            rgba(129, 140, 248, 0.24),
            transparent 60%);
    opacity: 0.8;
    mix-blend-mode: screen;
    pointer-events: none;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.panel-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.panel-chip {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--muted);
}

.panel-title {
    font-size: 14px;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.panel-list li {
    font-size: 13px;
    color: var(--muted);
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.panel-list span.key {
    color: var(--text);
}

.panel-list span.value {
    color: var(--muted);
    font-size: 12px;
}

.panel-footer {
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid rgba(30, 64, 175, 0.5);
    padding-top: 10px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.chip-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.6);
    font-size: 10px;
    color: var(--muted);
}

.chip-inline-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #38bdf8;
}

/* Sections */

.section {
    margin-bottom: 52px;
}

.section-header {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.section-kicker {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-title {
    font-size: 20px;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 18px;
}

@media (max-width: 880px) {
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.card {
    padding: 16px 18px 18px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.85);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%,
            rgba(56, 189, 248, 0.12),
            transparent 65%);
    opacity: 0.7;
    pointer-events: none;
}

.card-title {
    font-size: 14px;
    margin: 0 0 8px;
}

.card-body {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.chip {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: rgba(15, 23, 42, 0.9);
    color: var(--muted);
}

.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.stack-list li {
    padding: 3px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.stack-list span.label {
    color: var(--text);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.project-card {
    padding: 16px 16px 18px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
        border-color 0.18s ease-out, background-color 0.18s ease-out;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 40% -40% -40%;
    background: radial-gradient(circle at 100% 0,
            rgba(56, 189, 248, 0.15),
            transparent 55%);
    opacity: 0;
    transition: opacity 0.18s ease-out;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.6);
    background-color: rgba(15, 23, 42, 0.98);
}

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

.project-tag {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 4px;
}

.project-title {
    font-size: 14px;
    margin: 0 0 6px;
}

.project-body {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 10px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
}

.project-pill {
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: rgba(15, 23, 42, 0.9);
}

.timeline {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    padding: 16px;
    box-shadow: var(--shadow-subtle);
}

.timeline-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--muted);
}

.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-top: 4px;
    background: radial-gradient(circle at 30% 10%, #fee2e2 0, #f97316 50%, #fb923c 100%);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.9);
}

.timeline-main {
    color: var(--text);
}

.contact-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
    padding: 16px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
}

.contact-title {
    font-size: 14px;
    margin: 0 0 4px;
}

.contact-text {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

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

.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--muted);
    background-color: rgba(15, 23, 42, 0.9);
}

footer {
    margin-top: 32px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

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

/* reveal-on-scroll */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    color: #22c55e;
}