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


/* ================= VARIABLES ================= */

:root {

    --bg: #f5f5f1;

    --paper: #ffffff;

    --ink: #101214;

    --muted: #656a70;

    --line: #d9dadd;

    --dark: #111417;

    --dark-line: #2b3035;

    --accent: #d7ff4f;

    --max: 1160px;

}


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

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: Inter, Arial, sans-serif;

    background: var(--bg);

    color: var(--ink);

    line-height: 1.65;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
textarea {

    font: inherit;

}


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

.navbar {

    position: sticky;

    top: 0;

    z-index: 20;

    display: flex;

    align-items: center;

    justify-content: space-between;

    max-width: var(--max);

    margin: auto;

    padding: 18px 24px;

    background: rgba(245, 245, 241, 0.94);

    backdrop-filter: blur(12px);

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

}


.logo {

    font-weight: 800;

    letter-spacing: -0.03em;

}


nav {

    display: flex;

    gap: 22px;

    font-size: 13px;

    font-weight: 600;

}


nav a:hover {

    text-decoration: underline;

    text-underline-offset: 5px;

}


.menu-toggle {

    display: none;

    border: 0;

    background: transparent;

    font-size: 25px;

    cursor: pointer;

}


/* ================= GENERAL ================= */

.eyebrow,
.tag {

    font-family: "DM Mono", monospace;

    font-size: 11px;

    letter-spacing: 0.12em;

    text-transform: uppercase;

}


.eyebrow {

    margin-bottom: 18px;

    color: var(--muted);

}


h1 {

    font-size: clamp(55px, 9vw, 112px);

    line-height: 0.9;

    letter-spacing: -0.07em;

    max-width: 850px;

}


h2 {

    font-size: clamp(30px, 4vw, 52px);

    line-height: 1.05;

    letter-spacing: -0.045em;

}


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

.hero {

    max-width: var(--max);

    margin: auto;

    min-height: 82vh;

    padding: 90px 24px;

    display: grid;

    grid-template-columns: 1.25fr 0.75fr;

    gap: 70px;

    align-items: center;

}


.hero-content {

    position: relative;

    z-index: 2;

}


.hero h2 {

    margin-top: 28px;

    font-size: clamp(22px, 3vw, 34px);

    max-width: 760px;

}


.hero h2 span {

    color: var(--muted);

}


.hero-text {

    max-width: 650px;

    margin: 25px 0 32px;

    color: var(--muted);

    font-size: 17px;

}


.hero-buttons {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}


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

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 20px;

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

    font-weight: 700;

    font-size: 13px;

    cursor: pointer;

    transition:

        transform 0.2s,

        box-shadow 0.2s;

}


.button:hover {

    transform: translate(-2px, -2px);

    box-shadow: 4px 4px 0 var(--ink);

}


.button.primary {

    background: var(--ink);

    color: white;

}


.button.secondary {

    background: transparent;

}


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

.hero-visual {

    min-height: 390px;

    position: relative;

    display: grid;

    place-items: center;

}


.engineer-card {

    position: relative;

    z-index: 2;

    width: 260px;

    padding: 14px;

    background: var(--paper);

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

    box-shadow: 16px 16px 0 var(--ink);

    transform: rotate(3deg);

}


.photo-placeholder {

    height: 310px;

    display: grid;

    place-items: center;

    text-align: center;

    background: #e3e5e7;

    font-family: "DM Mono", monospace;

    font-size: 24px;

}


/* YOUR PROFILE PHOTO */

.profile-photo {

    width: 100%;

    height: 310px;

    object-fit: cover;

    display: block;

}


.engineer-card p {

    font-family: "DM Mono", monospace;

    font-size: 10px;

    padding: 10px 2px 0;

}


.orbit {

    position: absolute;

    border: 1px solid #b8bdc1;

    border-radius: 50%;

    transform: rotate(-20deg);

}


.orbit-one {

    width: 360px;

    height: 150px;

}


.orbit-two {

    width: 420px;

    height: 210px;

    transform: rotate(35deg);

}


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

.section {

    max-width: var(--max);

    margin: auto;

    padding: 110px 24px;

}


.section-heading {

    display: grid;

    grid-template-columns: 0.45fr 1fr;

    gap: 40px;

    margin-bottom: 55px;

}


.section-heading h2 {

    max-width: 760px;

}


/* ================= ABOUT ================= */

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

}


.about-grid p {

    margin-bottom: 18px;

    color: var(--muted);

    font-size: 17px;

}


.info-card {

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

}


.info-card div {

    display: grid;

    grid-template-columns: 130px 1fr;

    gap: 20px;

    padding: 18px 0;

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

}


.info-card span {

    color: var(--muted);

    font-family: "DM Mono", monospace;

    font-size: 11px;

    text-transform: uppercase;

}


.info-card strong {

    font-size: 14px;

}


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

.section-dark {

    max-width: none;

    padding-left:
        max(24px, calc((100vw - var(--max)) / 2 + 24px));

    padding-right:
        max(24px, calc((100vw - var(--max)) / 2 + 24px));

    background: var(--dark);

    color: white;

}


.section-dark .eyebrow {

    color: #9da4aa;

}


/* ================= SKILLS ================= */

.skills-grid {

    max-width: var(--max);

    display: grid;

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

    gap: 1px;

    background: var(--dark-line);

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

}


.skill-card {

    min-height: 240px;

    padding: 28px;

    background: var(--dark);

}


.skill-card span {

    font-family: "DM Mono", monospace;

    color: #9da4aa;

    font-size: 11px;

}


.skill-card h3 {

    margin: 55px 0 12px;

    font-size: 21px;

}


.skill-card p {

    color: #aeb4b9;

    font-size: 14px;

}


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

.project-grid {

    display: grid;

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

    gap: 20px;

}


.project-card {

    background: var(--paper);

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

    transition:

        transform 0.2s,

        box-shadow 0.2s;

}


.project-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.08);

}


.project-image {
    height: 220px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;

    background-color: #dfe2e5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    font-family: "DM Mono", monospace;
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #ffffff;
}

/* Dark overlay keeps the project title readable */
.project-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 0;
}

.project-image span {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* FEA image */
.project-image-fea {
    background-image: url("project/image/fea.jpg");
}

/* MATLAB image */
.project-image-matlab {
    background-image: url("project/image/matlab.jpg");
}

/* CFD image */
.project-image-cfd {
    background-image: url("project/image/cfd.jpg");
}

/*
.project-image {

    height: 220px;

    display: grid;

    place-items: center;

    background: #dfe2e5;

    font-family: "DM Mono", monospace;

    font-size: 20px;

    letter-spacing: 0.08em;

}
*/

.project-body {

    padding: 26px;

}


.project-body .tag {

    color: var(--muted);

}


.project-body h3 {

    margin: 13px 0;

    font-size: 23px;

    line-height: 1.15;

    letter-spacing: -0.03em;

}


.project-body p:not(.tag):not(.tools) {

    color: var(--muted);

    font-size: 14px;

}


.tools {

    margin-top: 18px;

    font-family: "DM Mono", monospace;

    font-size: 10px;

    color: var(--muted);

}


.text-button {

    margin-top: 18px;

    padding: 0;

    border: 0;

    background: transparent;

    font-weight: 800;

    cursor: pointer;

}


.text-button:hover {

    text-decoration: underline;

    text-underline-offset: 5px;

}


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

.section-light {

    max-width: none;

    background: #e9ebeb;

    padding-left:
        max(24px, calc((100vw - var(--max)) / 2 + 24px));

    padding-right:
        max(24px, calc((100vw - var(--max)) / 2 + 24px));

}


.timeline {

    max-width: var(--max);

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

}


.timeline-item {

    display: grid;

    grid-template-columns: 25px 1fr;

    gap: 25px;

    padding: 40px 0;

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

}


.timeline-marker {

    width: 11px;

    height: 11px;

    border: 2px solid var(--ink);

    border-radius: 50%;

    margin-top: 8px;

}


.timeline h3 {

    font-size: 28px;

    margin: 8px 0 3px;

}


.muted {

    color: var(--muted);

}


/* ================= RESEARCH ================= */

.research-list {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}


.research-list span {

    padding: 13px 17px;

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

    background: var(--paper);

    font-size: 14px;

}


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

.resume-section {

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 30px;

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

}


.resume-section p:not(.eyebrow) {

    margin-top: 18px;

    color: var(--muted);

}


code {

    font-family: "DM Mono", monospace;

    font-size: 11px;

}


/* ================= CONTACT ================= */

.contact-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    max-width: var(--max);

}


.contact-grid > div > p {

    color: #b4bac0;

    max-width: 520px;

}


.contact-links {

    margin-top: 28px;

    display: grid;

    gap: 8px;

}


.contact-links a {

    color: white;

    text-decoration: underline;

    text-underline-offset: 5px;

}


/* ================= FORM ================= */

form {

    display: grid;

    gap: 16px;

}


label {

    display: grid;

    gap: 7px;

    font-size: 12px;

    font-family: "DM Mono", monospace;

    text-transform: uppercase;

}


input,
textarea {

    width: 100%;

    border: 1px solid #42484e;

    background: #191d21;

    color: white;

    padding: 12px;

    outline: none;

}


input:focus,
textarea:focus {

    border-color: white;

}


#form-note {

    color: #9da4aa;

}


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

footer {

    max-width: var(--max);

    margin: auto;

    padding: 25px 24px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 12px;

    color: var(--muted);

}


footer a {

    text-decoration: underline;

}


/* ================= MODAL ================= */

.modal {

    position: fixed;

    inset: 0;

    z-index: 50;

    display: none;

    place-items: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);

}


.modal.open {

    display: grid;

}


.modal-box {

    position: relative;

    width: min(700px, 100%);

    max-height: 85vh;

    overflow: auto;

    padding: 45px;

    background: var(--paper);

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

}


.modal-box h2 {

    margin-bottom: 20px;

}


.modal-box p {

    color: var(--muted);

}


.modal-close {

    position: absolute;

    top: 12px;

    right: 16px;

    border: 0;

    background: transparent;

    font-size: 28px;

    cursor: pointer;

}


#modal-details {

    margin-top: 25px;

    padding-top: 20px;

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

}


#modal-details ul {

    padding-left: 20px;

    color: var(--muted);

}


/* ================= TABLET ================= */

@media (max-width: 850px) {

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .menu-toggle {

        display: flex;

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

        width: 45px;
        height: 45px;

        border: none;

        background: transparent;

        color: var(--ink);

        font-size: 30px;

        line-height: 1;

        cursor: pointer;

        z-index: 1001;

    }

    nav {

        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        padding: 15px 24px 25px;

        flex-direction: column;

        gap: 0;

        background: var(--bg);

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

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

        z-index: 999;

    }

    nav.open {

        display: flex;

    }

    nav a {

        display: block;

        padding: 14px 0;

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

        font-size: 14px;

    }

    nav a:last-child {

        border-bottom: none;

    }

}


/* ================= MOBILE ================= */

@media (max-width: 560px) {

    h1 {

        font-size: 55px;

    }


    .skills-grid,
    .project-grid {

        grid-template-columns: 1fr;

    }


    .section {

        padding-top: 75px;

        padding-bottom: 75px;

    }


    .engineer-card {

        width: 225px;

    }


    .photo-placeholder {

        height: 270px;

    }


    .orbit-one {

        width: 290px;

        height: 130px;

    }


    .orbit-two {

        width: 320px;

        height: 180px;

    }


    .info-card div {

        grid-template-columns: 1fr;

        gap: 5px;

    }


    footer {

        flex-direction: column;

    }

}

/* =========================================================
   JAVASCRIPT ANIMATIONS
========================================================= */

.reveal {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;

}


.reveal.show {

    opacity: 1;

    transform: translateY(0);

}


/* Active navigation link */

nav a.active {

    text-decoration: underline;

    text-underline-offset: 5px;

}


/* Prevent ugly focus outline on buttons */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {

    outline: 2px solid currentColor;

    outline-offset: 3px;

}

/* =========================================
   SPOTIFY PLAYER
   Does not modify the original photo card
   ========================================= */

.spotify-player {
  position: relative;
  z-index: 10;
  width: min(390px, 100%);
  margin-bottom: 18px;
}

.spotify-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;

  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spotify-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.spotify-player iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 850px) {

  .spotify-player {
    width: min(390px, 100%);
    margin-bottom: 15px;
  }

}

@media (max-width: 560px) {

  .spotify-player {
    width: 100%;
    max-width: 360px;
  }

  .spotify-player iframe {
    height: 152px;
  }

}