@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

*{
    scroll-behavior: smooth;
    scroll-padding-top: 50px;

    --screen-x: ;
    /* --screen-y: ; */

    --accent: #ace7e7;

    --ratinghc: 70%;
    --ratingjs: 30%;
    --ratingphp: 20%;
    --ratingjava: 40%;
    --ratingpy: 30%;

}

body{
    margin: 0px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* height: 1000vh; */

    background-color: black;
    overflow-x: hidden;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 1000,
    'GRAD' 0,
    'opsz' 24
}

/* ----- Sections ----- */

.section{
    position: relative;
    width: 100%;
    min-height: calc(var(--win-height) / 1.1);

    border-bottom: 5px solid white;

    font-size: 200%;
    font-family: 'Permanent Marker', cursive;
    color: white;
    
    text-align: center;
}

.setup{
    border-bottom: 0px;
}

.linksdownup{
    width: 100%;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    bottom: -32px;
}

#link{
    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 30px;
    width: 30px;
    border-radius: 50%;
    padding: 5px;
    margin: 5px;

    background-color: white;
    color: black;
    font-weight: bolder;

    z-index: 1;
}

/* --------------------------- */
.welcomescreen{
    background-image: url("assets/stars1.png");
    background-position: center;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    border-bottom: 5px solid white;
    /* margin-top: -150px; */
}

.logo{
    position: fixed;
    top: -40px;
    left: 1%;
}

.welcomescreen h1{
    color: white;
    font-family: 'Permanent Marker', cursive;
    /* margin-top: 10vw; */
    font-size: 12vw;
    width: max-content;
    height: max-content;
    word-break: break-all;
}

/* --- Images --- */

.planet{
    /* background-color: red; */
    position: absolute;
}

.planet > *{
    z-index: 2;
}

.planet img{
    width: 30%;
    aspect-ratio: 1;
    max-width: 150px;
    transition: 0.3s ease-in-out 0s;
    z-index: 11;
    margin-right: -20px;
    z-index: 2;
}

.planet a{
    position: relative;
    top: -60px;
    color: white;
    text-decoration: none;
    visibility: hidden;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black;
}

.planet1{
    top: 20%;
    left: 10%;
}

.planet2{
    top: 50%;
    right: 2%;
}

.planet3{
    left: 40%;
    bottom: 5%;
}

.planet:hover img{
    width: 35%;
    max-width: 250px;
    transform: rotate(180deg);
}

.planet:hover a{
   visibility: visible;
}

/* ----- Link Up ----- */

.linktop{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;

    position: sticky;
    bottom: 2%;
    left: 2%;

    display: flex;
    justify-content: center;
    align-items: center;
    color: black;

    /* outline: 2px solid black; */
    box-shadow: 0px 0px 5px 3px black;
}

.linktop a{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
    rotate: -45deg;

    width: 100%;
    height: 100%;
}

/* ----- Footer ----- */

.footer{
    margin-bottom: -100px;
    background-color: white;
    width: 100%;
    min-height: 100px;
    box-shadow: 0px 0px 10px 20px white;

    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;

    text-align: center;

    position: static;
    bottom: 0px;
}

.left-footer, .right-footer, .footer p{
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;

    background-color: #ace7e7;
    /* background-color: red; */
    border-radius: 10px;
    width: 10%;
    min-width: 200px;
    height: 40px;
    margin: 20px;

    transition: 0.2s ease-in-out 0s;
}

.left-footer a, .right-footer a{
    width: 100%;
    height: 100%;

    color: black;
    text-decoration: none;
    font-weight: 900;

    display: flex;
    justify-content: center;
    align-items: center;
}

.left-footer:hover, .right-footer:hover{
    box-shadow: 0px 0px 10px 5px #ace7e7;
}

/* ----- About Me ----- */

.aboutmetext{
    width: 80%;
    max-width: 900px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

}

.aboutmeleft{
    /* background-color: red; */
    width: 60%;
    min-width: 300px;
    flex-grow: 1;
    font-size: large;
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
    word-break: keep-all;
    margin-right: 10px;
}

.aboutmeleft h2{
    color: var(--accent);
}

.socials{
    width: calc(100% - 0px);
    height: 50px;
    border-radius: 10px;
    background-color: var(--accent);
    margin: auto;
    font-size: 0.9em;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.socials a{
    width: 150px;
    color: black;
    font-weight: bolder;
    text-align: center;
    /* background-color: red; */
}

.aboutmeright{
    margin-left: 30px;
    margin-top: 20px;
    width: 150px;
    height: 150px;
    background-image: url(assets/pepe_4k.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    flex-grow: 1;
}

.aboutmeright img{
    width: 100%;
    height: 100%;
}



/* ----- Setup ----- */

.setupcontainer{
    width: 90%;
    max-width: 700px;
    margin: auto;
    margin-bottom: 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    font-size: large;
    text-align: left;

    outline: 2px solid white;
    border-radius: 10px;
    overflow: hidden;

    font-family: 'Courier New', Courier, monospace;
}


.setupright{
    width: 225px;
    height: 500px;

    background-image: url("assets/signal-2024-02-18-170349_002.jpeg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* ----- Projects ----- */

.projectcontainer{
    height: 70%;
    width: 95%;
    max-width: 700px;
    height: 500px;

    margin: auto;
    border-radius: 10px;
    /* outline: 5px solid white; */
    overflow: hidden;

    display: flex;
    flex-wrap: wrap;
    grid-auto-flow: column;
    grid-auto-columns: 90%;
    align-items: center;
    overflow-y: scroll;

}

.projectcontainer > *{
    scroll-snap-align: start;
}

.project{
    /* background-color: green; */
    width: 90%;
    aspect-ratio: 1.5;
    position: relative;
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.project img{
    position: absolute;
    height: 100%;
    width: 100%;
}

.overlay{
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    /* background-color: red; */

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.297);
    border-radius: 10px;

    transform: scale(0);
    transition: 500ms ease;
    transform-origin: center;
}

.project a{
    display: grid;
    place-items: center;
    color: white;
    text-decoration: none;
}

.project:hover .overlay{
    transform: scale(1);
}

.projectcontainer img{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 100%;
    z-index: -1;
}

/* Skills */

.cards > * {
    scroll-snap-align: start;
}

.cards::-webkit-scrollbar{
    display: none;
    /* width: 2px; */
    height: 2px;
}

.cards{
    margin: auto;
    width: 90%;
    max-width: 600px;
    height: 500px;
    overflow-x: hidden;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    scroll-snap-type: start;
    gap: 1rem;
    
    overflow-x: scroll;
    font-family: 'Courier New', Courier, monospace;
}

.card{
    width: 250px;
    height: 350px;
    /* aspect-ratio: 0.7; */
    border-radius: 10px;
    background-color: rgb(35, 23, 50);
    overflow: hidden;

    background-position: 10% 10%;
    background-size: 200%;
    background-repeat: no-repeat;
    animation: backmove 20s infinite;
}

@keyframes backmove {
    0%{
        background-position: 0% 0%;
    }
    25%{
        background-position: 100% 0%
    }
    50%{
        background-position: 100% 100%;
    }
    75%{
        background-position: 0% 100%;
    }
    100%{
        background-position: 0% 0%;
    }

}

.card-content{
    padding: 1rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.269) 10%, black);
    height: 80%;
    position: relative;
    bottom: -50px;

    transform: translateY(200px);
    transition: 500ms ease;
    transition-delay: 200ms;
}

.card:hover .card-content{
    transform: translateY(0px);
}

.card-content h2{
    font-size: larger;
    position: relative;
    width: max-content;
}

.card-content h2::after{
    content: '';
    position: absolute;
    bottom: 0px;
    left: -1.5rem;
    height: 4px;
    width: calc(100% + 1.5rem);
    background-color: var(--accent);
    transform: scale(0);
    transition: 500ms ease;
    transform-origin: left;
}

.card:hover h2::after{
    transform: scale(1);
    transform-origin: left;
}

.rating{
    margin: auto;
    margin-top: 80px;
    background-color: transparent;
    font-weight: bold;
    width: 90%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    transition: 500ms ease;
    transition-delay: 500ms;
    transform-origin: right;
}

.ratingcase{
    width: 100%;
    height: 20px;
    margin-top: 20px;
    background-color: rgb(68, 68, 68);
    border-radius: 20px;
    transform: translateX(-400px);
    transition: 500ms ease;
    transition-delay: 500ms;
    transform-origin: left;
    /* overflow: hidden; */
}

.ratingvalue{
    transition: 500ms ease;
    transition-delay: 900ms;
    transform-origin: right;
    transform: translateX(400px) translateY(400px);
    box-shadow: 0px 0px 50px 5px var(--accent);
    border-radius: 20px 0px 0px 20px;
}

.card:hover .ratingcase:not(.ratingvalue){
    transform: translateX(0px);
}

.card:hover .ratingvalue{
    transform: translateX(0px);
}

.ratinghc{
    width: var(--ratinghc);
    height: 20px;
    background-color: var(--accent);
}

.ratingjs{
    width: var(--ratingjs);
    height: 20px;
    background-color: var(--accent);
}

.ratingphp{
    width: var(--ratingphp);
    height: 20px;
    background-color: var(--accent);
}

.ratingjava{
    width: var(--ratingjava);
    height: 20px;
    background-color: var(--accent);
}

.ratingpy{
    width: var(--ratingpy);
    height: 20px;
    background-color: var(--accent);
}

.htmlcss{
    background-image: url(assets/cards/htmlcss.png);
}

.js{
    background-image: url(assets/cards/js.png);
}

.php{
    background-image: url(assets/cards/php.png);
}

.java{
    background-image: url(assets/cards/java.png);
}

.python{
    background-image: url(assets/cards/python.png);
}


/* @media (hover){

    .ratingcase:not(.ratingvalue){
        transform: translateX(0px);
    }
    
    .ratingvalue{
        transform: translateX(0px);
    }

    .card h2::after{
        transform: scale(1);
    }

    .card-content{
        transform: translateY(0px);
    }
} */

.rocket{
    width: 50px;
    aspect-ratio: 1;
    border-radius: 10px;
    background-color: white;
    position: fixed;
    left: 20px;
    bottom: 20px;
}

.rocket a{
    position: absolute;
    width: 100%;
    height: 100%;
    /* background-color: red; */
    cursor: pointer;

    background-image: url(rocket1.svg);
    background-position: center;
    background-size: 90%;
    background-repeat: no-repeat;

}

.animationClass{
    animation: launch 0.5s infinite;
}

@keyframes launch {
    0%{
        transform: rotate(-40deg);
    }
    50%{
        transform: rotate(-60deg);
    }
    100%{
        transform: rotate(-40deg);
    }
}