:root {
    --ink: #10243a;
    --muted: #667085;
    --green-950: #114b7f;
    --green-800: #2f73b7;
    --green-600: #3f86c8;
    --green-400: #7bb4e3;
    --cream: #eef6fd;
    --paper: #ffffff;
    --line: #d6e8f7;
    --silver: #a9a9a9;
    --dark: #071e33;
    --cyan-glow: rgba(123, 180, 227, 0.46);
    --shadow: 0 24px 70px rgba(17, 75, 127, 0.15);
    --tech-shadow: 0 28px 90px rgba(17, 75, 127, 0.24);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(123, 180, 227, 0.36), transparent 28rem),
        radial-gradient(circle at 88% 16%, rgba(47, 115, 183, 0.22), transparent 24rem),
        linear-gradient(rgba(47, 115, 183, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 115, 183, 0.055) 1px, transparent 1px),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 45%, #eef6fd 100%);
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.section-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(7, 30, 51, 0.96), rgba(17, 75, 127, 0.86) 38%, rgba(238, 246, 253, 0.94) 100%),
        radial-gradient(circle at 90% 10%, rgba(123, 180, 227, 0.52), transparent 32%);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: auto auto -140px -120px;
    width: 420px;
    height: 420px;
    background: rgba(47, 115, 183, 0.13);
    border-radius: 50%;
    filter: blur(2px);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(120deg, transparent 0 48%, rgba(123, 180, 227, 0.20) 49%, transparent 51% 100%);
    background-size: 56px 56px, 56px 56px, 100% 100%;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), transparent 88%);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    isolation: isolate;
}

.brand,
.nav-links {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-weight: 800;
}

.brand-logo {
    object-fit: contain;
    padding: 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 232, 247, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(17, 75, 127, 0.18), 0 0 34px rgba(123, 180, 227, 0.32);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--green-950);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(17, 75, 127, 0.25);
}

.brand-text {
    color: #f7fbff;
    text-shadow: 0 0 18px rgba(123, 180, 227, 0.45);
    letter-spacing: -0.03em;
}

.nav-links {
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(214, 232, 247, 0.44);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 48px rgba(7, 30, 51, 0.16);
}

.nav-links a {
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: 999px;
}

.nav-links a:hover,
.nav-links .nav-cta {
    color: #fff;
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    box-shadow: 0 0 24px rgba(123, 180, 227, 0.38);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: linear-gradient(135deg, var(--green-950), var(--green-800));
    border-radius: 14px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 46px;
    align-items: center;
    min-height: 740px;
    padding: 96px 0 110px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #cfeaff;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.05em;
}

h1 {
    max-width: 820px;
    font-size: 2.70rem;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 38px rgba(123, 180, 227, 0.42);
}

h2 {
    font-size: 2.10rem;
    line-height: 1;
}

h3 {
    font-size: 1.2rem;
}

.hero-lead {
    max-width: 720px;
    margin: 28px 0 0;
    font-size: 1.18rem;
    color: #dceeff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    font-weight: 800;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--green-950), var(--green-800) 55%, var(--green-400));
    box-shadow: 0 18px 32px rgba(17, 75, 127, 0.28), 0 0 32px rgba(123, 180, 227, 0.40);
}

.button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(214, 232, 247, 0.46);
    backdrop-filter: blur(12px);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 680px;
    margin: 46px 0 0;
}

.hero-metrics div,
.hero-card,
.card,
.skills-card,
.education-grid article,
.contact-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 253, 0.76));
    border: 1px solid var(--line);
    box-shadow: var(--tech-shadow);
    backdrop-filter: blur(18px);
}

.hero-metrics div {
    padding: 18px;
    border-radius: 22px;
}

.hero-metrics dt {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green-950);
}

.hero-metrics dd {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-card {
    padding: 32px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.hero-card::before,
.card::before,
.timeline-item::before,
.skills-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(123, 180, 227, 0.28), transparent 34%, rgba(47, 115, 183, 0.12));
    opacity: 0.72;
}

.hero-card > *,
.card > *,
.timeline-item > *,
.skills-card > * {
    position: relative;
    z-index: 1;
}

.portrait {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    margin-bottom: 26px;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green-950), var(--green-600));
    border: 8px solid #e1f0fb;
    border-radius: 32px;
}

.hero-logo {
    display: block;
    width: min(100%, 310px);
    margin: 0 0 28px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(17, 75, 127, 0.18);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    font-weight: 600;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green-600);
    font-weight: 900;
}

.company-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.company-strip span {
    padding: 10px 14px;
    color: var(--green-950);
    font-weight: 800;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.intro-grid,
.feature-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.intro-grid,
.service-section,
.timeline-section,
.skills-section,
.education-section {
    padding: 104px 0;
}

.intro-copy p:first-child {
    margin-top: 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading.compact {
    margin-bottom: 26px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    min-height: 300px;
    padding: 26px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.timeline-item:hover,
.skills-card:hover,
.education-grid article:hover {
    transform: translateY(-6px);
    border-color: rgba(123, 180, 227, 0.74);
    box-shadow: 0 34px 90px rgba(17, 75, 127, 0.22), 0 0 34px rgba(123, 180, 227, 0.20);
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 34px;
    color: var(--green-950);
    font-weight: 900;
    background: linear-gradient(135deg, rgba(238, 246, 253, 0.96), rgba(214, 232, 247, 0.82));
    box-shadow: inset 0 0 18px rgba(123, 180, 227, 0.24);
    border-radius: 16px;
}

.highlighted-card {
    color: #fff;
    background: linear-gradient(145deg, var(--green-950), var(--green-800));
}

.highlighted-card p,
.highlighted-card .card-icon {
    color: #eaf8d9;
}

.highlighted-card .card-icon {
    background: rgba(255, 255, 255, 0.12);
}

.feature-band,
.contact-section {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 18% 20%, rgba(123, 180, 227, 0.26), transparent 32%),
        linear-gradient(135deg, var(--green-950), #0a2d4d);
    background-size: 48px 48px, 48px 48px, auto, auto;
}

.feature-band {
    padding: 88px 0;
}

.feature-band p,
.contact-section p {
    color: #dceeff;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-list div {
    padding: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.feature-list strong,
.feature-list span {
    display: block;
}

.feature-list strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.05rem;
}

.feature-list span {
    color: #dceeff;
    line-height: 1.6;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 28px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 253, 0.74));
    border: 1px solid var(--line);
    border-radius: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-date {
    color: var(--green-600);
    font-weight: 900;
}

.muted {
    margin: 8px 0 12px;
}

.timeline ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.skills-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: stretch;
}

.skills-card {
    padding: 30px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.skill {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
}

.skill span {
    color: var(--muted);
    font-weight: 700;
}

meter {
    width: 100%;
    height: 16px;
}

meter::-webkit-meter-bar {
    background: #e8f2fb;
    border: 0;
    border-radius: 999px;
}

meter::-webkit-meter-optimum-value {
    background: linear-gradient(90deg, var(--green-600), var(--green-400));
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(123, 180, 227, 0.62);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(238, 246, 253, 0.94), rgba(255, 255, 255, 0.76)),
        linear-gradient(90deg, rgba(47, 115, 183, 0.08) 1px, transparent 1px);
    background-size: auto, 32px 32px;
    border-radius: 24px;
    border: 1px solid var(--line);
}

.tag-cloud span {
    padding: 12px 16px;
    color: var(--green-950);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(17, 75, 127, 0.08);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.education-grid article {
    padding: 26px;
    border-radius: 24px;
}

.education-grid strong,
.education-grid span {
    display: block;
}

.education-grid strong {
    font-size: 1.1rem;
}

.education-grid span {
    margin-top: 6px;
    color: var(--green-600);
    font-weight: 900;
}

.contact-section {
    padding: 86px 0;
}

.contact-card {
    display: grid;
    gap: 14px;
    padding: 30px;
    font-style: normal;
    border-radius: 24px;
}

.contact-card a {
    color: var(--green-950);
    font-size: 1.15rem;
    font-weight: 900;
}

.contact-card span {
    color: var(--muted);
}

.site-footer {
    padding: 26px 0;
    background: #071e33;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer p,
.site-footer a {
    margin: 0;
    color: #dceeff;
}

.footer-legal {
    color: var(--silver) !important;
    font-size: 0.9rem;
}

.site-footer a {
    font-weight: 800;
}

.floating-scroll-top {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, var(--green-950), var(--green-800), var(--green-400));
    border: 1px solid rgba(214, 232, 247, 0.72);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(17, 75, 127, 0.34), 0 0 34px rgba(123, 180, 227, 0.44);
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.floating-scroll-top::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 13px;
}

.floating-scroll-top:hover {
    box-shadow: 0 22px 58px rgba(17, 75, 127, 0.42), 0 0 44px rgba(123, 180, 227, 0.62);
    transform: translateY(0) scale(1.04);
}

.floating-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 980px) {
    .hero,
    .intro-grid,
    .feature-grid,
    .contact-grid,
    .skills-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .section-shell {
        width: min(100% - 28px, 1120px);
    }

    .nav {
        width: min(100% - 24px, 1180px);
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: min(320px, calc(100vw - 24px));
        padding: 12px;
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 16px;
    }

    h1 {
        font-size: clamp(2.55rem, 13vw, 4.2rem);
    }

    .hero-metrics,
    .cards-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .skill {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-grid {
        flex-direction: column;
    }

    .floating-scroll-top {
        left: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }
}
