/* CSS Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --card-bg: #ffffff;
  --accent-color: #6a11cb; /* Example purple accent */
  --accent-gradient: linear-gradient(to right, #6a11cb, #2575fc);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --border-color: #dee2e6;
  --button-text-color: #ffffff;
  --secondary-text-color: #6c757d;
}

html {
  scroll-behavior: smooth; /* Enable smooth scrolling for back-to-top */
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body.dark-mode {
  --bg-color: #1a1a1a; /* Darker background */
  --text-color: #e9ecef;
  --card-bg: #2c2c2c; /* Slightly lighter dark for cards */
  --accent-color: #8a3ffc; /* Lighter purple for dark mode */
  --accent-gradient: linear-gradient(to right, #8a3ffc, #4a90e2);
  --shadow-color: rgba(255, 255, 255, 0.1);
  --border-color: #495057;
  --secondary-text-color: #adb5bd;
}

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

/* Header */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--card-bg); /* Header background contrast */
  box-shadow: 0 2px 4px var(--shadow-color);
  position: sticky; /* Keep header visible */
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header-content,
.navigation-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow controls to wrap on smaller screens */
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: subtle-shine 5s infinite linear;
  margin-bottom: 10px; /* Add space if wrapping */
}

@keyframes subtle-shine {
  /* Add subtle animation to gradient */
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.controls button,
.controls .lang-switch,
.navigation-menu a {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
  font-size: 0.9em;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.controls button:hover,
.controls .lang-switch:hover,
.navigation-menu a:hover {
  background-color: var(--accent-color);
  color: var(--button-text-color);
  border-color: var(--accent-color);
}

.nav-item {
  text-decoration: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px;
  animation: fadeIn 1s ease-out;
}

.hero h2 {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.1em;
  color: var(--secondary-text-color); /* Slightly muted text */
  max-width: 650px; /* Slightly wider */
  margin: 0 auto;
}

/* Artists Section */
.artists {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  /* Underline effect */
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* Responsive grid */
  gap: 30px;
}

.artist-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0; /* Start hidden for animation */
  transform: translateY(20px);
}

.artist-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px var(--shadow-color);
}

/* Staggered animation */
.artist-card:nth-child(1) {
  animation-delay: 0.1s;
}
.artist-card:nth-child(2) {
  animation-delay: 0.2s;
}
/* Add more delays if needed for more cards */

.artist-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Keep the circle shape */
  margin: 0 auto 20px auto;
  border: 3px solid var(--border-color);
  transition: border-color 0.3s ease;
  overflow: hidden; /* PREVENTS IMAGE FROM SPILLING OUT */
  /* background-color: #e0e0e0; */ /* Optional: keep as fallback? */
  /* Remove text/flex properties if no longer needed */
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  /* font-size: 0.8em; */
  /* color: #777; */
}

/* Style the actual image inside */
.artist-image {
  display: block; /* Removes potential extra space below image */
  width: 100%; /* Make image fill container width */
  height: 100%; /* Make image fill container height */
  object-fit: cover; /* Scales image to maintain aspect ratio while filling container. Crops if necessary. */
  /* object-position: center; /* Optional: Adjust if cropping isn't centered */
}

body.dark-mode .artist-placeholder {
  background-color: #444;
  color: #aaa;
}

.artist-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.artist-card p {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: var(--secondary-text-color); /* Muted text */
  transition: color 0.3s ease;
}

.artist-card .btn {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--button-text-color);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.artist-card .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.artist-card .btn.disabled {
  background: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}
body.dark-mode .artist-card .btn.disabled {
  background: #555;
}

/* YouTube Channel Button - Red Gradient */
.artist-card .btn-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
}

.artist-card .btn-youtube:hover {
  background: linear-gradient(135deg, #ff3333 0%, #ff0000 50%, #cc0000 100%);
}

/* About & Contact Sections */
.about,
.contact {
  padding: 60px 0;
  background-color: var(--card-bg); /* Section background contrast */
  margin-top: 40px; /* Add some space */
  transition: background-color 0.3s ease;
}

.about .container,
.contact .container {
  max-width: 800px; /* Narrower content for text sections */
  text-align: center;
}

.about p,
.contact p {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--secondary-text-color); /* Muted text */
  transition: color 0.3s ease;
}

.contact a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9em;
  color: var(--secondary-text-color); /* Muted text */
  transition: border-color 0.3s ease, color 0.3s ease;
}
footer a {
  color: var(--text-color); /* Match text color for link */
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  color: var(--button-text-color);
  border: none;
  border-radius: 50%;
  font-size: 24px; /* Arrow size */
  line-height: 50px; /* Center arrow vertically */
  text-align: center;
  cursor: pointer;
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  z-index: 999;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Basic Responsiveness */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2em;
  }
  .section-title {
    font-size: 1.8em;
  }
  .header-content {
    justify-content: center; /* Center items when wrapping */
    gap: 15px;
  }
  .logo {
    margin-bottom: 0;
  } /* Remove margin if centered */
  .controls {
    margin-top: 0;
    margin-left: 0;
  } /* Adjust spacing */
}
@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }
  .hero h2 {
    font-size: 1.8em;
  }
  .hero p {
    font-size: 1em;
  }
  .controls button {
    font-size: 0.8em;
    padding: 6px 10px;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 40px;
    right: 15px;
    bottom: 15px;
  }
}

/* Mobile Navigation Styles */
.controls .mobile-menu-toggle {
  display: none; /* Hidden by default on larger screens */
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
  font-size: 1.2em; /* Larger icon */
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--accent-color);
  color: var(--button-text-color);
  border-color: var(--accent-color);
}

.mobile-navigation-menu {
  display: none; /* Hidden by default */
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px var(--shadow-color);
  position: fixed; /* Change to fixed positioning */
  top: 70px; /* Position below the header (adjust if needed) */
  left: 0;
  width: 100%;
  z-index: 999; /* Below sticky header but above content */
  transition: transform 0.3s ease-out;
  transform: translateY(-100%); /* Start off-screen */
}

.mobile-navigation-menu.active {
  display: block; /* Show when active */
  transform: translateY(0); /* Slide into view */
  background-color: rgba(0, 0, 0, 0.7); /* Black with 70% transparency */
}

.mobile-navigation-menu .container {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}

.mobile-navigation-menu a {
  display: block; /* Each link on a new line */
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color); /* Separator */
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-navigation-menu a:last-child {
  border-bottom: none; /* No border for the last link */
}

.mobile-navigation-menu a:hover {
  color: var(--accent-color);
}

.mobile-navigation-menu.active a {
  color: #ffffff; /* Ensure white text color when menu is active */
}

/* Media Query to show/hide menus */
@media (max-width: 768px) {
  .navigation-menu {
    display: none; /* Hide desktop menu on small screens */
  }

  .controls .mobile-menu-toggle {
    display: block; /* Show mobile toggle button */
  }

  /* Adjust header content layout for mobile */
  .header-content {
    justify-content: space-between; /* Logo left, controls right */
  }

  .logo {
    margin-bottom: 0; /* Remove margin */
  }

  .controls {
    margin-top: 0; /* Remove margin */
    margin-left: auto; /* Push controls to the right */
    display: flex; /* Align buttons horizontally */
    align-items: center;
  }

  .controls button {
    margin-left: 10px; /* Space between buttons */
  }
}

/* ========================================
   YouTube Section - Video Cards
   ======================================== */

.youtube {
  position: relative;
  padding: 60px 0;
  background-color: #0a0a0a;
  overflow: hidden;
  min-height: 400px;
}

/* Slideshow Background */
.youtube-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.youtube-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.youtube-slide.active {
  opacity: 1;
  z-index: 1;
}

.youtube-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.45);
  animation: kenBurns 10s ease-in-out infinite alternate;
}

/* Graceful Ken Burns - smooth zoom and gentle pan */
@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0%, 0%);
  }
  100% {
    transform: scale(1.15) translate(-2%, 1%);
  }
}

/* Dark overlay for readability */
.youtube-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

/* Content above background */
.youtube-content {
  position: relative;
  z-index: 2;
}

.youtube .section-title {
  color: #ffffff;
}

.youtube .section-title::after {
  background: linear-gradient(to right, #ff0000, #ff4444);
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.youtube-card {
  background-color: rgba(20, 20, 20, 0.65);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.youtube-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.15);
  background-color: rgba(40, 40, 40, 0.75);
}

/* Thumbnail */
.youtube-thumbnail {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.youtube-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.youtube-card:hover .youtube-thumbnail img {
  transform: scale(1.05);
}

.youtube-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.youtube-card:hover .youtube-play-icon {
  opacity: 1;
}

/* Video Info */
.youtube-info {
  display: flex;
  padding: 12px;
  gap: 12px;
}

.youtube-channel-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.youtube-channel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-details {
  flex: 1;
  min-width: 0;
}

.youtube-title {
  font-size: 0.95em;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.youtube-card:hover .youtube-title {
  color: #ff4444;
}

.youtube-channel {
  font-size: 0.8em;
  color: #aaaaaa;
  margin: 0 0 2px 0;
  transition: color 0.2s ease;
}

.youtube-channel:hover {
  color: #ffffff;
}

.youtube-meta {
  font-size: 0.75em;
  color: #888888;
  margin: 0;
}

/* No videos message */
.youtube-no-videos {
  text-align: center;
  color: #aaaaaa;
  padding: 40px 0;
  font-size: 1.1em;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 1024px) {
  .youtube-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
  .youtube-grid {
    grid-template-columns: 1fr;
  }
  
  .youtube-card {
    max-width: 400px;
    margin: 0 auto;
  }
}
