/* ===============================
   GLOBAL TYPOGRAPHY & VARIABLES
=================================*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap');

:root {
    --title-font: "Cormorant Garamond", serif;
    --body-font: "Times New Roman", Times, serif;
    --nav-height: 60px;
    --white: #ffffff;
    --black: #000000;
}

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

/* Body defaults */
body {
    font-family: var(--body-font);
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===============================
   UNIVERSAL THIRDS NAVIGATION BAR
=================================*/

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--black);
    z-index: 100;
}

    .top-nav .nav-item {
        list-style: none;
    }

        .top-nav .nav-item a {
            display: flex;
            align-items: center;
            justify-content: center;
            height: var(--nav-height);
            width: 100%;
            text-decoration: none;
            text-transform: uppercase;
            font-family: var(--title-font);
            font-weight: 700;
            letter-spacing: 0.08em;
            font-size: 0.95rem;
            color: var(--white);
        }

        /* Active third */
        .top-nav .nav-item.active a {
            background: var(--white);
            color: var(--black);
        }

/* MW icon */
.nav-mw {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

/* ===============================
   MAIN CONTENT SPACING
=================================*/



/* Mobile safe-area padding (iOS bottom) */
@media (max-width: 768px) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}


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

.resume-page {
    padding-top: 0;
}

/* White top name bar */
.name-bar {
    background: var(--white);
    color: var(--black);
    height: 140px;
    padding: 0 20px 10px;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

/* Name text */
.typing.name {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sliding resume panel */
.resume-panel {
    background: var(--black);
    color: var(--white);
    transform: translateY(-100%);
    transition: transform 900ms cubic-bezier(.22, .9, .12, 1);
    min-height: calc(100vh - var(--nav-height) - 140px);
    position: relative;
    z-index: 1;
}

    /* Revealed state */
    .resume-panel.revealed {
        transform: translateY(0);
    }

/* Resume container spacing */
.resume-container {
    width: 100%;
    padding: 40px 8vw;
}


/* ===============================
   RESUME SECTION STYLES (blocks rendered by scripts.js)
=================================*/

.resume-block {
    position: relative;
    width: 100%;
    padding: 60px 0;
    overflow: hidden;
    color: var(--white);
}

    /* Section slide-in background */
    .resume-block::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--black);
        z-index: -1;
        transition: left 0.8s ease-in-out;
    }

    .resume-block.active::before {
        left: 0;
    }

    /* Fade-in content */
    .resume-block .subheading,
    .resume-block .body {
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .resume-block.active .subheading,
    .resume-block.active .body {
        opacity: 1;
    }

/* Subheadings */
.subheading {
    font-family: var(--title-font);
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

/* Body text inside sections */
.body {
    font-family: var(--body-font);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    line-height: 1.7;
    margin-bottom: 6px;
    padding-left: 1em;
    text-indent: -1em;
}

/* Job header */
.job-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5em;
}

.left-part {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1em;
}

.job-title,
.company,
.date {
    font-family: var(--body-font);
    letter-spacing: 0.02em;
    font-size: 1.05em;
    font-weight: 600;
}

.date {
    white-space: nowrap;
    margin-left: auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .typing.name {
        font-size: 2.4rem;
    }

    .resume-container {
        padding: 30px 6vw;
    }

    .job-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2em;
    }

    .date {
        margin-left: 0;
    }
}


/* ===============================
   MOBILE PDF VIEWER FIX (global)
=================================*/

@media (max-width: 768px) {
    iframe {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        height: calc(100vh - var(--nav-height)) !important;
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-y: auto !important;
    }
}
