@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --blue: #477298;
    --blue-dark: #183b57;
    --blue-deep: #071a29;
    --blue-mid: #285777;
    --blue-light: #eaf3f9;

    --white: #ffffff;
    --off-white: #f7fafc;
    --text: #102331;
    --muted: #617384;

    --border: rgba(18, 57, 85, 0.10);
    --glass: rgba(255, 255, 255, 0.72);

    --shadow-sm: 0 8px 25px rgba(7, 26, 41, 0.07);
    --shadow: 0 20px 60px rgba(7, 26, 41, 0.11);
    --shadow-lg: 0 30px 90px rgba(7, 26, 41, 0.16);

    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 34px;

    --max-width: 1180px;

    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(71, 114, 152, 0.08), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(71, 114, 152, 0.07), transparent 30%),
        var(--off-white);
    line-height: 1.7;
    overflow-x: hidden;
}

body::selection {
    background: var(--blue);
    color: white;
}

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

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

button {
    font: inherit;
}

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

/* =========================
   NAVIGATION
========================= */

.site-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    z-index: 1000;

    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 50px rgba(7, 26, 41, 0.10);

    border-radius: 22px;
}

.nav-inner {
    min-height: 70px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;

    display: grid;
    place-items: center;

    color: white;

    background:
        linear-gradient(135deg, #6f9bc0, #183b57);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        0 8px 20px rgba(24,59,87,.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    position: relative;

    padding: 10px 12px;
    border-radius: 12px;

    font-size: 0.82rem;
    font-weight: 600;
    color: #4f6170;

    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue-dark);
    background: rgba(71, 114, 152, 0.09);
}

.nav-resume {
    padding: 11px 17px !important;

    color: white !important;

    background: var(--blue-dark) !important;

    box-shadow: 0 8px 20px rgba(24, 59, 87, 0.18);
}

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

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 12px;

    background: var(--blue-light);
    color: var(--blue-dark);

    cursor: pointer;
}

/* =========================
   HERO
========================= */

.page-hero {
    position: relative;
    min-height: 570px;

    padding: 190px 0 110px;

    overflow: hidden;

    color: white;

    background:
        radial-gradient(circle at 80% 20%, rgba(119, 170, 207, 0.30), transparent 25%),
        radial-gradient(circle at 10% 70%, rgba(69, 122, 160, 0.28), transparent 28%),
        linear-gradient(135deg, #071a29, #183b57 55%, #477298);
}

.page-hero::before {
    content: "";

    position: absolute;
    width: 500px;
    height: 500px;

    top: -250px;
    right: -120px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 0 0 60px rgba(255,255,255,.025),
        0 0 0 120px rgba(255,255,255,.02);
}

.page-hero::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 100px;

    background: var(--off-white);

    clip-path: ellipse(70% 70% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;

    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;

    color: rgba(255,255,255,.72);
}

.eyebrow::before {
    content: "";

    width: 28px;
    height: 1px;

    background: rgba(255,255,255,.55);
}

.page-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.5rem, 8vw, 7.2rem);
    line-height: .92;
    letter-spacing: -0.075em;

    max-width: 950px;
}

.page-hero p {
    max-width: 700px;
    margin-top: 28px;

    color: rgba(255,255,255,.75);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 35px;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 14px 21px;

    border-radius: 14px;

    font-size: 0.9rem;
    font-weight: 700;

    border: 1px solid transparent;

    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary {
    color: white;
    background: var(--blue-dark);
    box-shadow: 0 12px 25px rgba(24,59,87,.18);
}

.btn-light {
    color: var(--blue-dark);
    background: white;
}

.btn-outline {
    color: var(--blue-dark);
    border-color: rgba(24,59,87,.16);
    background: rgba(255,255,255,.6);
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 100px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-number {
    margin-bottom: 12px;

    font-family: "Space Grotesk", sans-serif;
    font-size: .8rem;
    font-weight: 700;
    color: var(--blue);

    letter-spacing: .14em;
}

.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 1;
    letter-spacing: -.065em;
}

.section-heading p {
    margin-top: 18px;
    color: var(--muted);
}

/* =========================
   HOME HERO
========================= */

.home-hero {
    min-height: 850px;

    display: flex;
    align-items: center;

    padding-top: 150px;

    position: relative;
    overflow: hidden;

    color: white;

    background:
        radial-gradient(circle at 80% 30%, rgba(91, 149, 190, .32), transparent 30%),
        radial-gradient(circle at 10% 80%, rgba(66, 119, 158, .25), transparent 28%),
        linear-gradient(135deg, #061622, #102f46 55%, #477298);
}

.home-hero::before {
    content: "";

    position: absolute;

    width: 800px;
    height: 800px;

    right: -300px;
    top: -250px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.10);

    box-shadow:
        0 0 0 100px rgba(255,255,255,.02),
        0 0 0 200px rgba(255,255,255,.015);
}

.home-hero-content {
    position: relative;
    z-index: 2;

    max-width: 1000px;
}

.home-hero .eyebrow {
    color: rgba(255,255,255,.65);
}

.home-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(4rem, 11vw, 9.5rem);
    line-height: .84;
    letter-spacing: -.085em;
}

.home-hero h1 span {
    display: block;
    color: rgba(255,255,255,.48);
}

.home-hero-description {
    max-width: 720px;

    margin-top: 32px;

    font-size: 1.15rem;
    color: rgba(255,255,255,.72);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    margin-top: 50px;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
}

.hero-meta-item strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
}

.hero-meta-item span {
    color: rgba(255,255,255,.5);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* =========================
   CARDS
========================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 30px;

    border-radius: var(--radius);

    background: rgba(255,255,255,.75);

    border: 1px solid rgba(255,255,255,.9);

    box-shadow: var(--shadow-sm);

    backdrop-filter: blur(15px);

    transition: var(--transition);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 24px;

    border-radius: 16px;

    color: var(--blue-dark);
    background: var(--blue-light);
}

.card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    letter-spacing: -.03em;
}

.card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: .92rem;
}

/* =========================
   PROFILE
========================= */

.profile-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.profile-image {
    min-height: 500px;

    border-radius: var(--radius-lg);

    overflow: hidden;

    background:
        linear-gradient(145deg, #183b57, #477298);

    box-shadow: var(--shadow-lg);

    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    height: 100%;

    display: grid;
    place-items: center;

    color: rgba(255,255,255,.8);

    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
}

.profile-content h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: .95;
    letter-spacing: -.065em;
}

.profile-content > p {
    margin-top: 24px;
    color: var(--muted);
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    margin-top: 35px;
}

.fact {
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: white;
}

.fact small {
    display: block;

    color: var(--muted);

    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.fact strong {
    display: block;
    margin-top: 3px;
}

/* =========================
   DARK SECTION
========================= */

.dark-section {
    color: white;

    background:
        radial-gradient(circle at 80% 20%, rgba(71,114,152,.25), transparent 30%),
        linear-gradient(135deg, #071a29, #183b57);
}

.dark-section .section-heading p {
    color: rgba(255,255,255,.62);
}

.dark-section .section-number {
    color: #8eb5d3;
}

.dark-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: none;
}

.dark-card:hover {
    background: rgba(255,255,255,.10);
}

/* =========================
   TIMELINE
========================= */

.timeline {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 32px;
    top: 0;
    bottom: 0;

    width: 2px;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(71,114,152,.25),
        rgba(71,114,152,.25),
        transparent
    );
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 64px 1fr;

    gap: 25px;

    margin-bottom: 45px;
}

.timeline-dot {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: white;
    border: 6px solid var(--blue-light);

    color: var(--blue-dark);

    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;

    box-shadow: var(--shadow-sm);

    z-index: 2;
}

.timeline-content {
    padding: 32px;

    border-radius: var(--radius);

    background: white;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.timeline-year {
    color: var(--blue);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.timeline-content h3 {
    margin-top: 6px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    letter-spacing: -.04em;
}

.timeline-content p {
    margin-top: 12px;
    color: var(--muted);
}

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

    margin-top: 22px;
}

.tag {
    padding: 7px 11px;

    border-radius: 100px;

    background: var(--blue-light);

    color: var(--blue-dark);

    font-size: .72rem;
    font-weight: 700;
}

/* =========================
   EXPERIENCE
========================= */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 35px;
}

.filter-btn {
    padding: 11px 17px;

    border: 1px solid var(--border);
    border-radius: 100px;

    background: white;

    color: var(--muted);

    font-weight: 700;
    font-size: .8rem;

    cursor: pointer;

    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    background: var(--blue-dark);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.experience-card {
    padding: 30px;

    border-radius: var(--radius);

    background: white;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.experience-card.hidden {
    display: none;
}

.experience-type {
    color: var(--blue);

    font-size: .7rem;
    font-weight: 800;

    letter-spacing: .13em;
    text-transform: uppercase;
}

.experience-card h3 {
    margin-top: 8px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 1.6rem;
    letter-spacing: -.04em;
}

.experience-date {
    margin-top: 5px;

    color: var(--muted);
    font-size: .82rem;
}

.experience-card p {
    margin-top: 16px;
    color: var(--muted);
}

/* =========================
   STATS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat {
    padding: 28px;

    border-radius: var(--radius);

    background: white;

    border: 1px solid var(--border);

    text-align: center;
}

.stat-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;

    color: var(--blue-dark);
}

.stat-label {
    margin-top: 9px;

    color: var(--muted);

    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* =========================
   PROJECTS
========================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    overflow: hidden;

    border-radius: var(--radius);

    background: white;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.project-image {
    height: 220px;

    display: grid;
    place-items: center;

    color: rgba(255,255,255,.8);

    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;

    background:
        linear-gradient(135deg, #183b57, #477298);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-category {
    color: var(--blue);

    font-size: .7rem;
    font-weight: 800;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-content h3 {
    margin-top: 7px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.project-content p {
    margin-top: 9px;
    color: var(--muted);
    font-size: .88rem;
}

/* =========================
   GOALS
========================= */

.goals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.goal {
    position: relative;

    padding: 38px;

    min-height: 330px;

    border-radius: var(--radius-lg);

    overflow: hidden;

    color: white;

    background:
        linear-gradient(145deg, #071a29, #285777);

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.goal:hover {
    transform: translateY(-7px);
}

.goal-number {
    font-family: "Space Grotesk", sans-serif;

    font-size: .8rem;
    font-weight: 700;

    color: rgba(255,255,255,.5);

    letter-spacing: .15em;
}

.goal h3 {
    margin-top: 70px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 2rem;
    letter-spacing: -.05em;
}

.goal p {
    margin-top: 12px;
    color: rgba(255,255,255,.65);
}

/* =========================
   STATEMENT
========================= */

.statement {
    max-width: 1000px;
    margin: 0 auto;

    padding: 70px;

    border-radius: var(--radius-lg);

    color: white;

    background:
        radial-gradient(circle at 90% 20%, rgba(111,155,190,.30), transparent 30%),
        linear-gradient(135deg, #071a29, #183b57);

    box-shadow: var(--shadow-lg);
}

.statement-label {
    color: rgba(255,255,255,.5);

    font-size: .72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .15em;
}

.statement p {
    margin-top: 25px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(2rem, 4vw, 3.8rem);

    line-height: 1.05;

    letter-spacing: -.055em;
}

/* =========================
   RESUME
========================= */

.resume-box {
    padding: 60px;

    border-radius: var(--radius-lg);

    background: white;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    text-align: center;
}

.resume-box h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -.06em;
}

.resume-box p {
    max-width: 600px;
    margin: 18px auto 30px;

    color: var(--muted);
}

.resume-preview {
    width: 100%;
    height: 700px;

    margin-top: 30px;

    border: 1px solid var(--border);
    border-radius: 18px;

    overflow: hidden;
}

.resume-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================
   GALLERY
========================= */

.gallery {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.gallery-item {
    min-height: 280px;

    overflow: hidden;

    border-radius: 22px;

    background:
        linear-gradient(135deg, #183b57, #477298);

    position: relative;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: rgba(255,255,255,.65);

    font-family: "Space Grotesk", sans-serif;
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 70px 0 35px;

    color: white;

    background: #061622;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 60px;
}

.footer-title {
    max-width: 500px;
}

.footer-title h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 3rem;
    line-height: .95;
    letter-spacing: -.06em;
}

.footer-title p {
    margin-top: 15px;
    color: rgba(255,255,255,.5);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,.55);
    font-size: .85rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 25px;

    border-top: 1px solid rgba(255,255,255,.09);

    color: rgba(255,255,255,.35);

    font-size: .75rem;
}

/* =========================
   REVEAL ANIMATIONS
========================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 9px 7px;
        font-size: .72rem;
    }

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

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-image {
        min-height: 420px;
    }

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

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

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

    section {
        padding: 75px 0;
    }

    .site-nav {
        top: 10px;
    }

    .nav-inner {
        min-height: 62px;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;

        top: calc(100% + 10px);
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;

        padding: 10px;

        border-radius: 18px;

        background: rgba(255,255,255,.94);
        backdrop-filter: blur(20px);

        box-shadow: var(--shadow);

        border: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 13px;
        font-size: .85rem;
    }

    .page-hero {
        min-height: 540px;
        padding: 170px 0 100px;
    }

    .home-hero {
        min-height: 760px;
        padding-top: 140px;
    }

    .home-hero h1 {
        font-size: clamp(4rem, 20vw, 7rem);
    }

    .card-grid,
    .project-grid,
    .experience-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 22px;
    }

    .timeline-item {
        grid-template-columns: 44px 1fr;
        gap: 15px;
    }

    .timeline-dot {
        width: 44px;
        height: 44px;

        border-width: 4px;

        font-size: .75rem;
    }

    .timeline-content {
        padding: 23px;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
    }

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

    .statement {
        padding: 35px 25px;
    }

    .resume-box {
        padding: 35px 20px;
    }

    .resume-preview {
        height: 550px;
    }

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

    .gallery-item.large {
        grid-column: span 2;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
