:root {
    --blue-900: #0f2c6e;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-100: #dbeafe;
    --blue-50: #f4f8ff;
    --text: #1f2937;
    --muted: #64748b;
    --white: #ffffff;
    --line: #e2e8f0;
    --shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background: var(--white);
    color: var(--text);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Sora', sans-serif;
}

p {
    margin: 0;
}

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

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

.section {
    padding: 72px 0;
}

.section-soft {
    background: var(--blue-50);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.brand {
    color: var(--blue-700);
    font-size: 1.35rem;
    font-weight: 700;
}

.menu {
    display: flex;
    gap: 16px;
    align-items: center;
}

.menu a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.94rem;
}

.menu a:hover {
    color: var(--blue-700);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--blue-700);
    font-size: 1.2rem;
}

.hero {
    background: linear-gradient(180deg, #eaf3ff 0%, #f8fbff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.hero-kicker {
    color: var(--blue-600);
    font-weight: 700;
    margin-bottom: 8px;
}

.hero h1 {
    color: var(--blue-900);
    font-size: clamp(2rem, 4.3vw, 3.15rem);
    margin-bottom: 8px;
}

.hero h2 {
    color: #1e3a8a;
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 14px;
}

.hero p {
    color: var(--muted);
    line-height: 1.75;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-700), #38bdf8);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-outline {
    border-color: #bfdbfe;
    background: #fff;
    color: var(--blue-700);
}

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

.socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid #bfdbfe;
    color: var(--blue-700);
    background: #fff;
}

.socials a:hover {
    background: #eff6ff;
}

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

.hero-photo img {
    width: min(330px, 78vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.8rem;
    color: var(--blue-900);
    margin-bottom: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
}

.about-copy {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 10px;
}

.about-info {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 8px;
    color: #334155;
}

.glass {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.14);
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

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

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

.skill-group {
    padding: 18px;
}

.skill-group h3 {
    font-size: 1.04rem;
    color: var(--blue-900);
    margin-bottom: 12px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-list span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cert-card,
.project-card {
    overflow: hidden;
    cursor: pointer;
}

.cert-card img,
.project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.cert-body,
.project-body {
    padding: 14px;
}

.cert-body h3,
.project-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #0f2c6e;
}

.cert-body .org {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
    margin-bottom: 6px;
}

.cert-body p,
.project-body p {
    color: var(--muted);
    line-height: 1.6;
}

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

.tags span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 8px;
}

.project-body a {
    color: var(--blue-700);
    font-weight: 700;
}

.service-card {
    padding: 18px;
}

.service-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--blue-700);
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1.02rem;
    color: #0f2c6e;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--muted);
    line-height: 1.65;
}

.achievements-grid .achievement {
    padding: 16px;
}

.achievement h3 {
    font-size: 1rem;
    color: #0f2c6e;
    margin-bottom: 6px;
}

.achievement p {
    color: var(--muted);
}

.leadership-timeline {
    position: relative;
    display: grid;
    gap: 14px;
    padding-left: 20px;
}

.leadership-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(var(--blue-600), #93c5fd);
}

.leadership-card {
    padding: 16px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}

.leadership-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--blue-700);
    font-size: 1rem;
}

.leadership-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #0f2c6e;
}

.leadership-org {
    color: #1e40af;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.leadership-card p {
    color: var(--muted);
    line-height: 1.65;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    padding: 16px;
}

.timeline-item h3 {
    margin-bottom: 6px;
    color: #0f2c6e;
}

.timeline-item p,
.timeline-item span {
    color: var(--muted);
    display: block;
}

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

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: #334155;
}

.contact-list a {
    color: var(--blue-700);
}

.contact-form {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.contact-form label {
    font-weight: 700;
    color: #334155;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #bfdbfe;
    border-color: #93c5fd;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 24px 0 34px;
    background: #fff;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #64748b;
}

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

.footer-links a:hover {
    color: var(--blue-700);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.lightbox.open {
    display: block;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.lightbox-content {
    position: relative;
    width: min(880px, 92%);
    margin: 6vh auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.lightbox-content img {
    width: 100%;
    display: block;
}

.lightbox-content p {
    margin: 0;
    padding: 10px 14px;
    color: #0f2c6e;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1060px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {

    .hero-grid,
    .about-grid,
    .contact-grid,
    .skills-layout,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

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

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

    .menu {
        position: absolute;
        top: 72px;
        right: 4%;
        width: min(320px, 90vw);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 12px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .menu.open {
        display: flex;
    }

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

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

    .leadership-timeline {
        padding-left: 0;
    }

    .leadership-timeline::before {
        display: none;
    }

    .leadership-card {
        grid-template-columns: 1fr;
    }
}