/* =========================================================
   style.css — Design tokens: soft modern, backend-dev themed
   Palette : #F6F7FB (bg) / #FFFFFF (surface) / #4F5DFF (primary)
             #FF8C61 (accent/coral) / #1B1F3B (ink) / #6B7280 (muted)
   Type    : Display = "Sora", Body = "Plus Jakarta Sans", Mono = "JetBrains Mono"
   ========================================================= */

:root {
    --bg: #F6F7FB;
    --surface: #FFFFFF;
    --surface-soft: #EEF1FB;
    --primary: #4F5DFF;
    --primary-soft: #E7E9FF;
    --accent: #FF8C61;
    --accent-soft: #FFE7DA;
    --ink: #1B1F3B;
    --muted: #6B7280;
    --border: #E6E8F0;
    --shadow-sm: 0 2px 8px rgba(31, 41, 88, 0.05);
    --shadow-md: 0 6px 18px rgba(31, 41, 88, 0.07);
    --shadow-lg: 0 14px 34px rgba(31, 41, 88, 0.09);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --font-display: "Sora", sans-serif;
    --font-body: "Plus Jakarta Sans", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

* {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.display-font {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.text-muted-soft {
    color: var(--muted);
}

.text-primary-soft {
    color: var(--primary);
}

.font-mono {
    font-family: var(--font-mono);
}

/* ---------- Background ambient blobs (unused, kept minimal/static if referenced) ---------- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    width: 380px;
    height: 380px;
    background: var(--primary-soft);
    top: -120px;
    right: -100px;
}

.blob-2 {
    width: 320px;
    height: 320px;
    background: var(--accent-soft);
    bottom: -100px;
    left: -80px;
}

/* ---------- Navbar ---------- */
.navbar-soft {
    background: rgba(246, 247, 251, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease;
}

.navbar-soft.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar-brand-soft {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink) !important;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.nav-link-soft {
    font-weight: 600;
    color: var(--muted) !important;
    padding: .5rem 1rem !important;
    border-radius: 999px;
    transition: all .2s ease;
}

.nav-link-soft:hover,
.nav-link-soft.active {
    color: var(--ink) !important;
    background: var(--surface-soft);
}

/* ---------- Buttons ---------- */
.btn-soft-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .75rem 1.6rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(79, 93, 255, 0.28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-soft-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 93, 255, 0.35);
    color: #fff;
}

.btn-soft-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: .75rem 1.6rem;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-soft-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface);
}

/* ---------- Section ---------- */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    margin-top: .5rem;
}

/* ---------- Hero ---------- */
.hero {
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
}

.hero-title .hl {
    color: var(--primary);
}

.hero-stack-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* signature terminal card */
.terminal-card {
    background: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: #E7E9FF;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-body {
    font-family: var(--font-mono);
    font-size: .88rem;
    padding: 1.4rem 1.3rem 1.6rem;
    min-height: 230px;
    line-height: 1.7;
}

.terminal-prompt {
    color: var(--accent);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: #E7E9FF;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ---------- Cards ---------- */
.card-soft {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card-soft:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card {
    text-align: center;
    padding: 1.6rem 1rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
}

/* skills */
.skill-row {
    margin-bottom: 1.3rem;
}

.skill-track {
    height: 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0;
    transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}

.skill-cat-pill {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary);
}

/* project card */
.project-cover {
    height: 170px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    position: relative;
}

.project-cover .bi {
    font-size: 2.4rem;
    opacity: .5;
}

.badge-stack {
    font-size: .72rem;
    font-weight: 600;
    background: var(--surface-soft);
    color: var(--ink);
    border-radius: 999px;
    padding: .25rem .65rem;
    margin: .15rem .2rem 0 0;
    display: inline-block;
}

.filter-pill {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    font-weight: 600;
    font-size: .85rem;
    color: var(--muted);
    transition: all .2s ease;
    cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* timeline */
.timeline {
    position: relative;
    padding-left: 2.2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--accent);
    font-weight: 700;
}

/* contact */
.form-soft .form-control,
.form-soft .form-select {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    font-size: .95rem;
}

.form-soft .form-control:focus,
.form-soft .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-soft label {
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: .35rem;
}

.social-chip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    color: var(--ink);
    border: 1px solid var(--border);
    transition: all .2s ease;
}

.social-chip:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

footer.footer-soft {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.4rem 0;
}

/* reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* avatar */
.avatar-frame {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--primary-soft), var(--accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
}

::selection {
    background: var(--primary-soft);
    color: var(--primary);
}