:root {
    --cream: #F0EDE8;
    --blue: #1800AD;
    --dark: #222222;
    --mid: #444444;
    --light-gray: #888;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    scroll-margin-top: 60px;
    padding-top: 80px;
}


/* NAV */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    padding: 18px 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(240, 237, 232, 0.96);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

nav .nav-logo {
    font-family: 'Agrandir', 'DM Sans', sans-serif;

    font-size: 15px;
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--dark);
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
}

nav ul a {
    font-size: 13px;
    font-family: 'Agrandir', 'DM Sans', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    text-decoration: none;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.2s;
}

nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;

    width: 0;
    height: 2px;

    background: var(--blue);

    transition: width 0.3s ease;
}

nav ul a:hover::after {
    width: 100%;
}



/* HELPERS */

.section-title {
    font-family: 'Agrandir', 'DM Sans', sans-serif;
    font-size: clamp(60px, 12vw, 130px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.02em;

    color: #222222;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.page-num {
    position: absolute;
    bottom: 28px;
    left: 80px;

    font-size: 13px;
    color: var(--light-gray);

    font-family: 'Agrandir', 'DM Sans', sans-serif;
    letter-spacing: 0.1em;
}

.blue-bar-right {
    position: absolute;
    right: 0;
    top: 80px;

    width: 42px;
    height: 200px;

    background: var(--blue);
}


/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeUp 0.7s ease forwards;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.38s;
}

section {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.svg-embed svg {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* SVG containers */

.svg-embed {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-embed svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* ── 01 HOME ── */

#home {
    padding: 60px 0 60px 80px;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.cover-blue-bar {
    position: absolute;
    left: 0;
    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 260px;

    background: var(--blue);
    z-index: 0;
}

.cover-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 25px;
    font-weight: 400;

    color: var(--mid);

    letter-spacing: 0.04em;

    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 70px;

    margin-bottom: 44px;
}

.cover-name::after {
    content: '';
    display: block;

    width: 350px;
    height: 2.5px;

    background: var(--dark);
}

.cover-title {
    font-family: 'Agrandir', 'DM Sans', sans-serif;

    font-size: clamp(76px, 10vw, 128px);
    font-weight: 400;

    line-height: 0.92;
    letter-spacing: -0.02em;

    color: #222222;

    position: relative;
    z-index: 1;

    padding-left: 60px;
}

.cover-badge {
    display: inline-flex;
    align-items: stretch;

    margin-top: 40px;

    position: relative;
    z-index: 1;

    padding-left: 60px;
}

.cover-badge-text {
    background: var(--dark);
    color: var(--white);

    font-family: 'Agrandir', 'DM Sans', sans-serif;

    font-size: 18px;
    letter-spacing: 0.06em;

    padding: 18px 60px;

    display: flex;
    align-items: center;
}

.cover-badge-arrow {
    background: var(--blue);

    width: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.cover-right {
    width: 520px;
    height: 580px;

    flex-shrink: 0;

    opacity: 0.88;

    position: absolute;
    right: -80px;
    top: 96px;
}


/* ── 02 ABOUT ── */

#about {
    padding: 60px 80px;
    gap: 80px;
    align-items: flex-start;
}

.about-photo-box {
    width: 420px;
    height: 420px;

    background: #888;
    margin-left: 80px;
    margin-top: -20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ddd;

    font-size: 13px;

    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.08em;

    overflow: hidden;
    flex-shrink: 0;
}

.about-photo-box img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(100%);

    display: block;
}

.about-right {
    flex: 1;
    padding-left: 120px;
}

.about-text {
    font-size: 20px;
    line-height: 1.9;
    font-weight: 500;

    color: #444444;

    max-width: 640px;
}

.about-text p+p {
    margin-top: 18px;
}

.about-text strong {
    color: #222222;
}


/* ── 03 EDUCATION ── */

#education {
    flex-direction: column;
    align-items: flex-start;

    padding: 100px 80px 80px;

    gap: 48px;
}

#education .section-title {
    margin-bottom: 0;
}

.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;
    width: 100%;
}

.edu-block-label {
    font-family: 'Agrandir', 'DM Sans', sans-serif;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    color: #222222;

    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 24px;
}

.edu-block-label::before {
    content: '';

    display: block;

    width: 16px;
    height: 52px;

    background: var(--blue);

    flex-shrink: 0;
}

.edu-degree {
    font-style: italic;
    font-size: 22px;

    color: #444444;

    margin-bottom: 20px;
}

.edu-desc {
    font-size: 20px;
    line-height: 1.8;

    color: #444444;

    max-width: 540px;
}

.skills-list {
    list-style: disc;
    padding-left: 28px;

    font-size: 20px;
    line-height: 2.2;

    color: #444444;
}

.edu-bottom-line {
    position: absolute;

    bottom: 50px;
    left: 80px;
    right: 80px;

    height: 1px;

    background: var(--dark);
}

/* ── 04 EXPERIENCE ── */

#experience {
    padding: 0;
    align-items: stretch;
    padding-top: 0;
    min-height: auto;
}

.exp-left {
    flex: 0 0 60%;
    padding: 100px 60px 60px 80px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
}

.exp-right {
    flex: 0 0 40%;
    background: var(--blue);
    padding: 80px 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 70px;
}

.exp-floor-plan {
    position: relative;
    margin-top: -100px;
    left: -20px;
    width: 140%;
    aspect-ratio: 1440 / 810;
    height: auto;
    opacity: 0.95;
    z-index: 0;
    margin-bottom: 20px;
    transform: scale(1.4);
    transform-origin: top left;
}

.exp-floor-plan svg {
    width: 100%;
    height: 100%;
}

.exp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.exp-dot {
    width: 14px;
    height: 14px;
    background: #000;
}

.exp-date {
    font-style: normal;
    font-weight: 600;
    color: #fff;
    font-size: 20px;
}

.exp-role {
    font-family: 'Agrandir', 'DM Sans', sans-serif;
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
}

.exp-company {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 14px;
    letter-spacing: 0.02em;
}


/* ── PROJECTS ── */

.project-section {
    min-height: 100vh;
    padding: 80px;

    align-items: center;

    gap: 60px;
}

.project-title {
    font-family: 'Agrandir', 'DM Sans', sans-serif;

    font-size: clamp(38px, 5vw, 66px);
    font-weight: 700;

    line-height: 0.95;
    letter-spacing: -0.02em;

    color: #222222;

    text-transform: uppercase;

    margin-bottom: 32px;
}

.project-meta-label {
    font-family: 'Agrandir', 'DM Sans', sans-serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #222222;
}

.project-meta-divider {
    height: 1px;
    background: var(--dark);

    margin: 12px 0;
}

.project-location,
.project-completed {
    font-size: 15px;
    color: #444444;

    margin-bottom: 4px;
}

.project-desc {
    font-size: 16px;
    line-height: 1.72;

    color: #444444;

    margin-top: 20px;

    max-width: 480px;
}

.img-placeholder {
    background: #b5b0aa;

    position: relative;
    overflow: hidden;

    flex-shrink: 0;
}

.img-placeholder::after {
    content: '';
    position: absolute;

    inset: 0;

    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 28px,
            rgba(255, 255, 255, 0.05) 28px,
            rgba(255, 255, 255, 0.05) 56px);

    pointer-events: none;
}

.project-image {
    overflow: hidden;
}

.project-image img {
    transition: transform 0.6s ease;
}

.project-image:hover img {
    transform: scale(1.1);
}

/* ── MY PROJECT intro SVG ── */

.my-project-svg-wrap {
    width: 600px;
    height: 700px;
    margin-bottom: -180px;
    /* Pulls up Project 1 without shrinking the container */
    flex-shrink: 0;
    position: relative;
}

.my-project-svg-wrap svg {
    width: 100%;
    height: 100%;
    transform: scale(2) translate(23%, -8%);
    transform-origin: center center;
}


/* ── CONTACT ── */

#contact {
    padding: 80px;

    flex-direction: row;

    gap: 80px;

    align-items: center;
}

.contact-title {
    font-family: 'Agrandir', 'DM Sans', sans-serif;

    font-size: clamp(68px, 10vw, 128px);
    font-weight: 300;

    letter-spacing: -0.02em;

    color: #222222;

    line-height: 1;
}

.contact-divider {
    width: 85%;
    height: 2px;

    background: var(--dark);

    margin: 22px 0 44px;
}

.contact-card {
    background: var(--blue);

    padding: 42px 46px 42px 126px;
    margin-left: -80px;

    display: flex;
    flex-direction: column;

    gap: 24px;

    max-width: 800px;
}

.contact-row {
    display: flex;
    align-items: center;

    gap: 18px;
}

.contact-dot {
    width: 28px;
    height: 28px;

    background: #000000;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-val {
    color: var(--white);

    font-size: 20px;

    font-family: 'DM Sans', sans-serif;

    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-val.plain {
    border-bottom: none;
}

.contact-svg-wrap {
    width: 600px;
    height: 850px;
    margin-bottom: -330px;
    flex-shrink: 0;
    position: relative;
}

.contact-svg-wrap svg {
    width: 100%;
    height: 100%;
    transform: scale(2) translate(calc(-30% + 10px), -13%);
    transform-origin: center center;
}


/* ── THANK YOU ── */

#thankyou {
    padding: 0;

    flex-direction: row;
    align-items: stretch;

    padding-top: 0;
}

.ty-blue-panel {
    width: 420px;

    flex-shrink: 0;

    background: var(--blue);

    position: relative;
    overflow: hidden;
}

.ty-blue-panel .dark-stripe {
    display: none;
}

.ty-svg-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 0;
}

.ty-svg-inner svg {
    transform: translate(-20px, 40px) scale(3.5);
    transform-origin: left center;
}

.ty-svg-inner svg path {
    fill: #ffffff !important;
}

.ty-right {
    flex: 1;

    padding: 80px 80px 80px 320px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;

    background: var(--cream);
}

.ty-right .left-shadow {
    position: absolute;

    top: 0;
    left: 0;

    width: 56px;
    height: 100%;

    background: rgba(0, 0, 0, 0.05);
}

.ty-title {
    font-family: 'Agrandir', 'DM Sans', sans-serif;

    font-size: clamp(76px, 12vw, 155px);
    font-weight: 500;

    letter-spacing: -0.03em;

    line-height: 0.88;

    color: #222222;
}

.ty-name-row {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-top: 30px;
    margin-left: 40px;
}

.ty-name-line {
    width: 310px;
    height: 2px;

    background: var(--dark);

    flex-shrink: 0;
}

.ty-name {
    font-size: 20px;

    font-family: 'DM Sans', sans-serif;

    color: #444444;
}


/* ── MOBILE ── */

@media(max-width:900px) {

    nav {
        padding: 14px 24px;
    }

    nav ul {
        display: none;
    }

    section {
        padding: 80px 24px 50px !important;
        flex-direction: column !important;
    }

    .cover-right,
    .ty-blue-panel {
        display: none;
    }

    .exp-right {
        width: 100%;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .about-right {
        padding-left: 0 !important;
    }

    .cover-blue-bar {
        display: none;
    }

    .cover-title {
        padding-left: 0;
    }

    .cover-badge {
        padding-left: 0;
    }

}

/* =========================
   HOME PAGE ANIMATIONS
========================= */

/* NAVBAR FADE DOWN */

.nav-animate {
    opacity: 0;
    transform: translateY(-40px);
    animation: navFadeDown 0.8s ease forwards;
}

@keyframes navFadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* BLUE BAR */

.blue-box-animate {
    opacity: 0;
    transform: translateX(-60px);
    animation: blueBoxIn 0.9s ease forwards;
}

@keyframes blueBoxIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* AUTHOR NAME */

.author-animate {
    opacity: 0;
    transform: translateY(40px);
    animation: authorFadeUp 0.8s ease forwards;
}

@keyframes authorFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* LINE */

.line-animate {
    width: 0;
    animation: lineGrow 0.8s ease forwards;
}

@keyframes lineGrow {
    to {
        width: 160px;
    }
}


/* JOB DESCRIPTION */

.job-animate {
    opacity: 0;
    transform: translateX(-30px);
    animation: jobFade 0.8s ease forwards;
}

@keyframes jobFade {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* POP EFFECT (arrow + dots) */

.pop {
    opacity: 0;
    transform: scale(0.6);
    animation: popIn 0.6s ease forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* FLOOR PLAN SVG */

.floorplan-animate {
    opacity: 0;
    transform: translateX(80px);
    animation: floorFade 1s ease forwards;
}

@keyframes floorFade {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* LETTER ANIMATION */

.title-letter {
    opacity: 0;
    transform: translateX(-20px);
    display: inline-block;
    animation: letterAppear 0.4s forwards;
}

@keyframes letterAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}