:root {
    color-scheme: dark;
    --background: #10151c;
    --foreground: #eef3f7;
    --muted: #9aa7b2;
    --card: #151d26;
    --card-soft: #1b2530;
    --border: #2d3945;
    --primary: #55d6be;
    --primary-ink: #09201b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
    border-bottom: 1px solid rgba(45, 57, 69, 0.7);
    background: rgba(16, 21, 28, 0.84);
    backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    width: min(1120px, calc(100% - 3rem));
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 1rem 0;
}

.brand {
    font-family: "Space Grotesk", ui-monospace, monospace;
    font-size: 1.1rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--primary);
}

.nav-cta {
    border: 1px solid rgba(85, 214, 190, 0.35);
    border-radius: 999px;
    background: rgba(85, 214, 190, 0.1);
    color: var(--primary);
    padding: 0.55rem 1.15rem;
}

.menu-button {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: var(--foreground);
}

.menu-button span {
    display: block;
    width: 1.4rem;
    height: 2px;
    margin: 0.28rem auto;
    background: currentColor;
}

.mobile-menu {
    display: none;
}

.section {
    position: relative;
    padding: 6rem 0;
}

.hero {
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding-top: 8rem;
    text-align: center;
}

.hero-glow {
    position: absolute;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    background: var(--primary);
    opacity: 0.04;
    filter: blur(2px);
    animation: pulse 8s ease-in-out infinite;
}

.hero-glow-one {
    top: -12rem;
    right: -10rem;
}

.hero-glow-two {
    bottom: -12rem;
    left: -10rem;
    animation-delay: 2s;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(27, 37, 48, 0.62);
    color: var(--muted);
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}

.status-pill span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(85, 214, 190, 0.6);
    animation: ping 1.6s infinite;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Space Grotesk", ui-monospace, monospace;
    letter-spacing: 0;
}

h1 {
    margin: 1.5rem auto;
    font-size: clamp(2.8rem, 7vw, 4.7rem);
    line-height: 1.03;
}

.hero-summary {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.hero-actions,
.quick-links,
.tag-cloud,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.7rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.button-primary {
    background: var(--primary);
    color: var(--primary-ink);
}

.button-secondary {
    border: 1px solid var(--border);
}

.quick-links {
    margin-top: 2rem;
}

.quick-links a,
.icon-box {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--card);
    color: var(--muted);
}

.quick-links a {
    border-radius: 999px;
}

.quick-links a:hover,
.contact-list a:hover,
.info-card:hover,
.project-card:hover {
    border-color: rgba(85, 214, 190, 0.48);
}

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

.section-divider span {
    display: block;
    height: 1px;
    background: var(--border);
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading p {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.copy-block {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.tag-cloud {
    justify-content: flex-start;
    margin-top: 2rem;
}

.tag-cloud span,
.tag-row span {
    border-radius: 999px;
    background: rgba(85, 214, 190, 0.1);
    color: var(--primary);
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.tag-cloud span {
    border: 1px solid var(--border);
    background: rgba(27, 37, 48, 0.5);
    color: var(--muted);
}

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

.info-card,
.project-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--card);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.info-card {
    padding: 1.5rem;
}

.info-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    background: var(--card-soft);
}

.info-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.info-card p,
.timeline-item p,
.project-card p {
    color: var(--muted);
    line-height: 1.65;
}

.timeline {
    display: grid;
    gap: 0.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.timeline-item:hover {
    transform: translateX(4px);
    border-color: var(--border);
    background: var(--card);
}

.period {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.timeline-item h3 span,
.timeline-item h3 a {
    color: var(--primary);
}

.tag-row {
    justify-content: flex-start;
    margin-top: 1rem;
}

.experience-note {
    display: inline-block;
    margin: 2rem 0 0 1.5rem;
    color: var(--foreground);
    font-size: 0.95rem;
    font-weight: 700;
}

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

.project-card {
    overflow: hidden;
}

.project-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--card-soft);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.project-card:hover img {
    transform: scale(1.04);
}

.project-body {
    padding: 1.5rem;
}

.project-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.project-title-row h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.project-actions {
    display: flex;
    gap: 0.45rem;
}

.project-actions a {
    border-radius: 999px;
    background: var(--card-soft);
    color: var(--muted);
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.contact-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-list small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-list strong {
    color: var(--foreground);
    font-size: 0.95rem;
}

.social-block p {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-block a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.6rem;
    padding: 0.9rem 1rem;
    font-weight: 700;
}

.social-block a:hover {
    background: var(--card);
    color: var(--primary);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-shell p {
    margin-bottom: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    50% {
        transform: scale(1.16);
        opacity: 0.07;
    }
}

@keyframes ping {
    70%,
    100% {
        box-shadow: 0 0 0 8px rgba(85, 214, 190, 0);
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-menu.is-open {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        background: rgba(16, 21, 28, 0.96);
        color: var(--foreground);
        font-size: 1.6rem;
        font-weight: 700;
    }

    .about-grid,
    .contact-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-shell,
    .section-divider {
        width: min(100% - 2rem, 1120px);
    }

    .section {
        padding: 4.5rem 0;
    }

    .hero {
        padding-top: 7rem;
    }

    h1 {
        font-size: 2.7rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

    .project-title-row,
    .footer-shell {
        flex-direction: column;
    }
}
