@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

*{
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: "JetBrains Mono", monospace;   
}

body{
    background-color: #f0f0f0;
}

header{
    background-color: #333;
    color: white;
    min-height: 130px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

header h1{
    padding-left: 55px;
    font-size: 2.0em;
}

#links{
    padding: 0px 20px 0px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#links a{
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

#links a:not(:last-child)::after {
    content: "|";
    margin-left: 0.75rem;
    opacity: 0.5;
    color: white;
}

#links a:hover{
    color: orange;
}

.grid-container-main{
    padding: 30px 0px 0px 0px;
    opacity: 1;
    display: grid;
    justify-content: center;
    grid-template-columns: 400px 400px 310px;
    grid-template-rows: 320px 40px 285px 50px;
    gap: 20px;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    grid-template-areas:
    "about about personal"
    "about about list"
    "deca hui list"
    "links links cv"
}

.hidden{
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.nodisplay{
    display: none;
}

.grid-container-main-list{
    padding: 0px 5px 5px 5px;
    display: grid;
    justify-content: center;
    grid-template-columns: 100px 100px;
    grid-template-rows: 35px 35px 35px 35px 35px 35px;
    gap: 20px;
    grid-template-areas:
    "skills-1 skills-7"
    "skills-2 skills-8"
    "skills-3 skills-9"
    "skills-4 skills-10"
    "skills-5 skills-11"
    "skills-6 skills-12"
}

.skill{
    background-color: rgb(255 255 255 / 1%);
    color: black;
    font-size: 0.83em;
    border-radius: 17px;
    border-color: #5ec5f3;
    border-width: 1px;
    border-style: solid;
    padding-top: 7px;
    transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
    cursor:default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill:hover{
    color: white;
    background-color: #0a78b0;
    border-color: #0a78b0;
}

.item{
    padding-top: 20px;
    border-radius: 25px;
}

.exp-text{
    font-size: 0.9em;
    padding: 15px 10px 5px 10px;
    font-family: "Roboto Mono", monospace;
    font-weight: 400;
}

#top{
    padding-bottom: 20px;
}


.about h3, .personal h3{
    padding: 5px 10px 0px 25px;
    font-size: 1.5em;
    font-weight: 500;
    text-align: left;
}

.about p{
    text-align: left;
    padding: 10px 10px 10px 25px;
    font-size: 0.9em;
    font-weight: 400;
}

.personal p{
    text-align: left;
    padding: 10px 22px 10px 25px;
    font-size: 0.89em;
    font-weight: 400;
}

.grid-container-other{
    transform: translateY(0);
    transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
}

.projects{
    display: grid;
    padding-top: 30px;
    gap: 30px;
    justify-content: center;
    grid-template-columns: 500px 250px 250px 450px;
    grid-template-rows: 340px 320px;
    grid-template-areas: 
    "webapp consoles consoles phones"
    "spare spare solutions solutions"
}

.pj-item{
    padding-top: 10px;
    border-radius: 60px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    box-shadow:
        0 18px 40px rgba(85, 65, 45, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    
   transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;   
}

.pj-item:hover {
    transform: translateY(-1px);
    box-shadow:
        0 24px 50px rgba(102, 93, 83, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pj-item p{
    font-size: 13px;
    padding: 15px 10px 20px 10px;
}

.pj-item h3{
    font-size: 22px;
}

.pj-item span{
    color: #cc0c19;
}

.webapp-hcz{
    width: 320px;
    border-radius: 15px;
    background-color: white;
}


.swapper{
    padding: 3px 12px 3px 12px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all ease-in-out 0.3s;
}

.swapper:hover{
    background-color: #333;
    color: white;
}

.button-2{
    border: none;
    margin-top: 20px;
    padding: 12px 30px 12px 30px;
    border-radius: 35px;
    box-shadow: 0 0px 20px rgba(102, 93, 83, 0.17);
        
}

@media(max-width: 71em){
    .grid-container-main{
        padding: 10px 0px 20px 0px;
        grid-template-columns: 380px 380px;
        grid-template-rows: 430px 300px 250px 80px;
        grid-template-areas:
        "about about"
        "deca hui"
        "list personal"
        "links cv"
    }

    .grid-container-main-list{
    padding: 5px 5px 5px 5px;
    display: grid;
    justify-content: center;
    grid-template-columns: 100px 100px 100px;
    grid-template-rows: 35px 35px 35px 35px;
    gap: 20px;
    grid-template-areas:
    "skills-1 skills-2 skills-3"
    "skills-4 skills-5 skills-6"
    "skills-7 skills-8 skills-9"
    "skills-10 skills-11 skills-12"
}

.personal h3{
    padding-top: 0px;
    font-size: 19px;
}

.personal p{
    padding-top: 5px;
    font-size: 0.9em;
}

.projects{
    display: grid;
    padding-top: 30px;
    gap: 30px;
    justify-content: center;
    grid-template-columns: 300px 300px;
    grid-template-rows: 400px 400px 400px 400px 400px;
    grid-template-areas: 
    "webapp webapp"
    "solutions solutions"
    "phones phones"
    "consoles consoles"
    "spare spare"
}

}

@media(max-width: 49em){
    .grid-container-main{
        padding: 10px 0px 20px 0px;
        font-size: 0.875em;
        grid-template-columns: 365px;
        grid-template-rows: 520px 50px 180px 220px 245px 210px 57px;
        grid-template-areas:
        "about"
        "cv"
        "deca"
        "hui"
        "list"
        "personal"
        "links"
    }

    header{
        display: flex;
        flex-direction: column;
    }

    header h1{
        padding: 20px 0px 0px 0px;
    }

    header #links{
        padding: 0px 0px 20px 0px;
    }
    
    #top{
        padding-bottom: 5px;
    }

    .projects{
    display: grid;
    padding-top: 30px;
    gap: 30px;
    justify-content: center;
    grid-template-columns: 365px;
    grid-template-rows: 400px 400px 400px 400px 400px;
    grid-template-areas: 
    "webapp"
    "solutions"
    "phones"
    "consoles"
    "spare"
}

.swapper{
    margin-bottom: 50px;
}

}

.deca{
    background: linear-gradient(135deg, #4856e0, #3643ba);
}

.hui{
    background: linear-gradient(135deg, #13acf2, #008ac9);
    background-color:#008ac9;
}

.about{
    background: linear-gradient(135deg, #253044, #111827);
    color: #f1f5f9;
} 

.list{
    background: linear-gradient(90deg, #24abf2, #1aa3eb);
}

.links{
    background: linear-gradient(135deg, #d3d8de, #e2e8f0);
    font-size: 14px;
    padding: 16px;
}

.personal{
    background: linear-gradient(135deg, #72ccfc, #4dc1ff);
}

.cv{
    background: linear-gradient(90deg, #e2e8f0, #f0f0f0);
    font-size: 14px;
    padding: 8px;
}