body {
    background-color: #420b37;
    color: #C4BBB8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* animations */

.revealUpward {
    transform: translateY(100px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

.revealUpward.active {
    transform: translateY(0px);
    opacity: 1;
}

.revealLeft {
    transform: translateX(-100px) !important;
    opacity: 0 !important;
    transition: transform 1s ease, opacity 1s ease !important;
}

.revealLeft.active {
    transform: translateX(0px) !important;
    opacity: 1 !important;
}

.revealRight {
    transform: translateX(100px) !important;
    opacity: 0 !important;
    transition: transform 1s ease, opacity 1s ease !important;
}

.revealRight.active {
    transform: translateX(0px) !important;
    opacity: 1 !important;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* nav */
.nav {
    float: right;
    position: fixed;
    top: 0;
    background-color: #420b37;
    width: 98%;
    z-index: 1;
    padding: 20px;
    margin-top: 0;
    border-bottom: #000000 solid 5px;
    box-sizing: border-box;
    max-width: 100vw;
    overflow: hidden;
}

.nav a {
    text-decoration: none;
    color: #C4BBB8;
    padding: 10px;
    transition: 0.2s ease;

}

.nav a:hover {
    color: #F2E9DC;
}

/* INTRO PAGE */
.intro h1 {
    font-size: 80px;
    margin-left: 100px;
    letter-spacing: -1px;
    line-height: 85px;
}

.intro {
    height: 100vh;
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, #420b37 100%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-left: 50px;
    box-sizing: border-box;
    max-width: 100vw;
    overflow: hidden;
}

.introtext {
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideInLeft 0.8s ease;
    min-width: 0;
}

.intro p {
    padding-bottom: 10px;
    width: 550px;
    max-width: 100%;
    margin-left: 100px;
    margin-top: -20px;
}

.intro a {
    text-decoration: none;
    color: #F2E9DC;
    border: solid 2px #C4BBB8;
    padding: 10px;
    width: 200px;
    margin-left: 100px;
}

.intro img {
    filter: grayscale(100%);
    object-fit: cover;
    display: block;
    width: 500px;
    height: 500px;
    margin-top: 100px;
    margin-right: 100px;
    margin-left: -50px;
    animation: slideInRight 0.8s ease;
    flex-shrink: 0;
}

/* PROJECT LINKS / CARD LAYOUT */

.portfolio {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 auto;
    background: linear-gradient(0deg, #420b37 0%, rgba(0, 0, 0, 1) 100%);
    padding-bottom: 50px;
    overflow: hidden;
}

.portfolio h1 {
    font-size: 150px;
    padding: -50px;
    width: 100%;
    text-align: center;
    font-family: "Dancing Script", cursive;
    color: #6e4466;

}

.portfolio h2 {
    font-size: 30px;
    color: #C4BBB8;
}

.design,
.fullstack,
.research-data {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    width: 100%;
}


.project {
    color: #C4BBB8;
    width: 400px;
    overflow: hidden;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.6);
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform, box-shadow;
    display: flex;
    flex-direction: column;
    background-color: #420b37;
}

.project img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    filter: grayscale(80%);
    transition: filter .18s ease, transform .18s ease;
    will-change: filter, transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.project .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.project h3 {
    margin-left: 10px;
    font-size: 20px;
    color: #C4BBB8;
    letter-spacing: -0.4px;
    margin-bottom: -15px;
    text-decoration: none;
}

.project a {
    text-decoration: none;
    color: #C4BBB8;
}

.project h4 {
    margin-left: 10px;
}

.project p {
    margin-left: 10px;
    font-size: 14px;
    color: rgba(242, 233, 220, 0.9);
    line-height: 1.4;
    padding: 10px;
}

.project:hover {
    transform: scale(1.03);
}

.project:hover img {
    filter: grayscale(0%);
}

@media (max-width: 640px) {
    .project {
        width: calc(100% - 40px);
    }

    .project img {
        height: 140px;
    }

    .portfolio {
        padding: 40px 12px;
    }
}


/* ART STUFF */

.art {
    width: 100%;
    height: 100vh;
    background: linear-gradient(0deg, black 0%, #420b37 100%);
}

.art h1 {
    font-size: 30px;
    text-align: center;
}

.artthings {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
}

.art img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    display: block;
}

.art img {
    text-decoration: none;
    color: #C4BBB8;
    transition: 0.3s ease;
}

.art img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* ABOUT ME */
.aboutme {
    height: 400px;
    background: #420b37;
    color: #C4BBB8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: linear-gradient(0deg, #420b37 0%, black 100%);
}

.aboutme h1 {
    background-color: #420b37;
    padding: 30px;
}

.aboutyap {
    width: 850px;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #C4BBB8;
}

.funfacts {
    width: 800px;
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aboutme button {
    height: 40px;
    width: 150px;
    text-decoration: none;
    color: #C4BBB8;
    background-color: #420b37;
    border: #C4BBB8 solid 2px;
    margin-top: 10px;
    flex-shrink: 0;
    transition: 0.8s ease;

}

.aboutme button:hover {
    background-color: #622e58;
    cursor: pointer;
    transform: scale(1.05);
}

.aboutme img {
    height: 400px;
    object-fit: cover;
    display: block;
    margin: 20px;
}

#funFact {
    height: 200px;
    width: 600px;
    max-width: 100%;
    background: #420b37;
    border: 10px solid #420b37;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.6);
    text-align: center;
    box-sizing: border-box;
}

/* RESUME */
.resume {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

.resume a {
    text-decoration: none;
    color: #de81cd;
    transition: 0.3s ease;
}

.resume a:hover {
    text-decoration: none;
    color: #d8c7d5;
}

/* CONTACT */
.contact {
    height: 60vh;
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, #420b37 100%);
    color: #C4BBB8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact .links {
    display: flex;
    flex-direction: row;
}

.contact a {
    transition: 0.5s ease;
}

.contact a:hover {
    transform: scale(1.1);
}

.contact img:hover {
    transform: scale(1.05);
    background-color: white;
}

.contact img {
    background-color: #C4BBB8;
    border-radius: 200px;
    padding: 10px;
    margin: 10px;
    transition: 0.5s ease;
}

.contact p {
    margin-bottom: -5px;
}

/****************************************/
/* PROJECT PAGE */

.projTitle {
    padding: 100px;
    display: flex;
    flex-direction: row;
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, #420b37 100%);
}

.project-body {
    background: linear-gradient(45deg, #140010, #420b37, #000000, #140010);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.projTitle img {
    margin: 50px;
    margin-left: -50px;
    border: solid 5px #C4BBB8;
}

.projTitle .inner {
    padding: 50px;
}

.projTitle p {
    width: 350px;
    max-width: 100%;
    font-weight: bolder;
}

.skills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: #000000;
    box-sizing: border-box;
    max-width: 100vw;
}

.skillItem {
    padding: 10px;
    margin: 10px;
    background-color: #000000;
    border: solid 2px #C4BBB8;
}

.skills h2 {
    margin-right: 20px;
    font-size: 30px;
}

.ProjSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 60px;
    box-sizing: border-box;
}

.ProjSection .images {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

}

.ProjSection h2 {
    background-color: #420b37;
    padding: 10px;
}

.images img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 10px;
}

.ProjSection a,
.intro a {
    text-decoration: none;
    padding: 10px;
    transition: 0.5s ease;
    color: #C4BBB8;
    border: 2px solid #622e58
}

.ProjSection a:hover,
.intro a:hover {
    background-color: #6e4466;
}


footer {
    background-color: #420b37;
    border-top: 2px solid #420b37;
}

/*MIND SPLURGE*/
.personas {
    display: flex;
    flex-direction: row;
}

.persona {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

.persona p {
    width: 300px;
    max-width: 100%;
}

.persona img {
    border-radius: 400px;
}

/* PHOTO GALLERY */
.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.column {
    flex: 0 0 auto;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    width: 400px;
}

.column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.column img:hover {
    opacity: 0.8;
}

.photoTitle {
    font-size: 150px;
    padding: -50px;
    width: 100%;
    text-align: center;
    font-family: "Dancing Script", cursive;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    color: #ccc;
}


/* ============================================
   RESPONSIVE / MOBILE STYLES
   ============================================ */

/* ---- Tablet: max-width 1024px ---- */
@media (max-width: 1024px) {
    .intro h1 {
        font-size: 60px;
        line-height: 65px;
    }

    .intro img {
        width: 380px;
        height: 380px;
        margin-right: 40px;
    }

    .intro p,
    .intro a {
        width: auto;
        max-width: 400px;
    }

    .portfolio h1 {
        font-size: 100px;
    }

    .project {
        width: 340px;
    }

    .aboutyap {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .aboutme img {
        height: 300px;
        width: 300px;
        object-fit: cover;
    }

    #funFact {
        width: 90%;
    }

    .artthings {
        gap: 40px;
    }

    .art img {
        width: 300px;
        height: 300px;
    }

    .ProjSection {
        width: 90%;
    }

    .projTitle {
        flex-direction: column;
        align-items: center;
        padding: 60px 30px 30px;
    }

    .projTitle img {
        width: 90%;
        max-width: 500px;
        margin: 20px auto;
    }

    .projTitle .inner {
        padding: 20px;
    }

    .projTitle p {
        width: auto;
    }
}

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

    /* GLOBAL: prevent any element from causing horizontal scroll */
    *, *::before, *::after {
        max-width: 100%;
        box-sizing: border-box;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* NAV */
    .nav {
        float: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0;
        overflow: hidden;
    }

    .nav a {
        padding: 4px 6px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 1;
    }

    .nav a:first-child {
        margin-right: auto;
        flex-shrink: 0;
    }

    .nav a img {
        height: 32px !important;
        bottom: 4px !important;
        margin-bottom: -20px !important;
    }

    /* INTRO */
    .intro {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px 40px;
        text-align: center;
        height: auto;
        min-height: 100vh;
    }

    .intro h1 {
        font-size: 44px;
        line-height: 50px;
        margin-left: 0;
        text-align: center;
    }

    .intro p {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        font-size: 15px;
    }

    .intro a {
        margin-left: 0;
        width: auto;
        display: inline-block;
        text-align: center;
    }

    .intro img {
        width: 240px;
        height: 240px;
        margin: 30px auto 0;
        order: -1;
    }

    .introtext {
        align-items: center;
    }

    /* PORTFOLIO */
    .portfolio {
        padding: 30px 16px 50px;
        gap: 24px;
    }

    .portfolio h1 {
        font-size: 70px;
    }

    .portfolio h2 {
        font-size: 22px;
        text-align: center;
        width: 100%;
    }

    .project {
        width: calc(100% - 32px);
        max-width: 420px;
    }

    .project img {
        height: 140px;
    }

    .design,
    .fullstack,
    .research-data {
        gap: 20px;
        padding: 0 8px;
    }

    /* ART */
    .art {
        height: auto !important;
        min-height: unset;
        padding: 40px 20px;
    }

    .art h1 {
        font-size: 20px;
        padding: 0 10px;
    }

    .artthings {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .art img {
        width: 280px;
        height: 280px;
    }

    /* ABOUT ME */
    .aboutme {
        height: auto !important;
        min-height: unset;
        padding: 40px 20px;
    }

    .aboutme h1 {
        font-size: 20px;
        text-align: center;
        padding: 16px;
    }

    .aboutyap {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .aboutme img {
        width: 90%;
        max-width: 320px;
        height: 250px;
        object-fit: cover;
        margin: 10px auto;
    }

    .aboutyap p {
        font-size: 14px;
        line-height: 1.6;
    }

    .funfacts {
        width: 100%;
    }

    #funFact {
        width: 90%;
        height: auto;
        min-height: 120px;
    }

    /* CONTACT */
    .contact {
        height: auto !important;
        min-height: unset;
        padding: 50px 20px;
    }

    .contact h1 {
        font-size: 28px;
        text-align: center;
    }

    .contact .links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .contact img {
        height: 40px;
        padding: 8px;
    }

    /* PROJECT PAGES */
    .projTitle {
        flex-direction: column;
        align-items: center;
        padding: 80px 20px 30px;
        gap: 20px;
    }

    .projTitle .inner {
        padding: 10px;
        text-align: center;
    }

    .projTitle .inner h1 {
        font-size: 36px;
    }

    .projTitle p {
        width: 100%;
    }

    .projTitle img {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .skills {
        flex-wrap: wrap;
        gap: 8px;
        padding: 30px 16px;
    }

    .skills h2 {
        font-size: 22px;
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .skillItem {
        font-size: 13px;
        padding: 6px 10px;
    }

    .ProjSection {
        width: 90%;
        padding-bottom: 40px;
    }

    .ProjSection .images {
        flex-direction: column;
        align-items: center;
    }

    .images img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .ProjSection iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .ProjSection a {
        display: inline-block;
        text-align: center;
    }

    .personas {
        flex-direction: column;
        align-items: center;
    }

    .persona p {
        width: 100%;
        text-align: center;
    }

    /* PHOTO GALLERY */
    .photoTitle {
        font-size: 70px;
        padding-top: 80px;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }

    .column {
        width: 90%;
        max-width: 420px;
    }

    /* RESUME */
    .resume {
        margin-top: 60px;
        padding: 0 20px;
        text-align: center;
    }

    /* FOOTER */
    footer {
        padding: 20px;
        text-align: center;
    }

    footer img {
        height: 36px !important;
        margin: 5px;
    }

    /* LIGHTBOX on mobile */
    .prev {
        left: 5px;
        padding: 10px;
        font-size: 28px;
    }

    .next {
        right: 5px;
        padding: 10px;
        font-size: 28px;
    }

    .close {
        top: 10px;
        right: 16px;
        font-size: 30px;
    }
}

/* ---- Small phones: max-width 400px ---- */
@media (max-width: 400px) {
    .intro h1 {
        font-size: 36px;
        line-height: 42px;
    }

    .portfolio h1 {
        font-size: 52px;
    }

    .photoTitle {
        font-size: 52px;
    }

    .nav a {
        font-size: 11px;
        padding: 4px 6px;
    }

    .projTitle .inner h1 {
        font-size: 28px;
    }
}