:root {
    color-scheme: dark;
    --background-color: #040404;
    --surface-color: rgba(14, 19, 30, 0.88);
    --surface-soft: rgba(255, 255, 255, 0.05);
    --text-color: #f5f7fb;
    --muted-text-color: #ccd4e2;
    --soft-text-color: #e6ecf5;
    --accent-color: #7dd3fc;
    --accent-strong: #38bdf8;
    --accent-contrast: #05121b;
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.32);
    --content-width: 1120px;
    --section-spacing: clamp(4.25rem, 7vw, 5.75rem);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--background-color);
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 25rem),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.82), transparent 28rem),
        linear-gradient(180deg, #040404 0%, #07101c 100%);
    color: var(--text-color);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

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

ul {
    margin: 0;
}

:where(a, button):focus-visible {
    outline: 3px solid rgba(125, 211, 252, 0.82);
    outline-offset: 4px;
}

.container {
    width: min(100% - 2.25rem, var(--content-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(125, 211, 252, 0.15);
    background:
        radial-gradient(circle at left center, rgba(56, 189, 248, 0.12), transparent 28%),
        radial-gradient(circle at right center, rgba(139, 92, 246, 0.1), transparent 26%),
        linear-gradient(120deg, rgba(4, 4, 4, 0.95), rgba(10, 18, 35, 0.95));
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

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

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(56, 189, 248, 0.34));
    color: var(--accent-color);
    box-shadow:
        0 0 12px rgba(56, 189, 248, 0.35),
        0 0 25px rgba(139, 92, 246, 0.25);
    animation: brandGlow 3.6s ease-in-out infinite;
}

.brand-mark-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
}

.brand-title {
    color: var(--soft-text-color);
    font-size: 0.98rem;
}

.brand-subtitle {
    color: var(--muted-text-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    list-style: none;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-pill);
    color: rgba(203, 213, 245, 0.88);
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background-color: var(--surface-soft);
    color: #7dd3fc;
    transform: translateY(-1px);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #8b5cf6);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    width: 70%;
}

.hero-section {
    padding: clamp(4.5rem, 9vw, 6.75rem) 0 2.5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(19rem, 0.86fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-content {
    max-width: 43rem;
}

.eyebrow,
.section-kicker,
.project-label,
.panel-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.hero-content h1 {
    margin: 1rem 0 0;
    font-size: clamp(3rem, 7vw, 5.15rem);
    line-height: 0.98;
}

.hero-role {
    margin: 1rem 0 0;
    color: var(--soft-text-color);
    font-size: clamp(1.16rem, 2.3vw, 1.45rem);
    font-weight: 600;
}

.hero-text,
.hero-support,
.about-copy p,
.info-card p,
.project-summary,
.meta-value,
.contact-text,
.contact-note,
.hero-panel-body p {
    color: var(--muted-text-color);
    line-height: 1.78;
}

.hero-text,
.hero-support {
    max-width: 42rem;
    font-size: 1.05rem;
}

.hero-text {
    margin: 1.25rem 0 0;
}

.hero-support {
    margin: 0.9rem 0 0;
}

.stack-list,
.tech-tags,
.panel-points {
    padding: 0;
    list-style: none;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.stack-list li,
.tech-tags li {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--soft-text-color);
}

.stack-list li {
    padding: 0.8rem 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.75rem;
    min-height: 3.15rem;
    padding: 0.95rem 1.45rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    color: var(--accent-contrast);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.35);
}

.button-secondary,
.button-tertiary {
    color: var(--text-color);
}

.button-secondary {
    border-color: var(--border-color);
    background-color: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: rgba(125, 211, 252, 0.42);
    background-color: rgba(125, 211, 252, 0.1);
}

.button-tertiary {
    border-color: rgba(125, 211, 252, 0.24);
    background-color: rgba(125, 211, 252, 0.04);
}

.button-tertiary:hover,
.button-tertiary:focus-visible {
    border-color: rgba(125, 211, 252, 0.42);
    background-color: rgba(125, 211, 252, 0.12);
}

.hero-panel,
.info-card,
.tech-card,
.project-card,
.contact-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    background-color: var(--surface-color);
    box-shadow: 0 24px 70px var(--shadow-color);
}

.hero-panel {
    max-width: 31rem;
    justify-self: end;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    aspect-ratio: 11 / 8;
    object-fit: cover;
}

.hero-panel-body {
    padding: 1.75rem;
}

.hero-panel-body h2,
.section-heading h2,
.tech-card h3,
.project-card h3,
.info-card h3 {
    margin: 0.9rem 0 0;
}

.hero-panel-body h2 {
    font-size: 1.52rem;
    line-height: 1.25;
}

.hero-panel-body p {
    margin: 1rem 0 0;
}

.panel-points {
    display: grid;
    gap: 0.78rem;
    margin-top: 1.3rem;
}

.panel-points li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--soft-text-color);
}

.panel-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.section {
    padding: var(--section-spacing) 0;
}

.section-heading {
    max-width: 52rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    margin-top: 2.25rem;
}

.about-copy p {
    margin: 0 0 1.2rem;
    font-size: 1.04rem;
}

.feature-grid {
    display: grid;
    gap: 1rem;
}

.info-card,
.tech-card,
.project-card,
.contact-card {
    padding: 1.65rem;
}

.info-card {
    border-radius: var(--radius-medium);
}

.info-card h3 {
    font-size: 1.2rem;
}

.info-card p {
    margin: 0.85rem 0 0;
}

.section-stack,
.section-projects {
    padding-top: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.25rem;
}

.tech-card {
    border-radius: var(--radius-medium);
    background: linear-gradient(180deg, rgba(14, 19, 30, 0.94), rgba(10, 14, 23, 0.94));
}

.tech-card h3 {
    font-size: 1.15rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.tech-tags li {
    padding: 0.72rem 0.9rem;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-medium);
    background: linear-gradient(180deg, rgba(14, 19, 30, 0.95), rgba(8, 11, 18, 0.98));
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.24);
    box-shadow:
        0 18px 40px rgba(56, 189, 248, 0.14),
        0 24px 60px rgba(139, 92, 246, 0.16);
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: var(--radius-pill);
    background-color: rgba(125, 211, 252, 0.08);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.project-card h3 {
    font-size: 1.35rem;
}

.project-summary {
    margin: 1rem 0 0;
}

.project-meta {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border-color);
}

.project-meta p {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

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

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.4rem;
}

.project-links a,
.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--muted-text-color);
    background-color: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-links a:hover,
.project-links a:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible {
    border-color: rgba(125, 211, 252, 0.38);
    background-color: rgba(125, 211, 252, 0.08);
    color: var(--soft-text-color);
    transform: translateY(-1px);
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.92fr);
    gap: 2rem;
    align-items: start;
}

.contact-card {
    border-radius: var(--radius-large);
    background: linear-gradient(180deg, rgba(14, 19, 30, 0.96), rgba(8, 12, 20, 1));
}

.contact-mail {
    display: inline-block;
    margin-top: 1rem;
    color: var(--soft-text-color);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    transition: color 0.2s ease;
}

.contact-mail:hover,
.contact-mail:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--accent-color);
}

.contact-note {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
}

.contact-links {
    display: grid;
    gap: 0.85rem;
    margin: 1.5rem 0 1.75rem;
}

.site-footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(4, 4, 4, 0.92);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
}

.site-footer p,
.site-footer a {
    margin: 0;
    color: var(--muted-text-color);
}

@keyframes brandGlow {
    0%,
    100% {
        box-shadow:
            0 0 12px rgba(56, 189, 248, 0.28),
            0 0 24px rgba(139, 92, 246, 0.18);
    }

    50% {
        box-shadow:
            0 0 16px rgba(56, 189, 248, 0.42),
            0 0 30px rgba(139, 92, 246, 0.28);
    }
}

@media (max-width: 1080px) {
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .hero,
    .about-grid,
    .contact-shell,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: none;
        justify-self: stretch;
    }

    .site-nav ul {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 8rem;
    }

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

    .site-nav {
        width: 100%;
    }

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

    .site-nav a {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .hero-section {
        padding-top: 3.75rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-actions .button {
        flex: 1 1 12rem;
    }

    .tech-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .brand-mark {
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
