:root {
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --ink: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --navy: #122a4e;
    --blue: #2f6fee;
    --blue-soft: #eaf1fe;
    --success: #12805c;
    --success-soft: #e7f6f0;
    --heading: 'Plus Jakarta Sans', sans-serif;
    --body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16.5px;
}

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

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- NAV ---------- */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    font-family: var(--heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--navy);
}

.brand span {
    color: var(--blue);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    font-size: 0.92rem;
}

.nav-links a {
    color: var(--muted);
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-cta {
    background: var(--navy);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.15s;
}

.nav-cta:hover {
    background: var(--blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition:
        transform 0.2s,
        opacity 0.2s;
}

.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);
}

.nav-mobile-panel {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.nav-mobile-panel.open {
    display: flex;
}

.nav-mobile-panel a {
    padding: 16px 24px;
    font-size: 0.95rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.nav-mobile-panel a:last-child {
    border-bottom: none;
}

.nav-mobile-panel .nav-cta {
    margin: 16px 24px;
    text-align: center;
    color: #fff;
    border-bottom: none;
}

/* ---------- HERO ---------- */
.hero {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.status-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

h1 {
    font-family: var(--heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    line-height: 1.12;
    color: var(--navy);
    max-width: 16ch;
}

.hero-sub {
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 13px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s,
        transform 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue);
}

.btn-outline {
    border: 1.5px solid var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--navy);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 56px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.stat {
    padding: 22px 20px;
    border-right: 1px solid var(--line);
}

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

.stat-num {
    font-family: var(--heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ---------- SECTION SHARED ---------- */
section {
    padding: 50px 0;
}

.section-head {
    margin-bottom: 44px;
    max-width: 64ch;
}

.eyebrow {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

h2 {
    font-family: var(--heading);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--navy);
    max-width: 30ch;
}

.section-desc {
    color: var(--muted);
    margin-top: 10px;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;

    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 16px;
    max-width: 75ch;
}

.about-text strong {
    color: var(--ink);
    font-weight: 600;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-k {
    color: var(--muted);
}

.info-v {
    font-weight: 600;
    text-align: right;
}

/* ---------- SKILLS ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
    background: #fff;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.skill-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 20px rgba(47, 111, 238, 0.08);
}

.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.skill-name {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
}

.skill-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.skill-status.active {
    background: var(--success-soft);
    color: var(--success);
}

.skill-status.planned {
    background: var(--bg-alt);
    color: var(--muted);
    border: 1px solid var(--line);
}

.skill-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

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

.chip {
    font-size: 0.8rem;
    background: var(--blue-soft);
    color: var(--navy);
    padding: 5px 11px;
    border-radius: 6px;
    font-weight: 500;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
}

.project-thumb {
    height: 150px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-thumb {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 5s ease;
    margin-top: auto;
}

.project-thumb:hover img {
    transform: translateY(calc(-80% + 200px));
}

.project-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.project-name {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-progress {
    background: #fef3e2;
    color: #9a5b00;
}

.badge-complete {
    background: #e8f5e9;
    color: #2e7d32;
}

.project-desc {
    color: var(--muted);
    font-size: 0.9rem;
    flex: 1;
}

.project-stack {
    font-size: 0.8rem;
    color: var(--muted);
}

.project-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
}

.project-link.disabled {
    color: var(--muted);
    pointer-events: none;
}

/* ---------- CONTACT ---------- */
.contact-section {
    background: var(--navy);
    color: #fff;
}

.contact-section h2 {
    color: #fff;
}

.contact-section .eyebrow {
    color: #8fb4ff;
}

.contact-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.contact-item {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.contact-item:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.contact-k {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.contact-v {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 26px 0;
    font-size: 0.82rem;
    color: var(--muted);
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    nav .wrap>.nav-cta {
        display: none;
    }

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

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

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

    .stat:nth-child(2) {
        border-right: none;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
}