@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

*, *::before, *:after {
    font-family: 'Space Grotesk';
    color: var(--main-text);
    user-select: none;
    box-sizing: border-box;
    font-display: optional;
}

:root {
    --dark: #202020a4;
    --main-text: #F4F4F4;
    --sub-text: #C89AFF;
    --sub-text2: #2E2E2E;
    --border: #3ABEFF;
    --border2: #A020F0;
    --accent: #FF3EC8;
    --accent2: #A020F0;
    --accent3: #a020f02d;
    --accent4: #000000b4;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: #8f54a0 #ffffff00;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-track {
    background: #ffffff00;
}

*::-webkit-scrollbar-thumb {
    background-color: #8f54a0;
    border-radius: 4px;
    border: 3px solid #ffffff00;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: rgba(30, 18, 78, 1);
    background-image: linear-gradient(90deg, rgba(30, 18, 78, 1) 0%, #a020f02d 100%);
}

body.no-scroll {
    overflow: hidden !important;
}

/* #szop-maskotka {
    position: absolute;
    width: 64px;
    z-index: 9999;
    pointer-events: none;
    transition: top 0.5s, left 0.5s;
} */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10%;
    -webkit-box-shadow: 0px 8px 24px 0px var(--accent2);
    -moz-box-shadow: 0px 8px 24px 0px var(--accent2);
    box-shadow: 0px 8px 24px 0px var(--accent2);
    z-index: 3;
}

nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 90%;
}

#logo {
    border-radius: 50%;
    height: 90%;
}

.mobile-nav-button { 
    display: none;
}

.nav-button {
    position: relative;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px 4px 0 0;
    background: transparent;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-button::before, .nav-button.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    /* background: var(--accent2); */
    border-bottom: 2px solid var(--accent2);
    z-index: -1;
    transition: width 0.4s ease;
}

.nav-button:hover::before {
    width: 100%;
}

#mobile-nav {
    display: none;
    cursor: pointer;
    transition: 1.5s;
}

#mobile-nav.change {
    transform: rotate(-180deg);
}

#bar1, #bar2, #bar3 {
    width: 35px;
    height: 5px;
    background-color: #FFFFFF;
    margin: 6px 0;
    transition: .4s;
}

.change #bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change #bar2 {
    opacity: 0;
}

.change #bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

main {
    width: 100%;
    min-height: 80%;
    background-color: transparent;
    background-image: radial-gradient(circle, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.4) 50%, 
    rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: auto;
}

#welcomeBanner {
    margin-top: 150px;
    width: 100%;
    /* background-color: #202020; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.myName {
    position: relative;
    z-index: 1;
    background-color: transparent;
    overflow: hidden;
    color: var(--accent2);
    transition: color .4s ease;
}

.myName:hover {
    color: #FFFFFF;
}

.myName::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--accent2);
    z-index: -1;
    transition: height .4s ease;
}

.myName:hover::before {
    height: 100%;
}

.fivemText {
    position: relative;
    background-color: transparent;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: color 0.4s ease;
    color: #FF7100;
}

.fivemText:hover, #discordText:hover {
    color: #FFFFFF;
}

.fivemText::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #FF7100;
    z-index: -1;
    transition: height 0.4s ease;
}

.fivemText:hover::before, #discordText:hover::before {
    height: 100%;
}

#discordText {
    position: relative;
    background-color: transparent;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: color 0.4s ease;
    color: #718ADC;
}

#discordText::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #718ADC;
    z-index: -1;
    transition: height 0.4s ease;
}

#about, #skills {
    width: 100%;
    background-color: #a020f02d;
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    color: var(--main-text);
}

#about h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--main-text);
    font-weight: 700;
}

#about p {
    max-width: 700px;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    color: var(--main-text);
}

#icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.icons-web, .icons-db, .icons-backend, .icons-other {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-image: linear-gradient(0deg, rgba(160, 32, 240, 0.3) 0%, rgba(41, 53, 86, 0) 100%);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 10px 0 10px 0;
    box-sizing: border-box;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.icons-active {
    max-height: 500px;
    opacity: 1;
}

.skills-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 30%;
    padding: 10px;
    box-sizing: border-box;
}

.skills-title {
    width: 100%;
    text-align: center;
    background-image: linear-gradient(180deg, rgba(160, 32, 240, 0.3) 0%, rgba(41, 53, 86, 0) 100%);
    border-radius: 4px 4px 0 0;
    font-size: 32px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    position: absolute;
    top: 50%;
    right: 1%;
    transform: translateY(-50%);
    cursor: pointer;
}

.Up {
    border-bottom: 7px solid white;
}

.Down {
    border-top: 7px solid white;
}

.skill-icon {
    width: 125px;
    margin: 1% 5% 0 5%;
}

    .html5Icon {
        fill: #E35F26;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .html5Icon:hover {
    fill: #FF6600;
    }

    .cssIcon {
        fill: #663399;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .cssIcon:hover {
    fill: #7e4ab3;
    }

    .jsIcon {
        fill: #ccb719;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .jsIcon:hover {
    fill: #F7DF1E;
    }

    .jqueryIcon {
        fill: #05528a;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .jqueryIcon:hover {
    fill: #0769AD;
    }

    .phpIcon {
        fill: #646797;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .phpIcon:hover {
    fill: #777BB4;
    }

    .sqliteIcon {
        fill: #003046;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .sqliteIcon:hover {
    fill: #003B57;
    }

    .mysqlIcon {
        fill: #355e7e;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .mysqlIcon:hover {
    fill: #4479A1;
    }

    .pythonIcon {
        fill: #2d618b;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .pythonIcon:hover {
    fill: #3776AB;
    }

    .luaIcon {
        fill: #262872;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .luaIcon:hover {
    fill: #2C2D72;
    }

    .iCloudIcon {
        fill: #2d7cca;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .iCloudIcon:hover {
    fill: #3693F3;
    }

    .discordIcon {
        fill: #4a54c9;
        transition: fill .3s ease;
        cursor: pointer;    
    }

    .discordIcon:hover {
    fill: #5865F2;
    }

    .fivemIcon {
        fill: #d80547;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .fivemIcon:hover {
        fill: #F40552;
    }

    .gitIcon {
        fill: #d12d21;
        transition: fill .3s ease;
        cursor: pointer;
    }

    .gitIcon:hover {
        fill: #F05032;
    }

#portfolio {
    width: 100%;
    margin-top: 10%;
    background-color: var(--accent3);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#projects {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.project {
    width: 24%;
    margin-top: 1%;
    height: 350px;
    padding: 15px;
    position: relative;
    border-right: 2px solid var(--accent2);
    background-color: var(--accent3);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--main-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.project:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    background-color: #a020f04d;
}

.project h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project p {
    color: var(--sub-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.project .btn {
    align-self: flex-start;
    padding: 8px 16px;
    background-color: var(--accent2);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project .btn:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}


.projectTitle {
    position: relative;
    width: auto;
    border-bottom: 2px solid transparent;
    z-index: 1;
}

.project:hover > .projectTitle::before {
    width: 100%;
}

.projectTitle::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0;
    z-index: -1;
    border-bottom: 2px solid var(--accent2);
    transition: width .4s ease;
}

.usedTech {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.skill-icon2 {
    width: 35px;
    margin: 1% 5% 0 5%;
}

.projectLine {
    width: 95%;
    border-color: var(--accent2);
}

.projectDescription {
    width: 100%;
    height: 100%;
    display: block;
    margin-top: 10px;
    white-space: normal;
}

.projectButtons {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    bottom: 1px;
    left: 0;
}

.projectButton, .portfolioMore {
    position: relative;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    transition: color .4s ease;
}

.portfolioMore {
    margin-top: 2%;
}

.projectButton:hover, .portfolioMore:hover {
    color: #FFFFFF;
}

.projectButton::before, .portfolioMore::before {
    content: "";
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    /* background-color: var(--dark); */
    background-color: var(--accent2);
    z-index: -1;
    transition: height .4s ease;
}

.projectButton:hover::before, .portfolioMore:hover::before {
    height: 100%;
}

#contact {
    margin: 10% 0 10% 0;
    width: 100%;
    background-color: var(--accent3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contactSections {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.contact-sect {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

footer {
    width: 100%;
    height: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-box-shadow: 0px -8px 24px 0px var(--accent2);
    -moz-box-shadow: 0px -8px 24px 0px var(--accent2);
    box-shadow: 0px -8px 24px 0px var(--accent2);
}

@media (min-width: 992px) and (max-width: 1999.98px) {

    .projectDescription {
        font-size: 14px;
    }

}

@media (max-width: 991.98px) {

    nav {
        display: flex;
        justify-content: flex-end;
        padding: 0 10px 0 0;
    }

    #mobile-nav {
        display: inline-block !important;
    }

    .mobile-nav-button {
        position: relative;
        font-size: 1.2rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: none;
        border-radius: 4px 4px 0 0;
        background: transparent;
        overflow: hidden;
        transition: color 0.4s ease;
        z-index: 1;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    main {
        position: relative;
    }

    #mobileNavMenu {
        position: absolute;
        top: -50%;
        width: 100%;
        height: 100%;
        background-color: rgba(30, 18, 78, 1);
        background-image: linear-gradient(90deg, rgba(30, 18, 78, 1) 0%, #a020f02d 100%);
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        opacity: 0;
        transform: translateY(-100%);
        transition: transform 1s ease, opacity 1s ease;
    }

    #mobileNavMenu.Display {
        opacity: 1;
        transform: translateY(60%);
    }

    .nav-button {
        display: none;
    }

    #welcomeBanner {
        justify-content: center;
        align-items: center;
        padding: 2%;
        box-sizing: border-box;
    }
    
    #icons {
        flex-direction: column;
    }

    .skills-section {
        width: 95%;
    }

    .icons-web, .icons-db, .icons-backend {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
    }

    #projects {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
    }

    .project {
        width: 80%;
        border-right: none;
        border-bottom: 2px solid var(--accent2);
    }

    .projectDescription {
        font-size: 14px;
    }


    #contact, #contactSections {
        flex-direction: column;
    }

    footer {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        -webkit-box-shadow: 0px -8px 24px 0px var(--accent2);
        -moz-box-shadow: 0px -8px 24px 0px var(--accent2);
        box-shadow: 0px -8px 24px 0px var(--accent2);
        z-index: 1111;
        transition: .4s ease-out;
    }

    footer.hide {
        opacity: 0;
    }

}
