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

:root {
  --primary-color: #1DB954;
  --background-color: #121212;
  --text-color: #FFFFFF;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar, 
html::-webkit-scrollbar,
.popup-content::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.releases-grid {
  display: flex;
  flex-direction: row; /* Make sure items flow horizontally */
  flex-wrap: wrap; /* Allow items to wrap to next row */
  gap: 20px; /* Consistent spacing between items */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}


.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 25px;
}

.header-content + * {
  margin-top: 25px; /* Adds space to the first element after the header */
}

.logo img {
  min-height: 40px;
  max-height: 40px;
  height: 40px;
  width: 40px;
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1em;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  display: inline-block;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  transform: translateY(-3px);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(75px);
  animation: fadeInUp 2.5s ease forwards;
}

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

.hero h1 {
  font-size: 5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.hero h1:hover {
  transform: scale(1.05);
}

.hero p {
  font-size: 1.5em;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background-color: #1ed760;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.cta-button:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.content {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  position: relative;
  transition: transform 0.3s ease;
}

.section-title:hover {
  transform: scale(1.05);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 100px;
}

.albums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.album {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.album:hover {
  transform: translateY(-10px);
}

.album img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.album:hover img {
  transform: scale(1.05);
}

.album-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.album:hover .album-info {
  transform: translateY(0);
}

.album-info h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.album:hover .album-info h3 {
  transform: translateY(-5px);
}

.album-info p {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.album:hover .album-info p {
  opacity: 1;
}

.album-info a {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.album:hover .album-info a {
  opacity: 1;
}

footer {
  background-color: #0a0a0a;
  color: var(--text-color);
  text-align: center;
  padding: 40px 0;
}

#footer {
  position: absolute;
  top: 0;
  left: -0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#footer::before {
  background: conic-gradient(
    from 0deg,
    #00ffeeb8 0deg,
    #000000c3 179deg,
    #bd8100ac 180deg,
    #ffffffc3 359deg,
    #00ffeeb8 360deg
  );
  animation-duration: 75s;
}

#footer::after {
  background: rgba(0, 0, 0, 0.075);
  backdrop-filter: blur(35px);
}

#footer::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  animation: rotate 20s linear infinite;
}

#footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(50px);
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  color: var(--text-color);
  font-size: 1.5em;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #1DB954,
    #121212,
    #1DB954
  );
  animation: rotate 20s linear infinite;
}

.animated-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(50px);
}

.spotify-embed {
  margin-bottom: 50px;
  background-color: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.spotify-embed iframe {
  border: none;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--background-color);
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.popup-content a {
  color: white;
  text-decoration: underline;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}

.popup-image {
  width: 350px;
  height: 350px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.popup-title {
  font-size: 2em;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  animation: 
    fadeInFloat 1.5s ease-out,
    float 3s ease-in-out infinite;
  animation-delay: 0s, 1.5s, 0s;
}

.popup-artist {
  font-size: 1.2em;
  opacity: 0.8;
  margin-bottom: 40px;
  font-size: 2em;
  text-align: center;
  width: 100%;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  background: linear-gradient(270deg, #4ca1af, #c4e0e5, #5e9fa3);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: 
    fadeInFloat 1.5s ease-out,
    float 3s ease-in-out infinite,
    gradientBackground 10s ease infinite;
  animation-delay: 0s, 3.5s, 0s;
}

.popup-links {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.popup-links a {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 10px;
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 20px;
}

.popup-links a:hover {
  background-color: #1ed760;
}

.popup-links a.link-spotify {
  background: linear-gradient(-82.5deg, #147b38, #148b3e, #359b57);
  color: #ffffffe4;
  background-position: 0% 50%;
  transition: background-position 5s;
  background-size: 200% 200%;
}

.popup-links a.link-applemusic:hover {
    background: linear-gradient(-45deg, #ff6ec7, #fa57c1, #ff9a9e);
    background-position: 100% 50%; /* End position */
    transition: background-position 5s ease; /* Smooth transition */
    background-size: 200% 200%; /* Double the size of the background */
}

.popup-links a.link-youtube {
    background: linear-gradient(-20deg, #FF0000, #FF4500, #FF6347);
    color: #ffffffe4;
    background-position: 0% 50%; /* Start position */
    transition: background-position 5s ease; /* Smooth transition */
    background-size: 200% 200%; /* Double the size of the background */
}

.popup-links a.link-youtube:hover {
    background: linear-gradient(-20deg, #FF4500, #FF0000, #FF6347);
    background-position: 100% 50%; /* End position */
    transition: background-position 5s ease; /* Smooth transition */
    background-size: 200% 200%; /* Double the size of the background */
}

.pwa-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #000000c2;
    color: var(--text-color);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.pwa-popup.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.pwa-popup-content {
    display: flex;
    align-items: center;
}

.pwa-popup-text {
    flex-grow: 1;
    margin-right: 15px;
}

.pwa-popup-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pwa-popup-button:hover {
    background-color: #1ed760;
}

/* New styles for the close button */
.pwa-popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #b91d1da9;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.pwa-popup-close:hover {
    color: var(--primary-color);
}

#iosInstallBanner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000d1;
    padding: 10px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

#iosInstallSteps {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 80%; /* Default width */
    height: auto; /* Default height */
    max-width: 500px; /* Maximum width */
    min-width: 300px; /* Minimum width */
    max-height: 80%; /* Maximum height */
    min-height: 300px; /* Minimum height */
}

#spotiIcon path {
    fill: url(#spotifyGradient);
    transition: fill 5s ease;
}

#spotiIcon:hover path {
    fill: url(#spotifyGradientHover);
    transition: fill 5s ease;
}

#instaIcon path {
    fill: url(#instagramGradient);
    transition: fill 5s ease;
}

#instaIcon:hover path {
    fill: url(#instagramGradientHover);
    transition: fill 5s ease;
}

#ytIcon path {
    fill: url(#youtubeGradient);
    transition: fill 5s ease;
}

#ytIcon:hover path {
    fill: url(#youtubeGradientHover);
    transition: fill 5s ease;
}

.release-card {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  flex: 1 1 calc(20% - 20px); /* This ensures equal width distribution */
  min-width: calc(20% - 20px); /* Ensures 5 cards per row by default */
  max-width: calc(20% - 20px); /* Prevents cards from growing too large */
  margin: 0; /* Remove margin since we're using gap */
  height: 250px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}

.release-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.release-card.show {
  opacity: 1;
  transform: translateY(0);
}

.release-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.release-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  transition: all 0.3s ease;
}

.release-card:hover .release-info {
  background: rgba(0, 0, 0, 0.9);
}

.release-info h3 {
  margin: 0 0 5px;
  font-size: 1.2em;
}

.release-info p {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.8;
}

/* For larger screens */
@media (min-width: 768px) {
    #iosInstallSteps {
        width: 60%;
        height: auto;
    }
}

/* For very large screens */
@media (min-width: 1024px) {
    #iosInstallSteps {
        width: 40%;
        height: auto;
    }
}

/* For small screens */
@media (max-width: 767px) {
    #iosInstallSteps {
        width: 90%;
        height: auto;
    }
    .popup-links {
        min-width: 360px; /* Smaller minimum width for very small screens */
        font-size: 13px; /* Slightly smaller font size for small screens */
    }
}

/* For very small screens */
@media (max-width: 480px) {
    #iosInstallSteps {
        width: 95%;
        height: auto;
    }
    .popup-links {
        min-width: 300px; /* Smaller minimum width for very small screens */
        font-size: 8px; /* Slightly smaller font size for small screens */
    }
}

@media (max-width: 1200px) {
  .release-card {
    flex: 1 1 calc(25% - 20px);
    min-width: calc(25% - 20px);
    max-width: calc(25% - 20px);
  }
}

@media (max-width: 900px) {
  .release-card {
    flex: 1 1 calc(33.33% - 20px);
    min-width: calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }
}

@media (max-width: 600px) {
  .release-card {
    flex: 1 1 calc(50% - 20px);
    min-width: calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 400px) {
  .release-card {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse1 {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes pulse2 {
  0% { transform: scale(1); }
  50% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

@keyframes pulse3 {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes pulse4 {
  0% { transform: scale(1); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@keyframes pulse5 {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}