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

* {
    padding: 0;
    margin: 0;
}

::-webkit-scrollbar {
    width: 10px;
    background: rgba(0, 0, 0);
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::selection {
    background-color: #3d3d3d94; 
    color: #ebebeb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

body {
    background: linear-gradient(45deg, #000000, #000000, #28102b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite, fadeIn 1s ease-out;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
}

.all {
    background-color: rgba(0, 0, 0, .75);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 100%;
    height: 100%;

    position: relative;
    display: block;
    margin-bottom: 5%;
    animation: fadeIn 1.2s ease-out;
}

.navbar {
    display: flex;
    animation: slideIn 1s ease-out;
}

@media only screen and (max-width: 600px) {
    .navbar {
        display: block;
        width: 100%;
    }

    .logoButton {
        width: 100%;
        height: 40%;
    }

    .logo {
        display: block;
        margin: 0 auto;
        width: 100%;
    }

    .pages {
        justify-content: center;
    }
}

.logo {
    filter: invert(1);
    width: 30%;
    padding: 3%;
    transition: all 0.5s ease;
}

.logo:hover {
    transform: scale(0.95) rotate(2deg);
    filter: invert(0.8);
}

.links {
    max-width: 30%;
    min-width: 20%;
    background-color: rgb(32, 32, 32);
    margin: auto;
    display: flex;
    align-items: center;
    padding: 2%;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.links:hover {
    transform: translateY(-2px);
}

.websitePath {
    animation: slideIn 0.8s ease-out;
    display: flex;
    flex-direction: row;
    max-height: 50px;
    margin-top: 5%;
    margin-left: 20%;
    margin-right: 20%;
    border-top: 1px solid #fff;

}

.pages {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    margin: auto 3% auto auto;
}

.pages>li {
    text-decoration: none;
    list-style-type: none;
    margin: 10px;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.pages>li:nth-child(1) {
    animation-delay: 0.2s;
}

.pages>li:nth-child(2) {
    animation-delay: 0.4s;
}

.pages>li:nth-child(3) {
    animation-delay: 0.6s;
}

.pages>li:nth-child(4) {
    animation-delay: 0.8s;
}

.pages>li:nth-child(5) {
    animation-delay: 1s;
}

.pages>li>button {
    padding: 0;
    background-color: transparent;
    color: #fff;
    border: 0px;
    cursor: pointer;
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    transition: all 0.3s ease;
}

.pages>li>button:hover {
    color: #ffffff86;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

ul.breadcrumb {
    padding: 10px 16px 0 16px;
    list-style: none;
    margin-left: 0%;
    margin-right: 20%;
    animation: fadeIn 1s ease-out;
}

ul.breadcrumb li {
    display: inline;
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

ul.breadcrumb li+li:before {
    padding: 4px;
    color: rgb(116, 116, 116);
    content: "/\00a0";
}

ul.breadcrumb li button {
    color: #ffffffb0;
    text-decoration: none;
    transition: all 0.5s ease;
    background-color: transparent;
    border: 0px;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    cursor: pointer;
}

ul.breadcrumb li button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.homeIndex {
    margin-left: 20%;
    margin-right: 20%;
    padding: 10px 16px;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    animation: fadeIn 1.5s ease-out;
}

.mute-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.mute-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.1);
}

@media only screen and (max-width: 600px) {
    .homeIndex {
        margin: 0 0;
    }

    ul.breadcrumb {
        margin-left: 0%;
        margin-top: 5%;
        margin-right: 0%;
    }

    #mutebtn_ {
        display: none;
    }
}

.homeName {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 500;
    animation: fadeIn 1s ease-out;
}

#homeDesc {
    margin-top: 3%;
    animation: fadeIn 1.2s ease-out;
}

.description {
    margin-bottom: 20px;
    color: #ffffffb2;
    transition: all 0.3s ease;
}

.description:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.description a {
    color: #ffffffd3;
    transition: all 0.3s ease;
    position: relative;
}

.description a:hover {
    color: #ffffff;
}

.description a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.description a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.active {
    display: block;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    place-items: center;
    min-height: 50vh;
    width: 100%;
}

.card {
    --blur: 16px;
    --size: clamp(230px, 35vmin, 500px);
    width: var(--size);
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: 0.8rem;
    overflow: hidden;
    color: #000;
    transform: translateZ(0);
    margin-right: 3%;
    margin-top: 3%;
    transition: all 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(calc(1 + (var(--hover, 0) * 0.25))) rotate(calc(var(--hover, 0) * -5deg));
    transition: transform 0.3s ease;
}

.card__footer {
    padding: 0 0.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: left;
    width: 100%;
    background: rgb(0, 0, 0);
    display: grid;
    grid-template-row: auto auto;
    gap: 0.5ch;
    background: hsla(0, 0%, 11%, 0.5);
    backdrop-filter: blur(var(--blur));
    height: 30%;
    align-content: center;
    color: #ffffffa6;
    transition: all 0.3s ease;
}

.card:hover .card__footer {
    height: 35%;
    background: hsla(0, 0%, 11%, 0.8);
}

.card__action {
    position: absolute;
    aspect-ratio: 1;
    width: calc(var(--size) * 0.15);
    bottom: 30%;
    right: 1.5rem;
    transform: translateY(50%) translateY(calc((var(--size) * 0.4))) translateY(calc(var(--hover, 0) * (var(--size) * -0.4)));
    background: purple;
    display: none;
    place-items: center;
    border-radius: 0.5rem;
    background: hsla(0, 0%, 30%, 0.5);
    transition: all 0.3s ease;
}

.card__action svg {
    aspect-ratio: 1;
    width: 50%;
    transition: transform 0.3s ease;
}

.card__action:hover svg {
    transform: scale(1.2);
}

.card__footer span:nth-of-type(1) {
    font-size: calc(var(--size) * 0.065);
    font-weight: 600;
    display: flex;
    justify-content: left;
    align-items: center;
    transition: transform 0.3s ease;
}

.card__footer span:nth-of-type(1):hover {
    transform: translateX(5px);
}

.card__footer span:nth-of-type(1) svg {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.card__footer span:nth-of-type(1):hover svg {
    transform: translateX(3px);
}

.card__footer span:nth-of-type(2) {
    font-size: calc(var(--size) * 0.045);
    transition: opacity 0.3s ease;
}

.card:hover .card__footer span:nth-of-type(2) {
    opacity: 0.8;
}

.card:is(:hover, :focus-visible) {
    --hover: 1;
}

@media only screen and (max-width: 600px) {
    .cards {
        display: flex;
        flex-direction: column;
        place-items: center;
        min-height: 50vh;
        width: 100%;
    }

    .card {
        margin-top: 8%;
        width: clamp(100%, 35vmin, 500px);
    }
}

#skillsDesc {
    color: #ffffffb2;
    margin-top: 3%;
    animation: fadeIn 1s ease-out;
}

.skillsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.skills-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.skills-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.skills-item h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skills-item:hover h3 {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.skills-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skills-item ul li {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.skills-item ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.skills-item ul li:hover {
    color: #fff;
    transform: translateX(5px);
}

.skills-item ul li:hover::before {
    color: #fff;
}

.skills-item ul li a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

.skills-item ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.skills-item ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animation delays for staggered appearance */
.skills-item:nth-child(1) {
    animation-delay: 0.1s;
}

.skills-item:nth-child(2) {
    animation-delay: 0.2s;
}

.skills-item:nth-child(3) {
    animation-delay: 0.3s;
}

.skills-item:nth-child(4) {
    animation-delay: 0.4s;
}

.skills-item:nth-child(5) {
    animation-delay: 0.5s;
}

@media only screen and (max-width: 768px) {
    .skillsContainer {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .skills-item {
        padding: 1rem;
    }
}

#homiesDesc {
    color: #ffffffb2;
    margin-top: 3%;
    animation: fadeIn 1s ease-out;
}

footer {
    position: relative;
    bottom: 0;
    padding-top: 10%;
    animation: fadeIn 1.5s ease-out;
    margin: 0;
}

.footer_container {
    display: flex;
    align-items: center;
}

.socials {
    margin-top: 1%;
    padding: 10px 16px;
}

.socials a {
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 5px;
    display: inline-block;
}

.socials a:hover {
    opacity: 0.75;
    transform: translateY(-3px);
}

.copyright {
    margin-left: auto;
    margin-top: auto;
    color: #ffffffa6;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    margin-bottom: 20px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.copyright:hover {
    color: #ffffff;
}

@media only screen and (max-width: 600px) {
    .footer_container {
        display: block;
    }

    footer {
        padding-top: 5%;
        padding-left: 0%;
        padding-right: 0%;
        padding-bottom: 5%;
    }

    .socials {
        display: flex;
        justify-content: center;
    }

    .copyright {
        font-size: 10px;
        margin: 0 auto;
        text-align: center;
    }
}

.lastfm_container {
    display: flex;
    flex-direction: row;
    padding: 0;
    height: 50px;
    padding: 8px;
    border-radius: 8px;
    align-content: end;
    margin-left: auto;
    margin-top: 0.8%;
    direction: rtl;
    transition: 300ms;
}


.lastfm_container .lastfm_details {
    font-family: "Quicksand", sans-serif;
    padding-right: 8px;
    margin-top: 5px;
}

.lastfm_container .lastfm_details h3 {
    font-size: 14px;
    color: #ffffffd8;
}

.lastfm_container .lastfm_details p {
    color: #ffffff86;
    font-size: 0.8rem;
}


.lastfm_container .song_cover {
    margin-right: 5px;
}

.lastfm_container .song_cover img {
    aspect-ratio: 1 / 1;
    max-width: 50px;
    display: block;
    border-radius: 8px;
}

.lastfm_container:hover {
    opacity: 0.75;
    transform: translateX(5px);
    transition: 300ms;
}

@media only screen and (max-width: 768px) {
    .lastfm_container {
        margin-top: 20px;
    }

    .lastfm_container .song_cover img {
        max-width: 40px;
    }

    .lastfm_container .lastfm_details h3 {
        font-size: 14px;
    }

    .lastfm_container .lastfm_details p {
        font-size: 0.8rem;
    }

    .websitePath {
        margin-left: 0;
        margin-right: 0;
    }
}

.pfp {
    max-width: 25%;
    position: relative;
    float: left;
    top: 0;
    padding-right: 10px;
    padding-bottom: 5px;
    border-radius: 10px;
    display: none;
}