:root {
    /*--themeColor: #bd745b;
    --themeColor: #d8a39d;*/
    --shadowColor: #00000063;
    --accentColor: #7e7e7e;
    
    --primary: #d8a39d;
    --primary-soft: #e6b8b2;
    --primary-dark: #b97d77;

    --bg-main: #141417;
    --bg-soft: #1c1c21;
    --bg-card: #2a2a30;

    --accent-blue: #9ec3ff;
    --accent-muted: #7e7e7e;
    
    --text-main: #ffffff;
    --text-secondary: #cfcfd4;
    --text-muted: #8a8a90;
    

}
@font-face {
    font-family: 'SweetCat'; 
    src: url('Sweetest Cat Ever.ttf') format('truetype');
}

#gritGamesLogo{
    width: 10rem;
    /*float: right;
    padding: 1rem 0rem !important;*/
}
img {
    -webkit-filter: drop-shadow(0.7rem 0.4rem 0.5rem var(--shadowColor));
    filter: drop-shadow(0.7rem 0.4rem 0.5rem var(--shadowColor));
    width: 60vw;
    pointer-events: none;
}

h1,
h2 {
    color: var(--primary);
    filter: drop-shadow(0.7rem 0.4rem 0.5rem var(--shadowColor));
    pointer-events: none;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 3rem;
}

.behind {
    position: fixed;
    inset: 0;
    /*position: fixed;
	z-index: -999;
	top: 0px;
	left: 0px;
    width: 100%;*/
}

#particles-js {
    z-index: 0;
    position: fixed;
    pointer-events: auto;
    background: radial-gradient(
            circle at top,
            var(--bg-soft),
            var(--bg-main)
    );
}

body {
    padding-bottom: 180px;
    --bs-body-font-family: SweetCat, sans-serif ;
    letter-spacing: 0.08rem;
}

footer.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0.4rem 1.5rem;
    height: 60px;
    

    display: flex;
    justify-content: space-between;
    align-items: center;
    
    background-color: var(--shadowColor);
    
    backdrop-filter: blur(8px);
    
    border-top: 1px solid rgba(216, 163, 157, 0.2);

    box-shadow: 0 -5px 20px rgba(216, 163, 157, 0.1);
    
    z-index: 99999;
}

.footer-left {
    margin-left: 0.5rem;
}

.footer-right {
    margin-right: 0.5rem;
}

.footer-left img {
    width: 2rem;
    margin-right: 1rem;
}

.footer-left img.github,
.footer-left img.itch {
    filter: invert();
}

.footer-right img {
    width: 2rem;
}

.footer-left img,
.footer-right img {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-left img:hover,
.footer-right img:hover {
    transform: translateY(-2px) scale(1.1);
    opacity: 0.8;
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.8rem;
    opacity: 0.7;
}

footer.footer::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;

    background: linear-gradient(
            to top,
            rgba(20,20,23,0.8),
            transparent
    );

    pointer-events: none;
}

footer.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;

    background: linear-gradient(
            to right,
            transparent,
            var(--primary),
            transparent
    );

    opacity: 0.6;
}

section {
    position: relative;
    z-index: 2;
    /*background-color: #76747460;*/
    background-color: transparent;
    /* height: 30vw;*/
    width: 80vw !important;
    padding: 2vw 2vw !important;
    border-radius: 5vw 5vw 0vw 5vw;
    /* pratbubbla*/
    margin: 3rem auto;
    overflow: hidden;
    pointer-events: none;
}

section img {
    pointer-events:all;
    position: relative;
    z-index: 2;
    /*float: left;*/
    width: 40vw;
}

section img:hover {
    -webkit-filter: drop-shadow(0.7rem 0.4rem 0.5rem var(--shadowColor));
    filter: drop-shadow(0.7rem 0.4rem 0.5rem var(--shadowColor)) brightness(1.2);

}


section p {
    text-align: left;
    /*float: right;*/
    /*width: 35vw;*/
    margin-bottom: unset;
    /*font-size: 2vw;*/
}
footer a {
    display: inline-block;
}

/*footer a img{
    width: 3vw;
    margin: 1vw;
}*/

#github-icon{
    filter: invert();
}

.portfolio-item {
    display: flex;
    justify-content: center;
    margin: 5vw auto;
}

.portfolio-link {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 80%;
    background-color: rgba(42, 42, 48, 0.6);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 2rem;
    text-decoration: none;
}

.portfolio-link * {
    pointer-events: auto;
}

.portfolio-link:hover {
    background-color: rgba(216, 163, 157, 0.15);
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow:
            0 10px 30px rgba(216, 163, 157, 0.15),
            0 0 20px rgba(158, 195, 255, 0.1);
}

.portfolio-link img {
    width: 50%;
    border-radius: 1rem;
    pointer-events: auto;
}

.portfolio-link .text {
    pointer-events: auto;
    width: 50%;
    font-size: 1rem;
    text-align: left;
    color: var(--accent-blue);
}

.portfolio-link h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.portfolio-link p {
    font-size: 1rem;
    line-height: 1.6;
}
#container {
    min-height: calc(100vh - 120px);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding-top: 2rem;
}
#container > * {
    margin-left: auto;
    margin-right: auto;
}

/*
.logo-top {
    margin-top: 6rem;   
    margin-bottom: 1rem;
}
*/
.about-me {
    text-wrap: balance;
    text-align: center;
    opacity: 0.9;
    max-width: 800px;
    margin: 1rem auto 1rem auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--accent-blue);
}

.lia-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;

    background: rgba(216, 163, 157, 0.1);
    border: 1px solid rgba(216, 163, 157, 0.4);

    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;

    backdrop-filter: blur(8px);

    box-shadow:
            0 0 15px rgba(216, 163, 157, 0.2),
            inset 0 0 10px rgba(216, 163, 157, 0.1);

    transition: all 0.3s ease;
}
.lia-badge:hover {
    transform: translateY(-2px) scale(1.05);

    box-shadow:
            0 5px 25px rgba(216, 163, 157, 0.4),
            0 0 30px rgba(216, 163, 157, 0.2);
}
.lia-badge {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
}
.lia-buttons {
    
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; 
    justify-content: center;

    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {

    body {
        padding-bottom: 300px;
    }


    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .logo-top {
        width: 85vw;
        max-width: 500px;
    }
    
    #container {
        min-height: unset;
        padding-bottom: 8rem;
    }

    .lia-buttons {
        display: flex !important;
        flex-direction: column;
        align-items: center;

        visibility: visible !important;
        opacity: 1 !important;

        min-height: 120px;
        position: relative;
        z-index: 99999;
    }
    
    .portfolio-link {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-link img {
        width: 100%;
    }

    .portfolio-link .text {
        width: 100%;
    }

    .portfolio-item {
        width: 100%;
        margin: 2rem auto;
    }

    .portfolio-link {
        width: 95%;
        padding: 1.25rem;
    }
    
    .about-me {
        max-width: 90%;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    footer.footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 48px;

        padding: 0.5rem 1rem;
    }

    .footer-left {
        display: flex;
        gap: 0.5rem;
    }
    .footer-left img {
        width: 1.75rem;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-center {
        display: none;
    }

    .copyright {
        display: none;
    }

    #gritGamesLogo {
        width: 5rem;
    }
}