:root {
    --bg: #04120d;
    --bg-soft: #0b241a;
    --panel: rgba(8, 29, 20, 0.74);
    --panel-strong: rgba(7, 25, 18, 0.92);
    --line: rgba(177, 233, 168, 0.16);
    --text: #f5f8f2;
    --muted: #c5d8c8;
    --accent: #9fe870;
    --accent-strong: #d8f56a;
    --warm: #ffd166;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(159, 232, 112, 0.22), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(255, 209, 102, 0.18), transparent 22%),
        linear-gradient(140deg, #04120d 0%, #082117 42%, #0f3b22 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 44rem;
    height: 44rem;
    top: -18rem;
    right: -12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.14), transparent 60%);
}

body::after {
    width: 34rem;
    height: 34rem;
    bottom: -15rem;
    left: -10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(159, 232, 112, 0.14), transparent 62%);
}

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

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 28px 0 42px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 19, 13, 0.55);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 18px;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #031109;
    background: linear-gradient(135deg, var(--accent-strong), var(--warm));
    box-shadow: 0 14px 28px rgba(159, 232, 112, 0.22);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-copy strong,
.nav a,
h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
}

.brand-copy strong {
    font-size: 0.98rem;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.82rem;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.nav a {
    font-size: 0.93rem;
    color: var(--muted);
    transition: color 180ms ease, transform 180ms ease;
}

.nav a:hover {
    color: var(--accent-strong);
    transform: translateY(-1px);
}

main {
    display: grid;
    gap: 34px;
    margin-top: 32px;
}

.hero,
.insight-strip,
.section-grid,
.footer {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 28px;
    padding: 38px;
    border-radius: 34px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    top: -120px;
    right: -70px;
    background: radial-gradient(circle, rgba(159, 232, 112, 0.16), transparent 65%);
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-tag,
.project-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow::before,
.section-tag::before,
.project-label::before {
    content: "";
    width: 32px;
    height: 1px;
    background: rgba(216, 245, 106, 0.75);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.94;
    margin-top: 18px;
    max-width: 11ch;
}

.hero-lead {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--muted);
    margin-top: 20px;
    max-width: 62ch;
}

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

.social-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.social-pill {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(216, 245, 106, 0.14);
    color: var(--accent-strong);
    font-size: 1.1rem;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.social-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 245, 106, 0.42);
    background: rgba(216, 245, 106, 0.12);
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #04120d;
    background: linear-gradient(135deg, var(--accent-strong), var(--warm));
    box-shadow: 0 18px 28px rgba(255, 209, 102, 0.18);
}

.button-secondary {
    border: 1px solid rgba(216, 245, 106, 0.26);
    background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover {
    border-color: rgba(216, 245, 106, 0.54);
}

.quick-points {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.quick-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 216, 200, 0.1);
    border-radius: 18px;
}

.quick-points li::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    box-shadow: 0 0 0 6px rgba(159, 232, 112, 0.08);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-card {
    position: relative;
    width: min(100%, 420px);
    padding: 18px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portrait-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 26px;
    border: 1px solid rgba(216, 245, 106, 0.14);
    pointer-events: none;
}

.portrait-frame {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(180deg, rgba(255, 209, 102, 0.1), transparent 24%),
        linear-gradient(150deg, #122d1f, #08130e);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.floating-note {
    position: absolute;
    left: -18px;
    bottom: 28px;
    display: grid;
    gap: 6px;
    width: min(80%, 290px);
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(3, 12, 8, 0.9);
    border: 1px solid rgba(216, 245, 106, 0.2);
    backdrop-filter: blur(16px);
    animation: floatNote 5.2s ease-in-out infinite;
}

.floating-note span {
    color: var(--accent-strong);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.floating-note strong {
    font-size: 1.02rem;
    line-height: 1.45;
}

.insight-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-radius: 28px;
    overflow: hidden;
}

.insight-strip article {
    padding: 26px 28px;
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: 12px;
    position: relative;
}

.insight-strip article + article {
    border-left: 1px solid var(--line);
}

.insight-strip span {
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

.insight-strip strong {
    font-size: 1.06rem;
    line-height: 1.55;
}

.section-grid {
    padding: 34px;
    border-radius: 32px;
    display: grid;
    gap: 28px;
}

.section-heading {
    display: grid;
    gap: 14px;
    max-width: 740px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

.section-content p,
.info-card p,
.project-card p,
.focus-panel p,
.links-grid span {
    color: var(--muted);
    line-height: 1.82;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.about-story {
    display: grid;
    gap: 18px;
}

.focus-panel,
.code-panel {
    padding: 24px;
    border-radius: 26px;
    background: var(--panel-strong);
    border: 1px solid rgba(216, 245, 106, 0.13);
}

.focus-panel {
    display: grid;
    align-content: start;
    gap: 16px;
}

h3 {
    font-size: 1.32rem;
    line-height: 1.2;
}

.skill-cloud,
.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-cloud span,
.language-list span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(216, 245, 106, 0.14);
    font-size: 0.92rem;
}

.card-grid,
.project-grid,
.links-grid {
    display: grid;
    gap: 18px;
}

.card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.project-card,
.links-grid a {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(197, 216, 200, 0.1);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.info-card:hover,
.project-card:hover,
.links-grid a:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 245, 106, 0.26);
    background: rgba(255, 255, 255, 0.055);
}

.info-card {
    display: grid;
    gap: 14px;
}

.code-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    display: grid;
    gap: 16px;
}

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

.links-grid a {
    display: grid;
    gap: 8px;
    min-height: 140px;
}

.link-topline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(216, 245, 106, 0.2), rgba(255, 209, 102, 0.16));
    color: var(--accent-strong);
    border: 1px solid rgba(216, 245, 106, 0.18);
    font-size: 1rem;
    flex: 0 0 42px;
}

.links-grid strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
}

.footer {
    margin-top: 34px;
    padding: 22px 26px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer p {
    color: var(--muted);
}

.footer a {
    color: var(--accent-strong);
    font-weight: 700;
}

@keyframes floatNote {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1080px) {
    .hero,
    .about-layout,
    .card-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 30px;
    }

    .portrait-card {
        max-width: 500px;
    }

    .code-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 16px;
    }

    .topbar,
    .hero,
    .section-grid,
    .footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }

    .hero {
        gap: 24px;
        border-radius: 26px;
    }

    .floating-note {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 14px;
    }

    .insight-strip,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .insight-strip article + article {
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    h1 {
        max-width: none;
        font-size: clamp(2.4rem, 14vw, 4rem);
    }

    .hero-lead,
    .section-content p,
    .info-card p,
    .project-card p,
    .focus-panel p,
    .links-grid span {
        line-height: 1.7;
    }

    .button {
        width: 100%;
    }

    .social-pill {
        width: 42px;
        height: 42px;
    }

    .quick-points li,
    .info-card,
    .project-card,
    .links-grid a,
    .focus-panel,
    .code-panel {
        padding: 18px;
    }

    .section-grid {
        padding-top: 28px;
        padding-bottom: 28px;
    }
}
