:root {
    --bg: #f4f7fb;
    --bg-alt: #edf2f7;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #1f4f8f;
    --primary-dark: #163b69;
    --border: #d9e2ec;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --container: 1150px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.brand a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.2px;
}

nav {
    margin-left: auto;
}

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

.nav-list a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: var(--primary);
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-link {
    border: 1px solid var(--border);
    background: white;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.lang-link:hover {
    background: #eef4fb;
}

.lang-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f0fb;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 760px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 700px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.hero-card {
    display: flex;
    justify-content: center;
}

.profile-card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid #e6eef7;
}

.profile-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary);
}

.role {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-highlights {
    margin: 0;
    padding-left: 20px;
    text-align: left;
}

.section {
    padding: 70px 0;
}

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

.section-heading {
    margin-bottom: 24px;
}

.section-tag {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.resume-grid,
.project-grid,
.skills-grid,
.contact-grid {
    display: grid;
    gap: 22px;
}

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

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary);
}

.clean-list {
    margin: 0;
    padding-left: 20px;
}

.project-card p {
    margin-bottom: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

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

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: white;
}

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

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        margin-left: 0;
    }

    .nav-list {
        position: absolute;
        top: 76px;
        right: 4%;
        left: 4%;
        display: none;
        flex-direction: column;
        gap: 14px;
        padding: 18px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .nav-list.active {
        display: flex;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-grid,
    .project-grid,
    .skills-grid,
    .contact-grid,
    .resume-grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 56px 0;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .language-switcher {
        margin-left: auto;
    }
}