* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #eef2f7;
    --text: #172033;
    --muted: #5f6b7a;
    --primary: #2457d6;
    --primary-dark: #1b43a7;
    --border: #dce3ec;
    --shadow: 0 14px 36px rgba(31, 45, 61, 0.08);
    --radius: 16px;
    --container: 1160px;
}

html {
    scroll-behavior: smooth;
}

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

body,
button,
a {
    font-family: inherit;
}

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

button {
    cursor: pointer;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 227, 236, 0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

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

.brand {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--primary);
}

.menu-button {
    display: none;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 9px 13px;
    color: var(--text);
    background: var(--surface);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero {
    display: flex;
    min-height: 620px;
    align-items: center;
    padding: 96px 0;
    background:
        radial-gradient(circle at top right, rgba(36, 87, 214, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.hero-content {
    max-width: 900px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 8px;
    font-size: clamp(3rem, 8vw, 5.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero h2 {
    max-width: 780px;
    margin-bottom: 22px;
    color: #334155;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.hero-summary {
    max-width: 780px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions,
.project-actions,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

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

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

.primary-button:hover,
.primary-button:focus {
    background: var(--primary-dark);
}

.secondary-button {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}

.secondary-button:hover,
.secondary-button:focus {
    border-color: #9fb1c7;
    background: #f8fafc;
}

.section {
    padding: 88px 0;
}

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

.section-heading {
    max-width: 720px;
    margin-bottom: 38px;
}

.section-heading h2,
.contact-content h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.section-heading > p:last-child,
.contact-content > p {
    color: var(--muted);
}

.project-grid {
    display: grid;
    gap: 28px;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.project-image {
    min-height: 320px;
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(36, 87, 214, 0.92), rgba(16, 34, 76, 0.95)),
        #2457d6;
    text-align: center;
}

.placeholder-image span {
    max-width: 260px;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
}

.project-content h3 {
    margin-bottom: 14px;
    font-size: 1.65rem;
}

.project-content > p {
    margin-bottom: 20px;
    color: var(--muted);
}

.technology-list {
    color: #334155 !important;
    font-size: 0.88rem;
    font-weight: 800;
}

.timeline {
    display: grid;
    gap: 20px;
}

.timeline-item,
.skill-card,
.education-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.05);
}

.timeline-item {
    padding: 30px;
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.timeline-header h3 {
    margin-bottom: 4px;
    font-size: 1.3rem;
}

.timeline-header p,
.timeline-header span {
    color: var(--muted);
}

.timeline-header span {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline-item ul {
    padding-left: 20px;
}

.timeline-item li {
    margin-bottom: 9px;
    color: #465365;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 26px;
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.skill-card p,
.education-card p {
    color: var(--muted);
}

.education-card {
    max-width: 700px;
    padding: 30px;
}

.education-card h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.contact-section {
    color: #ffffff;
    background: #172033;
}

.contact-content {
    max-width: 780px;
}

.contact-section .eyebrow {
    color: #9eb8ff;
}

.contact-content > p {
    margin-bottom: 26px;
    color: #cbd5e1;
}

.contact-links a {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9px;
    padding: 10px 15px;
    color: #ffffff;
    font-weight: 700;
}

.contact-links a:hover,
.contact-links a:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.site-footer {
    padding: 28px 0;
    color: #9aa6b5;
    background: #101725;
    font-size: 0.86rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
}

@media (max-width: 900px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 240px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .menu-button {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        right: 4%;
        left: 4%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

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

    .section {
        padding: 68px 0;
    }

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }

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

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(94%, var(--container));
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-actions,
    .project-actions,
    .contact-links {
        flex-direction: column;
    }

    .button,
    .contact-links a {
        width: 100%;
        text-align: center;
    }

    .project-content,
    .timeline-item,
    .skill-card,
    .education-card {
        padding: 22px;
    }
}

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

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