html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    /* Credits to https://www.shecodes.io/gradients/22 for the gradient*/
    background: radial-gradient(circle at 10% 20%, rgb(222, 168, 248) 0%, rgb(168, 222, 248) 21.8%, rgb(189, 250, 205) 35.6%, rgb(243, 250, 189) 52.9%, rgb(250, 227, 189) 66.8%, rgb(248, 172, 172) 90%, rgb(254, 211, 252) 99.7%); 
    background-color: rgb(99, 86, 216);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    color: whitesmoke;
    font-family: "JetBrains Mono", monospace;
}

main {
    margin: 0% 10% 0% 4%;
    font-size: 24px;
}

header {
    background: linear-gradient(
        135deg,
        rgba(46, 46, 46, 0.8),
        rgba(10, 10, 10, 0.6)
        );
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 2px;
    position: sticky;
    top: 4px;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: flex-end;
    padding-right: 1%;
    align-items: center;
    min-height: 56px;
}

.contact-list {
    display: flex;
    list-style: none;
    list-style-type: none;
    align-items: center;
    margin: 0;
    margin-block: 0;
    padding: 0.5rem 0;
    padding-left: 0;
    padding-inline-start: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    list-style-type: none;
}

.contact-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.contact-list li::marker {
    content: "";
}

.contact-label {
    padding-right: 20px;
}

.contact-label p {
    margin: 0;
}

li img {
    margin: 0px 2px 0px 10px;
    height: 40px;
    width: 40px;
    object-fit: contain;
    display: block;
}

header p {
    margin: 0px 2px 0px 10px;
}

main article{
    padding-bottom: 1%;
}

main p {
    margin-top: -20px;
}

.contact-note {
    margin-top: 1%;
}

article {
    text-align: justify;
}

article p, a {
    color: rgb(53, 53, 53);
}

.playlist-link {
    font-size: 15px;
}

.projects-section {
    margin-bottom: 5%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 1rem;
    margin-top: 0.5rem;
}

.project-link {
    color: inherit;
    text-decoration: none;
    display: block;
    min-width: 0;
    max-width: calc(50% - 0.5rem);
}

footer {
    padding: 10px;
    background-color: rgba(92, 92, 92, 0.6);
}

footer a {
    font-size: calc(12px + 0.5vw);
    margin: 1%;
    color: whitesmoke;
}

#spotifyPlayer {
    width: 50%;
    max-width: 640px;
    min-width: 280px;
    height: 152px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
}

#spotifyPlayer iframe,
#spotifyIframe {
    width: 100%;
    height: 152px;
    display: block;
    opacity: 0.9;
    border-radius: 12px;
    border: none;
    background-color: rgba(0, 0, 0, 0.1);
}

#spotifyPlayer:hover {
    filter: brightness(0.9);
}

.projectCard {
    display: flex;
    margin-top: 0;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.65);
    height: 20vh;
    min-height: 140px;
    width: 33vw;
    min-width: 0;
    overflow: hidden;   
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.projectCard img {
    border-radius: 10px 0 0 10px;
    height: 100%;
    min-height: 140px;
    align-self: stretch;
    width: 50%;
    object-fit: cover;
}

.projectCard:hover,
.project-link:focus-visible .projectCard {
    transform: scale(1.03);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.project-link:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
    border-radius: 10px;
}

.cardInfo {
    flex: 1;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-wrap: break-word;
    min-width: 0;
}

.cardInfo h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

.cardInfo p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
    .projectCard {
        transition: none;
    }

    .projectCard:hover,
    .project-link:focus-visible .projectCard {
        transform: none;
    }
}

@media (max-width: 768px) {
    body {
        color: black;
    }

    main {
        font-size: 18px;
        margin: 0 5%;
    }

    #spotifyPlayer {
        width: 100%;
        max-width: none;
    }

    .header-inner {
        justify-content: center;
        padding-right: 0;
    }

    ul.contact-list {
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-link {
        max-width: none;
        min-width: 0;
    }

    .projectCard {
        width: 100%;
        height: auto;
        min-width: 0;
        flex-direction: column;
    }

    .projectCard img {
        width: 100%;
        min-height: 0;
        height: 110px;
        border-radius: 10px 10px 0 0;
    }

    .cardInfo h2 {
        font-size: 1.1rem;
    }

    .cardInfo p {
        font-size: 0.85rem;
    }
}
