:root {
    --bg: #07111f;
    --bg-soft: #0d1b2a;
    --card: rgba(15, 30, 48, 0.78);
    --card-light: #10243a;
    --text: #e8f0f8;
    --muted: #9fb1c4;
    --accent: #38bdf8;
    --accent-2: #22d3ee;
    --border: rgba(148, 163, 184, 0.16);
    --white: #ffffff;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.08), transparent 25%),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a {
    color: inherit;
}

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

/* ---------- HEADER ---------- */

header {
    min-height: 560px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

header::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    top: -160px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.10);
    filter: blur(5px);
}

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 42px;
    align-items: center;
    padding: 70px 0;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(56, 189, 248, 0.75);
    box-shadow:
        0 0 0 8px rgba(56, 189, 248, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.35);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
}

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

.hero-title {
    margin: 16px 0 0;
    max-width: 800px;
    font-size: 21px;
    color: var(--muted);
}

.hero-description {
    max-width: 780px;
    margin: 18px 0 0;
    color: #c6d4e2;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: 0.25s ease;
}

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

.button-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

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

/* ---------- NAV ---------- */

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(7, 17, 31, 0.86);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

nav a:hover {
    color: var(--accent);
}

/* ---------- MAIN ---------- */

main {
    padding: 55px 0;
}

section {
    margin-bottom: 55px;
    scroll-margin-top: 85px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.about-card,
.job,
.education-card,
.contact-card {
    background: linear-gradient(
        145deg,
        rgba(16, 36, 58, 0.9),
        rgba(10, 25, 41, 0.78)
    );
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.about-card {
    padding: 30px;
}

.about-card p {
    margin: 0 0 14px;
    color: #cbd8e5;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* ---------- HIGHLIGHTS ---------- */

.highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.highlight {
    padding: 22px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
}

.highlight strong {
    display: block;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 4px;
}

.highlight span {
    color: var(--muted);
    font-size: 13px;
}

/* ---------- EXPERIENCE ---------- */

.timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.job {
    position: relative;
    padding: 28px 30px 28px 34px;
}

.job::before {
    content: "";
    position: absolute;
    left: 0;
    top: 27px;
    bottom: 27px;
    width: 3px;
    border-radius: 5px;
    background: linear-gradient(var(--accent), var(--accent-2));
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.job h3 {
    margin: 0;
    font-size: 20px;
}

.company {
    margin-top: 3px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.date {
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.job-summary {
    color: #cbd8e5;
    margin: 17px 0 12px;
}

.responsibilities {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.responsibilities li {
    margin-bottom: 7px;
}

/* ---------- SKILLS ---------- */

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill {
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    color: #cbd8e5;
    font-size: 13px;
    transition: 0.25s ease;
}

.skill:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.6);
    color: var(--accent);
    background: rgba(56, 189, 248, 0.06);
}

/* ---------- EDUCATION / CERTIFICATIONS ---------- */

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.education-card {
    padding: 25px;
}

.education-card h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.education-card p {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 14px;
}

.cert-list {
    margin: 0;
    padding-left: 19px;
    color: var(--muted);
}

.cert-list li {
    margin-bottom: 8px;
}

/* ---------- CONTACT ---------- */

.contact-card {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.contact-card h2 {
    margin: 0 0 6px;
}

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

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

.contact-link {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    text-decoration: none;
    color: #dce8f3;
    font-size: 13px;
}

.contact-link:hover {
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.5);
}

/* ---------- FOOTER ---------- */

footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: #71869a;
    font-size: 13px;
    text-align: center;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .hero-description,
    .hero-title {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

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

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

    .contact-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(var(--max-width), calc(100% - 28px));
    }

    header {
        min-height: auto;
    }

    .hero {
        padding: 55px 0;
    }

    .profile-photo {
        width: 145px;
        height: 145px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-title {
        font-size: 18px;
    }

    main {
        padding: 38px 0;
    }

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

    .job {
        padding: 24px 20px 24px 26px;
    }

    .job-header {
        flex-direction: column;
        gap: 10px;
    }

    .date {
        white-space: normal;
    }

    .about-card,
    .contact-card {
        padding: 23px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .nav-content {
    justify-content: flex-start;
    gap: 20px;
    padding: 0 4px;
    }
}
