* {
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
}

.intro-section {
    background-color: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100dvh;
    text-align: center;
    overflow: hidden;
    transition: .4s all;
}

.pfp-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    object-fit: cover; 
    z-index: 1; 
    user-select: none;
}

.container {
    width: 90vw;
    position: relative;
    z-index: 1; 
}

.intro-text {
    display: inline-block;
    margin: 0 auto;
    background-color: #ffffff;
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
    color: #000000;
    font-size: 20px;
    text-align: center;
    padding: 7px;
    user-select: none;
}

.cursor-quote-type {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    color: #ffffff
}

.menu-btn {
    position: absolute;
    display: block;
    z-index: 1;
    width: 180px;
    height: 50px;
    font-family: "Press Start 2P", system-ui;
    outline: none;
    border: 3px #ffffff solid;
    background-color: #ffffff;
    bottom: -10dvh;
    transition: bottom 0.5s ease-in-out;
    opacity: 0;
    font-size: 17px;
    box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.2), inset 0 4px 6px rgba(255, 255, 255, 0.4);
}

.menu-btn.visible {
    bottom: 8dvh; 
    opacity: 1; 
  }

.menu-btn:hover {
    bottom: 77.5px;
    color: rgb(0, 0, 0);
    background-color: #d7d7d7;
    border: none;
    box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.3), inset 0 6px 8px rgba(255, 255, 255, 0.5);
}

.menu-btn:active {
    color: #ffffff;
    transform: translateY(2px);
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.3);
    background-color: #0cc15d;
}

.fullscreen-menu {
    position: fixed;
    bottom: -100vh;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #00000061;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: bottom 0.6s ease-in-out;
}

.fullscreen-menu .menu-list {
    list-style: none;
    text-align: center;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    transform: translateY(0);
    opacity: 1;
}

body.section-open .fullscreen-menu .menu-list {
    transform: translateY(-100vh);
    opacity: 0;
}

.fullscreen-menu .menu-item {
    margin: 35px 0;
    
    height: 30px;
}

.fullscreen-menu .menu-item a {
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    text-decoration: none;
    transition: .1s all;
    height: 37px;
    font-size: 24px;
}

.fullscreen-menu .menu-item a:hover {
    font-size: 25px;
}

.close-btn {
    width: 180px;
    height: 50px;
    font-family: "Press Start 2P", system-ui;
    outline: none;
    border: 3px #ffffff solid;
    background-color: #ffffff;
    transition: bottom 0.5s ease-in-out;
    font-size: 17px;
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.2), inset 0 4px 6px rgba(255, 255, 255, 0.4);
}

.close-btn:hover {
    color: rgb(0, 0, 0);
    background-color: #d7d7d7;
    border: none;
    box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.3), inset 0 6px 8px rgba(255, 255, 255, 0.5);
}

.close-btn:active {
    color: #ffffff;
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.3);
    background-color: #cd0c0c;
}

.show-menu .intro-section {
    transform: translateY(-100vh);
}

.show-menu .fullscreen-menu {
    bottom: 0;
}

body.show-menu .close-btn,
body.show-section .close-btn {
    bottom: 10dvh;
}

.content-section {
    background-color: #000000;
    position: fixed;
    bottom: -100vh;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: bottom 0.6s ease-in-out;
    z-index: 15;
    overflow: hidden;
    color: #ffffff;
}

.content-section.visible {
    bottom: 0;
}

.close-btn {
    z-index: 20; 
}

.content-section h1 {
    margin-top: 85px;
    font-size: 40px;
    font-family: "Press Start 2P", system-ui;
    flex-shrink: 0;
}

.about-text, .projects-text, .social-text {
    font-size: 40px;
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    margin-top: 20px;
    text-align: justify;
    width: 70%;
    margin-left: 15%;
    margin-right: 15%;
    padding-top: 40px;
    
    flex: 1;
    overflow-y: auto;
    margin-bottom: calc(10dvh + 70px);
    padding-right: 15px;

    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.project-item {
    border-left: 3px solid #ffffff;
    padding-left: 25px;
    margin-bottom: 60px;
    text-align: left;
}

.project-header {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.project-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.project-header h2 {
    font-family: "Press Start 2P", system-ui;
    font-size: 24px;
    margin-left: -10px;
    margin-bottom: 2px;
}

.project-tagline {
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    color: #0cc15d;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 300;
}

.project-desc {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.project-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-family: "Press Start 2P", system-ui;
    font-size: 14px;
    border: 3px solid #ffffff;
    padding: 12px 18px;
    transition: 0.2s all;
}

.project-link:hover {
    background-color: #ffffff;
    color: #000000;
}

.project-link:active {
    background-color: #0cc15d;
    border-color: #0cc15d;
    color: #ffffff;
}

.social-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
}

.social-link {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-size: 24px; 
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    opacity: 0.6;
    transform: scale(1.05); 
}

.social-link:active {
    opacity: 1;
    color: #ffffff; 
    transform: scale(0.95); 
}

@media screen and (max-width: 700px) {
   .intro-text {
        font-size: 15px;
   }

   .pfp-bg {
        width: 300px;
        height: 300px;
   }

    .content-section h1 {
        font-size: 28px;
        margin-top: 60px;
    }

    .about-text, .projects-text, .social-text {
        font-size: 22px;
        width: 86%;
        margin-left: 7%;
        margin-right: 7%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    .project-header h2 { font-size: 18px; }
    .project-logo { width: 50px; height: 50px; }
    .project-desc { font-size: 20px; }
    .project-tagline { font-size: 10px; }

    .social-link { font-size: 22px; }
    .social-list { gap: 30px; }
}

@media screen and (max-width: 420px) {
    .intro-text {
        font-size: 11px;
    }
 
    .pfp-bg {
         width: 250px;
         height: 250px;
    }

    .menu-btn {
        width: 150px;
        height: 45px;
        font-size: 16px;
    }

    .close-btn {
        width: 150px;
        height: 45px;
        font-size: 16px;
    }

    .content-section h1 {
        margin-top: 50px;
    }

    .about-text, .projects-text, .social-text {
        font-size: 22px;
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
        margin-top: 0px;
        margin-bottom: calc(10dvh + 60px); 
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .project-item {
        padding-left: 15px;
        border-left-width: 2px;
    }
    
    .project-header { gap: 12px; }
    .project-logo { width: 40px; height: 40px; }
    .project-header h2 { font-size: 14px; }
    .project-desc { font-size: 16px; }
    .project-link { 
        font-size: 10px; 
        padding: 10px 14px; 
        border-width: 2px;
    }

    .social-link { font-size: 22px; }
    .social-list { gap: 40px; }
    
    .social-link:hover {
        transform: scale(1.03);
    }
 }

@media screen and (max-width: 815px) {
    .about-text, .projects-text, .social-text {
        font-size: 20px;
        width: 86%;
        margin-left: 7%;
        margin-right: 7%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    .content-section h1 {
        margin-top: 50px;
        font-size: 23px;
    }

    .social-link { font-size: 22px; }
    .social-list { gap: 30px; }
}
