/* =============================================================================
   CSS CUSTOM PROPERTIES
   Change these to restyle the whole site at once.
   ============================================================================= */
:root {
    --color-bg:      #EAF0E6;  /* page background (sage green) */
    --color-text:    #333333;  /* primary text / borders */
    --color-accent:  #7EA37D;  /* hover highlight (muted green) */

    --border:        3px solid var(--color-text);
    --radius-sm:     25px;
    --radius-lg:     40px;

    --nav-height:    80px;  /* approximate fixed-nav height; used for body offset */
}


/* =============================================================================
   GLOBAL RESETS
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
h1 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text);
    font-size: 48px;
}

h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text);
    font-size: 28px;
}

p {
    font-family: 'Switzer', sans-serif;
    color: var(--color-text);
}

ul {
    font-family: 'Switzer', sans-serif;
    color: var(--color-text);
}

/* Centered process section sub-labels (e.g. "Mood Board", "Ideation") */
.process-subheader {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    color: var(--color-text);
    text-align: center;
    margin: 30px 0 10px;
}


/* =============================================================================
   NAVIGATION
   ============================================================================= */
.main-navbar {
    overflow: hidden;
    padding: 0 30px 0 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-bg);
    border-bottom: var(--border);
}

.topnav {
    overflow: hidden;
    padding: 30px 30px 0 0;
}

/* Nav <a> elements float right inside .topnav */
.topnav a {
    display: block;
    color: var(--color-text);
    text-align: center;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.logobutton {
    display: inline;
    float: left;
    background-color: var(--color-bg);
    cursor: pointer;
    font-size: 18px;
    padding: 35px 20px 20px 50px;
    transition: transform 0.5s ease;
}

.logobutton:hover {
    transform: rotate(-10deg);
}

/* About / Work pill buttons in the nav */
.about-button, .work-button {
    color: var(--color-text);
    text-decoration: none;
    text-align: center;
    display: block;
    float: right;
    background-color: var(--color-bg);
    padding: 14px 20px;
    border: var(--border);
    cursor: pointer;
    font-size: 18px;
    border-radius: var(--radius-sm);
    margin: 0 10px;
    font-family: 'Outfit', sans-serif;
}

.about-button:hover, .work-button:hover {
    color: var(--color-accent);
    box-shadow: 2px 2px 0 0 var(--color-text);
    transform: translate(-2px, -2px);
}


/* =============================================================================
   HOME PAGE — HERO
   ============================================================================= */
.header {
    border-bottom: var(--border);
}

.topContainer {
    text-align: center;
    margin-top: 140px;
}

.topContainer img {
    padding-top: 25px;
    margin: 0 auto;
}

.topContainer h2 {
    padding-top: 30px;
    font-size: 33px;
}

#subHeader {
    text-align: center;
    padding-bottom: 100px;
    padding-top: 50px;
}


/* =============================================================================
   HOME PAGE — WORK GRID
   ============================================================================= */

/* Grid is hidden by default; JS adds .active to show the selected filter */
.videoGrid {
    display: none;
}

.videoGrid.active {
    display: grid;
    grid-template-columns: 480px 480px;
    grid-template-rows: auto;
    justify-content: center;
    gap: 100px;
    background-color: var(--color-bg);
    padding: 50px;
}

.videoGrid h3 {
    margin: 10px 0 0;
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
    color: var(--color-text);
}

.videoGrid > div {
    text-align: center;
    font-size: 30px;
}

/* Thumbnail GIF/image inside each card */
.work-gif {
    width: 100% !important;
    height: auto !important;
    border-bottom: var(--border);
    border-radius: 30px;
    margin: 0;
    box-sizing: border-box;
}

/* Card button wrapping each grid item */
.cardbtn {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--color-bg);
    overflow: hidden;
    padding: 0 0 20px 0;
    box-sizing: border-box;
    position: relative;
    top: -20px;
}

.cardbtn:hover {
    color: var(--color-accent);
    box-shadow: 4px 4px 0 0 var(--color-text);
    transform: translate(-4px, -4px);
}

.cardbtn:hover h3 {
    color: var(--color-accent);
}


/* =============================================================================
   PROJECT PAGES — SHARED LAYOUT
   ============================================================================= */

/* Outer padding for all project page wrappers */
.fragrantmemory, .ddalpodo, .boki, .showreel-section, .thesyntaxoflove {
    padding: 50px 300px;
    margin-top: 100px;
}

/* Full-width responsive video embed (16:9) */
.video-section {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 30px;
}

.video-section iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Date / Skills block that appears below the video */
.meta-info {
    margin: 16px 0 30px;
}

/* Center process images within each project page */
.fm-process img,
.bk-process img,
.sol-process img,
.dp-process > img {
    margin: 10px auto;
}

/* Scene captions — only the <i> that is the sole child of its <p> */
.bk-process p > i:only-child {
    display: block;
    text-align: center;
}

/* DDALPODO character sketch rows (Strawberry / Grape) */
.ddalgi, .podo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}

/* Arduino photo + installation video side by side */
.arduino-install {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    margin-top: 10px;
}

.arduino-install img {
    flex: 1;
    min-width: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
}

.arduino-install .arduino-video {
    position: relative;
    flex: 1;
    aspect-ratio: 16 / 9;
}

.arduino-install .arduino-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


/* =============================================================================
   ABOUT PAGE
   ============================================================================= */
.about-me {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    padding: 50px;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 50px;
    flex: 1;
    margin-right: 50px;
    margin-left: 100px;
}

.about-img {
    width: 400px;
    border-radius: 30px;
    margin-bottom: 20px;
    margin-top: 60px;
    border: 5px solid var(--color-text);
}

.about-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    flex: 1;
    margin-right: 100px;
}

.about-desc p {
    text-align: left;
    font-family: 'Switzer', sans-serif;
    color: var(--color-text);
}


/* =============================================================================
   FOOTER
   ============================================================================= */
.bottomContainer {
    font-family: 'Switzer', sans-serif;
}

.footer {
    color: var(--color-text);
}

.footer h3 {
    display: block;
    text-align: center;
    padding: 50px 0 5px 0;
    font-family: 'Outfit', sans-serif;
    color: var(--color-text);
}

.footer .icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 0 10px 50px 10px;
}

.footer .icons a:hover,
.footer .icons i:hover {
    color: var(--color-accent);
    transform: translate(-2px, -2px);
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

/* --- Tablet (≤ 1100px) --- */
@media (max-width: 1100px) {
    .videoGrid.active {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 30px;
    }

    .fragrantmemory, .ddalpodo, .boki, .showreel-section, .thesyntaxoflove {
        padding: 50px 80px;
    }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    /* Navbar */
    .main-navbar {
        padding: 0 8px;
    }

    .logobutton {
        padding: 12px 10px 8px 15px;
    }

    .topnav {
        padding: 12px 4px 0 0;
    }

    .about-button, .work-button {
        padding: 8px 14px;
        font-size: 15px;
        margin: 0 4px;
    }

    /* Hero */
    .topContainer {
        margin-top: 90px;
        padding: 0 20px;
    }

    .topContainer img {
        width: 100% !important;
        height: auto !important;
        max-width: 480px;
        margin: 0 auto;
    }

    .topContainer h2 {
        font-size: 22px;
    }

    #subHeader {
        padding-bottom: 50px;
        padding-top: 30px;
    }

    /* Work grid — single column */
    .videoGrid.active {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    /* Project pages — reduce side padding */
    .fragrantmemory, .ddalpodo, .boki, .showreel-section, .thesyntaxoflove {
        padding: 20px;
        margin-top: 80px;
    }

    /* Scale down all inline-sized images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Standalone iframes (e.g. fragrantmemory process section) */
    iframe {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    /* About page — stack portrait above text */
    .about-content {
        flex-direction: column;
    }

    .portrait {
        margin: 0;
        padding: 0;
        justify-content: center;
    }

    .about-desc {
        margin-right: 0;
        padding: 0 10px;
    }

    .about-me {
        padding: 20px;
    }

    /* Arduino install — stack vertically */
    .arduino-install {
        flex-direction: column;
    }

    .arduino-install img,
    .arduino-install .arduino-video {
        width: 100%;
    }

    /* DDALPODO character sketches — 2 per row */
    .ddalgi img, .podo img {
        width: calc(50% - 10px) !important;
    }

    h1 {
        font-size: 32px;
    }
}

/* --- Small mobile (≤ 480px) --- */
@media (max-width: 480px) {
    .about-button, .work-button {
        padding: 6px 10px;
        font-size: 13px;
        border-width: 2px;
        border-radius: 20px;
    }

    .topContainer h2 {
        font-size: 18px;
    }

    h1 {
        font-size: 26px;
    }

    .footer h3 {
        padding: 30px 0 5px;
    }
}
