:root {
    --bg: #f7f9fc;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(15, 23, 42, 0.07);
    --text: #0f172a;
    --muted: #64748b;
    --accent: #0f172a;
    --accent-soft: #edf2f7;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.13), transparent 30%),
        radial-gradient(circle at bottom right, rgba(226, 232, 240, 0.45), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

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

.container {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1.5rem 0 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.05rem 1.35rem;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-text {
    font-size: 1rem;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-links a {
    position: relative;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
    background: rgba(15, 23, 42, 0.06);
    outline: none;
}

.nav-links a.is-active {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.page-content {
    padding: 2.75rem 0 5.5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

.hero-copy,
.hero-panel,
.info-card,
.stack-card,
.cta-banner {
    padding: 2rem;
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 1.1rem 0 1rem;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.06em;
    max-width: 10ch;
}

.hero-lead {
    max-width: 60ch;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.button-secondary {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text);
}

.hero-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.96)),
        #ffffff;
}

.hero-panel-title {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
}

.quick-facts {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.quick-facts li {
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    line-height: 1.7;
}

.quick-facts li:first-child {
    padding-top: 0;
    border-top: 0;
}

.quick-facts a,
.text-link {
    color: var(--text);
    font-weight: 700;
}

.content-section {
    margin-top: 2.5rem;
}

.section-heading h2,
.cta-banner h2 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-heading-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.info-grid,
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.info-card h3,
.stack-card h3,
.projects-grid h3 {
    margin: 0 0 0.9rem;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.info-card p,
.stack-card p,
.cta-banner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.stack-list {
    padding-left: 1.1rem;
    margin: 0;
    color: var(--muted);
    line-height: 2;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
}

.section-heading {
    max-width: 680px;
    margin-bottom: 2.25rem;
}

.section-heading h1,
.project-detail h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-heading p,
.project-detail p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--muted);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-detail-page {
    display: grid;
    gap: 1rem;
}

.project-card,
.project-detail {
    padding: 1.65rem;
    border: 1px solid var(--surface-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.project-type,
.project-index {
    font-size: 0.82rem;
    color: var(--muted);
}

.project-index {
    font-family: Consolas, "Courier New", monospace;
}

.project-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
}

.project-card h3 {
    font-size: 1.4rem;
    line-height: 1.2;
}

.project-card p {
    margin: 0 0 1.4rem;
    color: var(--muted);
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.55rem;
}

.project-tags span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
}

.project-tags .project-tag-status {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.project-info-panel {
    margin: 0 0 2rem;
    padding: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
}

.project-info-panel h2 {
    margin: 0 0 1rem;
}

.project-info-list {
    display: grid;
    gap: 0.9rem;
}

.project-info-item {
    display: grid;
    gap: 0.25rem;
}

.project-info-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-info-item p,
.project-info-item a {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.project-info-item a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.project-info-item a:hover,
.project-info-item a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #334155;
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #334155;
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.project-link:hover,
.project-link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.contact-page {
    display: grid;
    gap: 2rem;
}

.contact-intro {
    max-width: 760px;
}

.contact-intro h1 {
    margin: 1rem 0 0.85rem;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.contact-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.contact-card {
    padding: 2rem;
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.contact-form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.contact-form-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-form-header h2 {
    margin: 0 0 0.7rem;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.contact-form-header p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-field {
    display: grid;
    gap: 0.65rem;
}

.form-field label {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    color: var(--text);
    font: inherit;
    line-height: 1.65;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 190px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94a3b8;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow:
        0 0 0 4px rgba(15, 23, 42, 0.04),
        0 14px 28px rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
    outline: none;
}

.form-error {
    margin: 0;
    font-size: 0.9rem;
    color: #b91c1c;
}

.form-alert {
    margin-bottom: 1.25rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.form-alert-success {
    border: 1px solid rgba(34, 197, 94, 0.18);
    background: rgba(240, 253, 244, 0.9);
    color: #166534;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.25rem;
}

.form-help {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.contact-submit {
    min-width: 220px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.contact-submit:hover,
.contact-submit:focus-visible {
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.contact-aside {
    display: grid;
    gap: 1.5rem;
}

.contact-note {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-note h2 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.contact-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

@media (max-width: 720px) {
    .site-header {
        padding-top: 0.9rem;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
    }

    .brand {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .nav-links a {
        flex: 1 1 120px;
        text-align: center;
    }
}

@media (max-width: 960px) {
    .hero,
    .info-grid,
    .stack-grid,
    .contact-layout,
    .cta-banner,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        display: grid;
    }

    .section-heading-inline {
        align-items: start;
        flex-direction: column;
    }

    .container {
        width: min(1180px, calc(100% - 2rem));
    }
}

@media (max-width: 720px) {
    .hero-copy,
    .hero-panel,
    .info-card,
    .stack-card,
    .contact-card,
    .project-card,
    .cta-banner,
    .project-detail {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .page-content {
        padding: 2rem 0 4rem;
    }

    .hero,
    .content-section,
    .cta-banner {
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .contact-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
}
