:root {
    --background: #1F2067;
    --surface: #1F2067;
    --surface-light: #444C6F;
    --text: #9BD1E5;
    --muted: #829399;
    --accent: #001B89;
    --accent-dark: #829399;
    --border: #B7B7B7;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

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

a {
    color: inherit;
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

.narrow {
    max-width: 850px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(17, 16, 24, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-title {
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-list {
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    color: var(--muted);
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--accent);
}

.hero {
    padding: 7rem 0 6rem;
    background: linear-gradient(135deg, #111018 0%, #211b31 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow,
.section-label,
.project-type {
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.05;
}

h1 span {
    color: var(--accent);
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    margin-bottom: 0.7rem;
    font-size: 1.35rem;
}

h4 {
    margin-bottom: 0.35rem;
    color: var(--accent);
}

.hero-text,
.section-intro,
.section p,
.project-card li {
    color: var(--muted);
}

.button-row,
.contact-links,
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.button.primary {
    background: var(--accent);
    color: #15121d;
}

.button.primary:hover,
.button.primary:focus {
    background: #cfb8ff;
}

.button.secondary:hover,
.button.secondary:focus {
    background: var(--surface-light);
}

.profile-image {
    width: min(100%, 320px);
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.section {
    padding: 5.5rem 0;
}

.alternate-background {
    background: var(--surface);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.info-card,
.project-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-light);
}

.info-card {
    padding: 1.25rem;
}

.info-card p {
    margin-bottom: 0;
}

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

.project-card {
    overflow: hidden;
}

.project-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0c0b10;
}

.project-content {
    padding: 1.5rem;
}

.project-content ul {
    padding-left: 1.2rem;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus {
    text-decoration: underline;
}

.contact-section {
    text-align: center;
}

.contact-links {
    justify-content: center;
    margin-top: 1.5rem;
}

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

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

@media (max-width: 800px) {
    .hero-content,
    .project-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 2.5rem;
    }

    .profile-image {
        max-width: 260px;
    }
}

@media (max-width: 620px) {
    .nav-wrapper {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }

    .hero {
        padding-top: 4.5rem;
    }
}
