@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* =========================================================
   ROOT
========================================================= */

:root {
    --white: #ffffff;
    --white-soft: #f7fbfc;

    --blue: #0f5665;
    --blue-light: #2d9caf;
    --blue-deep: #075568;
    --blue-soft: rgba(22,125,145,.12);

    --ink: #102127;
    --ink-soft: rgba(16,33,39,.64);
    --ink-faint: rgba(16,33,39,.42);

    --glass: rgba(255,255,255,.72);
    --glass-strong: rgba(255,255,255,.88);

    --line: rgba(16,33,39,.09);

    --dark: #0e2026;
    --dark-soft: #142c33;

    --radius-xl: 44px;
    --radius-lg: 28px;
    --radius-md: 20px;

    --ease: cubic-bezier(.19,1,.22,1);
}

/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f4fafb;
    color: var(--ink);

    font-family: "Manrope", sans-serif;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;

    position: relative;
}

/* =========================================================
   IOS-STYLE BACKGROUND
========================================================= */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    z-index: -1;

    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(93,190,207,.15),
            transparent 34%
        ),

        radial-gradient(
            circle at 90% 78%,
            rgba(22,125,145,.08),
            transparent 36%
        ),

        linear-gradient(
            145deg,
            #ffffff 0%,
            #f4fafb 48%,
            #eaf5f7 100%
        );
}

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

h1,
h2,
h3,
h4 {
    font-family: "Manrope", sans-serif;
    font-weight: 600;
}

::selection {
    background: rgba(22,125,145,.18);
    color: var(--ink);
}

.mono {
    font-family: "IBM Plex Mono", monospace;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 22px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 999;

    width: min(1180px, calc(100% - 40px));

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 10px 14px 10px 20px;

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

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

    border-radius: 999px;

    box-shadow:
        0 18px 45px rgba(10,60,70,.08),
        inset 0 1px 0 rgba(255,255,255,.95);

    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
}

.brand {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--ink);

    text-decoration: none;

    font-size: .88rem;

    font-weight: 700;

    letter-spacing: -.02em;
}

.brand-mark {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    background:
        linear-gradient(
            145deg,
            var(--blue-light),
            var(--blue-deep)
        );

    border-radius: 50%;

    box-shadow:
        0 6px 16px rgba(22,125,145,.25);
}

.brand-mark i {
    font-size: .74rem;
}

.brand-name {
    white-space: nowrap;
}

.navigation {
    display: flex;

    align-items: center;

    gap: 4px;

    padding: 4px;

    background: rgba(22,125,145,.055);

    border-radius: 999px;
}

.navigation a {
    padding: 8px 16px;

    color: var(--ink-soft);

    text-decoration: none;

    font-size: .78rem;

    font-weight: 600;

    border-radius: 999px;

    transition:
        background-color .3s ease,
        color .3s ease,
        transform .4s var(--ease);
}

.navigation a:hover {
    color: var(--blue-deep);

    background: white;

    transform: translateY(-1px);
}

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

.hero {
    position: relative;

    width: min(1400px, calc(100% - 40px));

    min-height: 92vh;

    margin: 100px auto 26px;

    padding: 34px;

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

    background: #183038;

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

    box-shadow:
        0 40px 90px rgba(10,60,70,.14);

    overflow: hidden;

    display: flex;

    align-items: flex-end;
}

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

.hero-image {
    position: absolute;

    inset: 0;

    z-index: 0;

    background-image: url("philips-mr5300.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    transform: scale(1.001);
}

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

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 76% 30%,
            transparent 0%,
            rgba(10,40,48,.08) 45%,
            rgba(10,40,48,.18) 100%
        );
}

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

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            100deg,
            rgba(7,45,55,.68) 0%,
            rgba(8,60,70,.38) 42%,
            rgba(8,60,70,.06) 68%
        ),

        linear-gradient(
            to top,
            rgba(6,37,45,.68),
            transparent 48%
        );
}

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

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 900px;

    padding: 10px 6px 20px;

    color: white;
}

.hero-content h1 {
    max-width: 700px;

    color: white;

    font-size: clamp(3rem, 6vw, 5.7rem);

    font-weight: 500;

    line-height: .98;

    letter-spacing: -.055em;
}

.hero-content h1 strong {
    font-weight: 600;
}

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

.hero-bottom {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-top: 42px;
}

.hero-info {
    max-width: 560px;
}

.hero-role {
    display: inline-flex;

    margin-bottom: 14px;

    padding: 7px 13px;

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

    font-family: "IBM Plex Mono", monospace;

    font-size: .64rem;

    letter-spacing: .08em;

    text-transform: uppercase;

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

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

    border-radius: 999px;

    backdrop-filter: blur(10px);
}

.hero-description {
    max-width: 520px;

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

    font-size: .91rem;

    line-height: 1.75;
}

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

.hero-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    margin-left: auto;
}

.main-btn {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 13px 21px;

    color: var(--ink);

    background: white;

    text-decoration: none;

    font-size: .8rem;

    font-weight: 700;

    border-radius: 999px;

    box-shadow:
        0 16px 34px rgba(0,0,0,.18);

    transition:
        transform .5s var(--ease),
        background-color .35s ease,
        color .35s ease;
}

.main-btn:hover {
    background: var(--blue-light);

    color: white;

    transform: translateY(-3px);
}

.social-icon {
    display: flex;

    gap: 5px;
}

.social-icon a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    color: white;

    font-size: .95rem;

    border-radius: 50%;

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

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

    backdrop-filter: blur(12px);

    transition:
        transform .45s var(--ease),
        background-color .3s ease;
}

.social-icon a:hover {
    background: rgba(255,255,255,.26);

    transform: translateY(-3px);
}

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

.hero-index {
    position: absolute;

    top: 30px;
    right: 34px;

    z-index: 4;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 9px 16px;

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

    font-family: "IBM Plex Mono", monospace;

    font-size: .63rem;

    letter-spacing: .12em;

    background: rgba(5,45,55,.30);

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

    border-radius: 999px;

    backdrop-filter: blur(12px);
}

.hero-index span {
    width: 18px;
    height: 1px;

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

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

.section {
    width: min(1400px, calc(100% - 40px));

    margin: 26px auto;

    padding: 90px clamp(28px, 5vw, 80px);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.84),
            rgba(246,251,252,.72)
        );

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

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

    box-shadow:
        0 30px 70px rgba(10,60,70,.07);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);
}

/* =========================================================
   SECTION HEAD
========================================================= */

.section-head {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    max-width: 1200px;

    margin: 0 auto 56px;
}

.section-head > div {
    display: flex;

    align-items: baseline;

    gap: 18px;
}

.section-number {
    color: var(--blue-deep);

    font-family: "IBM Plex Mono", monospace;

    font-size: .66rem;

    font-weight: 500;

    letter-spacing: .12em;
}

.section-head h2 {
    color: var(--ink);

    font-size: clamp(2.4rem, 4vw, 3.6rem);

    font-weight: 600;

    line-height: 1;

    letter-spacing: -.055em;
}

.section-head p {
    max-width: 420px;

    color: var(--ink-soft);

    font-size: .86rem;

    line-height: 1.7;
}

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

.experience-list {
    display: flex;

    flex-direction: column;

    gap: 12px;

    max-width: 1000px;

    margin: 0 auto;
}

.experience-item {
    display: flex;

    align-items: flex-start;

    gap: 24px;

    padding: 27px 28px;

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

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

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

    transition:
        transform .5s var(--ease),
        box-shadow .5s var(--ease);
}

.experience-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 40px rgba(10,60,70,.10);
}

.experience-meta {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    min-width: 40px;

    color: var(--blue-deep);

    font-family: "IBM Plex Mono", monospace;
}

.experience-meta span {
    font-size: .64rem;
}

.experience-meta i {
    font-size: 1.15em;
}

.experience-main {
    flex: 1;
}

.experience-heading {
    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    align-items: baseline;

    gap: 8px 18px;
}

.experience-heading h3 {
    color: var(--ink);

    font-size: 1.08rem;

    font-weight: 600;

    letter-spacing: -.025em;
}

.experience-date {
    color: var(--ink-faint);

    font-family: "IBM Plex Mono", monospace;

    font-size: .66rem;
}

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

    color: var(--blue-deep);

    font-size: .8rem;

    font-weight: 700;
}

.experience-description {
    margin-top: 9px;

    color: var(--ink-soft);

    font-size: .81rem;

    line-height: 1.7;
}

/* =========================================================
   RESOURCES
========================================================= */

.resource-grid {
    display: grid;

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

    gap: 22px;

    max-width: 1200px;

    margin: 0 auto;

    align-items: start;
}

.device-wrapper {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

/* =========================================================
   RESOURCE CARD
========================================================= */

.resource-card {
    position: relative;

    overflow: hidden;

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

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

    border-radius: 23px;

    box-shadow:
        0 14px 35px rgba(10,60,70,.08);

    cursor: pointer;

    transition:
        transform .55s var(--ease),
        box-shadow .55s var(--ease);
}

.resource-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 24px 55px rgba(10,60,70,.14);
}

/* IMAGE */

.resource-image {
    position: relative;

    overflow: hidden;
}

.resource-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(7,67,82,.62) 100%
        );

    opacity: .78;

    pointer-events: none;
}

.resource-image img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    transition:
        transform .9s var(--ease);
}

.resource-card:hover .resource-image img {
    transform: scale(1.045);
}

/* =========================================================
   RESOURCE INFO
========================================================= */

.resource-info {
    padding: 17px 18px 18px;
}

.resource-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 9px;

    color: var(--ink-faint);

    font-family: "IBM Plex Mono", monospace;

    font-size: .58rem;

    letter-spacing: .1em;
}

.resource-top i {
    display: none;
}

.resource-info h3 {
    color: var(--ink);

    font-size: 1.04rem;

    font-weight: 700;

    letter-spacing: -.035em;
}

.resource-info h3 small {
    color: var(--ink-faint);

    font-size: .66em;

    font-weight: 600;
}

/* =========================================================
   RESOURCE BOTTOM
========================================================= */

.resource-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 15px;

    padding-top: 13px;

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

    color: var(--blue-deep);

    font-size: .72rem;

    font-weight: 700;
}

/*
   Keep the existing plus icon hidden.
   Clicking the card itself still opens the resources.
*/

.resource-bottom i {
    display: none;
}

/* =========================================================
   RESOURCE SOURCE PANEL
========================================================= */

.source-section {
    display: grid;

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

    gap: 9px;

    margin-top: 10px;

    padding: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.72),
            rgba(232,247,250,.56)
        );

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

    border-radius: 21px;

    box-shadow:
        0 18px 45px rgba(10,60,70,.10);

    backdrop-filter: blur(22px) saturate(150%);

    -webkit-backdrop-filter: blur(22px);

    animation: sourceReveal .45s var(--ease);
}

/* =========================================================
   SOURCE CARD
========================================================= */

.source-card {
    margin: 0;

    padding: 14px 14px;

    min-width: 0;

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

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

    border-radius: 14px;

    box-shadow:
        0 5px 15px rgba(10,60,70,.035);

    transition:
        transform .35s var(--ease),
        background-color .3s ease,
        box-shadow .35s ease;
}

.source-card:hover {
    transform: translateY(-2px);

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

    box-shadow:
        0 10px 24px rgba(10,60,70,.08);
}

.source-card h4 {
    margin-bottom: 7px;

    font-family: "Manrope", sans-serif;

    font-size: .75rem;

    font-weight: 700;

    line-height: 1.35;

    color: var(--ink);
}

.source-card a {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--blue-deep);

    text-decoration: none;

    font-family: "IBM Plex Mono", monospace;

    font-size: .62rem;

    font-weight: 500;
}

.source-card a i {
    font-size: .55rem;

    transition:
        transform .3s var(--ease);
}

.source-card a:hover {
    color: var(--blue-light);
}

.source-card a:hover i {
    transform: translateX(3px);
}

/* =========================================================
   HIDDEN
========================================================= */

.hidden {
    display: none !important;
}

/* =========================================================
   RESOURCE ANIMATION
========================================================= */

@keyframes sourceReveal {

    from {
        opacity: 0;

        transform:
            translateY(10px)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

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

.projects {
    background:
        linear-gradient(
            145deg,
            #0d2730,
            #102f38
        );

    border-color: rgba(255,255,255,.08);

    box-shadow:
        0 30px 70px rgba(5,45,55,.20);
}

.projects .section-number {
    color: rgba(120,214,228,.70);
}

.projects .section-head h2 {
    color: white;
}

.projects .section-head p {
    color: rgba(255,255,255,.55);
}

.project-list {
    display: grid;

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

    gap: 22px;

    max-width: 1200px;

    margin: 0 auto;
}

.project-item {
    display: flex;

    flex-direction: column;

    background: #142f38;

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

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

    overflow: hidden;

    transition:
        transform .55s var(--ease),
        box-shadow .55s var(--ease);
}

.project-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 26px 60px rgba(0,0,0,.35);
}

.project-image {
    overflow: hidden;
}

.project-image img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    transition:
        transform .9s var(--ease);
}

.project-item:hover .project-image img {
    transform: scale(1.06);
}

.project-content {
    padding: 27px 27px 31px;

    color: white;
}

.project-label {
    margin-bottom: 10px;

    color: #5dc3d4;

    font-family: "IBM Plex Mono", monospace;

    font-size: .64rem;

    letter-spacing: .1em;
}

.project-content h3 {
    color: white;

    font-size: 1.35rem;

    font-weight: 600;

    line-height: 1.05;

    letter-spacing: -.045em;
}

.project-content p {
    margin-top: 12px;

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

    font-size: .82rem;

    line-height: 1.7;
}

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    padding-bottom: 3px;

    color: white;

    border-bottom: 1px solid rgba(255,255,255,.35);

    text-decoration: none;

    font-size: .79rem;

    font-weight: 700;

    transition:
        color .3s ease,
        border-color .3s ease,
        transform .4s var(--ease);
}

.project-link:hover {
    color: #5dc3d4;

    border-color: #5dc3d4;

    transform: translateX(3px);
}

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

footer {
    padding: 30px 20px 50px;
}

.footer-container {
    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    width: min(1400px, calc(100% - 40px));

    margin: 0 auto;

    padding: 18px 26px;

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

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

    border-radius: 999px;

    box-shadow:
        0 20px 50px rgba(10,60,70,.08);

    backdrop-filter: blur(18px);
}

.footer-container p {
    color: var(--ink);

    font-size: .8rem;

    font-weight: 700;
}

.footer-container span {
    display: block;

    margin-top: 3px;

    color: var(--ink-faint);

    font-size: .7rem;
}

.footer-icons {
    display: flex;

    gap: 4px;
}

.footer-icons a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: var(--ink-soft);

    border-radius: 50%;

    transition:
        background-color .3s ease,
        color .3s ease,
        transform .3s ease;
}

.footer-icons a:hover {
    background: var(--blue-soft);

    color: var(--blue-deep);

    transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

    .navigation {
        display: none;
    }

    .site-header {
        justify-content: space-between;
    }

    .hero-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero-actions {
        margin-left: 0;
    }

    .hero {
        min-height: 88vh;
    }

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

    .project-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .site-header {
        top: 12px;

        width: calc(100% - 20px);

        padding: 8px 8px 8px 14px;
    }

    .brand {
        font-size: .78rem;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
    }

    /* HERO */

    .hero {
        width: calc(100% - 20px);

        margin-top: 78px;

        min-height: 86vh;

        padding: 22px;

        border-radius: 30px;
    }

    .hero-image {
        background-position: center center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                100deg,
                rgba(7,45,55,.72),
                rgba(8,60,70,.24)
            ),

            linear-gradient(
                to top,
                rgba(6,37,45,.74),
                transparent 55%
            );
    }

    .hero-content h1 {
        font-size: 2.7rem;
    }

    .hero-bottom {
        margin-top: 30px;
    }

    .hero-description {
        font-size: .85rem;
    }

    .hero-actions {
        flex-wrap: wrap;

        width: 100%;
    }

    .main-btn {
        flex: 1;
    }

    .hero-index {
        top: 18px;

        right: 18px;

        font-size: .56rem;

        padding: 7px 11px;
    }

    /* SECTIONS */

    .section {
        width: calc(100% - 20px);

        padding: 60px 20px;

        border-radius: 30px;
    }

    .section-head {
        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        margin-bottom: 38px;
    }

    .section-head > div {
        gap: 13px;
    }

    .section-head h2 {
        font-size: 2.35rem;
    }

    /* EXPERIENCE */

    .experience-item {
        flex-direction: column;

        gap: 12px;

        padding: 20px;
    }

    .experience-meta {
        flex-direction: row;
    }

    /* RESOURCES */

    .resource-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .resource-card {
        border-radius: 20px;
    }

    .source-section {
        grid-template-columns: 1fr;

        padding: 10px;

        border-radius: 18px;
    }

    .source-card {
        padding: 13px;
    }

    /* PROJECTS */

    .project-content {
        padding: 23px;
    }

    /* FOOTER */

    .footer-container {
        width: calc(100% - 20px);

        flex-direction: column;

        text-align: center;

        border-radius: 26px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue-light);

    outline-offset: 2px;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;

        transition-duration: .01ms !important;
    }
}