:root {
    --bg: #07111f;
    --surface: #0f1b2d;
    --surface-2: #14253d;
    --text: #f5f7fb;
    --muted: #9fb0c8;
    --accent: #4f8cff;
    --accent-2: #7dd3fc;
    --border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg), #0b1830 60%, #13233b);
    line-height: 1.6;
}

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

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

.hero {
    padding: 1.25rem 0 4rem;
}

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

.brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.eyebrow,
.section-label,
.card-label {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 680px;
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
}

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--accent), #3f7df1);
    box-shadow: 0 10px 25px rgba(79, 140, 255, 0.25);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin: 1.5rem 0 0;
    list-style: none;
}

.highlights li {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.hero-card,
.about,
.experience,
.expertise,
.projects,
.contact {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(3, 10, 20, 0.24);
    border-radius: 24px;
}

.hero-card {
    padding: 1rem;
}

.hero-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
    margin-bottom: 1rem;
}

.card-content {
    padding: 0.2rem 0.2rem 0.4rem;
}

.card-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.card-content p {
    margin: 0;
    color: var(--muted);
}

.about,
.experience,
.expertise,
.projects,
.contact {
    padding: 2rem;
    margin-top: 1.5rem;
}

.about {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.about h2,
.contact h2 {
    margin-top: 0;
    font-size: 1.7rem;
}

.about p,
.timeline-item ul,
.project-card p,
.skill-card p {
    color: var(--muted);
}

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

.timeline-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-item h3,
.skill-card h3,
.project-card h3 {
    margin: 0 0 0.25rem;
}

.meta {
    color: var(--accent-2);
    margin: 0 0 0.6rem;
    font-weight: 600;
}

.timeline-item ul {
    margin: 0;
    padding-left: 1rem;
}

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

.skill-card,
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.1rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-links a {
    color: var(--text);
    text-decoration: none;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.footer {
    padding: 2rem 0 3rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 860px) {

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

    .hero-card img {
        height: 260px;
    }
}

@media (max-width: 640px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .hero {
        padding-top: 0.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .hero-copy {
        order: 1;
    }

    .hero-card {
        order: 2;
    }

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

    .lead {
        font-size: 1rem;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .highlights {
        gap: 0.5rem;
    }

    .highlights li {
        width: 100%;
        text-align: center;
    }

    .hero-card img {
        height: 220px;
    }

    .about,
    .experience,
    .expertise,
    .projects,
    .contact {
        padding: 1.25rem;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-links a {
        text-align: center;
    }
}