@import url('https://fonts.googleapis.com/css2?family=LXGW+Marker+Gothic&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=LXGW+Marker+Gothic&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

:root{
    --base-clr: #10101b;
    --secondary-clr: #0f0d0d;
    --line-clr: #53587e;
    --hover-clr: green;
    --text-clr: rgb(131, 131, 131);
    --accent-clr:rgb(255, 255, 255);
    --secondary-text-clr: white;
}

*{
    margin: 0;
    padding: 0;
}

html, h1, h2, h3, h4, h5, h6 {
    font-family: "DotGothic16", sans-serif;
    font-weight: 300;
    line-height: 1.5em;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body{
    min-height: 100vh;
    background-color: var(--base-clr);
    color: var(--text-clr);
    
    scroll-snap-type: y proximity;
    overflow-y: scroll;
}

#home, #music, #store, #about {
    scroll-snap-align: start;
}

.scrollDown {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    left: 50%;
    bottom: 2vh;
    
    color: var(--text-clr);
    font-size: 1.2em;
    animation: bounce 2s infinite;
}

/*-------------------------------------------------*/
/*-------------------- SIDEBAR --------------------*/
/*-------------------------------------------------*/

#sidebar {
    display: flex;
    align-items: center;
    position: sticky;

    top: 50%;
    transform: translateY(-50%);
    width: 53px;
    height: 200;
    align-self: start;

    padding: 10px;
    box-sizing: border-box;
    background-color: rgb(11, 11, 11);
    border-radius: 0px 30px 30px 0px;
    z-index: 1000;

    transition: opacity 0.3s ease-in, 0.3s ease-in-out;

    opacity: 80%
}

#sidebar ul {
    list-style: none;
}

#sidebar li{
    display: flex;
    justify-content: flex-start;
    padding: 8px 0px 8px 0px;
}

#sidebar ul li.active a{
    color: var(--accent-clr);
    filter: drop-shadow(0 0 10px var(--accent-clr));
    font-size: 24px;
}

#sidebar ul li a {
    color: var(--text-clr);
    text-decoration: none;
    font-size: 16px;
    will-change: transform;
    transition: font-size 0.3s ease-in-out,
    color 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

#sidebar ul li a svg {
    flex-shrink: 0;
    fill: var(--text-clr);
    width: 24px;
    height: 24px;
}

#sidebar ul li.active a svg{
    fill: var(--accent-clr);
}
  
#sidebar a.active {
    color: var(--accent-clr);
    font-size: 24px;
}

/* HIDE TEXT UNTIL HOVER */
#sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide text initially */
#sidebar ul li a span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(-18px); /* start slightly offscreen to the left */
    transition:
        opacity 0.3s ease-in-out,
        width 0.3s ease-in-out,
        transform 0.3s ease-in-out;
}

/* Show text on hover */
#sidebar:hover ul li a span {
    opacity: 1;
    width: fit-content;
    transform: translateX(0); /* slide into place */
}

#sidebar:hover {
    width: 128px;
    opacity: 100%;
    transition: opacity 0.3s ease-in, 0.3s ease-in-out;
}

/*-------------------------------------------------*/
/*--------------------- BODY ----------------------*/
/*-------------------------------------------------*/

section {
    scroll-snap-align: start;
    height: 100vh;
    padding: 0px;
    border-bottom: 0px solid #ccc;
}

/*-------------------------------------------------*/
/*--------------------- HOME ----------------------*/
/*-------------------------------------------------*/

#home {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;

    position: relative;
    z-index: 0;
    overflow: hidden;
}

#home .divider {
    display: flex;
}

#home .divider img,
#home .divider2 img {
    width: 30vh;
    height: auto;
    padding: 2em;
}

#home .divider2 {
    display: flex;
    transform: rotate(180deg);
}

#homeVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* so content stays on top */
}

#homeContent {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {

    transition: filter 0.3s ease-in-out;
}

.title:hover {
    filter: drop-shadow(0 0 10px var(--accent-clr));
}

.btn {
    width:auto;
    height:auto;
    padding: 15px;
    border-radius: 30px;
    border: 1px solid var(--accent-clr);
    
    font-family: "DotGothic16", sans-serif;

    background-color: var(--base-clr);
    color: var(--accent-clr);

    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

#home .btn {
    margin-top: 3vw;
}

.btn a {
    text-decoration: none;
    color: var(--accent-clr)
}

.btn:hover {
    background-color: var(--accent-clr);
    color: var(--base-clr);

    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    cursor: pointer;
}

.btn:hover a {
    color: var(--base-clr)
}

.title {
    width: 16rem;
    height: auto;
}

#home #socials {
    list-style: none;
 
    border-top: 1px solid var(--accent-clr);
    border-bottom: 1px solid var(--accent-clr);
    border-radius: 3%;

    padding: 0px;
    margin-top: 3vw;    
    justify-content: center;
    display: flex;
    padding: 1em;
    gap: 3vw;
}

#socials:hover svg {
    fill: var(--text-clr);
    transition: fill 0.2s ease-in-out;
}

#socials svg {
    width: 32px;
    fill: var(--accent-clr);
    transition: fill 0.2s ease-in-out;
}

#socials svg:hover {
    fill:var(--accent-clr);
    filter: drop-shadow(0 0 10px var(--accent-clr));
    transition: fill 0.2s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/*-------------------------------------------------*/
/*-------------------- MUSIC ----------------------*/
/*-------------------------------------------------*/

#music {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;

    height: 100vh;
    width: 100vw;
    z-index: 0;
    overflow: hidden;
}

#music .header, #store .header, #about .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    z-index: 10;     
    pointer-events: none; 
}

#music .header .title, #store .header .title, #about .header .title {
    width: 200px;
}
    

#music .header .flourish, #store .header .flourish, #about .header .flourish {
    width: 10vh;
    height: auto;
}

#music .divider img {
    width: 40vh;
    height: auto;
    transform: translateY(-20px)
}

/*-------------------------------------------------*/
/*-------------------- BANNER ---------------------*/
/*-------------------------------------------------*/

.banner-container {
    top: 0;
    left: 0;
    width: 100vw;
    height: 30px;
    z-index: 999;
    background-color: var(--line-clr);
    border-bottom: 1px solid var(--text-clr);
    display: flex;
    align-items: center;
    overflow: hidden;
}
  
.banner-track {
    display: flex;
    width: max-content;
    animation: scroll-banner 20s linear infinite;
}
  
.banner-track span {
    font-family: "DotGothic16", sans-serif;
    font-size: 1.2rem;
    color: var(--accent-clr);
    letter-spacing: 1px;
    white-space: nowrap;
}
  
@keyframes scroll-banner {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
}

/*-------------------------------------------------*/
/*------------------ SLIDESHOW --------------------*/
/*-------------------------------------------------*/

.slideshow-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    gap: 0px;
    width: 100%;
}

.slideshow-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.slideshow-wrapper {
    width: 100vw;
    background-color: var(--secondary-clr); /* or any color you want */
    filter: drop-shadow(0 0 10px black);
    overflow: hidden;
}

.slideshow-and-scroll {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slideshow-and-scroll:hover .scrollLeftOrRight {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    transition-delay: 0.1s;
}

.slideshow-and-scroll:hover .scroll {
    transform: translateY(-10px);
    transition: transform 0.25s ease-in-out;
}

.slide {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--secondary-clr);
    border-radius: 0px;
    padding: 3em 2em 3em 2em;
    text-align: center;
}

.slide img {
    width: 275px;
    height: 275px;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out;
}

.slide:hover img{
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.slide a {
    color: #1DB954;
    font-weight: bold;
    text-decoration: none;
}

.slide svg {
    width: 3vw;
    fill: var(--accent-clr);
}

.album {
    position: relative;
    width: 275px;
    height: 275px;
    z-index: 100;
}

.album:hover {
    transition: filter 0.3s ease-in;
    filter: drop-shadow(0 0 10px var(--accent-clr));
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 12px;
  
    opacity: 0;
    transition: opacity 0.3s ease-out;
    transform: scale(1.1);
    
    box-sizing: border-box;
}

/* Top-left: title and project type */
.overlay .text-info {
    position: absolute;
    top: 1em;
    left: 1em;
    text-align: left;
}

/* Bottom-right: streaming icons */
.overlay .streaming-icons {
    position: absolute;
    bottom: 1em;
    right: 1em;
    display: flex;
    gap: 1em;
}

.album:hover .overlay {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.overlay h2,
.overlay h3 {
    font-size: 1em;
    margin: 0;
    color: var(--accent-clr);
}

.streaming-icons svg {
    width: 36px;
    height: 36px;
    fill: var(--accent-clr);
    transition: fill 0.3s ease-in-out;
}

.streaming-icons #spotify:hover {
    fill: #1ED760;
    filter: drop-shadow(0 0 10px #1ED760);
}

.streaming-icons #applemusic:hover {
    fill: #FF4E6B;
    filter: drop-shadow(0 0 10px #FF4E6B);
}

.scroll {
    display: flex;
    justify-content: center;  
    transform: translateY(-48px);
    transition: transform 0.25s ease-in-out;
}

.scrollLeftOrRight {
    display: flex;
    padding: 12px;
    background-color: var(--secondary-clr);
    border-radius: 0px 0px 30px 30px;
    gap: 2em;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    transition-delay: 0.1s;
}

.scroll svg {
    fill: var(--text-clr);
    transition: fill 0.3s ease-in-out;
}

.scrollLeftOrRight:hover svg {
    fill: var(--accent-clr);
    transition: fill 0.3s ease-in-out;
}

.scrollLeftOrRight svg:hover {
    filter: drop-shadow(0 0 10px var(--accent-clr));
    transition: filter 0.3s ease-in-out;
    cursor: pointer;
}

#scrollLeftEnd,
#scrollLeftOne {
    transform: rotate(90deg)
}

#scrollRightEnd,
#scrollRightOne {
    transform: rotate(-90deg)
}

/*-------------------------------------------------*/
/*-------------------- VIDEOS ---------------------*/
/*-------------------------------------------------*/

.videos {
    flex-grow: 1;           /* fill vertical leftover space */
    overflow-y: auto;       /* scroll if content too tall */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center; /* center items horizontally */
    max-width: 100%;        /* allow full width */
    margin: 0 auto;         /* center container if width is less than parent */
    box-sizing: border-box;
    transform: translateY(-24px);
}
  
/* Responsive iframes: scale nicely, keep aspect ratio */
.videos iframe {
    padding: 0rem 4rem 0rem 4rem;
    flex: 1 1 300px;       /* grow, shrink, basis width */
    max-width: 90%;       /* never wider than container */
    aspect-ratio: 16 / 9;  /* maintain widescreen ratio */
    height: auto;
    border: none;
    box-sizing: border-box;
    transform: scale(0.8);
    filter: drop-shadow(0 0 0px var(--accent-clr));
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.videos iframe:hover {
    transform: scale(0.9);
    filter: drop-shadow(0 0 10px var(--accent-clr));
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/*-------------------------------------------------*/
/*--------------------- STORE ---------------------*/
/*-------------------------------------------------*/

#store {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    background-color: var(--secondary-clr);
    border-radius: 30px;
    margin: 5px 5px 10px 5px;
}

.card img {
    width: 275px;
    height: auto;
    border-radius: 30px;
    margin: 1em;
}

.card .data {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.color-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ccc;
}

/*-------------------------------------------------*/
/*--------------------- ABOUT ---------------------*/
/*-------------------------------------------------*/

#about {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#about .about-content {
    display: flex;
    flex-direction: row;
    width: 47%;
    gap: 20px;
}

#about #socials {
    display: flex;
    justify-content: center;
    gap: 11px;
    border-radius: 4px;
    padding: 0px 0px 10px 0px;
}

#about #socials svg{
    width: 20px;
}

.about-content img {
    height:  50vh;
    border-radius: 10px;
}

#music, #store, #about {
    background-image: url(img/bg.png); 
    background-size: cover;       
    background-position: center;  
    background-repeat: no-repeat; /* avoid tiling */
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #about .about-content {
        flex-direction: column;
        width: 90%;
        align-items: center;
        text-align: center;
    }

    .about-content img {
        width: 90%;
        height: auto;
        max-height: 40vh;
        object-fit: cover;
    }

    #about #socials {
        flex-wrap: wrap;
        gap: 16px;
        padding: 10px 0;
    }

    #about #socials svg {
        width: 28px;
        height: 28px;
    }

    #about .contact-info p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    #about h3 {
        font-size: 1.2rem;
        padding: 10px 0 0 0;
    }

    #about .spacer {
        height: 30px;
    }
}

@media (max-width: 768px) {
    #sidebar {
      width: 53px !important; /* lock width on mobile */
      opacity: 100%;
    }
  
    #sidebar ul li a span {
      display: none !important; /* hide text */
    }
}