/* =========================================================
   GITA LESTARI — PORTFOLIO
   EARTH TONE / EDITORIAL / PERSONAL
========================================================= */

:root {
    --cream: #e9e0d2;
    --cream-light: #f3ece1;
    --paper: #e4d8c7;
    --card: #f7f0e5;

    --brown: #6f5140;
    --brown-dark: #4e392d;

    --green: #465a49;
    --green-dark: #35483b;
    --green-soft: #71806e;

    --red: #955d55;
    --red-soft: #b77b70;

    --text: #2d2925;
    --muted: #6d675f;

    --line: rgba(45, 41, 37, 0.16);
    --line-soft: rgba(45, 41, 37, 0.08);

    --white: #f8f3eb;

    --shadow:
        0 18px 45px rgba(61, 48, 38, 0.09);
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--cream);

    color: var(--text);

    font-family: "DM Sans", sans-serif;

    overflow-x: hidden;
}

body::after {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 9998;

    opacity: 0.13;

    background-image:
        radial-gradient(
            rgba(70, 90, 73, 0.35) 0.7px,
            transparent 0.7px
        );

    background-size: 80px 80px;
}

body::before {
    content: "";

    position: fixed;

    inset: 18px;

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

    pointer-events: none;

    z-index: 9997;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


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

.nav {
    position: sticky;
    top: 0;

    z-index: 1000;

    width: calc(100% - 36px);

    min-height: 72px;

    margin: 18px auto 0;

    padding: 15px 30px;

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

    background: rgba(243, 236, 225, 0.94);

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

    backdrop-filter: blur(16px);

    box-shadow:
        0 5px 25px rgba(50, 43, 36, 0.04);
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;

    gap: 13px;
}

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

    display: grid;
    place-items: center;

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

    color: var(--green);

    font-family: "Cormorant Garamond", serif;

    font-size: 24px;
}

.brand div {
    display: flex;
    flex-direction: column;
}

.brand strong {
    font-size: 12px;
    letter-spacing: 2px;
}

.brand small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 8px;
    letter-spacing: 1.2px;
}


/* NAV */

.nav nav {
    display: flex;
    align-items: center;

    gap: 36px;
}

.nav nav a {
    position: relative;

    font-size: 12px;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    transition: color 0.25s ease;
}

.nav nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--red);

    transition: width 0.3s ease;
}

.nav nav a:hover {
    color: var(--red);
}

.nav nav a:hover::after {
    width: 100%;
}

.nav-star {
    color: var(--red);

    font-size: 19px;
}


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

.hero {
    position: relative;

    min-height: calc(100vh - 36px);

    margin: 18px;

    padding: 100px 8%;

    display: grid;

    grid-template-columns: 1.08fr 0.92fr;

    align-items: center;

    gap: 80px;

    background: var(--cream-light);

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

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    inset: 20px;

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

    pointer-events: none;
}

.hero::after {
    content: "PORTFOLIO — 2026";

    position: absolute;

    right: 40px;
    bottom: 30px;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 2px;

    opacity: 0.65;
}


/* HERO TEXT */

.hero-copy {
    position: relative;
    z-index: 2;
}

.hello {
    margin-bottom: 30px;

    color: var(--green);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 3px;
}

.hero h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(85px, 11vw, 155px);

    font-weight: 500;

    line-height: 0.7;

    letter-spacing: -6px;
}

.hero h1 span {
    display: block;

    margin-top: 32px;

    color: var(--red);

    font-style: italic;
}

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

    margin-top: 58px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.85;
}


/* BUTTON */

.hero-actions {
    display: flex;
    gap: 13px;

    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;

    padding: 15px 21px;

    font-size: 12px;

    transition: 0.25s ease;
}

.button.dark {
    background: var(--green);

    color: var(--white);
}

.button.dark:hover {
    background: var(--brown);

    transform: translateY(-3px);
}

.button.dark b {
    margin-left: 17px;
}

.button.line {
    border: 1px solid var(--line);
}

.button.line:hover {
    color: var(--red);

    border-color: var(--red);
}


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

.hero-art {
    position: relative;
    z-index: 2;
}

.art-frame {
    position: relative;

    height: 520px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #dddcca 0%,
            #c2c9b9 50%,
            #758574 100%
        );

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

    box-shadow:
        18px 18px 0 rgba(70, 90, 73, 0.08);

    transform: rotate(1.3deg);
}

.art-sun {
    position: absolute;

    top: 90px;
    left: 50%;

    width: 230px;
    height: 230px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #dfcfb5;
}

.art-moon {
    position: absolute;

    top: 40px;
    right: 45px;

    width: 74px;
    height: 74px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--green);

    color: var(--white);

    font-family: "Cormorant Garamond", serif;

    font-size: 33px;
}

.art-star {
    position: absolute;

    z-index: 3;

    color: var(--white);

    font-size: 21px;
}

.star-one {
    top: 78px;
    left: 50px;
}

.star-two {
    top: 185px;
    right: 68px;
}

.star-three {
    top: 250px;
    left: 73px;
}

.art-mountain {
    position: absolute;

    bottom: -105px;

    width: 520px;
    height: 310px;

    transform: rotate(45deg);
}

.mountain-back {
    left: -150px;

    background: #899689;
}

.mountain-front {
    right: -175px;

    background: #49604f;
}

.art-caption {
    margin-top: 26px;

    color: var(--muted);

    font-family: "Cormorant Garamond", serif;

    font-size: 20px;

    line-height: 1.05;

    font-style: italic;
}


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

.section {
    position: relative;

    margin: 35px 18px;

    padding: 115px 8%;

    background: var(--cream-light);

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

    overflow: hidden;
}

.section::before {
    content: "";

    position: absolute;

    inset: 18px;

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

    pointer-events: none;
}

.section-number {
    position: absolute;

    top: 30px;
    right: 38px;

    color: var(--red);

    font-family: "Cormorant Garamond", serif;

    font-size: 24px;
}

.section-heading {
    position: relative;
    z-index: 2;

    margin-bottom: 75px;
}

.section-heading p {
    margin-bottom: 17px;

    color: var(--green);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 2.7px;
}

.section-heading h2 {
    max-width: 780px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(58px, 7vw, 96px);

    font-weight: 500;

    line-height: 0.9;
}

.section-heading h2 em {
    color: var(--red);

    font-weight: 400;
}


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

.about-content {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: 0.75fr 1.25fr;

    gap: 85px;

    align-items: start;
}


/* FOTO SATU */

.about-image {
    position: relative;

    padding: 11px;

    background: var(--paper);

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

    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;

    height: 570px;

    object-fit: cover;
}

.about-image span {
    display: block;

    padding: 14px 4px 2px;

    color: var(--green);

    font-size: 10px;

    letter-spacing: 1.6px;
}


/* ABOUT TEXT */

.about-text {
    padding-top: 10px;
}

.about-text p {
    max-width: 620px;

    margin-bottom: 27px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.9;
}

.about-text .large-text {
    color: var(--green);

    font-family: "Cormorant Garamond", serif;

    font-size: 34px;

    line-height: 1.28;
}


/* FACTS */

.about-facts {
    margin-top: 52px;

    display: grid;

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

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

.about-facts > div {
    padding: 20px 15px;

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

.about-facts > div:last-child {
    border-right: none;
}

.about-facts span {
    display: block;

    margin-bottom: 9px;

    color: var(--red);

    font-size: 10px;

    letter-spacing: 1.6px;
}

.about-facts strong {
    color: var(--text);

    font-size: 12px;

    font-weight: 500;

    line-height: 1.5;
}


/* =========================================================
   WORK
========================================================= */

.work {
    background: var(--paper);
}

.category-heading {
    position: relative;
    z-index: 2;

    margin-top: 95px;

    padding-bottom: 23px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 45px;

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

.category-heading > div {
    display: flex;

    align-items: baseline;

    gap: 20px;
}

.category-heading span {
    color: var(--red);

    font-family: "Cormorant Garamond", serif;

    font-size: 24px;
}

.category-heading h3 {
    color: var(--green);

    font-family: "Cormorant Garamond", serif;

    font-size: 45px;

    font-weight: 500;
}

.category-heading > p {
    max-width: 340px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.75;
}


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

.web-projects {
    position: relative;
    z-index: 2;

    margin-top: 42px;

    display: grid;

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

    gap: 30px;
}

.web-card {
    position: relative;

    padding: 12px;

    background: var(--card);

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

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 10px 28px rgba(45, 40, 34, 0.06);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.web-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 22px 48px rgba(45, 40, 34, 0.11);
}

.web-number {
    position: absolute;

    top: 22px;
    right: 22px;

    z-index: 10;

    width: 38px;
    height: 38px;

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

    border-radius: 50%;

    background: rgba(247, 240, 229, 0.94);

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

    color: var(--green);

    font-size: 11px;

    font-weight: 600;
}


/* PREVIEW */

.web-preview {
    position: relative;

    height: 315px;

    overflow: hidden;

    border-radius: 11px;

    background: #ddd5c8;

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

.web-preview::before {
    content: "●  ●  ●";

    position: absolute;

    top: 0;
    left: 0;

    z-index: 5;

    width: 100%;
    height: 33px;

    display: flex;
    align-items: center;

    padding-left: 14px;

    color: #777169;

    background: rgba(247, 240, 229, 0.96);

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

    font-size: 9px;

    letter-spacing: 3px;
}

.web-preview img {
    width: 100%;
    height: 100%;

    padding-top: 33px;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.web-card:hover .web-preview img {
    transform: scale(1.035);
}

.preview-overlay {
    position: absolute;

    inset: 33px 0 0;

    z-index: 4;

    display: flex;

    align-items: flex-end;

    padding: 19px;

    background:
        linear-gradient(
            to top,
            rgba(38, 35, 31, 0.55),
            transparent 55%
        );

    opacity: 0;

    transition: opacity 0.3s ease;
}

.web-card:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay span {
    color: white;

    font-size: 10px;

    letter-spacing: 1.8px;
}


/* INFO */

.web-info {
    padding: 24px 8px 6px;
}

.web-info .technology {
    margin-bottom: 9px;

    color: var(--red);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1.5px;
}

.web-info h4 {
    margin-bottom: 9px;

    color: var(--green);

    font-family: "Cormorant Garamond", serif;

    font-size: 37px;

    font-weight: 500;

    line-height: 1;
}

.web-info > p:not(.technology) {
    max-width: 480px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.75;
}

.web-info button {
    margin-top: 19px;

    padding: 11px 17px;

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

    border-radius: 50px;

    background: transparent;

    color: var(--green);

    font-size: 12px;

    cursor: pointer;

    transition: 0.25s ease;
}

.web-info button:hover {
    background: var(--green);

    border-color: var(--green);

    color: var(--white);
}

.web-info button span {
    margin-left: 9px;

    color: var(--red);
}


/* =========================================================
   GAME
========================================================= */

.game-heading {
    margin-top: 120px;
}

.game-card {
    position: relative;
    z-index: 2;

    margin-top: 40px;

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    overflow: hidden;

    background: var(--green-dark);

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

    border-radius: 15px;

    box-shadow:
        0 15px 35px rgba(45, 53, 45, 0.12);
}

.game-image {
    position: relative;

    min-height: 420px;

    overflow: hidden;
}

.game-image::before {
    content: "GAME PREVIEW";

    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 5;

    padding: 8px 12px;

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 50px;

    background: rgba(25, 30, 26, 0.4);

    backdrop-filter: blur(7px);

    color: white;

    font-size: 9px;

    letter-spacing: 1.5px;
}

.game-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.04);
}

.game-content {
    padding: 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: var(--white);
}

.game-content .technology {
    color: var(--red-soft);

    font-size: 10px;

    letter-spacing: 1.6px;
}

.game-content h4 {
    margin: 13px 0 16px;

    font-family: "Cormorant Garamond", serif;

    font-size: 64px;

    font-weight: 500;

    line-height: 0.9;
}

.game-content > p:not(.technology) {
    color: #cbd1c9;

    font-size: 14px;

    line-height: 1.85;
}

.game-meta {
    margin-top: 42px;

    padding-top: 17px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid rgba(255,255,255,0.17);

    color: #b6c0b5;

    font-size: 10px;

    letter-spacing: 1.5px;
}


/* =========================================================
   GRAPHIC DESIGN
========================================================= */

.design {
    background: var(--cream-light);
}

.design-intro {
    position: relative;
    z-index: 2;

    margin-top: -15px;
    margin-bottom: 52px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;
}

.design-intro p {
    max-width: 530px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}

.design-intro span {
    color: var(--red);

    font-size: 9px;

    letter-spacing: 1.5px;

    white-space: nowrap;
}


/* =========================================================
   FOLDERS
========================================================= */

.project-folders {
    position: relative;
    z-index: 2;

    display: grid;

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

    gap: 21px;
}

.project-folder {
    position: relative;

    min-height: 230px;

    padding: 27px;

    background: var(--card);

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

    border-radius: 14px;

    box-shadow:
        0 10px 25px rgba(45, 40, 34, 0.05);

    cursor: pointer;

    overflow: hidden;

    outline: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.project-folder::after {
    content: "";

    position: absolute;

    inset: 8px;

    border: 1px dashed rgba(41,40,36,0.1);

    border-radius: 10px;

    pointer-events: none;
}

.folder-top {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.folder-number {
    color: var(--muted);

    font-size: 10px;

    letter-spacing: 1px;
}

.folder-icon {
    position: relative;

    width: 47px;
    height: 35px;

    border: 1px solid rgba(67,88,74,0.35);

    border-radius: 5px;

    background: rgba(67,88,74,0.04);
}

.folder-icon::before {
    content: "";

    position: absolute;

    top: -7px;
    left: 4px;

    width: 21px;
    height: 8px;

    border: 1px solid rgba(67,88,74,0.35);

    border-bottom: none;

    border-radius: 5px 5px 0 0;
}

.folder-icon span {
    position: absolute;

    top: 15px;
    left: 8px;
    right: 8px;

    height: 1px;

    background: rgba(67,88,74,0.2);
}

.folder-content {
    position: relative;
    z-index: 2;

    margin-top: 48px;
}

.folder-category {
    color: var(--red);

    font-size: 9px;

    letter-spacing: 1.5px;
}

.folder-content h3 {
    margin: 9px 0 7px;

    color: var(--green);

    font-family: "Cormorant Garamond", serif;

    font-size: 34px;

    font-weight: 500;

    line-height: 1;
}

.folder-content p {
    color: var(--muted);

    font-size: 12px;
}

.folder-arrow {
    position: absolute;

    right: 24px;
    bottom: 19px;

    color: var(--green);

    font-size: 19px;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.project-folder:hover,
.project-folder:focus-visible {
    transform: translateY(-7px) rotate(-0.4deg);

    background: #faf3e7;

    box-shadow:
        0 20px 40px rgba(45,40,34,0.1);
}

.project-folder:hover .folder-icon,
.project-folder:focus-visible .folder-icon {
    background: var(--green);

    border-color: var(--green);
}

.project-folder:hover .folder-icon::before,
.project-folder:focus-visible .folder-icon::before {
    border-color: var(--green);
}

.project-folder:hover .folder-arrow,
.project-folder:focus-visible .folder-arrow {
    transform: translate(4px, -4px);

    color: var(--red);
}


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

.skills {
    background: var(--paper);
}

.skill-list {
    position: relative;
    z-index: 2;

    margin-top: 50px;

    display: grid;

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

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

.skill-list > div {
    min-height: 175px;

    padding: 27px;

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

    transition: background 0.3s ease;
}

.skill-list > div:hover {
    background: rgba(255,255,255,0.28);
}

.skill-list span {
    color: var(--red);

    font-family: "Cormorant Garamond", serif;

    font-size: 22px;
}

.skill-list strong {
    display: block;

    margin-top: 26px;

    color: var(--green);

    font-family: "Cormorant Garamond", serif;

    font-size: 30px;

    font-weight: 500;
}

.skill-list p {
    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;
}


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

.contact {
    position: relative;

    min-height: 65vh;

    margin: 35px 18px;

    padding: 120px 8%;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    background: var(--green-dark);

    color: var(--white);

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

    overflow: hidden;
}

.contact::before {
    content: "";

    position: absolute;

    inset: 20px;

    border: 1px solid rgba(239,231,219,0.12);
}

.contact > p,
.contact > h2,
.contact > a {
    position: relative;
    z-index: 2;
}

.contact > p {
    color: #bac4b9;

    font-size: 10px;

    letter-spacing: 2.5px;
}

.contact h2 {
    max-width: 820px;

    margin: 27px auto 38px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(62px, 8vw, 112px);

    font-weight: 500;

    line-height: 0.85;
}

.contact h2 em {
    color: var(--red-soft);

    font-weight: 400;
}

.contact > a {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 9px;

    color: var(--white);

    border-bottom: 1px solid rgba(239,231,219,0.35);

    font-size: 14px;

    transition: color 0.25s ease;
}

.contact > a:hover {
    color: var(--red-soft);
}

.contact > a span {
    color: var(--red-soft);
}

.contact-decoration {
    position: absolute;

    top: 55px;
    right: 8%;

    color: var(--red-soft);

    font-size: 43px;
}


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

footer {
    margin: 35px 18px 18px;

    padding: 27px 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--cream-light);

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

    font-size: 10px;

    letter-spacing: 1.2px;
}

footer strong {
    color: var(--green);
}

footer span {
    color: var(--muted);
}


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

.modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

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

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-bg {
    position: absolute;
    inset: 0;

    background: rgba(29,27,24,0.68);

    backdrop-filter: blur(10px);
}

.project-window {
    position: relative;
    z-index: 2;

    width: min(1100px, 94vw);

    height: min(750px, 88vh);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--cream-light);

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 15px;

    box-shadow:
        0 35px 100px rgba(0,0,0,0.32);

    transform: translateY(25px) scale(0.97);

    transition: transform 0.4s ease;
}

.modal.active .project-window {
    transform: translateY(0) scale(1);
}

.window-top {
    flex-shrink: 0;

    height: 50px;

    padding: 0 17px;

    display: grid;

    grid-template-columns: 100px 1fr 100px;

    align-items: center;

    background: var(--paper);

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

.window-top strong {
    text-align: center;

    color: var(--green);

    font-size: 11px;

    letter-spacing: 1px;
}

.window-controls {
    display: flex;
    gap: 7px;
}

.window-controls i {
    width: 9px;
    height: 9px;

    display: block;

    border-radius: 50%;

    background: #aaa69d;
}

.window-controls i:first-child {
    background: var(--red-soft);
}

.window-controls i:last-child {
    background: var(--green-soft);
}

.window-top button {
    justify-self: end;

    width: 30px;
    height: 30px;

    border: none;

    background: transparent;

    color: var(--text);

    font-size: 23px;

    cursor: pointer;

    transition: 0.2s ease;
}

.window-top button:hover {
    color: var(--red);

    transform: rotate(90deg);
}

.project-window iframe {
    width: 100%;
    height: calc(100% - 50px);

    flex: 1;

    border: none;

    background: white;
}


/* =========================================================
   IMAGE GALLERY
========================================================= */

.image-modal {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: flex;

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

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-bg {
    position: absolute;
    inset: 0;

    background: rgba(29,27,24,0.7);

    backdrop-filter: blur(10px);
}

.image-window {
    position: relative;
    z-index: 2;

    width: min(1050px, 92vw);

    max-height: 90vh;

    padding: 28px;

    display: flex;
    flex-direction: column;

    background: var(--cream-light);

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

    border-radius: 15px;

    box-shadow:
        0 30px 90px rgba(0,0,0,0.32);

    overflow: hidden;
}

.gallery-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 10;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

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

    background: var(--cream-light);

    color: var(--text);

    font-size: 21px;

    cursor: pointer;

    transition: 0.25s ease;
}

.gallery-close:hover {
    background: var(--green);

    border-color: var(--green);

    color: var(--white);
}

.gallery-header {
    flex-shrink: 0;

    margin-bottom: 20px;

    padding: 5px 55px 17px 5px;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

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

.gallery-header p {
    margin-bottom: 5px;

    color: var(--red);

    font-size: 9px;

    letter-spacing: 1.8px;
}

.gallery-header h3 {
    color: var(--green);

    font-family: "Cormorant Garamond", serif;

    font-size: 40px;

    font-weight: 500;
}

#galleryCounter {
    color: var(--muted);

    font-size: 11px;
}

.gallery-main {
    position: relative;

    height: 54vh;

    min-height: 350px;

    display: flex;

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

    background: #e0d7c9;

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

    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;

    padding: 20px;

    object-fit: contain;
}

.gallery-prev,
.gallery-next {
    position: absolute;

    top: 50%;

    z-index: 5;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    transform: translateY(-50%);

    background: rgba(243,236,225,0.96);

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

    color: var(--green);

    font-size: 18px;

    cursor: pointer;

    transition: 0.25s ease;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--green);

    border-color: var(--green);

    color: var(--white);
}

.gallery-thumbnails {
    flex-shrink: 0;

    display: flex;

    gap: 9px;

    margin-top: 14px;

    padding: 2px;

    overflow-x: auto;
}

.gallery-thumbnails img {
    flex: 0 0 78px;

    width: 78px;
    height: 58px;

    object-fit: cover;

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

    opacity: 0.5;

    cursor: pointer;

    transition: 0.25s ease;
}

.gallery-thumbnails img:hover {
    opacity: 0.85;
}

.gallery-thumbnails img.active {
    opacity: 1;

    border: 2px solid var(--green);
}


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

@media (max-width: 900px) {

    body::before {
        inset: 10px;
    }

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

        margin-top: 10px;
    }

    .nav nav {
        gap: 20px;
    }

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

        padding: 90px 7%;
    }

    .hero-art {
        width: 100%;
        max-width: 540px;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .about-image {
        max-width: 600px;
    }

    .web-projects {
        grid-template-columns: 1fr;
    }

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

    .game-card {
        grid-template-columns: 1fr;
    }

    .game-image {
        min-height: 350px;
    }

    .skill-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


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

@media (max-width: 650px) {

    body::before {
        display: none;
    }

    .nav {
        width: calc(100% - 16px);

        margin-top: 8px;

        padding: 13px 16px;
    }

    .nav nav,
    .nav-star {
        display: none;
    }

    .hero,
    .section,
    .contact {
        margin: 12px 8px;
    }

    .hero {
        min-height: auto;

        padding: 75px 28px 80px;
    }

    .hero h1 {
        font-size: 75px;

        letter-spacing: -4px;
    }

    .hero-description {
        margin-top: 42px;

        font-size: 15px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .art-frame {
        height: 380px;
    }

    .art-sun {
        width: 170px;
        height: 170px;
    }

    .section {
        padding: 78px 28px;
    }

    .section-heading {
        margin-bottom: 50px;
    }

    .section-heading h2 {
        font-size: 57px;
    }

    .section-number {
        top: 23px;
        right: 25px;
    }

    .category-heading {
        display: block;

        margin-top: 70px;
    }

    .category-heading > p {
        margin-top: 15px;
    }

    .category-heading h3 {
        font-size: 36px;
    }

    .about-image img {
        height: 430px;
    }

    .about-facts {
        grid-template-columns: 1fr;
    }

    .about-facts > div {
        border-right: none;

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

    .about-facts > div:last-child {
        border-bottom: none;
    }

    .web-preview {
        height: 240px;
    }

    .web-info h4 {
        font-size: 32px;
    }

    .game-content {
        padding: 38px 28px;
    }

    .game-content h4 {
        font-size: 54px;
    }

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

    .project-folder {
        min-height: 210px;
    }

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

    .contact {
        min-height: 60vh;

        padding: 90px 28px;
    }

    .contact h2 {
        font-size: 60px;
    }

    .contact-decoration {
        top: 35px;
        right: 25px;
    }

    footer {
        margin: 20px 8px 8px;

        flex-direction: column;

        gap: 12px;

        text-align: center;
    }


    /* MODALS */

    .modal,
    .image-modal {
        padding: 12px;
    }

    .project-window {
        width: 96vw;

        height: 88vh;

        border-radius: 12px;
    }

    .window-top {
        grid-template-columns: 65px 1fr 65px;
    }

    .image-window {
        width: 96vw;

        max-height: 92vh;

        padding: 18px;

        border-radius: 12px;
    }

    .gallery-header {
        padding-right: 45px;
    }

    .gallery-header h3 {
        font-size: 32px;
    }

    .gallery-main {
        height: 52vh;

        min-height: 280px;
    }

    .gallery-prev,
    .gallery-next {
        width: 38px;
        height: 38px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 64px;
    }

    .section-heading h2 {
        font-size: 50px;
    }

    .about-text .large-text {
        font-size: 28px;
    }

    .art-frame {
        height: 330px;
    }

    .web-preview {
        height: 210px;
    }

    .game-image {
        min-height: 230px;
    }

    .game-content h4 {
        font-size: 47px;
    }

    .contact h2 {
        font-size: 51px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    /* NAV */
    .nav nav {
        display: none;
    }

    /* HERO */
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 24px;
    }

    .hero h1 {
        font-size: 70px;
        line-height: 0.9;
    }

    /* ABOUT */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: auto;
    }

    .about-facts {
        grid-template-columns: 1fr;
    }

    .about-facts > div {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    /* WEB PROJECT */
    .web-projects {
        grid-template-columns: 1fr;
    }

    /* GAME */
    .game-card {
        grid-template-columns: 1fr;
    }

    .game-content {
        padding: 30px;
    }

    .game-content h4 {
        font-size: 42px;
    }

    /* GRAPHIC DESIGN */
    .design-intro {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .project-folder {
        min-height: 180px;
    }

    .folder-content h3 {
        font-size: 28px;
    }

    /* SKILLS */
    .skill-list {
        grid-template-columns: 1fr;
    }

    /* SECTION */
    .section {
        padding: 80px 24px;
    }

    .section-heading h2 {
        font-size: 48px;
    }
}
