/* ==========================================================
   TABLE OF CONTENTS
   1. Variables & Base
   2. Folder & Tabs
   3. About Page
   4. Contact Page
   5. Portfolio Page
   6. Responsive
   ========================================================== */


/* ==========================================================
   1. VARIABLES & BASE
   ========================================================== */

:root {
    --dark-pink: #f284aa;
    --light-pink: #ffe5ec;
    --light-purple: #cfbaf0;
    --dark-purple: #9c7bd8;
    --off-white: #fff8fb;
    --pink-shadow: #fb6f9273;
    --text-pink: #f284aa;
    font-size: 16px;
}

html {
    scrollbar-color: var(--off-white) var(--light-purple);
}

.jua-regular {
    font-family: "Jua", sans-serif;
    font-weight: 400;
    font-style: normal;
}

* {
    box-sizing: border-box;
    font-family: "Jua", sans-serif;
}

body {
    background-color: white;
    background-image:
        linear-gradient(90deg, rgba(207, 186, 240, .20) 50%, transparent 50%),
        linear-gradient(rgba(207, 186, 240, .20) 50%, transparent 50%);
    background-size: 44px 44px;
    color: var(--dark-pink);
}


/* ==========================================================
   2. FOLDER & TABS
   ========================================================== */

.folder-container {
    max-width: 90vw;
    margin: 25px auto;
    position: relative;
}

.tabs {
    display: flex;
    margin-bottom: -1px;
    justify-content: flex-end;
}

.tabs a {
    display: flex;
    text-decoration: none;
}

.tab {
    padding: 10px 20px;
    border: 10px solid var(--dark-pink);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    margin-right: 5px;
    z-index: 1;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    color: var(--dark-pink);
    background: var(--off-white);
}
.tab.about {
    background:  rgba(207, 186, 240, .85);
    border-color:  rgba(207, 186, 240, .85);
    color: var(--off-white);
}

.tab.about:hover {
    background: var(--off-white);
    color:  rgba(207, 186, 240, .85);
}

.tab.contact {
    background: var(--dark-purple);
    border-color: var(--dark-purple);
    color: var(--off-white);
}

.tab.contact:hover {
    background: var(--off-white);
    color: var(--dark-purple);
}
.tab.portfolio {
    background: var(--text-pink);
    border-color: var(--text-pink);
    color: var(--off-white);
}
.tab.portfolio:hover {
    background: var(--off-white);
    color: var(--text-pink);
}



.content {
    border: 12px solid var(--dark-pink);
    border-radius: 8px;
    background: var(--light-pink);
    height: 85vh;
    position: relative;
    overflow: hidden;
}


/* ==========================================================
   3. ABOUT PAGE
   ========================================================== */

/* ---------- Layout ---------- */
.content.about-content {
    border-color: rgba(207, 186, 240, .85);
}
.column-sections {
    height: 100%;
    width: 100%;
    display: flex;
    border: 4px solid var(--light-purple);
    padding: 1rem;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* ---------- Shared Column Styles ---------- */
.education-column,
.heading-and-technical-skills-column,
.speech-bubble-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.education-column h2,
.heading-and-technical-skills-column h2,
.speech-bubble-column h2 {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    background: var(--off-white);
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    padding: 0.15em 0.5em;
    margin: 10px auto;
}

.education-column h2,
.heading-and-technical-skills-column h2 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -70%);
    margin-bottom: 0;
    white-space: nowrap;
    text-transform: uppercase;
}

.education-column h3,
.heading-and-technical-skills-column h3 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    text-align: center;
    text-shadow: 1px 1px 0 var(--off-white);
    margin: 0.5rem 0;
    width: fit-content;
    text-transform: uppercase;
    border: 5px solid var(--light-purple);
    background-color: var(--off-white);
    border-radius: 999px;
    padding: 0.5rem;
    text-wrap: nowrap;
}

.education-column h3 {
    font-size: 1rem;
    color: var(--text-pink);
    text-shadow: none;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0.85rem 0 0.2rem;
}

.education-column h3:first-of-type {
    margin-top: 0.5rem;
}

.education-column ul li::marker,
.heading-and-technical-skills-column ul li::marker {
    color: var(--light-purple);
}

.list {
    list-style-type: "✿ ";
    color: var(--text-pink);
    margin: 0.25rem 0;
}

.education-column .list li {
    margin: 0.2rem 0.25rem;
    line-height: 1.15;
    color: var(--dark-purple);
}

.list li {
    margin-bottom: clamp(0rem, 3vw, 0.25rem);
    color: var(--dark-purple);
    font-size: clamp(0.8rem, 1.1vw, 1.25rem);
}
/* ---------- Page Heading (H1) ---------- */

.column-sections > header {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

#about-heading {
    color: var(--text-pink);
    font-size: clamp(2rem, 3.5vw, 6rem);
    line-height: 1;
    text-align: center;
    margin: 0;
    padding: 0.25rem 1rem;
    z-index: 2;
    text-transform: uppercase;
    -webkit-text-stroke: 0.5px var(--dark-pink);
    border: 10px solid var(--text-pink);
    border-radius: 10px;
    background-color: var(--off-white);

}
#about-heading:hover{
    box-shadow: 6px 10px 15px var(--pink-shadow);
    transform: translateY(-5px);
}

/* ---------- Education Column ---------- */

.education-column {
    background: white;
    border: 10px dashed #ffb3c6;
    border-radius: 10px;
    height: 90%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0
             clamp(0rem, 1.2vw, 1.25rem)
             clamp(1rem, 1.5vw, 1.5rem);
    padding-top: clamp(2.5rem, 3vw, 7rem);
    margin: clamp(1.5rem, 1vw, 2rem);
    justify-content: flex-start;
    width: 27%;
    position: relative;
    order: 1;
    box-shadow: 6px 10px 15px var(--pink-shadow);
}

.education-column:hover {
    transform: translateY(-5px);
}

.education-column h2 {
    border: 10px solid pink;
    margin: clamp(0.5rem, 1vw, 1rem) auto;
}

.certification-link {
    text-decoration: none;
    color: var(--dark-purple);
}

.certification-link:hover {
    transform: translateY(-2px);
    color: var(--dark-pink);
}

/* ---------- Technical Skills Column ---------- */

.heading-and-technical-skills-column {
    height: 100%;
    width: 46%;
    order: 3;
    position: relative;
}

.heading-and-technical-skills-column h3 {
    color: var(--dark-pink);
}

.heading-and-technical-skills-column::before,
.heading-and-technical-skills-column::after {
    content: "";
    color: var(--dark-pink);
    font-size: 10rem;
    position: absolute;
    z-index: 500;
}

.heading-and-technical-skills-column::before {
    bottom: -10%;
    right: 20%;
}

.technical-skills {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: white;
    border: 10px dashed var(--light-purple);
    border-radius: 10px;
    color: var(--dark-purple);
    box-shadow: 6px 10px 15px var(--light-purple);
    width: 97%;
    margin: auto 0 1rem 0;
    height: 70%;
    padding: 2rem 1rem 1rem;
}

.technical-skills:hover {
    transform: translateY(-5px);
}

.technical-skills::before {
    content: "⭑★⭑";
    position: absolute;
    color: var(--light-purple);
    font-size: clamp(1rem, 2vw, 2rem);
    left: 0;
    top: 0;
    transform: rotate(-25deg);
    text-shadow: none;
    animation-name: sparkle;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    -webkit-text-stroke: 2px var(--dark-purple);
}

.technical-skills::after {
    content: "★ˎˊ˗";
    position: absolute;
    color: var(--light-purple);
    font-size: 1.5rem;
    right: 0;
    bottom: 2%;
    transform: rotate(-25deg);
    text-shadow: none;
    animation-name: sparkle;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    -webkit-text-stroke: 2px var(--dark-purple);
}

@keyframes sparkle {
    0% {
        transform: scale(1) rotate(-25deg);
    }
    50% {
        transform: rotate(-25deg) scale(1.25);
    }
    100% {
        transform: rotate(-25deg) scale(1);
    }
}

.technical-skills h2 {
    border: 10px solid var(--light-purple);
    margin: 1rem auto;
    color: var(--dark-purple);
}

.heading-and-technical-skills-column h3 {
    margin: 1rem 0;
    text-align: center;
    align-self: center;
    font-size: 1.25rem;
}

.heading-and-technical-skills-column h4 {
    margin: 0;
    text-align: center;
    color: var(--text-pink);
    text-transform: uppercase;
}

.web-dev {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
    color: var(--dark-purple);
}

.web-dev .list {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    align-items: center;
}

/* ---------- Speech Bubble Column ---------- */

.speech-bubble-column {
    justify-content: center;
    width: 27%;
    height: 80%;
    order: 3;
}

.about-section {
    border-radius: 10px;
    padding: 60px 20px;
    margin: 20px;
}

.about-section.socials {
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
    margin: 0;
    padding: 0;
}

.social-list li {
    list-style-type: none;
}

.social-list li a {
    text-decoration: none;
    color: var(--text-pink);
    display: inline-block;
    margin: 0.25rem;
    transition: .25s;
    font-size: clamp(.75rem, 2vw, 1rem);
    text-wrap: nowrap;
}

.social-list li a:hover {
    color: var(--dark-pink);
    transform: translateY(-5px);
}

.greeting {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    justify-items: center;
}

.greeting a {
    text-decoration: none;
    font-weight: bold;
    color: inherit;
}

#cartoon {
    height: 100%;
    width: auto;
    max-height: 150px;
    border: 10px dashed #ffb3c6;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 6px 10px 15px pink;
}

#cartoon:hover {
    transform: translateY(-1px);
}

.speech {
    position: relative;
    width: 95%;
    padding: 0.5rem 0.5rem 0;
    text-align: center;
    background-color: white;
    border: 8px solid var(--dark-pink);
    border-radius: 30px;
    box-shadow: 2px 2px 4px #888;
    margin: 0 auto 1rem auto;
    color: var(--text-pink);
    height: 70%;
}

.speech h3 {
    font-size: clamp(1rem, 2vw ,2rem);
    margin: 0 auto;
    text-align: center;
    color: var(--dark-pink);
}

.speech p {
    margin: 0.5rem;
    font-size: clamp(0.5rem, 1.5vw ,1.25rem);
}

.speech::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    right: 30px;
    top: 100%;
    border-width: 25px;
    border-style: solid;
    border-color: var(--dark-pink) transparent transparent var(--dark-pink);
}

.speech::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    right: 38px;
    top: 100%;
    border-width: 15px;
    border-style: solid;
    border-color: #fff transparent transparent #fff;
}


/* ==========================================================
   4. CONTACT PAGE
   ========================================================== */

/* ---------- Layout ---------- */

.content.contact-content {
    border: 10px solid var(--dark-purple);
}

.contact-page {
    display: flex;
    border: 4px solid var(--light-purple);
    z-index: 10;
    height: 100%;
    width: 100%;
}

#contact-page-h1 {
    font-size: clamp(2rem, 5.5vw, 6rem);
    position: absolute;
    left: 25%;
    top: -3%;
    padding: 0.5rem 2rem;
    color: var(--text-pink);
    border: 10px solid var(--light-purple);
    border-radius: 10px;
    background-color: var(--off-white);

}
#contact-page-h1:hover{
    transform: translateY(-5px);
    box-shadow: 3px 4px 10px var(--dark-purple);
}
/* ---------- Speech Bubble & Cartoon ---------- */

.contact-speech-bubble {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;

}

.contact-speech-bubble .speech {
    border: 4px solid var(--dark-purple);
    height: 50%;
    margin: 1rem auto;
    padding: 2rem 1rem;

}

.contact-speech-bubble .speech::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    right: 30px;
    top: 100%;
    border-width: 25px;
    border-style: solid;
    border-color: var(--dark-purple) transparent transparent var(--dark-purple);
}

#contact-cartoon {
    height: auto;
    width: 100%;
    max-width: 200px;
    border: 15px dashed var(--light-purple);
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    margin-bottom: 10%;
    object-fit: cover;
}

/* ---------- Post Card & Form ---------- */

.post-card {
    background-color: #fffdf8;
    height: 50%;
    width: 60%;
    margin: 18% auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 8px solid var(--off-white);
    outline: 5px dashed var(--light-purple);
    box-shadow: 0 20px 25px rgba(251, 111, 146, .25);
    transform: rotate(-2deg);
}

#contactForm input:focus,
#message:focus {
    outline: none;
    box-shadow: 0 0 8px var(--light-purple);
}
#message_label{
    margin-bottom: 1rem;
}

#stamp {
    position: absolute;
    height: 25%;
    width: 10%;
    border: 5px dashed var(--dark-purple);
    background-color: var(--light-pink);
    top: 4%;
    right: 2%;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#post-card-contents,
.contact-form-container {
    width: 50%;
}

#post-card-contents {
    border-right: 2px dashed var(--light-purple);
    height: 80%;
}

#message {
    width: 75%;
    height: 60%;
    cursor: pointer;
    border: 2px dashed var(--light-purple);
    color: var(--dark-purple);
    background-color: #fff0f5;
    resize: none;
}

.contact-form-container,
#post-card-contents {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 70%;
    height: 100%;
    margin-top: 30%;
}

#name,
#email,
#phone {
    background-color: var(--light-pink);
    color: var(--dark-purple);
    border: none;
}

hr {
    border: 2px dashed var(--light-purple);
    width: 100%;
    margin: 0 auto;
}

.address-lines {
    position: absolute;
    top: 0%;
    right: 15%;
    width: auto !important;
    color: var(--dark-purple);
    font-size: 1.2rem;
    transform: rotate(-3deg);
}

.address-lines p {
    line-height: 2rem;
}

#send {
    width: 20%;
    margin: 0 auto;
    font-weight: bold;
    color: var(--dark-purple);
    border: 2px solid var(--dark-purple);
    background-color: var(--light-pink);
    border-radius: 3px;
    cursor: pointer;
}
#send:hover{
    background-color: var(--dark-purple);
    color: var(--light-pink);
}

/* ---------- Contact Socials ---------- */

.contact-socials {
    display: flex;
    flex-direction: column;
    color: var(--dark-purple);
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin: 0;


}

.contact-socials h3 {
    font-size: 1.6rem;
    color: var(--dark-pink);
    margin: 0 auto 1rem;
    text-align: center;
    position: relative;
    font-weight: normal;
}

.contact-socials span {
    color: var(--dark-pink);
}

.contact-socials a {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: fit-content;
    margin: 0 auto;
    padding: .45rem 1rem;
    color: var(--text-pink);
    background: var(--off-white);
    border: 5px solid var(--light-purple);
    border-radius: 999px;
    transition: .25s;
    text-decoration: none;
}

.contact-socials a:hover {
    transform: translateY(-2px) rotate(-2deg);
    background: var(--light-pink);
    color: var(--dark-pink);
    border-color: var(--dark-pink);
    box-shadow: 3px 4px 0 var(--light-purple);
}

.contact-socials svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Contact Page Overrides ----------

.content.contact-content {
    border: 5px solid var(--dark-purple);
    padding: 10%;
    overflow-y: scroll;
}

.contact-page {
    flex-direction: column;
    align-items: center;
    width: 100%;
    border: none;
}

.post-card {
    width: 100%;
    padding: 10%;
    margin-top: 0%;
}

#contact-page-h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    color: var(--dark-pink);
    text-shadow: 2px 2px 2px var(--dark-purple);
    position: static;
}

.address-lines {
    color: transparent;
    position: absolute;
    top: 50%;
}

#stamp {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    height: 15%;
    width: 15%;
}
*/


/* ==========================================================
   5. PORTFOLIO PAGE (landing page layout)
   ========================================================== */

.portfolio-content {
    overflow-y: auto;
    border: 12px solid var(--text-pink);
    scroll-behavior: smooth;
}

/* inner border, same as the about and contact pages */
.portfolio-page {
    border: 4px solid var(--light-purple);
    padding: 1rem 1.5rem 2.5rem;
    min-height: 100%;
}

/* ---------- Shared buttons---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem 1.4rem;
    border-radius: 999px;
    border: 5px solid var(--light-purple);
    font-size: 1.05rem;
    text-decoration: none;
    transition: .25s;
    text-wrap: nowrap;
}

.btn-primary {
    background: var(--dark-pink);
    color: var(--off-white);
    border-color: var(--dark-pink);
    box-shadow: 3px 4px 0 var(--light-purple);
}

.btn-primary:hover {
    background: var(--dark-purple);
    border-color: var(--dark-purple);
    transform: translateY(-2px) rotate(-2deg);
}

.btn-secondary {
    background: var(--off-white);
    color: var(--text-pink);
}

.btn-secondary:hover {
    background: var(--light-pink);
    color: var(--dark-pink);
    border-color: var(--dark-pink);
    transform: translateY(-2px) rotate(-2deg);
    box-shadow: 3px 4px 0 var(--light-purple);
}

.btn:focus-visible,
.grid-card a:focus-visible {
    outline: 3px solid var(--dark-purple);
    outline-offset: 3px;
}

/* ---------- 1. Hero ---------- */

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 4rem 2rem 3rem;
    border: 10px dashed var(--light-purple);
    border-radius: 10px;
    background-color: #fff0f5;
    box-shadow: 6px 10px 15px var(--pink-shadow);
    margin-top: 2%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
}

/* "open to opportunities" pill at the top */
.availability {
    margin: 0;
    padding: .25rem 1rem;
    background: var(--off-white);
    color: var(--dark-purple);
    border: 3px solid var(--light-purple);
    border-radius: 999px;
    font-size: clamp(.85rem, 1.2vw, 1.1rem);
}

.availability span {
    display: inline-block;
    color: var(--light-purple);
    -webkit-text-stroke: 1px var(--dark-purple);
    animation: sparkle 3s infinite;
}

#portfolio-heading {
    color: var(--text-pink);
    font-size: clamp(2.25rem, 4.5vw, 5rem);
    line-height: 1;
    padding: .25rem 1rem;
    text-transform: uppercase;
    -webkit-text-stroke: 0.5px var(--dark-pink);
    border: 10px solid var(--text-pink);
    border-radius: 10px;
    background-color: var(--off-white);
    margin: .75rem 0;
    transform: rotate(-1.5deg);
    transition: transform .3s ease, box-shadow .3s ease;
}

#portfolio-heading:hover {
    box-shadow: 6px 10px 15px var(--pink-shadow);
    transform: translateY(-5px) rotate(0deg);
}

.hero-role {
    margin: 0;
    padding: .1rem 1.1rem;
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    color: var(--dark-purple);
    background: var(--off-white);
    border: 3px solid var(--light-purple);
    border-radius: 999px;
}

.hero-pitch {
    margin: 0;
    max-width: 30rem;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    line-height: 1.4;
    color: var(--text-pink);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}

.hero-art {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* little greeting bubble over the photo */
.hero-bubble {
    position: relative;
    width: fit-content;
    max-width: 90%;
    padding: .5rem 1.5rem;
    text-align: center;
    background: white;
    border: 8px solid var(--dark-pink);
    border-radius: 30px;
    box-shadow: 2px 2px 4px #888;
    margin-bottom: 2.25rem;
    color: var(--text-pink);
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
}

.hero-bubble p {
    margin: 0;
}

.hero-bubble::before,
.hero-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.hero-bubble::before {
    right: 30px;
    top: 100%;
    border-width: 25px;
    border-color: var(--dark-pink) transparent transparent var(--dark-pink);
}

.hero-bubble::after {
    right: 38px;
    top: 100%;
    border-width: 15px;
    border-color: #fff transparent transparent #fff;
}

/* photo + hello stickers + sparkles */
.photo-wrap {
    position: relative;
    width: clamp(220px, 28vw, 340px);
}

/* border for both photos */
.portfolio-cartoon {
    border: 10px solid #ffb3c6;
    border-radius: 10px;
}

/* Hero cartoon sizing */
.hero-art .portfolio-cartoon {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: cover;
}

/* Selfie sizing */
#about-me-section .portfolio-cartoon {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    position: relative;
    object-fit: cover;
}

.sticker {
    position: absolute;
    padding: .2rem .9rem;
    background: var(--off-white);
    color: var(--dark-purple);
    border: 3px solid var(--light-purple);
    border-radius: 999px;
    font-size: clamp(.85rem, 1.1vw, 1.05rem);
    box-shadow: 3px 4px 0 var(--light-purple);
    white-space: nowrap;
}

.sticker.s1 { top: 8%;    left: -14%;  transform: rotate(-8deg); }
.sticker.s2 { top: 48%;   right: -12%; transform: rotate(6deg); }
.sticker.s3 { bottom: 6%; left: -10%;  transform: rotate(-4deg); }

.sparkle-deco {
    position: absolute;
    color: var(--light-purple);
    -webkit-text-stroke: 2px var(--dark-purple);
    animation: sparkle 3s infinite;
    pointer-events: none;
}

.sparkle-deco.d1 { top: -7%;    left: 6%;   font-size: 2.5rem; }
.sparkle-deco.d2 { bottom: -6%; left: 46%;  font-size: 1.75rem; }

/* scrapbook stuff on the photo: tape + doodles */
.tape {
    position: absolute;
    top: -4%;
    left: 42%;
    width: 36%;
    height: 1.7rem;
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(207, 186, 240, .85);
    box-shadow: 0 2px 3px rgba(156, 123, 216, .3);
    clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%);
    z-index: 2;
    pointer-events: none;
}

.doodle {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.doodle.flower {
    top: 38%;
    left: -7%;
    font-size: 2.1rem;
    color: var(--light-purple);
    -webkit-text-stroke: 2px var(--dark-purple);
    transform: rotate(-10deg);
}

.doodle.flower.f2 {
    top: -8%;
    left: auto;
    right: -5%;
    transform: rotate(12deg);
}

.doodle.spark4 {
    bottom: -7%;
    right: -4%;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--off-white);
    -webkit-text-stroke: 2px var(--dark-purple);
    transform: rotate(8deg);
}

/* paper layer behind the photo */
.photo-wrap {
    isolation: isolate;
}

.photo-wrap::before {
    content: '';
    position: absolute;
    inset: 4% -6% -4% 6%;
    background: #eadcfb;
    border: 5px solid var(--light-purple);
    border-radius: 10px;
    box-shadow: 3px 4px 0 var(--light-purple);
    transform: rotate(5deg);
    z-index: -1;
}

/* github / linkedin / contact stamps under the buttons */
.hero-stamps {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: 1rem;
}

.stamp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(3rem, 4.5vw, 3.75rem);
    aspect-ratio: 1 / 1;
    color: var(--dark-purple);
    background: var(--off-white);
    border: 4px dashed var(--dark-purple);
    box-shadow: 3px 4px 0 var(--light-purple);
    transition: .25s;
}

.stamp-link svg {
    width: 52%;
    height: 52%;
}

.stamp-link:hover {
    background: var(--dark-purple);
    color: var(--off-white);
    border-color: var(--dark-pink);
    transform: translateY(-3px);
}

.stamp-link:focus-visible {
    outline: 3px solid var(--dark-purple);
    outline-offset: 3px;
}

/* ---------- 2. Tech strip ---------- */

.tech-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1rem 0;
}

.chip {
    padding: .2rem 1rem;
    background: var(--off-white);
    color: var(--dark-purple);
    border: 3px solid var(--light-purple);
    border-radius: 999px;
    font-size: clamp(.85rem, 1.1vw, 1.05rem);
}

/* ---------- Panels (match the Education / Technical Skills boxes) ---------- */

.project-panel {
    position: relative;
    background: white;
    border: 10px dashed var(--light-purple);
    border-radius: 10px;
    box-shadow: 6px 10px 15px var(--light-purple);
    margin: 4.5rem 1rem 1.5rem;
    padding: 2.5rem 0 1rem;
    transition: transform .3s ease;
}

.project-panel.pink {
    border-color: #ffb3c6;
    box-shadow: 6px 10px 15px var(--pink-shadow);
}

.project-panel:hover {
    transform: translateY(-5px);
}

.panel-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -70%);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    color: var(--dark-purple);
    background: var(--off-white);
    border: 10px solid var(--light-purple);
    border-radius: 20px;
    padding: .15em .75em;
    margin: 0;
}

.project-panel.pink .panel-label {
    color: var(--dark-pink);
    border-color: #ffb3c6;
}

.project-panel::before {
    content: "⭑★⭑";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--light-purple);
    font-size: clamp(1rem, 2vw, 2rem);
    transform: rotate(-25deg);
    -webkit-text-stroke: 2px var(--dark-purple);
    animation: sparkle 3s infinite;
    pointer-events: none;
}

/* ---------- 3. What I do ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem 2rem 1.5rem;
}

.service-card {
    text-align: center;
    padding: 1rem;
    background: var(--off-white);
    border: 5px solid var(--light-purple);
    border-radius: 10px;
}

.service-icon {
    font-size: 2.25rem;
    line-height: 1;
}

.service-card h3 {
    margin: .5rem 0;
    font-size: 1.3rem;
    color: var(--dark-pink);
}

.service-card p {
    margin: 0;
    line-height: 1.35;
    color: var(--dark-purple);
}

/* ---------- 4 & 5. Project grids and cards ---------- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 40px;
    place-items: start center;
    padding: 1rem 2rem 2rem;
}

.grid-card {
    border: 5px solid var(--light-purple);
    border-radius: 10px;
    background-color: var(--off-white);
    box-shadow: 0 8px 15px rgba(251, 111, 146, 0.18);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem 1.5rem;
    transition: transform .3s ease, box-shadow .3s ease;
}

/* slight tilt on the cards */
.grid-card:nth-child(odd)  { transform: rotate(-1deg); }
.grid-card:nth-child(even) { transform: rotate(1deg); }

.grid-card:hover {
    transform: translateY(-6px) rotate(0deg);
    box-shadow: 6px 10px 15px var(--pink-shadow);
}

.featured-card {
    padding: 1.5rem;
}

.grid-card h3 {
    font-size: 1.4rem;
    color: var(--dark-pink);
    background: var(--light-pink);
    border-radius: 20px;
    padding: .15em 1em;
    margin: 0 0 .75rem;
    text-align: center;
    width: fit-content;
}

.demo-video,
.portfolio-image {
    height: auto;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 6px solid var(--dark-purple);
    border-radius: 10px;
    margin: 1rem 0;
}

/* video keeps its own shape so nothing gets cropped or letterboxed */
.demo-video {
    aspect-ratio: auto;
    object-fit: contain;
}

.featured-card .demo-video,
.featured-card .portfolio-image {
    max-width: 320px;
}

.demo-video:hover {
    transform: scale(1.15);
    border-color: var(--dark-pink); /* border is solid now so the hover swaps the color instead */
}
.tech-stack {
    margin: .25rem 0 .75rem;
    padding: .1rem .9rem;
    color: var(--text-pink);
    background: white;
    border: 3px solid var(--light-purple);
    border-radius: 999px;
    font-size: .95rem;
    text-align: center;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: auto;
}

.grid-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: .4rem 1.1rem;
    color: var(--dark-purple);
    background: var(--light-pink);
    border: 2px solid var(--light-purple);
    border-radius: 999px;
    font-size: 1rem;
    text-decoration: none;
    transition: .25s;
}

.grid-card a:hover {
    transform: translateY(-2px) rotate(-2deg);
    background: var(--dark-purple);
    color: var(--off-white);
    border-color: var(--dark-pink);
    box-shadow: 3px 4px 0 var(--light-purple);
}
.project-highlights strong {
    color: var(--dark-pink);
    font-weight: normal; /* Jua only has one weight so I'm using color for emphasis */
}

/* ---------- 6. About teaser ---------- */
#about-me-section {
    position: relative;
    min-height: 30rem;
    padding: 3rem 2rem 0;
    display: flex;
    justify-content: center;
}

.about-teaser {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: var(--dark-purple);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.5;
}

.about-teaser p {
    margin: 0 ;
    border-radius: 10px;
    width: 50%;
    padding: 2rem;


}

#read-more-button {
    position: absolute;
    bottom: 5rem;
    transform: translateX(60%);
    width: clamp(150px,50%, 350px);
    height: auto;
    font-size: clamp(1rem, 2.5vw, 3rem);
}

/* ---------- 7. Closing call to action (postcard) ---------- */

.closing-cta {
    margin: 3rem 1rem 0;
    display: flex;
    justify-content: center;
}

.cta-card {
    position: relative;
    width: min(100%, 44rem);
    padding: 2rem 2rem 2rem;
    text-align: center;
    background-color: #fffdf8;
    border: 8px solid var(--off-white);
    outline: 5px dashed var(--light-purple);
    box-shadow: 0 20px 25px rgba(251, 111, 146, .25);
    transform: rotate(-1.5deg);
}

.cta-card h2 {
    margin: 0 0 .5rem;
    padding-right: 3.5rem;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--dark-pink);
}

.cta-card p {
    margin: 0 0 1rem;
    color: var(--dark-purple);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.cta-card .hero-buttons {
    justify-content: center;
}

.cta-stamp {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: var(--light-pink);
    border: 4px dashed var(--dark-purple);
}


/* ==========================================================
   6. RESPONSIVE
   Contact shared (under 1024px + short landscape)
   Small phones:  max-width 479px
   Large phones:  480px - 767px
   Tablets:       768px - 1023px
   Short landscape screens
   Rotated side tabs (tablets, phones, short landscape)
   Large desktop / monitors
   Portfolio page (at the very end)
   ========================================================== */

/* ---------- Contact Page: Shared (under 1024px + short landscape) ----------
   Needs to stay ABOVE the phone/tablet blocks so they can override it. */

@media (max-width: 1023.98px),
       (orientation: landscape) and (max-height: 500px),
       (min-width: 1024px) and (max-width: 1279.98px) and (orientation: portrait) {

    .content.contact-content {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .contact-page {
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 100%;
        padding-bottom: 2.5rem;
    }

    /* Heading */

    #contact-page-h1 {
        position: static;
        width: fit-content;
        max-width: 90%;
        margin: 1.5rem auto 0;
        padding: 0.4rem 1.25rem;
        border-width: 6px;
        font-size: clamp(1.75rem, 7vw, 3rem);
        text-align: center;
    }

    /* Post card: message stacks on top of the form */

    .post-card {
        flex-direction: column;
        justify-content: flex-start;
        width: 90%;
        max-width: 600px;
        height: auto;
        margin: 2rem auto 1.5rem;
        padding: 1.5rem 0;
        transform: none; /* no tilt when the card is stacked */
    }

    #stamp {
        display: none;
    }

    #post-card-contents,
    .contact-form-container {
        width: 100%;
        height: auto;
    }

    #post-card-contents {
        border-right: none;
        border-bottom: 2px dashed var(--light-purple);
        padding-bottom: 1rem;
    }

    #message {
        width: 85%;
        height: 7rem;
        font-size: 1rem;
    }

    #contactForm {
        width: 85%;
        height: auto;
        margin-top: 0;
        padding-top: 0.5rem;
    }

    #contactForm label {
        display: block;
    }

    #contactForm input {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
        padding: 0.5rem;
        font-size: 1rem;
    }

    #send {
        width: auto;
        padding: 0.5rem 2rem;
        margin: 0.5rem auto;
        font-size: 1.1rem;
    }

    .address-lines {
        display: none;
    }

    /* Speech bubble & cartoon */

    .contact-speech-bubble {
        width: 90%;
        max-width: 600px;
        padding: 0;
        margin: 0 auto;
    }

    .contact-speech-bubble .speech {
        width: 80%;
        height: auto;
        margin: 4rem auto 0;
        padding: 1.5rem 1rem;
    }

    #contact-cartoon {
        width: auto;
        max-width: 150px;
        align-self: flex-end;
        margin: 1.5rem 6rem 1rem 0;
        border-width: 10px;
    }
}

/* ---------- Small Phones ---------- */

@media (max-width: 479.98px) {

    /* Page & Container */

    .folder-container {
        margin-left: calc(2.68vw - 8px); /* gives the rotated tabs room on the right */
    }

    html {
        scrollbar-color: var(--light-purple) var(--off-white);
        scrollbar-width: auto;
    }

    body {
        overflow-y: hidden;
        overflow-x: hidden;
    }

    .content {
        overflow-y: scroll;
        width: 83vw;
        height: calc(100vh - 52px);
        height: calc(100dvh - 52px); /* fits the screen so there's no page scrollbar */
        border: 5px solid var(--dark-pink);
    }

    .column-sections {
        overflow-y: visible;
        overflow-x: hidden;
        flex-direction: column;
        gap: 1rem;
        position: relative;
        align-items: center;
    }

    /* Heading */

    .column-sections > header {
        position: static;
        transform: none;
        order: 1;
    }

    #about-heading {
        font-size: clamp(1.6rem, 8vw, 2.25rem);
        white-space: nowrap;
        margin: 1rem 0 0;
    }

    #about-heading::before {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }

    #about-heading::after {
        font-size: clamp(0.75rem, 3.5vw, 1rem);
        right: -5%;
        bottom: 5%;
    }

    /* Cartoon & Speech Bubble */

    #cartoon {
        max-height: clamp(125px, 20vh, 200px);
        margin-bottom: 2rem;
    }

    .speech h3 {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    .speech p {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .speech-bubble-column {
        order: 2;
        width: 90%;
        height: fit-content;
        margin-bottom: 1rem;
    }

    .greeting {
        width: 90%;
        height: fit-content;
    }

    .social-list {
        margin: 0 auto 1rem;
        padding: 0;
        text-align: center;
        list-style: none;
    }

    /* Technical Skills */

    .heading-and-technical-skills-column {
        order: 3;
        width: 95%;
        height: fit-content;
        padding-top: 0;
    }

    .heading-and-technical-skills-column h2,
    .education-column h2 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        padding: clamp(0.5rem, 2vh, 1rem) 0.5rem;
    }

    .technical-skills {
        width: 95%;
        height: fit-content;
        padding: clamp(3rem, 6vh, 6rem) 0;
    }

    .web-dev {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        place-items: center;
        margin-top: 1rem;
    }

    /* Education */

    .education-column {
        order: 4;
        width: 90%;
        height: fit-content;
    }

    .education-column .list li {
        margin-bottom: 1rem;
    }

    .education-column h3 {
        margin-bottom: 1rem;
        text-wrap: wrap;
    }

    /* Shared Lists & Headings */

    .list li {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .heading-and-technical-skills-column h3,
    .education-column h3 {
        padding: clamp(0.5rem, 1.5vw, 1rem);
    }

    /* Contact Socials */

    .contact-socials {
        margin: 1rem auto 2.5rem;
    }

    /* Tabs */

    .tab {
        border: 5px solid;
        font-size: 3.5vw;
        padding: 2.3vw 4vw;
        margin: 0;
        height: 11.64vw;
        width: 18.3vh;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Contact Page */

    .content.contact-content {
        border-width: 6px;
    }

    #contact-page-h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
        border-width: 4px;
        padding: 0.3rem 1rem;
    }

    .post-card {
        width: 94%;
        border-width: 5px;
        outline-width: 3px;
    }

    #message,
    #contactForm {
        width: 90%;
    }

    .contact-socials h3 {
        font-size: 1.3rem;
    }

    .contact-socials a {
        padding: 0.35rem 0.8rem;
        border-width: 4px;
        font-size: 0.95rem;
    }

    #contact-cartoon {
        max-width: 120px;
        border-width: 8px;
    }
}

/* ---------- Large Phones ---------- */

@media (min-width: 480px) and (max-width: 767.98px) {

    /* Page & Container */

    .folder-container {
        margin-left: calc(2.68vw - 8px); /* gives the rotated tabs room on the right */
    }

    html {
        scrollbar-color: var(--light-purple) var(--off-white);
        scrollbar-width: auto;
    }

    .content,
    .column-sections {
        overflow-y: scroll;
    }

    .content {
        width: 83vw;
        height: clamp(75vh, 90vh, 95vh);
        border: 10px solid;
    }

    .column-sections {
        flex-direction: column;
        gap: 1rem;
        position: relative;
        align-items: center;
    }

    /* Heading */

    .column-sections > header {
        position: static;
        transform: none;
        order: 1;
    }

    #about-heading {
        font-size: clamp(2rem, 7vw, 3rem);
        white-space: nowrap;
        margin: 1rem 0 0;
    }

    #about-heading::before {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    #about-heading::after {
        font-size: clamp(1rem, 3vw, 1.25rem);
        right: -5%;
        bottom: 5%;
    }

    /* Cartoon & Speech Bubble */

    .speech-bubble-column {
        order: 2;
        width: 90%;
        height: fit-content;
        margin-bottom: 2rem;
    }

    .greeting {
        width: 90%;
        height: fit-content;
    }

    #cartoon {
        width: auto;
        height: auto;
        max-width: 90%;
        max-height: clamp(120px, 22vh, 180px);
    }

    .speech h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .speech p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    /* Technical Skills */

    .heading-and-technical-skills-column {
        order: 3;
        width: 90%;
        height: fit-content;
        padding-top: 0;
    }

    .technical-skills {
        width: 95%;
        height: fit-content;
        padding: clamp(2rem, 8vh, 6rem) 0;
    }

    .web-dev {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 1rem;
        place-items: center;
    }

    /* Education */

    .education-column {
        order: 4;
        width: 90%;
        height: fit-content;
    }

    /* Shared Lists & Headings */

    .heading-and-technical-skills-column h2,
    .education-column h2 {
        font-size: clamp(1.3rem, 4.5vw, 1.5rem);
        padding: clamp(0.6rem, 2vh, 1rem) 1rem;
    }

    .list li {
        font-size: clamp(0.9rem, 2.8vw, 1rem);
    }

    #flower-decoration-1,
    #flower-decoration-2 {
        color: transparent;
    }

    /* Tabs */

    .tab {
        border: 5px solid;
        font-size: 3.5vw;
        padding: clamp(8px, 2.3vw, 10px) 4vw;
        margin: 0;
        height: 11.64vw;
        width: 18vh;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Contact Page */

    #contact-page-h1 {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }

    .post-card {
        width: 88%;
        padding: 2rem 0;
    }

    #message {
        height: 9rem;
    }

    #contact-cartoon {
        max-width: 140px;
    }
}

/* ---------- Tablets ---------- */

@media (min-width: 768px) and (max-width: 1023.98px) {

    /* Page & Container */

    html {
        scrollbar-color: var(--light-purple) var(--off-white);
        scrollbar-width: auto;
    }

    .content,
    .column-sections {
        overflow-y: auto !important;
    }

    .content {
        width: 83vw;
        height: clamp(75vh, 90vh, 95vh);
        border: 10px solid;
    }

    .column-sections {
        flex-direction: column;
        gap: 1rem;
        position: relative;
        align-items: center;
    }

    /* Heading */

    .column-sections > header {
        position: static;
        transform: none;
        order: 1;
    }

    #about-heading {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        white-space: nowrap;
        margin: 1rem 0 0;
    }

    #about-heading::before {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    #about-heading::after {
        font-size: clamp(1.1rem, 2.5vw, 1.5rem);
        right: -5%;
        bottom: 5%;
    }

    /* Cartoon & Speech Bubble */

    .speech-bubble-column {
        order: 2;
        width: 85%;
        height: fit-content;
        margin-bottom: 2rem;
    }

    .greeting {
        width: 85%;
        height: fit-content;
    }

    #cartoon {
        width: auto;
        height: auto;
        max-width: 90%;
        max-height: clamp(150px, 25vh, 220px);
    }

    .speech h3 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }

    .speech p {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    /* Technical Skills */

    .heading-and-technical-skills-column {
        order: 3;
        width: 85%;
        height: fit-content;
        padding-top: 0;
    }

    .technical-skills {
        width: 95%;
        height: fit-content;
        padding: clamp(2rem, 6vh, 4rem) 1rem;
    }

    /* Education */

    .education-column {
        order: 4;
        width: 85%;
        height: fit-content;
    }

    .education-column h3 {
        margin: 0.5rem;
    }

    .education-column .list li {
        margin-bottom: 1.25rem;
    }

    /* Shared Lists & Headings */

    .heading-and-technical-skills-column h2,
    .education-column h2 {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        padding: clamp(0.6rem, 1.5vh, 1rem) 1rem;
    }

    .list li {
        font-size: clamp(1rem, 2.2vw, 1.15rem);
    }

    #flower-decoration-1,
    #flower-decoration-2 {
        color: transparent;
    }

    /* Tabs */

    .tab {
        border: 5px solid;
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        padding: 1.5vw;
        margin: 0;
        height: 8vw;
        width: 15vh;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Contact Page: side-by-side post card */

    .post-card {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        width: 85%;
        max-width: 750px;
        height: auto;
        margin: 2rem auto 1.5rem;
        padding: 2rem 0;
        transform: rotate(-2deg);
    }

    #post-card-contents,
    .contact-form-container {
        width: 50%;
        height: auto;
    }

    #post-card-contents {
        border-right: 2px dashed var(--light-purple);
        border-bottom: none;
        padding-bottom: 0;
    }

    #message {
        width: 80%;
        height: 12rem;
    }

    #contactForm {
        width: 80%;
        margin-top: 0;
    }
}

/* ---------- Landscape tablets: bring back the stamp + address on the postcard ---------- */

@media (orientation: landscape) and (min-width: 768px) and (max-width: 1023.98px) {

    #stamp {
        display: flex;
        top: 0.5rem;
        right: 0.75rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.6rem;
        border-width: 4px;
    }

    .contact-form-container {
        padding-top: 2.5rem; /* keeps the inputs from running into the stamp */
    }

    .address-lines {
        display: block;
        top: 0.5rem;
        left: 4%;
        right: auto;
        width: 44% !important;
        font-size: 0.9rem;
    }

    .address-lines p {
        margin: 0;
        line-height: 1.4rem;
    }

    #post-card-contents {
        padding-top: 2.5rem; /* space for the address above the message label */
    }
}

/* ---------- Short Landscape Screens ---------- */

@media (orientation: landscape) and (max-height: 500px) {

    .content {
        height: calc(100vh - 52px);
        height: calc(100dvh - 52px); /* fits the screen so there's no page scrollbar */
    }

    .tab {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 10vw;
        height: 15.06vh;
        text-wrap: nowrap;
    }

    .tab-label {
        font-size: 0.70rem;
        line-height: 0.9;
    }

    .web-dev {
        margin-top: 2rem;
    }

    .speech {
        padding-bottom: 2rem;
    }
}

/* ---------- Rotated Side Tabs ---------- */

@media (max-width: 1023.98px), (orientation: landscape) and (max-height: 500px) {

    .folder-container {
        width: 83vw;
        max-width: none;
    }

    .content {
        width: 100%;
    }

    .tabs {
        position: absolute;
        left: 100%;
        bottom: 99%;
        margin: 0;
        width: max-content;
        justify-content: flex-start;
        transform-origin: bottom left;
        transform: rotate(90deg);
    }
}

/* ---------- Desktop: fit the screen height (no page scrollbar on short windows) ---------- */

@media (min-width: 1024px) and (min-height: 501px) {

    .folder-container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 50px);
        height: calc(100dvh - 50px);
    }

    .tabs {
        flex-shrink: 0;
    }

    .content {
        flex: 0 1 auto;  /* stays at 85vh but shrinks if the window is too short */
        min-height: 0;
    }
}

/* ---------- Small Desktops / Landscape Tablets (1024px - 1279px, landscape) ---------- */

@media (min-width: 1024px) and (max-width: 1279.98px) and (orientation: landscape) {

    /* Contact Page */

    #contact-page-h1 {
        left: 4%;
        top: 2%;
        font-size: clamp(2.5rem, 5.2vw, 3.75rem);
        padding: 0.4rem 1.5rem;
        border-width: 8px;
    }

    .post-card {
        width: 56%;
        margin: 22% 0 18% 3%;
    }

    #stamp {
        width: 3.25rem;
        height: auto;
        aspect-ratio: 1 / 1;
        font-size: 2rem;
        border-width: 4px;
    }

    .address-lines {
        left: 54%;
        right: auto;
        width: auto !important;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    #send {
        width: 45%;
        padding: 0.4rem 0;
        font-size: 1.05rem;
    }

    .address-lines p {
        line-height: 1.5rem;
        margin: 0.75rem 0 0;
    }

    .contact-speech-bubble {
        width: 36%;
        padding: 0 0.75rem;
        margin-left: auto;
    }

    .contact-speech-bubble .speech {
        width: 100%;
        height: auto;
        padding: 1.5rem 0.75rem;
    }

    .contact-socials h3 {
        font-size: 1.3rem;
    }

    #contact-cartoon {
        max-width: 160px;
        border-width: 12px;
        margin-bottom: 0;
    }

    /* Portfolio: about teaser */

    #about-me-section {
        padding: 3rem 1.5rem 0;
    }

    .about-teaser {
        gap: 1.5rem;
    }

    .about-teaser p {
        width: 52%;
        padding: 1.5rem;
        font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    }
}

/* ---------- Tall 1024px screens, like iPad Pro 12.9" in portrait ----------
   postcard on top, speech bubble + cartoon below */

@media (min-width: 1024px) and (max-width: 1279.98px) and (orientation: portrait) {

    #contact-page-h1 {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }

    .post-card {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        width: 85%;
        max-width: 750px;
        height: auto;
        margin: 2rem auto 1.5rem;
        padding: 2rem 0;
        transform: rotate(-2deg);
    }

    #post-card-contents,
    .contact-form-container {
        width: 50%;
        height: auto;
    }

    #post-card-contents {
        border-right: 2px dashed var(--light-purple);
        border-bottom: none;
        padding-bottom: 0;
    }

    #message {
        width: 80%;
        height: 12rem;
    }

    #contactForm {
        width: 80%;
        margin-top: 0;
    }

    /* Portfolio: about teaser */

    #about-me-section {
        padding: 3rem 1.5rem 0;
    }

    .about-teaser p {
        width: 52%;
        padding: 1.5rem;
    }
}

/* ---------- Large Desktop (1920px+) ---------- */

@media (min-width: 1920px) and (min-height: 700px) {

    :root {
        font-size: 19.2px;
    }

    .tab {
        border-width: 12px;
    }

    .content {
        border-width: 14px;
    }

    .portfolio-content {
        border-width: 18px;
    }

    .education-column,
    .technical-skills {
        border-width: 12px;
    }

    .education-column h2,
    .technical-skills h2 {
        border-width: 12px;
    }

    .heading-and-technical-skills-column h3 {
        border-width: 6px;
    }

    #cartoon {
        max-height: 180px;
        border-width: 12px;
    }

    .speech {
        border-width: 10px;
    }

    /* Contact Page */

    .content.contact-content {
        border-width: 14px;
    }

    #contact-page-h1 {
        border-width: 12px;
    }

    .post-card {
        border-width: 10px;
        outline-width: 6px;
    }

    #stamp {
        border-width: 6px;
    }

    #contact-cartoon {
        border-width: 18px;
        max-width: 240px;
    }

    /* Portfolio: hero */

    .hero {
        border-width: 12px;
    }

    .hero-art .photo-wrap {
        width: 400px;
    }

    /* Portfolio: about teaser */

    #about-me-section .photo-wrap {
        width: 400px;
    }

    .about-teaser p {
        border-width: 6px;
    }
}

/* ---------- Large Monitors (2560px+) ---------- */

@media (min-width: 2560px) and (min-height: 700px) {

    :root {
        font-size: 25.6px;
    }

    .tab {
        border-width: 16px;
    }

    .content {
        border-width: 19px;
    }

    .portfolio-content {
        border-width: 24px;
    }

    .education-column,
    .technical-skills {
        border-width: 16px;
    }

    .education-column h2,
    .technical-skills h2 {
        border-width: 16px;
    }

    .heading-and-technical-skills-column h3 {
        border-width: 8px;
    }

    #cartoon {
        max-height: 240px;
        border-width: 16px;
    }

    .speech {
        border-width: 13px;
    }

    /* Contact Page */

    .content.contact-content {
        border-width: 19px;
    }

    #contact-page-h1 {
        border-width: 16px;
    }

    .post-card {
        border-width: 13px;
        outline-width: 8px;
    }

    #stamp {
        border-width: 8px;
    }

    #contact-cartoon {
        border-width: 24px;
        max-width: 300px;
    }

    /* Portfolio: hero */

    .hero {
        border-width: 16px;
    }

    .hero-art .photo-wrap {
        width: 520px;
    }

    /* Portfolio: about teaser */

    #about-me-section .photo-wrap {
        width: 520px;
    }

    .about-teaser p {
        border-width: 8px;
    }
}

/* ---------- Portfolio Page (tablet, phone, reduced motion) ----------
   Keep this at the very end so it overrides the base portfolio rules. */

/* small desktops: tighten the hero so the stickers don't run into the text */
@media (min-width: 1024px) and (max-width: 1279.98px) {

    .hero {
        gap: 2.5rem;
        padding: 2rem 3rem 2rem 2.5rem;
    }

    .hero-pitch {
        max-width: 26rem;
    }
}

@media (max-width: 1023.98px) {

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.75rem;
        padding: 2rem 2.5rem 2.25rem; /* even padding now that it's one column */
    }

    .hero-text {
        align-items: center;
    }

    .hero-buttons,
    .hero-stamps {
        justify-content: center;
    }

    .hero-art {
        order: -1;
    }

    .hero-bubble {
        max-width: 22rem;
    }

    .service-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* About teaser: photo on top, text below, button under the text */

    #about-me-section {
        flex-direction: column;
        align-items: center;
        min-height: 0;
        padding: 3rem 1.5rem 2rem;
    }

    .about-teaser {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        padding: 1rem 0;
    }

    #about-me-section .photo-wrap {
        width: clamp(240px, 42vw, 340px);
    }

    .about-teaser p {
        width: 100%;
        max-width: 36rem;
        padding: 1.5rem;
    }

    #read-more-button {
        position: static;
        transform: none;
        margin-top: 1.5rem;

    }
}

@media (max-width: 639.98px) {

    .portfolio-content {
        border-width: 6px;
    }

    .portfolio-page {
        padding: .75rem .5rem 2rem;
    }

    .hero {
        padding: 1.25rem 1rem 1.5rem;
        border-width: 6px;
        gap: 1.5rem;
    }

    #portfolio-heading {
        border-width: 6px;
        white-space: nowrap;
        font-size: clamp(1.6rem, 8vw, 2.25rem);
    }

    /* stickers were getting cut off on small screens */
    .photo-wrap {
        width: clamp(180px, 58vw, 240px);
    }

    .sticker.s1 { left: -4%; }
    .sticker.s2 { right: -4%; }
    .sticker.s3 { left: -4%; }

    .project-panel {
        margin: 4rem .25rem 1.5rem;
        border-width: 6px;
    }

    .panel-label {
        border-width: 5px;
        font-size: 1.1rem;
    }

    .service-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .grid-card:nth-child(odd),
    .grid-card:nth-child(even) {
        transform: none;
    }

    /* About teaser */

    #about-me-section {
        padding: 2.5rem .75rem 1.5rem;
    }

    #about-me-section .photo-wrap {
        width: clamp(180px, 58vw, 240px);
    }

    .about-teaser {
        gap: 1.75rem;
    }

    .about-teaser p {
        padding: 1.1rem;
        border-width: 4px;
        font-size: 1rem;
        line-height: 1.4;
    }

    .cta-card {
        padding: 1.5rem 1rem;
        transform: none;
    }

    .btn {
        padding: .4rem 1rem;
        border-width: 4px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-content {
        scroll-behavior: auto;
    }

    .project-panel::before,
    .availability span,
    .sparkle-deco {
        animation: none;
    }
}