* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b1220;
    --panel: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --brand: #58a6ff;
    --brand2: #3fb950;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background:
        radial-gradient(1000px 600px at 15% 10%, rgba(88, 166, 255, 0.18), transparent 60%),
        radial-gradient(900px 600px at 90% 80%, rgba(63, 185, 80, 0.14), transparent 55%),
        var(--bg);
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(11, 18, 32, 0.65);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.topnav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topnav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.topnav a:hover {
    color: var(--text);
}

.topnav .switch {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(88, 166, 255, 0.25);
    background: rgba(88, 166, 255, 0.10);
    color: var(--text);
}

.menu-btn {
    display: none;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.mobile-nav {
    display: none;
    padding: 10px 18px 14px;
    border-top: 1px solid var(--border);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.mobile-nav a.switch {
    color: var(--text);
}

/* Hero */
.hero {
    padding: 64px 0 28px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 22px;
    align-items: center;
}

.pill {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.22);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.08;
    margin-bottom: 12px;
}

.lead {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
}

.btn.primary {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.25), rgba(63, 185, 80, 0.18));
    border-color: rgba(88, 166, 255, 0.25);
}

.btn.secondary:hover,
.btn.primary:hover {
    transform: translateY(-1px);
}

.photo-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.25);
}

.photo-meta {
    margin-top: 10px;
}

.photo-meta .name {
    font-weight: 800;
}

.photo-meta .role {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    margin-top: 2px;
}

/* Sections */
.section {
    padding: 46px 0;
}

.section.alt {
    background: rgba(0, 0, 0, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.section-title.center {
    text-align: center;
    margin-bottom: 18px;
}

.section-title.center h2 {
    margin-bottom: 10px;
}

.underline {
    width: 64px;
    height: 4px;
    border-radius: 999px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
}

p {
    color: var(--muted);
    line-height: 1.75;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.stat .num {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 4px;
}

.stat .label {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    margin-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
}

/* Experience timeline (concept: left rail + dots + cards) */
.timeline.timeline-pro {
    position: relative;
    margin-top: 18px;
}

.timeline.timeline-pro::before {
    content: "";
    position: absolute;
    left: 22px; /* center of the dot column */
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(88, 166, 255, 0.55);
    border-radius: 999px;
}

.timeline.timeline-pro .item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.timeline.timeline-pro .rail {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.timeline.timeline-pro .rail .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--brand);
    box-shadow: 0 0 0 5px rgba(88, 166, 255, 0.12);
}

.timeline.timeline-pro .timeline-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}

.timeline.timeline-pro .timeline-card .role {
    color: var(--brand);
    font-weight: 900;
    font-size: 18px;
}

.timeline.timeline-pro .timeline-card .company {
    margin-top: 6px;
    font-weight: 800;
    color: var(--text);
}

.timeline.timeline-pro .timeline-card .range {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
}

.timeline.timeline-pro .timeline-card .bullets {
    list-style: none;
    padding: 0;
    margin-top: 12px;
    color: var(--muted);
}

.timeline.timeline-pro .timeline-card .bullets li {
    position: relative;
    padding-left: 18px;
    line-height: 1.7;
    margin-top: 8px;
}

.timeline.timeline-pro .timeline-card .bullets li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand);
    font-weight: 900;
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 12px;
    margin-top: 14px;
}

.contact-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.contact-card .k {
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
    margin-top: 10px;
}

.contact-card .k:first-child {
    margin-top: 0;
}

.contact-card .v {
    margin-top: 4px;
    font-weight: 700;
}

.contact-card a {
    color: var(--brand);
    text-decoration: none;
}

.form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

/* reCAPTCHA v2 widget container (shown only when enabled) */
.recaptcha-wrap[hidden] {
    display: none !important;
}

.recaptcha-wrap {
    display: grid;
    justify-content: start;
}

.recaptcha-status {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.82);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    overflow-wrap: anywhere;
}

/* reCAPTCHA v2 widget is fixed width (~304px). Scale slightly on smaller screens. */
@media (max-width: 420px) {
    .recaptcha-wrap {
        transform: scale(0.92);
        transform-origin: 0 0;
    }
}

/* Honeypot: hidden from real users */
.hp {
    display: none !important;
}

.small#formStatus {
    min-height: 18px;
}

.formStatus-success {
    color: rgba(63, 185, 80, 0.9);
}

.formStatus-error {
    color: rgba(248, 81, 73, 0.95);
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(88, 166, 255, 0.45);
}

.small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Footer */
.footer {
    padding: 22px 0 30px;
    color: var(--muted);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.footer a:hover {
    color: var(--text);
}

@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .contact {
        grid-template-columns: 1fr;
    }
    .timeline.timeline-pro::before {
        left: 16px;
    }

    .timeline.timeline-pro .item {
        grid-template-columns: 34px 1fr;
        gap: 12px;
    }
    .topnav {
        display: none;
    }
    .menu-btn {
        display: inline-flex;
    }
    .mobile-nav.open {
        display: block;
    }
}


