/* Original style.css */
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Jersey10";
    src: url("../fonts/Jersey10-Regular.ttf") format("truetype");
    font-weight: 400;
}

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


 General pages 
.page {
    padding: 2rem;
    min-height: 100vh;
}

 Individual project page 
.individual-project {
    padding: 2rem;
}

.individual-project .main-pic {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 2rem auto;
}

.project-description {
    max-width: 900px;
    margin: 2rem auto;
}

 Project card links should inherit your existing styling 
.card a {
    color: inherit;
    text-decoration: none;
}

.card a:hover {
    cursor: pointer;
}

#app-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#app-content > section {
    box-sizing: border-box;
    max-width: 100%;
}

/* Original sidebarMenu.css */
:root {
    /*  Colors*/
    --body-color: #e6e0ff;
    --background-color: #C0B1F4;
    --purplegradient-color: #8B7CFFFF;
    --slatebluegradient-color: #695CFEFF;
    --sidebar-color: #727CDB;
    --primary-color: #695cfe;
    --primary-color-light: #8f96db;
    --toggle-color: #c7c5c5;
    --text-color: #261F4B;
    --searchbar-color: #414461;
    --searchtext-color: #757575;
    /*  --secondary-color: #8A2BE2;
    --background-color: #F5F5F5;
    --text-color: #333333;
    --font-family: "Poppins", sans-serif;*/
    /*Transition*/
    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
    /*Sidebar width*/
    --sidebar-width: 270px;
    --sidebar-closedwidth: 108px;
}

/*====Rounded Search==========*/
/*.search-input {
    display: flex;*/
    /* This property rounds the corners */
    /*border-radius: 20px;*/
    /* Additional styling for a clean look */
    /*padding: 1px 15px;
    border: 1px solid #ccc;
    outline: none;
    width: 150px;
    font-size: 16px;

}*/

/* Adds a subtle blue outline when the user clicks inside */
/*.search-input:focus {
    border-color: #007BFF;
}*/


body {
    height: 100%;
    box-sizing: border-box;
    background: var(--background-color);
    transition: var(--tran-05);
    overflow-x: hidden;
    overflow-y: auto;
}

body.dark{
    --body-color: #181827;
    --background-color:#181827;
    --purplegradient-color: #8B7CFFFF;
    --slatebluegradient-color: #6A5ACDFF;
    --sidebar-color: #252442;
    --primary-color: #8B7CFF;
    --primary-color-light: #6F68B8;
    --toggle-color: #9CA3AF;
    --text-color: #F1F0FF;
    --searchbar-color: #2E2D46;
    --searchtext-color:#A1A1AA;
}

/* ======== nav sidebar =============*/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 270px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;
}

.sidebar.close{
    width: 108px;
}

/* ======== Resuable CSS =============*/
.sidebar .text{
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--tran-02);
    white-space: nowrap;
    opacity: 1;
}

.sidebar.close .text{
    opacity: 0;
}

.sidebar .image{
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar li{
    height: 70px;
    margin-top: 20px;
    list-style: none;
    display: flex;
    align-items: center;
}

.sidebar li .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    font-size: 40px;
}
.sidebar li .icon,
.sidebar li .text{
    color: var(--text-color);
    transition: var(--tran-02);
}

.sidebar header{
    position: relative;
}

.sidebar .image-text img{
    position: relative;
    left: 9.5px;
    width: 65px;
    border-radius: 6px;
}

.sidebar .dark-light {
    position: relative;
    min-width: 60px;
    width: 80px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .dark-light img {
    position: absolute;
    width: 65px;
    left: 65%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    transition: var(--tran-03);
}

.sidebar .dark-light .dark-icon {
    opacity: 0;
}

body.dark .sidebar .dark-light .dark-icon {
    opacity: 1;
}

body.dark .sidebar .dark-light .light-icon {
    opacity: 0;
}

.sidebar header .image-text{
    display: flex;
    align-items: center;
}

.sidebar header .image-text .logo-text{
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo-text .name{
    font-weight: 600;
}

.logo-text .profession{
    margin-top: -2px;
}

.sidebar header .toggle {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%) rotate(180deg);
    height: 35px;
    width: 35px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 32px;
    transition: var(--tran-03);
    cursor: pointer;
}

.sidebar.close header .toggle {
    transform: translateY(-50%) rotate(0deg);
    transition: var(--tran-03);
}

body.dark .sidebar header .toggle{
    color: var(--text-color);
}

/*margin from icon*/
.sidebar .menu{
    margin-top: -10px;
}
.sidebar .search-box {
    background: var(--primary-color-light);
    border-radius: 6px;
    transition: var(--tran-05);
}

.search-box input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    background: var(--primary-color-light);
    transition: var(--tran-05);
}

input[type="search"] {
    background-color: var(--primary-color-light);
    color: var(--text-color);                  
    transition: var(--tran-05);
}

input[type="search"]::placeholder {
    color: var(--searchtext-color);
    transition: var(--tran-05);

}
.sidebar li a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--tran-04);
}

.sidebar li a:hover{
    background: var(--primary-color);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text{
    color: var(--primary-color-light);
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text{
    color: var(--text-color);
}
.sidebar .menu-bar{
    height: calc(100% - 90px);
    display: flex;
    flex-direction:column;
    justify-content: space-between;
}

.menu-bar .mode {
    position: relative;
    border-radius: 6px;
    background: var(--primary-color-light);
    transition: var(--tran-05);
}

.mode-text {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.menu-bar .mode .moon-sun{
    height: 50px;
    width: 60px;
    display: flex;
    align-items: center;
}

.menu-bar .mode i{
    position: absolute;
    transition: var(--tran-03);
}

.menu-bar .mode i.sun{
    opacity: 0;
}

body.dark .menu-bar .mode i.sun{
    opacity: 1;
}

body.dark .menu-bar .mode i.moon {
    opacity: 0;
}

.menu-bar .mode .toggle-switch{
   position: absolute;
   right: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   height: 100%;
   min-width: 60px;
   cursor: pointer;
   border-radius: 6px;
   background: var(--primary-color-light);
   transition: var(--tran-05);
}

.toggle-switch .switch {
    position: relative;
    height: 26px;
    width: 48px;
    border-radius: 25px;
    background: var(--toggle-color);
    transition: var(--tran-05);
}

.switch::before{
    content: '';
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background: var(--sidebar-color);
    transition: var(--tran-03);
}

body.dark .switch::before{
    left: 25px;
}

.individual-project,
.home {
    position: relative;
    height: 65vh;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    background-color: var(--background-color);
    background-size: 40px 40px;
    overflow-x: hidden;
    overflow-y: auto;
    /*creates a grid, direction, then color and background color in between grids*/
    background-image: linear-gradient(to right, var(--purplegradient-color) 2px, transparent 1px), linear-gradient(to bottom, var(--slatebluegradient-color) 2px, transparent 1px);
    transition: var(--tran-05);
}

.individual-project{
    background-image: none;
}

.home .text{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 40px;
}

.text {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 40px;
}

.sidebar.close ~ .individual-project,
.sidebar.close ~ .home{
    left: var(--sidebar-closedwidth);
    width: calc(100% - var(--sidebar-closedwidth));
}

.individual-project .text {
    font-size: 60px;
    font-weight: 800;
    color: var(--text-color);
   /* padding: 8px 40px;*/

    white-space: normal;
    overflow-wrap: break-word;

    align-content: center;
    outline: 1px solid red;
    width: 70%;
    text-align: center;
    transform: translateX(20%);
    
}







/* Original sticker.css */
:root {
    --darkpurple-color:      #24152f;
    --brightpurple-color:    #9b5de5;
    --lightpurple-color:      #eadcff;
    --lavenderScreen-color:  #f4edff;
    --niceblack-color: #222;
    --game-border-color:  #261F4B;
    --game-screen-color: #c8d0a8;

    --dur-2: 2s forwards;

    --size: 300px;
    --game-adjustment: 90px;
}

body.dark {
    --game-screen-color: #6a8252;
}

.stickers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sticker img {
    width: var(--size);
    height: auto;
}


.sticker {
    position: absolute;
    width: var(--size);
    opacity: 0;
    animation-name: sticker-rise;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes sticker-rise {
    from {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }

    to {
        opacity: 0.75;
        transform: translateY(0) rotate(var(--rotation));
    }
}

/*other landing page idea*/

.exe-container {
    display: flex;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: var(--tran-05);
    display: inline-block;
   /* outline: 10px solid red;*/
}

.game-screen {
     align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    width: 60%;
    height: 50%;
    top: 20%;
    left: 20%;
    border: 8px solid var(--text-color);
    border-radius: 20px;
    padding: 40px;
    background: var(--game-screen-color);
    box-shadow: 12px 12px 0 var(--text-color);
    transition: var(--tran-05);
}

.initial-buttons {
    position: absolute;
    width: 5vw;
    left: 83%;
    top: 79%;
    transform: translate(-50%, -50%) scale(2.2);
}

.dpad {
    position: absolute;
    max-width: 100%;
    height: auto;
    display: block;
    font-display: block;
    font-size: clamp(40px, 12vw, 280px);
    text-align: center;
    left: 15%;
    top: 81%;
    color: var(--text-color);
    /*line-height: 1;*/
    transform: translate(-50%, -50%);
}

.initial-buttons img,
.pua img{
    display: block;
    width: 100%;
    height: auto;
}


.pua {
    position: absolute;
    width: 5vw;
    opacity: 0.8;
    left: 87%;
    top: 18%;
    transform: scale(3) rotate(-15deg);
}

.game-screen .text p {
    font-family: "Jersey10", sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem,calc(3vw - 1rem), 4rem);
    white-space: nowrap;
    text-align: center;
    position: absolute;
    justify-content: center;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.game-screen .intro-text p {
    font-family: "Jersey10", sans-serif;
    color: var(--text-color);
    font-weight: 500;
    font-size: clamp(1.5rem,calc(3vw - 1rem), 4rem);
    white-space: nowrap;
    text-align: center;
    position: absolute;
    justify-content: center;
    left: 50%;
    top: 10%;
    transform: translate(-50%, -50%);
    opacity: 0.6;


}

.game-screen .name h1 {
    color: var(--text-color);
    font-size: clamp(2.5rem,calc(4.5vw - 1rem), 4.5rem);
    letter-spacing: 0.05em;
    width: 90%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    position: absolute;
    overflow-wrap: break-word;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--tran-03);
}

body.dark .pua img {
    content: url('../assets/PuaDark.png');
}

body.dark .initial-buttons img {
    content: url('../assets/ButtonsDark.png');
}

/* Original typewriterEffect.css */
/*typewriter*/

/*.typewriter{
    display: flex;
    justify-content: center;
}

.typewriter h1 {
    color: black;
    font-family: "Poppins", sans-serif;
    font-size: 3.5rem;
    letter-spacing: 0.05em;
    margin-inline: auto;
    overflow: hidden;
    white-space: nowrap;
    border-right: 1px solid;
    animation: typing 3s steps(22) forwards,
               blink 1s step-end infinite;
}*/

:root {
    --text-color: #261F4B;
}

body.dark {
    --text-color: #F1F0FF;
}

/*.typewriter {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}


.game-screen .typewriter {
    position: absolute;*/
    /*top: 0%;
    left: 0%;
    transform: translate(0,0);*/
    /*display: flex;
    justify-content: center;
    align-content: center;
}*/



/*.typewriter h1 {
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    font-size: clamp(16px, 4cqw, 30px);
    letter-spacing: 0.05em;
    margin-inline: auto;
    overflow: hidden;*/
    /*white-space: nowrap;*/
    /*border-right: 1px solid;*/
    /*animation: typing 3s steps(22) forwards, blink 1s step-end infinite;*/
/*}*/

/*.game-screen .typewriter.game-text p {
    color: var(--text-color);
    font-family: "Jersey10", sans-serif;
    font-size: clamp(2rem, calc(4vw - 1rem), 4rem);
    letter-spacing: 0.05em;
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
    width: 80%;
    overflow: hidden;*/
    /*border-right: 1px solid;*/
/*}

.game-screen .typewriter.game-text > div::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1em;
    background: var(--text-color);
    margin-left: 3px;
    vertical-align: -0.1em;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}*/


.game-screen .typewriter.game-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    transition: var(--tran-03);
}

.game-screen .typewriter.game-text > div {
    display: inline;
}

.game-screen .typewriter.game-text p {
    display: inline;
    color: var(--text-color);
    font-family: "Jersey10", sans-serif;
    font-size: clamp(2rem, calc(4vw - 1rem), 4rem);
    letter-spacing: 0.05em;
    margin: 0;
}

.game-screen .typewriter.game-text > div::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 2em;
    background: var(--text-color);
    margin-left: 3px;
    vertical-align: -0.1em;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Original projects.css */
:root {
    /*  Colors*/
    /*--body-color: #e4e9f7;
    --sidebar-color: #fff;
    --primary-color: #695cfe;
    --primary-color-light: #F6F5FF;
    --toggle-color: #DDDD;
    --text-color: #707070;*/

    --body-color: #e6e0ff;
    --background-color: #C0B1F4;
    --purplegradient-color: #8B7CFF2B;
    --slatebluegradient-color: #695CFE2B;
    --sidebar-color: #727CDB;
    --primary-color: #695cfe;
    --primary-color-light: #8f96db;
    --toggle-color: #c7c5c5;
    --text-color: #261F4B;
    --searchbar-color: #414461;
    --searchtext-color: #757575;
    /*  --secondary-color: #8A2BE2;
    --background-color: #F5F5F5;
    --text-color: #333333;
    --font-family: "Poppins", sans-serif;*/
    /*Transition*/
    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
    --card-color: #E6E6FA;
}


/*body 
    height: 100%;
    background: var(--body-color);
    transition: var(--tran-05);
}*/

body.dark {
    --body-color: #181827;
    --background-color: #181827;
    --card-color: #734F96;
    --card-color: #261F4B;
    --purplegradient-color: #8B7CFF30;
    --slatebluegradient-color: #6A5ACD30;
    --sidebar-color: #252442;
    --primary-color: #8B7CFF;
    --primary-color-light: #6F68B8;
    --toggle-color: #9CA3AF;
    --text-color: #F1F0FF;
    --searchbar-color: #2E2D46;
    --searchtext-color: #A1A1AA;
}

.projects {
    position: relative;
    height: 100vh;
    left: 270px;
    width: calc(100% - 270px);
    background-color: var(--background-color);
    background-size: 40px 40px;
    /*creates a grid, direction, then color and background color in between grids*/
    /*background-image: linear-gradient(to right, var(--purplegradient-color) 1px, transparent 1px), linear-gradient(to bottom, var(--slatebluegradient-color) 1px, transparent 1px);*/
    transition: var(--tran-05);
}

.projects .text{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 40px;
}
.sidebar.close ~ .projects{
    left: 108px;
    width: calc(100% - 108px);
}

/*.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 90%;
    height: 35%;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--tran-05);*/
    /*background-color: blue;*/
    /*margin-top: 0%;

    list-style: none;
}*/

.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    width: 90%;
    margin: 0 auto;
    list-style: none;
}


.card {
    position: relative;
    width: 50%;
    height: 20vw;
    background-color: var(--card-color);
    outline: 5px solid var(--text-color);
    border-radius: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 3%;
}

/*.TicDecToe .card {
    gap: 0px;
    margin-top: -2%;
}*/


.card {
    position: relative;
    overflow: hidden;
}

.card img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: top 0.2s ease;
}

.card img:hover {
    top: 45%;
}

.card h2{
    position: absolute;
    color: var(--text-color);
    font-size: clamp(12px, 2vw, 150px);
    text-decoration: underline;
    white-space: normal;
    overflow-wrap: break-word;

    top: 12%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.card p{
    position: absolute;
    color: var(--text-color);

    font-size: clamp(10px, 1.25vw, 250px);
    width: 90%;
    white-space: normal;
    overflow-wrap: break-word;

    top: 20%;
    transform: translate(5%, 0%);
   /* outline: 1px solid red;*/
}

.skills {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(5px, 1vw, 12px);
    top: 80%;
    left: 10%;
    transform: translate(-7%, -50%);
    /*outline: 1px solid red;*/
}

.skill-tag {
    padding: clamp(4px, 0.6vw, 8px) clamp(8px, 1.2vw, 16px);
    font-size: clamp(10px, 1vw, 16px);
    border-radius: 20px;
    border: 2px solid var(--text-color);
    background: var(--primary-color-light);
    color: var(--text-color);
    white-space: wrap;
}

/*Tic-Dec-Toe*/

.individual-project {
    position: relative;
    height: 100vh;
    left: 270px;
    width: calc(100% - 270px);
    background-color: var(--background-color);
    background-size: 40px 40px;
    /*creates a grid, direction, then color and background color in between grids*/
    /*background-image: linear-gradient(to right, var(--purplegradient-color) 1px, transparent 1px), linear-gradient(to bottom, var(--slatebluegradient-color) 1px, transparent 1px);*/
    transition: var(--tran-05);
}

.main-pic {
    position: relative;
    width: 60%;
    height: 30vw;
    background-color: var(--card-color);
    outline: 5px solid var(--text-color);
    border-radius: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 3%;
}

.main-pic img {
    position: relative;
    width: auto;
    height: 30vw;
    outline: 5px solid var(--text-color);
    border-radius: 20px;
    left: -55%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: var(--tran-03);
}


/* PDF Resume Viewer */
.resume-page {
    min-height: 100vh;
    background-image: linear-gradient(to right, var(--purplegradient-color) 2px, transparent 1px), linear-gradient(to bottom, var(--slatebluegradient-color) 2px, transparent 1px);
    background-size: 40px 40px;
}

.resume-page h1 {
    color: var(--text-color);
    margin-top: 10px;
    /*margin-bottom: 20px;*/
    margin-left: 45px;
}


.resume-page text
{
   padding: 0px;
}

.pdf-viewer {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.pdf-viewer iframe {
    display: block;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    border: none;
}

.pdf-download {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px auto;
}

.pdf-download a {
    color: var(--text-color);
    background: var(--sidebar-color);
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
}

.pdf-download a:hover {
    background: var(--primary-color);
    color: var(--primary-color-light);

}

body.dark .pdf-download a:hover{
    color: var(--text-color);
}



/* Original mobile.css */
/*for phone*/
@media (max-width: 846px) {

    .home {
        left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        height: 82vh;
    }

    .sidebar {
        z-index: 100;
    }

}






/* =========================================================
   Responsive portfolio overrides
   Keep this block at the END of the relevant CSS bundle.
   ========================================================= */

html {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: clip;
}

img, video, canvas, svg {
    max-width: 100%;
}

#app-content {
    width: 100%;
    min-width: 0;
}

/* A fixed sidebar is outside normal flow, so offset the app only once. */
#app-content > section,
#app-content .home,
#app-content .projects,
#app-content .individual-project {
    left: 0;
    width: auto;
    max-width: none;
    margin-left: var(--sidebar-width, 270px);
    transition: width 0.3s ease, margin-left 0.3s ease;
}

body:has(.sidebar.close) #app-content > section,
body:has(.sidebar.close) #app-content .home,
body:has(.sidebar.close) #app-content .projects,
body:has(.sidebar.close) #app-content .individual-project {
    margin-left: var(--sidebar-closedwidth, 108px);
}

/* Home hero */
#app-content .home {
    position: relative;
    min-height: 620px;
    height: min(82vh, 900px);
    height: min(82dvh, 900px);
    overflow: hidden;
}

#app-content .exe-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#app-content .game-screen {
    width: min(76%, 900px);
    min-height: 280px;
    height: 50%;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    padding: clamp(16px, 3vw, 40px);
}

#app-content .game-screen .intro-text p {
    max-width: 95%;
    font-size: clamp(1rem, 2.5vw, 2.5rem);
    white-space: normal;
}

#app-content .game-screen .name h1 {
    max-width: 95%;
    font-size: clamp(1.8rem, 5vw, 4.5rem);
}

#app-content .game-screen .typewriter.game-text p {
    font-size: clamp(1rem, 3.2vw, 3rem);
    overflow-wrap: anywhere;
}

#app-content .initial-buttons {
    width: clamp(45px, 6vw, 90px);
    left: 83%;
}

#app-content .pua {
    width: clamp(35px, 5vw, 75px);
}

/* Project gallery */
#app-content .projects {
    position: relative;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 3vw, 40px);
    overflow: hidden;
}

#app-content .projects > .text {
    padding: 8px 0 24px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

#app-content .card-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    gap: clamp(20px, 3vw, 32px);
}

#app-content .card {
    display: grid;
    grid-template-columns: minmax(120px, 35%) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 12px clamp(16px, 2vw, 28px);
    width: 100%;
    height: auto;
    min-height: 230px;
    padding: clamp(14px, 2.5vw, 28px);
    left: auto;
    margin: 0;
    transform: none;
}

#app-content .card > a {
    display: contents;
}

#app-content .card img,
#app-content .card > a img {
    position: static;
    grid-column: 1;
    grid-row: 1 / span 3;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 240px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    outline: 3px solid var(--text-color);
    border-radius: 12px;
    transform: none;
    transition: transform 0.2s ease;
}

#app-content .card img:hover,
#app-content .card > a img:hover {
    transform: translateY(-5%);
    cursor: pointer;
}

#app-content .card h2 {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    line-height: 1.2;
    transform: none;
    overflow-wrap: anywhere;
}

#app-content .card p {
    position: static;
    grid-column: 2;
    grid-row: 2;
    width: auto;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.55;
    transform: none;
}

#app-content .card .skills {
    position: static;
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    transform: none;
}

#app-content .skill-tag {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    padding: 5px 10px;
    overflow-wrap: anywhere;
}

/* Project detail */
#app-content .individual-project {
    position: relative;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 4vw, 48px);
    overflow: hidden;
    background-image: none;
}

#app-content .individual-project > .text {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    font-size: clamp(2rem, 5vw, 3.75rem);
    text-align: center;
    transform: none;
    outline: none;
}

#app-content .individual-project .main-pic {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    margin: clamp(20px, 4vw, 40px) auto;
    left: auto;
    transform: none;
}

#app-content .project-description {
    width: 100%;
    max-width: 900px;
    margin: 24px auto;
    line-height: 1.6;
    overflow-wrap: anywhere;
}




/* Phone and small tablet */
@media (max-width: 846px) {
    #app-content > section,
    #app-content .home,
    #app-content .projects,
    #app-content .individual-project {
        margin-left: var(--sidebar-closedwidth, 108px);
    }

    /* Use the collapsed sidebar footprint on phones to preserve screen space. */
    .sidebar {
        width: var(--sidebar-closedwidth, 108px);
    }

    .sidebar .text {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar .logo-text {
        display: none !important;
    }

    .sidebar .image-text {
        justify-content: center;
    }

    .sidebar .dark-light {
        min-width: 0;
        width: 100%;
    }

    .sidebar .dark-light img {
        left: 50%;
        width: 48px;
    }

    .sidebar .menu-bar .mode-text,
    .sidebar .toggle-switch {
        display: none;
    }

    .sidebar .menu-bar .mode {
        justify-content: center;
        min-height: 50px;
    }

    .sidebar .menu-bar .mode .moon-sun {
        width: 100%;
        justify-content: center;
    }

    .sidebar .menu-bar .mode i {
        position: static;
    }

    .sidebar .menu-bar .mode i.sun,
    body.dark .sidebar .menu-bar .mode i.moon {
        position: absolute;
    }

    #app-content .home {
        height: 78vh;
        height: 78dvh;
        min-height: 520px;
    }

    #app-content .game-screen {
        width: 86%;
        min-height: 250px;
        height: 46%;
        top: 22%;
        padding: 16px 10px;
        border-width: 5px;
        border-radius: 14px;
        box-shadow: 7px 7px 0 var(--text-color);
    }

    #app-content .game-screen .intro-text p {
        font-size: clamp(0.9rem, 3vw, 1.4rem);
    }

    #app-content .game-screen .name h1 {
        font-size: clamp(1.5rem, 5.5vw, 2.5rem);
        letter-spacing: 0.01em;
    }

    #app-content .game-screen .typewriter.game-text {
        top: 62%;
    }

    #app-content .game-screen .typewriter.game-text p {
        font-size: clamp(0.9rem, 3.5vw, 1.5rem);
        letter-spacing: 0;
    }

    #app-content .dpad {
        font-size: clamp(45px, 14vw, 100px);
        left: 18%;
        top: 83%;
    }

    #app-content .initial-buttons {
        width: clamp(35px, 8vw, 65px);
        left: 78%;
        top: 82%;
        transform: translate(-50%, -50%) scale(1.5);
    }

    #app-content .pua {
        width: clamp(28px, 7vw, 48px);
        left: 83%;
        top: 12%;
        transform: scale(1.4) rotate(-15deg);
    }

    #app-content .projects {
        padding: 16px 12px;
    }

    #app-content .card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        min-height: 0;
        gap: 12px;
        padding: 14px;
        border-radius: 14px;
        outline-width: 3px;
        padding: 20px 14px 14px;
    }

    #app-content .card img,
    #app-content .card > a img {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 100%;
        max-height: 230px;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    #app-content .card h2 {
        grid-column: 1;
        grid-row: 2;
        font-size: 1.25rem;
    }

    #app-content .card p {
        grid-column: 1;
        grid-row: 3;
        font-size: 0.9rem;
    }

    #app-content .card .skills {
        grid-column: 1;
        grid-row: 4;
    }

    #app-content .individual-project {
        padding: 20px 14px;
    }
}

/* Very narrow phones */
@media (max-width: 390px) {
    :root {
        --sidebar-closedwidth: 76px;
    }

    .sidebar,
    .sidebar.close {
        width: var(--sidebar-closedwidth);
        padding: 8px 4px;
    }

    .sidebar li .icon {
        min-width: 68px;
        font-size: 30px;
    }

    #app-content > section,
    #app-content .home,
    #app-content .projects,
    #app-content .individual-project {
        margin-left: var(--sidebar-closedwidth);
    }


    #app-content .game-screen {
        width: 90%;
    }
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Mobile: move navigation to the top */

@media (max-width: 846px) {
    .sidebar,
    .sidebar.close {
        position: fixed;
        inset: 0 0 auto 0;
        width: 100%;
        height: 64px;
        min-height: 64px;
        box-sizing: border-box;
        padding: 6px 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow: hidden;
        z-index: 1000;
        border-radius: 0;
    }

    .sidebar .toggle {
        display: none !important;
    }

    .sidebar header {
        width: auto;
        flex-shrink: 0;
    }

    .sidebar .image-text img {
        position: static;
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .sidebar .logo-text,
    .sidebar .text {
        display: none !important;
    }

    .sidebar .menu-bar {
        flex: 1;
        min-width: 0;
        width: auto;
        height: auto;
        margin: 0 0 0 12px;
        overflow: hidden;
    }

    .sidebar .menu-links {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0;
    }

    .sidebar li {
        flex: 1;
        min-width: 0;
        height: 44px;
        margin: 0;
    }

    .sidebar li .nav-link {
        width: 100%;
        height: 44px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sidebar li .icon {
        min-width: 0;
        width: auto;
        margin: 0;
        font-size: 22px;
    }

    .sidebar .menu-bar .mode {
        display: none;
    }
}




@media (max-width: 846px) {
    /* Hide the sidebar expand/collapse arrow */
    .sidebar .toggle {
        display: none !important;
    }

    /* Keep the logo from squeezing the navigation */
    .sidebar header {
        width: auto;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    /* Align navigation icons horizontally */
    .sidebar .menu-bar .menu-links {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .sidebar .menu-bar .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 44px;
        min-width: 44px;
        padding: 0;
    }

    .sidebar .menu-bar .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        width: 44px;
        height: 44px;
        margin: 0;
    }

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

    #app-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        box-sizing: border-box;
    }

    #app-content > section,
    #app-content .home,
    #app-content .projects,
    #app-content .individual-project {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        box-sizing: border-box;
    }


    #app-content .card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

}


@media (max-width: 846px) {
    /* Make navigation icons bigger */
    .sidebar .menu-links .icon {
        font-size: 28px !important;
        width: 100%;
        min-width: 0;
    }

    /* Keep hover/active backgrounds inside each icon's slot */
    .sidebar .menu-links li {
        height: 52px;
        border-radius: 12px;
    }

    .sidebar .menu-links .nav-link {
        height: 52px;
        border-radius: 12px;
        margin: 0;
        padding: 0;
        justify-content: center;
        box-sizing: border-box;
    }

    .sidebar .menu-links .nav-link:hover,
    .sidebar .menu-links .nav-link:focus {
        border-radius: 12px;
    }

    /* Center the main logo inside the top bar */
     .sidebar header {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 48px;
        height: 48px;
        min-width: 48px;
        padding: 0;
        margin: 0;
        flex: 0 0 48px;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar header .image-text {
        position: relative;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .sidebar header .image-text img {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 40px;
        height: 40px;
        margin: 0;
        transform: none;
        object-fit: contain;
        transform: translate( clamp(16px, 1vw, 20px), clamp(-4px, -0.4vw, -2px));
    }

    .sidebar .menu-links li:first-child,
    .sidebar .menu-links li:first-child .nav-link {
        height: 58px;
        display: flex;
        align-items: center;
    }
}
