:root {
    --bg: #0c101c;
    --bg-alt: #131b2f;
    --bg-light: #f3f6fb;
    --accent: #5b73ff;
    --accent-muted: rgba(91, 115, 255, 0.15);
    --accent-secondary: #ff8f7f;
    --text: #0d1c2e;
    --text-light: #5a677d;
    --white: #ffffff;
    --max-width: 1120px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-lg: 0 35px 60px -30px rgba(13, 35, 84, 0.45);
    --shadow-md: 0 22px 45px -28px rgba(15, 34, 69, 0.35);
    --shadow-sm: 0 10px 25px -18px rgba(13, 30, 64, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 12% 20%, rgba(91, 115, 255, 0.35), transparent 55%),
        radial-gradient(circle at 82% 12%, rgba(255, 143, 127, 0.25), transparent 55%),
        linear-gradient(160deg, #05070e, #111b36 42%, #0a0f1f 78%);
    line-height: 1.7;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    z-index: -2;
    pointer-events: none;
    animation: float 18s ease-in-out infinite;
}

body::before {
    background: rgba(91, 115, 255, 0.55);
    top: -160px;
    left: -120px;
    animation-delay: -4s;
}

body::after {
    background: rgba(39, 209, 181, 0.45);
    bottom: -180px;
    right: -160px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    width: min(92vw, var(--max-width));
    margin: 0 auto;
}

.hero {
    position: relative;
    padding: 5rem 0 4rem;
    background:
        radial-gradient(circle at 18% -5%, rgba(255, 143, 127, 0.25), transparent 52%),
        radial-gradient(circle at 82% 10%, rgba(91, 115, 255, 0.32), transparent 58%),
        linear-gradient(135deg, rgba(14, 24, 46, 0.95), rgba(5, 12, 29, 0.92));
    color: var(--white);
}

.hero__overlay {
    overflow: hidden;
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.15;
    pointer-events: none;
}

.hero__wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    width: min(94vw, var(--max-width));
    margin: 0 auto;
}

.hero__intro {
    flex: 1 1 520px;
    position: relative;
    background: linear-gradient(165deg, rgba(10, 18, 38, 0.85), rgba(16, 28, 60, 0.65));
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.hero__intro::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 143, 127, 0.18), transparent 55%);
    pointer-events: none;
}

.hero__intro > * {
    position: relative;
    z-index: 1;
}

.hero__intro-layout {
    display: grid;
    grid-template-columns: minmax(140px, clamp(160px, 18vw, 190px)) 1fr;
    gap: 2.2rem;
    align-items: start;
}

.hero__portrait-wrap {
    position: relative;
    display: grid;
    place-items: start;
}

.hero__portrait-wrap::before {
    content: "";
    position: absolute;
    inset: -12% -20% -12% -12%;
    border-radius: 32px;
    background: radial-gradient(circle at 40% 30%, rgba(255, 143, 127, 0.26), transparent 65%);
    filter: blur(32px);
    opacity: 0.85;
    z-index: -2;
}

.hero__portrait {
    position: relative;
    width: clamp(160px, 20vw, 220px);
    aspect-ratio: 1 / 1.05;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 70px -42px rgba(5, 12, 28, 0.92);
    background: linear-gradient(155deg, rgba(91, 115, 255, 0.3), rgba(18, 26, 52, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.08) brightness(1.03);
}

.hero__intro-content {
    display: grid;
    gap: 1.1rem;
}

.hero__intro-content .pill {
    margin-bottom: 0.15rem;
}

.hero__intro h1 {
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 700;
    margin: 0.35rem 0 1.5rem;
    letter-spacing: -0.5px;
}

.hero__summary p {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: 1.15rem;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: none;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(91, 115, 255, 0.4));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -28px rgba(255, 255, 255, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 35px 65px -28px rgba(91, 115, 255, 0.6);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(91, 115, 255, 0.4);
    box-shadow: none;
}

.btn--outline:hover,
.btn--outline:focus-visible {
    border-color: rgba(91, 115, 255, 0.7);
    background: rgba(91, 115, 255, 0.08);
}

.hero__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero__contact a:hover,
.hero__contact a:focus-visible {
    color: var(--white);
}

.hero__note {
    margin: 1.2rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.65rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(91, 115, 255, 0.35), rgba(255, 143, 127, 0.25));
    box-shadow: 0 18px 36px -24px rgba(10, 18, 40, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__nav {
    flex: 0 1 260px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 2rem;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(9, 15, 30, 0.82), rgba(14, 25, 46, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.15);
    order: 2;
}

.hero__nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 143, 127, 0.22), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero__nav:hover::before,
.hero__nav:focus-within::before {
    opacity: 1;
}



.hero__nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero__nav a:hover,
.hero__nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.hero__nav ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.65rem;
}

.pill {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.section {
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    background: var(--white);
    position: relative;
}

.section--accent {
    background: var(--bg-light);
}

.section--light {
    background: #ffffff;
}

.section__header {
    margin-bottom: 2.5rem;
}

.section__header--center {
    text-align: center;
}

.section__header h2 {
    margin: 0.6rem 0 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.4px;
}

.section__note {
    margin: -1.2rem auto 2.4rem;
    max-width: 720px;
    text-align: center;
    color: rgba(13, 28, 46, 0.7);
    font-size: 0.98rem;
}

.section__note a {
    color: var(--accent);
    font-weight: 600;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.lede {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
}

.paragraph {
    margin-top: 1.5rem;
    color: var(--text-light);
}

.highlight-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlight-grid li {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(91, 115, 255, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-grid li::before {
    content: '★';
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    color: var(--accent);
    opacity: 0.4;
    font-size: 1.3rem;
}

.highlight-grid li:hover,
.highlight-grid li:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline {
    display: grid;
    gap: 2.5rem;
}

.timeline-card {
    background: linear-gradient(140deg, rgba(91, 115, 255, 0.1), rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(91, 115, 255, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.timeline-card__identity {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.timeline-card__brand {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 28, 46, 0.08);
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.timeline-card__brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.6rem;
}

.timeline-card__brand span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}

.timeline-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.timeline-card__company {
    margin: 0.3rem 0 0;
    color: var(--accent);
    font-weight: 600;
}

.timeline-card__team {
    margin: 0.35rem 0 0;
    color: rgba(13, 28, 46, 0.65);
    font-size: 0.95rem;
    font-weight: 500;
}

.timeline-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: right;
}

.timeline-card__list {
    display: grid;
    gap: 0.85rem;
    color: var(--text-light);
}

.timeline-card__list li {
    position: relative;
    padding-left: 1.4rem;
}

.timeline-card__list li::before {
    content: '';
    position: absolute;
    top: 0.55rem;
    left: 0.4rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.timeline-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.timeline-card__skills li {
    background: rgba(91, 115, 255, 0.12);
    color: var(--accent);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.timeline-card:hover,
.timeline-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 35px 70px -40px rgba(13, 30, 64, 0.55);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13, 28, 46, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.card__meta {
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 600;
}

.card__link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card__link::after {
    content: '↗';
    font-size: 0.95rem;
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.education-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.education-card {
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 28, 46, 0.08);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.45rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.education-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.education-card__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.education-card__brand {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(13, 28, 46, 0.1);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.education-card__brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.55rem;
}

.education-card__brand span {
    font-weight: 600;
    color: var(--accent);
}

.education-card__degree {
    margin: 0.35rem 0 0;
    color: rgba(13, 28, 46, 0.68);
    font-size: 0.95rem;
}

.education-card__meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.education-card:hover,
.education-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.skill-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(91, 115, 255, 0.12);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.55rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent);
}

.skill-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-card li {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 28, 46, 0.08);
    background: var(--white);
    font-size: 0.9rem;
}

.skill-card:hover,
.skill-card:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.icon-list {
    display: grid;
    gap: 0.9rem;
    color: var(--text-light);
}

.icon-list li {
    position: relative;
    padding-left: 1.6rem;
}

.icon-list li::before {
    content: '•';
    position: absolute;
    left: 0.3rem;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

.certifications__cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.contact-card {
    background: linear-gradient(140deg, rgba(91, 115, 255, 0.12), rgba(255, 255, 255, 0.95));
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(91, 115, 255, 0.22);
}

.contact-card__body {
    text-align: center;
    display: grid;
    gap: 1.2rem;
}

.contact-card__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    font-weight: 600;
}

.contact-card__links a {
    color: var(--accent);
}

.contact-card__primary {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card__primary:hover,
.contact-card__primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 25px 55px -25px rgba(91, 115, 255, 0.55);
}

.footer {
    background: #05070e;
    color: rgba(255, 255, 255, 0.65);
    padding: 2.5rem 0;
    text-align: center;
}

.footer__top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--white);
}

.footer__top:hover,
.footer__top:focus-visible {
    color: var(--accent);
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(30px, -40px, 0) scale(1.05);
    }
}

@media (max-width: 980px) {
    .hero__wrapper {
        flex-direction: column;
    }

    .hero__intro-layout {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 1.6rem;
    }

    .hero__portrait {
        width: clamp(180px, 40vw, 220px);
    }

    .hero__nav {
        position: relative;
        top: unset;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero__intro {
        padding: 2rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-card {
        padding: 1.8rem;
    }

    .timeline-card__header {
        grid-template-columns: 1fr;
    }

    .timeline-card__identity {
        justify-content: flex-start;
    }

    .timeline-card__meta {
        align-items: flex-start;
        text-align: left;
    }

    .timeline-card__team {
        margin-top: 0.3rem;
    }

    .contact-card {
        padding: 2.5rem 1.8rem;
    }
}