:root {
    --bg: #080c12;
    --bg-soft: #0d1420;
    --text: #edf3f8;
    --muted: #9aa8b8;
    --line: rgba(255, 255, 255, 0.12);
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --accent: #48d6b5;
    --accent-dark: #1d8d79;
    --glow: rgba(72, 214, 181, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(72, 214, 181, 0.13), transparent 30%),
        radial-gradient(circle at 85% 0%, rgba(82, 125, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #080c12 0%, #0b1018 52%, #05070b 100%);
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(20px, 5vw, 72px);
    background: rgba(8, 12, 18, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.logo {
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
    transition: color 180ms ease;
}

.logo:hover {
    color: var(--accent);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    color: var(--muted);
    font-size: 15px;
}

.nav a {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
    transform: translateY(-1px);
}

.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    animation: pageIn 520ms ease both;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: end;
    min-height: calc(100vh - 82px);
    padding: 84px 0;
}

.page-hero.compact {
    display: block;
    min-height: auto;
    padding: 84px 0 46px;
}

.about-hero {
    min-height: auto;
    padding: 72px 0 56px;
}

.single-column-hero {
    display: block;
}

.page-hero-content {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(44px, 8vw, 92px);
    line-height: 0.96;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.08;
}

h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.role {
    margin: 18px 0 0;
    color: var(--accent);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
}

.lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 21px;
}

.hero-panel,
.service-list article,
.stack-grid article,
.contact-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.hero-panel:hover,
.service-list article:hover,
.stack-grid article:hover,
.contact-box:hover {
    border-color: rgba(72, 214, 181, 0.42);
    background: var(--surface-strong);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3), 0 0 36px var(--glow);
    transform: translateY(-4px);
}

.hero-panel {
    padding: 26px;
}

.hero-panel p,
.hero-panel span {
    color: var(--muted);
}

.hero-panel strong {
    display: block;
    margin: 10px 0;
    font-size: 28px;
    line-height: 1.1;
}

.section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.first-section {
    border-top: 0;
    padding-top: 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: start;
}

.about-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 19px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(72, 214, 181, 0.26);
    border-radius: 999px;
    background: rgba(72, 214, 181, 0.09);
    color: #b9ffee;
    font-weight: 700;
    font-size: 14px;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.skills span:hover {
    border-color: rgba(72, 214, 181, 0.58);
    background: rgba(72, 214, 181, 0.16);
    transform: translateY(-2px);
}

.service-list,
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-list article,
.stack-grid article {
    padding: 26px;
}

.service-list h2,
.stack-grid h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.service-list p,
.stack-grid p {
    margin: 0;
    color: var(--muted);
}

.stack-tags {
    margin-top: 18px;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: center;
    margin: 72px 0;
    padding: 42px;
    border: 1px solid rgba(72, 214, 181, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(29, 141, 121, 0.34), rgba(255, 255, 255, 0.06));
}

.contact .eyebrow {
    color: #b9ffee;
}

.contact p {
    margin-bottom: 0;
    color: var(--muted);
}

.contact-box {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.contact-box a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 38px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    .page-hero,
    .about-grid,
    .service-list,
    .stack-grid,
    .contact {
        grid-template-columns: 1fr;
    }

    .page-hero {
        min-height: auto;
        padding: 58px 0;
    }

    .page-hero.compact {
        padding: 58px 0 32px;
    }

    .about-hero {
        padding: 52px 0 40px;
    }

    .contact {
        padding: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }
}
