*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    padding: 0;
}

.main-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(202, 138, 138);
}

/* BACKGROUND MAIN */

.abstract-background {
    background-color: #ffefd4;
    width: 100%;
    height: 100%;
    position: relative;
    filter: brightness(70%);
    transition: filter 0.3s ease-in-out;
}

.abstract-background.background-off {
    filter: brightness(100%)
        /* when off screen button is pressed, "lights go on for background" */
}

#blue {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 3;
    background-color: #345f5e;
    clip-path: polygon(0% 24.65%, -1% 199.09%, 199.4% 198.35%, 99.95% 83.57%);
    overflow: hidden;
}

#coral {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    background-color: #cf4b27;
    clip-path: polygon(100% 40.13%, 19.09% 87.40%, 78.09% 0%, 100% 0.25%);
    overflow: hidden;
}

#streak-top {
    background-color: #112020;
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 55%;
    clip-path: polygon(68.52% 0%, 78.27% 0%, 39.80% 132.69%, 33.11% 102.76%);
}

#streak-bottom {
    background-color: #ffb240;
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 85%;
    clip-path: polygon(0% 18.21%, 99.84% 88.46%, 99.77% 100.18%, 0% 50%);
}

/* SCREEN CONTAINER */

.screen-container {
    width: clamp(100px, 95vw, 1400px);
    position: relative;
    background-color: #ffffffde;
    border: 25px solid #2f2f2f;
    z-index: 4;
    border-radius: 8px;
    box-shadow: 0px 13px 25px -11px rgba(0, 0, 0, 0.75);
    transition: background-color 0.3s ease-out;
    aspect-ratio: 11 / 6;
    min-width: 350px;
}

.screen-container:hover {
    box-shadow: 1px 5px 20px 20px rgb(178 221 255 / 42%);
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* STAND */

.stand {
    position: absolute;
    z-index: 3;
    align-self: flex-end;
    height: calc(49% - 20vw);
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#arm {
    width: 40%;
    height: 100%;
    filter: drop-shadow(0px -1px 2px black);
    background: linear-gradient(to top, black, #5d5d5d, #ffffff00);
}

#bar {
    width: 70%;
    align-self: flex-end;
    position: absolute;
    height: 1.5vh;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(270deg, black, #969191d4, black);
}

/* HOMEPAGE  */

.homepage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    height: 100%;
    width: 100%;
}

.homepage h1,
.homepage h2 {
    margin: 0;
    font-family: "Encode Sans Condensed", sans-serif;
}

#intro {
    font-size: clamp(20px, 5.8vw, 50px);
    color: #aeadad;
}

#name {
    font-size: clamp(28px, 6vw, 85px);
    color: #6d6d6d;
}

#subheading {
    font-size: clamp(20px, 5vw, 50px);
    color: #929090;
}

/* MAIN AREA */

.contents {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PAGE MAIN BUILD */

.pages {
    width: 95%;
    height: 78%;
    display: none;
    position: absolute;
    background-color: #453e3e33;
    z-index: 4;
    margin: 0 auto;
    align-self: center;
    bottom: 25px;
    box-shadow: rgba(91, 102, 111, 0.42) 1px 0px 4px 0px;
}

/* HEADING FOR EACH PAGE*/

.page-head {
    font-family: "Thasadith", sans-serif;
    color: #4b4b4b;
    position: absolute;
    font-size: 8.5rem;
    font-weight: 400;
    margin: 0;
    top: calc(-28% + 10px);
    left: 5px;
    font-size: clamp(36px, 10vw, 136px);
}



/* NAVIGATION */
nav {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobi-menu {
    display: none;
}

/* Homepage menu */
.menu-default {
    bottom: 0;
    z-index: 5;
    display: flex;
    column-gap: 0.5em;
}

#menu a {
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
}

.menu-default span,
.menu-default .phone-img {
     display: none !important;
}

.menu-default .home-link {
    display: none;
}


.menu-default .main-img {
    width: 100%;
}

.menu-default figure {
    margin: 0;
    width: clamp(50px, 6vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-default figure:hover figcaption {
    color: black;
}

.menu-default figcaption {
    text-align: center;
    COLOR: #8f8f8f;
    font-size: 12px;
    font-weight: 500;
}

.menu-default figcaption:hover {
    color: black;

}

/* /ALTERNATIVE MENU */
.menu-alt>li figure {
    display: none;
}

.menu-alt {
    top: calc(20% - 35px);
    margin: 0;
    right: 2vw
}

.menu-alt a {
    color: rgb(39, 36, 36);
    padding: 5px 5px 0px 5px;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 500;
}

.menu-alt a.active {
    background-color: #453e3e2b;
    border-radius: 4px 4px 0 0;

}

nav>ul {
    display: flex;
    list-style: none;
    padding: 0;
    position: absolute;
    justify-content: center;
    z-index: 5;
    text-decoration: none;
}


/* "ON/OFF" BUTTON CLICK */
#screen-switch {
    width: clamp(40px, 5%, 50px);
    height: 14px;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    border: 1px solid #b2b2b2;
    background-image: linear-gradient(#656464, #ffffff, #655f5f);
    animation: glow 1s infinite alternate;
    left: 50%;
    transform: translateX(-50%);
    top: 101%;
}

@keyframes glow {
    0% {
        border: 1px solid #b2b2b2;
    }

    100% {
        border: 1px solid #ffffff;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.5)
    }
}

#screen-switch:hover {
    box-shadow: 1px 0px 10px -2px rgb(84 77 77);
}

/* TOGGLE CLASS FOR WHEN SCREEN SWITCH IS CLICKED */
.screen-off {
    background: linear-gradient(28deg, black, #1d1d1d, black);
}

.screen-off:hover {
    box-shadow: 0px 13px 25px -11px rgba(0, 0, 0, 0.75);
}

.screen-off .screen {
    display: none;
}

/* ABOUT PAGE */

.about-page {
    height: 90%;
    width: 100%;
    position: absolute;
    align-self: center;
    display: flex;
    justify-content: center;
}


.about-container {
    background-color: white;
    width: 80%;
    height: 80%;
    max-height: 100%;
    align-self: center;
    display: grid;
    resize: both;
    overflow: hidden;
    box-shadow: -1px 1px 5px 1px grey;
    grid-template-rows: 6.5vh auto 25px;
    min-width: 180px;
    min-height: 32px;
}

#notepad {
    min-width: 20px;
    width: 2%;
}

#refresh-hint {
    display: none;
    flex-direction: column;
    height: 50%;
    align-self: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

#refresh-hint img {
    width: 30%;
    animation: rotate 2s infinite alternate;
}

@keyframes rotate {
    0% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(10deg);
    }

}

#refresh-hint h3 {
    white-space: nowrap;
    font-family: 'Courier New', Courier, monospace;
    align-self: center;
    text-shadow: 1px -1px 10px #51b84d;
    color: white;
}

/*used for when minimise button is pressed */
#mini-notepad {
    width: 5%;
    align-self: center;
    cursor: pointer;
}

#mini-notepad:hover {
    box-shadow: 0px 0px 9px 1px white;
    padding: 5px;
}

.about-text {
    font-family: monospace, sans-serif;
    padding: 0 10px;
    margin: 0;
    overflow-y: scroll;
    box-shadow: 2px 4px 2px 2px #bcbbbb;
    border-top: 1.5px solid #bcbbbb54;
    border-bottom: 1.5px solid #bcbbbb54;
    font-size: clamp(12.5px, 1.2vw, 18px);
}

.about-text p {
    margin: 10px 0;
}

.about-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Top of about container section with text & buttons */
#title-icons {
    display: flex;
    height: 60%;
    justify-content: center;
    flex-direction: column;
    position: relative;
    align-items: center;
}

#title-icons>div {
    display: flex;
    align-items: center;
    margin-left: 5px;
    column-gap: 3px;
    width: 100%;
}

#title-icons>div>span {
    white-space: nowrap;
}

.about-icons {
    column-gap: 1px;
    width: 155px;
    justify-content: end;
    font-size: 20px;
    height: 100%;
    background-color: #ffffff;
    align-self: end;
}

.about-icons li {
    padding: 2px 10px;
    width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icons li:hover {
    background-color: rgb(230, 230, 230);
}


.about-icons li:nth-child(3) {
    font-size: 16px;
    padding-top: 2px;
}


.about-icons li:nth-child(3):hover {
    background-color: red;
}

.top-sec {
    position: relative;
}

.top-sec ul {
    display: flex;
    position: absolute;
}

/* "drop-down" row  */
.bar-list>li:hover {
    background-color: #cce8ffda;
}

.bar-list>li {
    padding: 5px 4px 2px 5px;

}

.top-sec,
.bottom-sec {
    font-family: sans-serif;
    color: #222222;
    font-size: 12px;
    cursor: default;
}

/* bottom section of about box */
.bottom-sec {
    background-color: #f0f0f0;
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 15%) minmax(0, 5%) minmax(0, 15%) 180px;
}

.bottom-sec li {
    height: 25px;
    display: flex;
    align-items: center;
    border-right: 1px solid #bcbbbbb3;
    padding-left: 0.5em;
    background: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
}

.bottom-sec li:last-child {
    border-right: none;
    /* Removes border from last item */
}

/* SKILLS PAGE */

.skills-page {
    display: flex;
    column-gap: 1.2em;
    height: 85%;
    width: 100%;
    align-self: center;
    margin-top: 20px;
    position: absolute;
}


/* container for skills list divs */
.skills-container {
    width: 45%;
    display: flex;
    row-gap: clamp(3px, 1vw, 1em);
    flex-direction: column;
    margin-left: 30px;
    padding-top: 5px;
}

/* skills list div */
.skills-container>.skill-div {
    background-color: #e9e7e7;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #595959cf;
    font-family: "Mitr", sans-serif;
    transform: scaleY(1.3);
    font-size: clamp(11px, 1.5vw, 24px);
    display: inline-block;
    height: 9%;
    padding-left: 10px;
    font-weight: 800;
    box-shadow: 1px 5px 8px 3px rgb(91 102 111 / 42%);
}

.skills-container>.skill-div:hover {
    background-color: rgb(255, 255, 255);
}

/* middle sec skills page */
.skill-info-con {
    width: 90%;
    display: block;
    border-left: 30px solid #fefdf98c;
    box-shadow: -2px -9px 10px 0px #fefdf985;
    border-right: 15px solid #fefdf985;
    transform: rotate(358deg);
    clip-path: polygon(1px 1px, 52px 4px, 115px -3px, 186px 4px, 257px 5px, 356px -2px, 443px 7px, 522px 0px, 100.2% 2px, 100.41% 98.9%, 91.04% 100.52%, 81.66% 97.08%, 70% 100%, 60% 98.57%, 50% 100%, 40.41% 98.05%, 30% 100%, 20.84% 99.09%, 9.59% 97.4%, 0px 100.46%);
    margin-left: 2%;
    height: clamp(220px, 90%, 300px);
    position: relative;
    top: calc(5vw - 30px);
}

.skill-info-con::before {
    width: 1px;
    height: 100%;
    background-color: #bd8686;
    content: "";
    position: absolute;
    left: -2px;
    box-shadow: -3px 1px 2px #bd8686;
}

/* skill information text container */
.skill-info {
    width: 100%;
    height: 100%;
    position: relative;
    margin: auto;
    background-size: 100% clamp(13px, 2vw, 30px);
    background-image: repeating-linear-gradient(to bottom, #abc0c54f 50px, #ffffff73 52px, #ffffff99 70px);
}

/* skill information text block */
.skill-info div {
    display: block;
    transform: scaleY(1.1);
    font-weight: 700;
    color: rgb(89, 89, 89);
    line-height: clamp(16px, 2vw, 25px);
    padding: 0px 5px 0px 8px;
    font-family: "Zain", serif;
    font-size: clamp(17px, 1.5vw, 28px);
}

#skill-heading {
    color: #595959;
    margin-top: 8px;
    margin-bottom: clamp(2px, 1em, 25px);
    font-size: clamp(16px, 1.8vw, 31px);
    font-family: "Mitr", serif;
    font-weight: 900;
    display: inline-block;
    transform: scaleY(1.5);
    padding: 0 5px 0 8px;
}

/* GAUGE METER */

.skill-level {
    max-height: 100%;
    width: 36%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    display: flex;
    position: relative;
    overflow: hidden;
}

.gauge {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: end;
    transform: rotate(270deg);
    width: 150%;
    aspect-ratio: 18 / 12;
    align-self: center;
}

.circle {
    width: 100%;
    height: 80%;
    background: linear-gradient(57deg, #ff4500, #ff6d00, yellow);
    border-radius: 20rem 20rem 0 0;
    overflow: hidden;
    position: absolute;
    box-shadow: 1px -4px 5px 0px #bcbcbc96;
    -webkit-mask-image: radial-gradient(ellipse at 50% 100%, transparent 65%, black 60%);
    mask-image: radial-gradient(ellipse at 50% 100%, transparent 65%, black 60%);
}

.circle::before,
.circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle::before {
    background-image: linear-gradient(to right, red, yellow);
    clip-path: polygon(32px -12px, 31.43% 48%, 18.51% 126.87%, -34px 96.65%);
}

.circle::after {
    background: linear-gradient(315deg, #ff9500, #b1de39, #0080009c);
    transform: scale(-1);
    clip-path: polygon(-7px -35px, 34% 32.45%, 6px 136.90%);
}

.arrow {
    background: rgb(32, 32, 32);
    border-radius: 0px 0px 100px 100px;
    clip-path: polygon(49.61% 2px, -10.00% 107%, 110% 107%);
    width: 8%;
    height: 70%;
    -webkit-mask: radial-gradient(circle at 50% 93%, rgba(0, 0, 0, 0) 1%, black 2%);
    mask: radial-gradient(circle at 50% 93%, rgba(0, 0, 0, 0) 1%, black 2%);

    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out;
    box-shadow: inset 0px -15px 4px 8px rgb(103 95 95 / 32%);
    background: linear-gradient(277deg, #000000, #7f7d7c);
    position: absolute;
    z-index: 2;
    transform-origin: 50% 100%;
    bottom: 15px;
}

#base {
    width: 30px;
    height: 30px;
    background: #d5d5d5cc;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    box-shadow: -3px 0px 6px 2px rgba(0, 0, 0, 0.2);
}

/* PROJECTS SECTION*/

.project-page {
    height: 100%;
    width: 100%;
    align-self: center;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-container {
    height: 95%;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    align-self: flex-end;
}

.slider-wrapper {
    display: flex;
    width: 97%;
    overflow: hidden;
    height: 95%;
    justify-content: center;
}

.slider {
    width: 99%;
    height: 100%;
    align-items: center;
    display: flex;
    column-gap: 2.5vw;
    transition: transform 1.5s ease-in-out;
    will-change: transform;
    margin-top: 1em;
    position: relative;
    margin-left: 10px;
}

/* 3D perspective effect for "folders" */
.slider .folder:nth-child(odd) {
    transform: perspective(1000px) rotateY(345deg) translateZ(23px);
    border-right: 5px outset #fff8f894;
}

.slider .folder:nth-child(even) {
    transform: perspective(900px) rotateY(19deg) translateZ(calc(0px + 3vw));
    border-left: 4px inset #fff8f894;
}

.slider-buttons button {
    background: #666666;
    width: 25px;
    height: 25px;
    padding: 0;
    border-radius: 50%;
    border: none;
    color: transparent;
    box-shadow: inset 0px -1px 2px 0px #453e3e;
    color: rgba(255, 255, 255, 0.577);
}

.slider-buttons>button:hover {
    cursor: pointer;
}

.slider-buttons>button:active {
    cursor: pointer;
    box-shadow: inset 0px 1px 2px 0px #272626;
}

.slider-buttons>button.active {
    box-shadow: inset 0px 1px 2px 0px #272626;
}

.folder {
    width: 30.5%;
    height: 75%;
    background-color: #ffffffbf;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    border-top: 1px solid #e1e0e0;
    border-radius: 0 0 10px 10px;
}

.folder :hover {
    cursor: pointer;
}

.project-image {
    width: 75%;
    height: 100%;
    position: absolute;
    bottom: 30px;
    bottom: 11px;
    opacity: 0.8;
    box-shadow: 0px 3px 4px 1px #908f8fc2;
}

/* Front cover of folder */
.folder-front {
    width: 100%;
    height: 75%;
    position: absolute;
    align-self: flex-end;
    border-top: 1px solid #1b1b1b5c;
    box-shadow: inset -3px -1px 6px 2px #9e9e9e45;
    background: repeating-linear-gradient(360deg, #ffffff45, #bcbcbc4d, #ffffff 1px);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    box-shadow: 0px -2px 3px 0px #a5a5a591;
    border-radius: 0 0 10px 10px;
}

.folder-front:hover {
    box-shadow: 1px 4px 5px 2px #ffffffba;
}

/* Little tab at top of folder */
.folder-front::before {
    content: "open ➥";
    width: 30%;
    height: 16px;
    background-color: #8c8c8c;
    position: absolute;
    left: 0;
    top: -16px;
    border-radius: 0px 10px 0 0;
    color: rgb(255 255 255);
    text-align: right;
    font-size: 10px;
    font-family: cursive;
    box-shadow: 0px 0px 2px #7c7c7c;
}

/* 3D effect for folder front  */
.folder-front::after {
    content: "";
    position: absolute;
    width: 90%;
    height: 100%;
    background: #9e9e9e66;
    left: 5%;
    border-left: 5px outset #d7d7d7;
    border-right: 2px outset #ffffff;
    box-shadow: 0px 2px 2px 0px #888888;
    border-radius: 0 0 5px 5px;
    border-top: 1px outset #d5d5d5;
}

.project-label {
    margin: 5px;
    font-size: clamp(10px, 1vw, 12px);
    border: 1px solid #d3d3d3;
    padding: 1px 4px;
    color: #313131;
    background: #e4e4e4;
    font-family: "Mitr", sans-serif;
    font-weight: 300;
    box-shadow: inset 2px 1px 6px 1px #fffbfb;
    position: absolute;
    z-index: 1;
    right: 25px;
    bottom: 5px;
    border-radius: 2px;
}

/* Container for when project folder is clicked */
.project-info-con {
    display: none;
    grid-template-columns: 2fr 1fr;
    width: 85%;
    height: 79%;
    position: relative;
    align-content: center;

}

/* Text section of project-info */
.project-text {
    display: none;
    grid-area: text;
    font-family: "Zain", sans-serif;
    font-weight: 500;
    transform: scaleY(1.1);
    font-weight: 500;
    color: rgb(89, 89, 89);
    line-height: 1em;
    font-size: clamp(10px, 1.5vw, 22px);
    align-self: center;
    padding: 4px 16px 0 0;
}

.project-info-wrapper {
    display: grid;
    grid-template-columns: 65% 35%;
    grid-template-areas:
        "head img"
        "text img"
        "tech img"
        "button img";
    background-color: #ffffff85;
    padding-left: 1em;
    position: relative;
    height: 90%;
    width: 85%;
    grid-template-rows: 15% 50% 20% 15%;
    margin: auto;
}

.project-info-wrapper>h2 {
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    transform: scaleY(1.2);
    margin: 0;
    grid-area: head;
    color: #595959;
    align-self: center;
    font-size: clamp(14px, 1.6vw, 21px);
}

#tech {
    align-self: flex-end;
    font-family: 'Zain', sans-serif;
}

#tech ul {
    display: flex;
    list-style: none;
    column-gap: 3px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    font-style: italic;
    font-size: clamp(10px, 1.4vw, 20px);
    white-space: nowrap;
    font-weight: 500;
    color: rgb(89, 89, 89);
}

#tech>span {
    font-size: clamp(12px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 0.8rem;
    color: #595959;
}

#preview-button {
    background: none;
    border: 1px solid #767676;
    color: #595959;
    width: 20%;
    height: 65%;
    grid-area: button;
    min-width: 70px;
    font-size: calc(5px + 1vw);
    font-family: "Zain", sans-serif;
    font-weight: 300;
    bottom: 8%;
    align-self: center;
    justify-self: flex-end;
    margin-right: 10px;
}

#preview-button:hover {
    cursor: pointer;
    background-color: var(--project-colour);
    color: white;
    border: none;
}

#project-back {
    position: absolute;
    cursor: pointer;
    z-index: 1;
    border: none;
    background: none;
    font-size: clamp(36px, 5vw, 80px);
    top: -7%;
    transform: rotate(344deg);
    cursor: pointer;
    left: 2%;
    color: var(--project-colour)
}


#project-back:hover {
    transform: rotate(80deg);
    transition: transform 0.5s ease;
}

.project-info-img {
    grid-area: img;
    width: 115%;
    height: 100%;
}

.slider-buttons {
    display: flex;
    column-gap: 10px;
    background: linear-gradient(3deg, #17121221, transparent);
    width: 100%;
    height: 20%;
    box-shadow: -2px -18px 20px 0px #e5e5e5;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid #cccccc;
}

.project-demo {
    width: 100%;
    height: 100%;
}

.frame-popup {
    background-color: #fffdfd;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
    position: absolute;
    justify-content: flex-end;
}

.close-frame {
    justify-self: right;
    position: absolute;
    cursor: pointer;
    color: rgb(255, 255, 255);
    border: 0;
    margin-top: 50px;
    margin-right: 50px;
    width: 70px;
    height: 40px;
    border-radius: 4px;
    background-color: var(--project-colour);
}


/* DEMO PAGE */

.demo-screenshots {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.demo-page {
    display: flex;
    width: 97%;
    height: 95%;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.demo-header {
    background-color: #f5f4f1;
    border: 1px solid #d8d8d8;
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    box-shadow: 0px 1px 2px 0px #d7d5d5;
}

.demo-header h1 {
    font-family: "Thasadith", sans-serif;
    color: #4b4b4b;
    font-weight: 400;
    margin-left: 10px;
    font-size: clamp(45px, 4.5vw, 60px);
}

.demo-container {
    width: 100%;
    height: 58%;
    display: flex;
    padding: 1em;
    padding-left: 0;
    overflow: hidden;
}


.demo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    box-shadow: 0px 1px 4px 0px #696969;
    opacity: 0;
    transform: translateX(600px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


.demo-wrapper.active {
    transform: translateX(0);
    opacity: 1;
    margin-left: 2px;

}

/* grayscale overlay for demo sections */
.demo-abstract {
    filter: grayscale(1) brightness(0.5);
}

.demo-abstract.background-off{
    filter: brightness(1)
}
.demo-sidebar {
    grid-area: side;
    background-color: #2f2f2f;
    height: 100%;
    position: absolute;
    align-self: center;
    width: 60%;
    align-self: flex-end;
    clip-path: polygon(102.15% 100.74%, -1.14% 92.36%, 55.19% 5.87%, 103.14% 14.33%);
    display: flex;
    align-items: flex-end;
}

.demo-sidebar nav {
    display: flex;
    height: 75%;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.demo-sidebar .project-nav {
    display: flex;
    flex-direction: column;
    font-size: clamp(18px, 3vw, 48px);
    color: white;
    font-weight: 300;
    font-family: "Zain", sans-serif;
    row-gap: 3px;
    position: absolute;
    left: 50%;
    bottom: 10%;
}

.demo-card {
    display: grid;
    grid-template-columns: 1.8fr 2fr;
    width: 55%;
    column-gap: 5px;
    align-self: center;
}


.demo-card img {
    width: 90%;
    height: auto;
    filter: drop-shadow(-1px 3px 4px #696969);
    margin: auto;
}

#txt-btn-box {
    display: grid;
    color: #2f2f2fc9;
    grid-template-rows: 15% 40% 20% 25%;
    height: 100%;
    background-color: #f5f4f100;
    align-items: center;
}

#demo-title {
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    transform: scaleY(1.2);
    margin: 0;
    font-size: clamp(16px, 1.8vw, 24px);
}

#demo-txt {
    transform: scaleY(1.1);
    font-family: "Zain", sans-serif;
    line-height: 1em;
    font-size: clamp(10px, 1.4vw, 22px);
    margin: 0;
    align-self: center;
}


#txt-btn-box h3 {
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-size: 12px;
    margin: 0;
}

#demo-tech {
    font-family: "Zain", sans-serif;
    line-height: 1em;
    font-size: clamp(10px, 1.2vw, 18px);
}

#demo-btn {
    background: none;
    border: 3px solid #f5f4f1;
    width: 35%;
    min-width: 75px;
    height: 60%;
    min-height: 25px;
    color: #4b4b4b;
    font-size: clamp(14px, 1.5vw, 25px);
    cursor: pointer;
    font-weight: 300;
    font-family: "Zain", sans-serif;
}

#demo-btn:hover {
    box-shadow: inset 2px 2px 12px #f5f4f1bd;
}

.project-nav a {
    cursor: pointer;
    text-decoration: none;
    color: white;
    padding: 0 10px;
    width: 100%;
    display: block;

}

.project-nav li:hover {
    background-color: #383838;
    box-shadow: inset 2px 2px 10px #575757;
    border-radius: 3px;
    cursor: pointer;
}

.project-nav li {

    padding: 4px 10px;
    line-height: 100%;
}

.project-nav li.active {
    background-color: #383838;
    box-shadow: inset 2px 2px 10px #575757;
    border-radius: 3px;
    display: block;
}

.demo-footer {
    grid-area: footer;
    background-color: #2f2f2f;
    height: 15%;
    width: 100%;
}


@media screen and (max-width:750px) {

    .stand {
        display: none;
    }

    .contents {
        align-items: start;
    }

    /* MOBILE MENU */

    /* menu-alt main menu on pages */
    .menu-alt {
        display: none;
    }

    nav {
        align-items: flex-end;
        height: 50%;
    }

    .nav-li {
        display: none;
    }

    .menu-mobile {
        width: 100%;
        height: 10%;
        position: absolute;
        justify-content: center;
        align-items: center;
        column-gap: 16px;
        bottom: 0;
    }

    .menu-mobile figure {
        margin: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        max-width: 42px;
        justify-content: center;
        align-items: center;
    }

    .menu-mobile figcaption {
        text-align: center;
        color: #8f8f8f;
        font-size: 10px;
        font-weight: 500;
    }

    .menu-mobile figure:hover>figcaption {
        color: rgb(51, 51, 51);
    }

    .menu-default {
      column-gap: 5px;
      position: static;
      /* bottom: calc(32% - 3vw); */
    }

    .menu-default figcaption {
        font-size: 10px;
    }

    .menu-default .phone-img {
        display: block;
    }

    .menu-mobile img {
        width: 75%;

    }

    .menu-mobile a.active .phone-img {
        filter: invert(1);
    }

    /* SCREEN CONTAINER */

    .screen-container {
          margin: auto;
        width: 95vw;
        height: 95vh;    
    }

    /* PAGES SECTION */

    .pages {
        height: 75%;
        top: 1vw;
    }

    .page-head {
        font-size: max(3.6rem, 9.5vw);
        top: -10.5vh;
        text-align: center;
        width: 100%;
        left: 0;
    }

    /* SKILL SECTION */

    .skills-page {
        display: grid;
        grid-template-rows: 50% 10% auto;
        justify-items: center;
        margin-top: 10px;
        height: 100%;
    }

    /* changes the layout of skill section */
    .skills-container {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-template-rows: repeat(3, 1fr);
        align-self: center;
        margin: 0 auto;
        height: 76%;
        row-gap: 1em;
        column-gap: 1em;
        width: 75%;
        order: 3;
        row-gap: 1em;
        column-gap: 0.65em;
        margin-bottom: 10px;
    }

    .skills-page>div {
        width: 90%;
    }

    .skills-container #css {
        grid-column: 1 / 3
    }

    .skills-container #html {
        grid-column: 3 / 5;
    }

    .skills-container #js {
        grid-column: span 3;
    }

    .skills-container #photoshop {
        grid-column: 1 / 4;
    }

    .skills-container #react {
        grid-column: 4 / 6;
    }

    .skills-container #redux {
        grid-column: 6 / 8;
    }

    .skills-container #wordpress {
        grid-column: 1 / 4;
    }

    .skills-container #future {
        grid-column: 4 / 8;
    }

    .skills-container>.skill-div {
        height: 92%;
        font-weight: 600;
        box-shadow: -1px 1px 4px 0px rgb(91 102 111 / 42%);
        padding: 2px 7px;
    }

    .skill-info-con {
        height: 98%;
        align-self: center;
        transform: none;
        position: relative;
        border-left-width: 20px;
        top: unset;
        margin: 0;
    }

    .skill-info {
        background-size: 100% 18px;
    }

    .skill-info-con::before {
        left: unset;
    }

    .skill-info div {
        font-weight: 600;
         font-size: clamp(16px, 3.5vw, 20px);
        line-height: 20px;
        padding-top: 6px;
    }

    #skill-heading {
        margin-bottom: 10px;
    }

    /* skill bar instead fo gauge */
    .gauge {
        display: none;
    }

    .skill-bar-mobile {
        width: 100%;
        height: 30px;
        background-color: white;
        box-shadow: 1px 1px 2px 1px #59595978;
    }

    .progress {
        background-color: #42d449;
        height: 30px;
        transition: width 0.5s linear;
        box-shadow: inset 0px 0px 0px 2px #ffffff;
    }

    /* PROJECT PAGE */

    .slider-wrapper {
        width: 100%;
    }

    /* slider layout change to double column */
    .slider {
        display: grid;
        translate: 0;
        grid-template-rows: repeat(3, 1fr);
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
        row-gap: 0;
        column-gap: 0;
        background: #ffffff00;
        justify-content: center;
        height: 100%;
        width: calc(50% + 150px);
        margin-top: 0;
        transform: none;
    }

    .slider .folder {
        width: 85%;
        height: 90%;
        transform: none !important;
        position: relative;
        align-items: flex-start;
        justify-content: left;
    }

    .project-container {
        height: 100%;
    }

    /* folders change shape and design */
    .folder-front {
        width: 100%;
        height: 100%;
        justify-content: center;
        background: repeating-linear-gradient(350deg, #ffffff, #bcbcbce8, White 1px);
        border: 1px solid #a4a4a4;
        box-shadow: 1px 1px 2px #888888;
    }

    .folder-front::before {
        transform: rotate(90deg);
        top: 60px;
        left: unset;
        height: 12px;
        width: 110px;
        border-top: 1px solid grey;
        border-radius: 5px 5px 0 0;
        border-bottom: 0;
        right: -62px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        border-bottom: 0;
        background: #d7d7d7;
        color: #7e7a7a;
        box-shadow: 1px 1px 0px #b4b4b4;
    }

    /* Line on left of folder */
    .folder-front::after {
        content: "";
        width: 5px;
        height: 100%;
        background-color: #b5b5b5;
        position: absolute;
        left: 5px;
        box-shadow: -3px 0px 1px 0px #234040;
    }

    .project-image {
        position: absolute;
        width: 100%;
        height: 100%;
        bottom: 0px;
        left: 10px;
    }

    .slider-buttons {
        display: none;
    }


    .project-info-con {
        width: 90%;
        height: 95%;
        display: flex;
        flex-direction: column;
        position: relative;
        display: none;

    }

    .project-info-img {
        width: 50%;
        right: 0%;
        top: 0%;
        max-width: 150px;
        justify-self: center;
        align-self: center;
    }

    .project-info-wrapper {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 10% 30% 10% 36% 14%;
        height: 98%;
        grid-template-areas:
            "head"
            "img"
            "button"
            "text"
            "tech";
        padding: 0;
    }

    .project-info-wrapper>h2 {
        text-align: center;
        grid-area: head;
        background: #ffffffde;
        border-bottom: 1px solid white;
        padding: 2px 0;
        transform: scaleY(1.3);
    }

    #tech {
        grid-area: tech;
        font-size: 14px;
        color: #4b4b4b;
        height: 100%;
        padding: 15px 5px 0 0.8em;
        display: flex;
        flex-direction: column;
        background: #ffffff6b;
        column-gap: 5px;
        row-gap: 3px;
    }

    #tech>span {
        line-height: 0.9em;
    }

    #tech ul {
        font-size: 12px;
        line-height: 0.9em;
        font-style: normal;
        height: 50%;
    }

    #tech ul li {
        padding: 0;
        margin: 0;
    }

    #project-back {
        left: -18px;
        top: -4%;
    }

    #preview-button {
        grid-area: button;
        position: static;
        width: 90%;
        font-size: 1.1rem;
        height: 30px;
        margin: 0 auto;
    }

    .project-text {
        font-size: 13.5px;
        grid-area: text;
        background: #ffffffd6;
        padding: 0em 1em;
        height: 92%;
        margin-top: 10px;
        flex-direction: column;
        justify-content: center;
    }

    .project-label {
        font-size: max(9px, 1vw);
        align-self: center;
        text-align: center;
        width: 80px;
        background: #fcfcfc85;
        font-size: 11px;
        position: static;
        box-shadow: none;
        margin-left: 18px;
    }

    /* ABOUT PAGE */
    .about-container {
        width: 85%;
        height: 95%;
    }

    #mini-notepad {
        width: 15%;
    }

    .bottom-sec {
        grid-template-columns: 0 minmax(0, 30%) minmax(0, 15%) minmax(0, 30%) minmax(120px, 20%);
    }

    /* ----------- DEMO PAGE -------*/

    .demo-page {
        row-gap: 2px;
        height: 98%;
    }


    .demo-header {
        padding: 5px;
        height: unset;
    }

    .demo-header h1 {
        width: calc(100% - 20px);
        margin: 0;
        text-align: center;
    }
  .demo-container {
        width: 100%;
        padding: 0;
        height: 60%;
    }

    .demo-wrapper.active {
        margin-left: 0;
        box-shadow: none;
        align-self: center;
        height: 95%;

    }

    
    .demo-card {
        align-self: center;
        margin: 0 auto;
        width: 99%;
        height: 70vw;
        max-height: 100%;
        margin-top: 5px;
        padding: calc(2vw + 45px) 5px 0px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    #txt-btn-box {
        color: #2f2f2fc9;
        margin-top: 5px;
        height: 100%;
        row-gap: 2%;
        background-color: #f5f4f100;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 70%;
        justify-content: space-evenly;
}

    #demo-txt {
        font-size: clamp(14px, 3.5vw, 24px);
        margin: unset;
        align-self: start;
        line-height: 1.1em;
        margin-top: 15px;
        
    }
    #txt-btn-box>:not(:last-child) {
         padding: 5px;
    }

    #demo-title {
        position: absolute;
        top: 0;
        left: 0px;
        font-size: 25px;
        background: #e7e7e7;
        width: 100%;
        border-left: 20px solid #e7e7e7;
    }

    #demo-tech {
        font-size: clamp(16px, 2.8vw, 20px);
        line-height: 1.2em;
        transform: scaleY(1.1);
    }


    #demo-btn {
        background: #e7e7e7;
        width: 90%;
        padding: 2px;
        height: 5vh;
        font-size: 20px;
        position: absolute;
        bottom: 3.5%;
        left: 5%;
    }

    .demo-sidebar {
        height: 28%;
        position: static;
        width: 100%;
        clip-path: unset;
        height: unset;
   }

    .demo-sidebar nav {
        height: 100%;
        padding: 0;
        justify-content: center;
    }

    .demo-sidebar .project-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        position: static;
        column-gap: 0.5em;
        row-gap: 0.5em;
        width: calc(100% - 14px);
    }
    
    .project-nav a {
         padding: 0;
    }

    .project-nav li {
        box-shadow: 5px 5px 10px #252525;
        padding: 10px 8px;
        border-radius: 5px;
        border: 1px solid #00000030;
    }

    .demo-footer {
        display: none;
    }

}

@media screen and (min-width: 480px) and (max-width: 750px) {

        .demo-card img {
        margin: unset;
        justify-self: center;
        margin-top: 10px;
        margin-left: 0;
        width: 90%;
        min-width: 200px;
    }

}

@media screen and (max-width: 480px) {


.main-container {
    min-height: 100vh;   /* fallback */
  min-height: 100dvh; 
  height: 100dvh; 
}

    /* Homepage */
    nav {
        align-items: flex-end;
     height: calc(40% + 5vh);
    }



    #screen-switch {
        display: none;
    }

    .screen-container {
        min-width: 350px;
        width: 100vw;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .page-head {
        top: -15%;
    }

    /* SKILL SECTION */

    .skills-container>.skill-div {
            transform: scaleY(1.2);
    }

    /* PROJECT SECTION */
    .project-text {
        font-size: 12px;
    }

    #tech {
        grid-area: tech;
        font-size: 14px;
        color: #4b4b4b;
    }

    #tech ul {

        font-style: italic;
    }

    #tech ul li {
        padding: 0;
        margin: 0;
    }

    #title-icons>div>span {
        font-size: 14.5px;
    }

    /* ABOUT PAGE */
    .bottom-sec {
        grid-template-columns: 0 0 minmax(0, 16%) minmax(0, 60%) minmax(120px, 20%);
    }


 /* DEMO PAGE */
    .demo-page {
        width: 100%;
    }

    .demo-container {
        height: 100%;
    }

    .demo-wrapper.active {
        height: 100%;
    }

    .demo-header h1 {
        font-size: 30px;
    }

    .demo-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 45% 55%;
        height: 100%;
        padding: 0;
        margin-top: 10px;
    }

    .demo-card img {
        top: 2%;
        align-self: center;
        width: calc(40px + 20vh);
        max-width: 240px;
        margin-top: auto;
        place-self: center;
    } 

    #demo-title {
        position: static;
        border-left: none;
        text-align: center;
        background: #f5f5f5;
        font-size: 18px;
        height: 14%;
    }

    #demo-txt {
        font-size: 2.5vh;
        width: 98%;
        /*margin: 15px auto 0;*/
        min-height: 30%;
        place-self: center;
    }

    #demo-tech {
        width: 98%;
        margin: 0 auto;
        min-height: 15%;
    }

    #demo-btn {
        position: static;
        width: 85%;
        place-self: center;
        min-height: 35px;
        font-size: 18px;
    }

    #txt-btn-box {
        height: 100%;
        justify-content: unset;
        align-items: unset;
        row-gap:1%;
        /*grid-template-rows: 30% 35% 15% 20%;*/
    }

    .demo-sidebar {
        height: 25%;
        align-items: center;
    }

}

