/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: #0a0a0a;
}

a { text-decoration:none; color:inherit; }

/* Navbar */
.navbar {
  position:fixed; top:0; left:0; width:100%;
  display:flex; justify-content:space-between; align-items:center;
  padding:15px 5%; z-index:1000;
  background:rgba(0,0,0,0.5); backdrop-filter: blur(5px);
}

/* logo */
.navbar .logo img {
  height: 44px;
  display: block;
}

/* desktop links */
.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.18s, transform 0.18s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,79,216,0.08);
  transform: translateY(-2px);
}

/* nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* language toggle */
.lang-toggle {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 8px;
  transition: background 0.18s, transform 0.18s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.03); transform: translateY(-2px); }

/* hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: none;
  cursor: pointer;
  flex-direction: column;
  padding: 8px;
  align-items: center;
  justify-content: center;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
}

/* ---- Mobile menu ---- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1450;
  opacity: 0;
  transition: opacity .25s ease;
}

/* the slide-in panel */
.nav-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(75vw, 380px);
  background: linear-gradient(180deg, rgba(15,15,15,0.98), rgba(12,12,12,0.98));
  box-shadow: -20px 30px 60px rgba(0,0,0,0.6);
  z-index: 1460;
  transform: translateX(110%);
  transition: transform .32s cubic-bezier(.22,.9,.26,1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  gap: 1rem;
}

.nav-menu.open {
  transform: translateX(0);
}

/* close button */
.nav-close {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: #fff;
  align-self: flex-end;
  cursor: pointer;
  padding: .25rem;
}

/* menu links in panel */
.nav-menu ul {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  padding: .6rem .8rem;
  border-radius: 8px;
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,79,216,0.06); transform: translateY(-2px); }

/* menu footer for language */
.nav-menu-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

/* responsive rules */
@media (max-width: 900px) {
  .nav-links { display: none; } /* hide desktop links */
  .nav-toggle { display: inline-flex; }
}


.language-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(255,79,216,0.4);
}

.language-toggle p {
  font-size: 25px;
  display: block;
}


/* Header */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6);
}
.hero-character {
  position: absolute;
  bottom: 0;
  right: 10%;
  height: 90%;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
    z-index: 2;
}

@media (max-width: 768px) {
  .hero-content {
    top: 65%;
  }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.hero-cta .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 2px #0a0a0a;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,79,216,0.5);
}

@media (max-width: 767px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 80%;
    max-width: 300px;
  }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-badges .badge {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-badges .badge:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255,79,216,0.15);
}



/* Portfolio */
.cos-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cos-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cos-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.portfolio {
  padding: 5rem 10%;
  background: #111;
  color: #fff;
}

.portfolio h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #222;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}

.filter-btn:hover {
  background: #333;
}

.filter-btn.active {
  background: #ff4fd8;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;                 
  gap: 2rem;                            
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .portfolio-grid {
    gap: 1rem;
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item.hide {
  opacity: 0;
  transform: scale(0.95);
  display: none;
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: #fff;
}

@media (max-width: 768px) {
  .portfolio-info {
    display: none;
  }
}

.portfolio-info .category {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.portfolio-info h3 {
  margin-top: 0.2rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .portfolio-item {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .portfolio-item {
    height: 140px;
  }
}

.portfolio-loadmore-container {
  text-align: center;
  margin: 2rem 0;
}

#toggleImagesBtn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#toggleImagesBtn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}


/* Lightbox container */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeInBg 0.5s ease forwards;
}

@keyframes fadeInBg {
  from { background: rgba(0,0,0,0); }
  to { background: rgba(0,0,0,0.9); }
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.4s ease forwards;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  transition: transform 0.4s ease;
}

.lightbox-text {
  margin-top: 1rem;
  text-align: center;
  color: #fff;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

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

.lightbox-category {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.lightbox-title {
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}
.lightbox-close:hover {
  color: #ff4fd8;
  transform: scale(1.2);
}

/* Navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
}
.lightbox-nav span {
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease, color 0.3s ease;
  text-shadow: 0 0 5px #0a0a0a;
}
.lightbox-nav span:hover {
  color: #ff4fd8;
  transform: scale(1.2);
}

/* Section container */
.univers {
  padding: 0rem 2rem;
  padding-top: 6rem !important;
  background: var(--background);
  overflow: hidden;
  text-align: center;
}

.univers h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0; 
}

.logos-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-item img {
  height: 80px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%) opacity(70%);
}

.logo-item:hover img {
  transform: scale(1.2);
  filter: grayscale(0%) opacity(100%);
  z-index: 2;
}

/* Caption */
.logo-caption {
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  color: var(--text);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.logo-item:hover .logo-caption {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


/* Pro */
.professional {
  padding: 5rem 10%;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}

.professional h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.professional-description {
  margin-bottom: 3rem !important;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  opacity: 0.9;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pro-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fade-in */
.pro-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Inner wrapper pour hover */
.pro-inner {
  background: #222;
  padding: 2rem 1rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.pro-inner:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255,79,216,0.3);
}

.pro-inner img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.pro-inner h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.pro-inner p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.pro-contact .btn-primary {
  background: #ff4fd8;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
}

.pro-contact .btn-primary:hover {
  background: #ff2fc0;
  transform: translateY(-3px);
}

.pro-item:nth-child(1) { transition-delay: 0.1s; }
.pro-item:nth-child(2) { transition-delay: 0.2s; }
.pro-item:nth-child(3) { transition-delay: 0.3s; }
.pro-item:nth-child(4) { transition-delay: 0.4s; }

/* Map container */
.interactive-map {
  padding: 5rem 0;
  position: relative;
  backdrop-filter: blur(12px);
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1200px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-map h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
}

.map-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#leaflet-map {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Stylized Popup */
.leaflet-popup-content, .leaflet-popup-content-wrapper {
  background: rgba(30,30,30,0.9) !important;
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.leaflet-popup-tip {
  background: rgba(30,30,30,0.9) !important;
}

.leaflet-popup-content p {
  margin: 0 !important;
}

.leaflet-popup-content img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
}

/* Mulsaping Markers */
.leaflet-marker-icon {
  filter: drop-shadow(0 0 5px #ff4fd8);
  transition: transform 0.3s ease;
}

.leaflet-marker-icon:hover {
  transform: scale(1.3);
}

/* About */
.about {
  padding: 5rem 10%;
  background: #111;
  color: #fff;
}

.about h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 400px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1 1 300px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-image.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0px 15px 0 rgba(255,79,216,0.3);
}


/* Contact */
.contact {
  padding: 5rem 10%;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

.contact-description {
  margin-bottom: 3rem !important;
}

.contact-item {
  background: #222;
  padding: 1rem 1rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.contact-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255,79,216,0.3);
  background: #2a2a2a;
}

.contact-item img {
  width: 50px;
  height: 50px;
}

.contact-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-item p a {
  color: #ff4fd8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item p a:hover {
  color: #ff2fc0;
}

.contact-item.fade-in:nth-child(1) { transition-delay: 0.1s; }
.contact-item.fade-in:nth-child(2) { transition-delay: 0.2s; }
.contact-item.fade-in:nth-child(3) { transition-delay: 0.3s; }
.contact-item.fade-in:nth-child(4) { transition-delay: 0.4s; }
.contact-item.fade-in:nth-child(5) { transition-delay: 0.5s; }

/* Footer */
.site-footer {
  position: relative;
  background: rgba(12,12,12,0.98);
  color: #ddd;
  font-family: var(--font-sans);
  overflow: visible;
  padding-bottom: 2.25rem;
}

.footer-wave {
  overflow: hidden; /* empêche le scroll horizontal */
  width: 100%;
  height: 48px;
  position: relative;
}

.footer-wave svg {
  display: block;
  width: 200%;
  height: 48px;
  color: rgba(255,79,216,0.04);
  transform: translateX(0);
  animation: waveMove 12s linear infinite;
}

@keyframes waveMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  height: 60px;
  display:block;
  transition: transform .35s ease, filter .35s ease;
  filter: drop-shadow(0 0 6px rgba(255,79,216,0.08));
}
.footer-logo:hover img { 
  transform: translateY(-3px) scale(1.03); 
  filter: drop-shadow(0 0 18px rgba(255,79,216,0.12)); 
}

.footer-tag {
  color: #cfc; 
  opacity: .85; 
  font-size: .95rem;
  text-align:right;
  margin:0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.03);
  margin-top: 1.25rem;
  padding: .9rem 5%;
  text-align:center;
}
.footer-bottom small { color: #aaa; font-size: .9rem; }

/* Back to top button */
.back-to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,79,216,0.14);
  color: #fff;
  border: none;
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform .18s ease, opacity .25s ease;
  z-index: 1200;
  opacity: .95;
}
.back-to-top:hover { transform: translateY(-4px) scale(1.03); }

@media (max-width: 900px) {
  .footer-inner { flex-direction: column; text-align:center; gap:1rem; }
  .footer-tag { text-align:center; }
  .back-to-top { right: 12px; bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo img, .back-to-top { transition: none !important; transform: none !important; }
}

.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: opacity 0.5s ease, transform 0.3s ease;
  pointer-events: auto;
  opacity: 0.4;
}

.player-left,
.player-center,
.player-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-player button {
  background: transparent;
  border: none;
  color: #fff;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.music-player button:hover {
  transform: scale(1.2);
  color: #ff4fd8;
}

/* Desktop */
#music-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10000;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(255,79,216,0.3);;
  transition: all 0.3s ease;
}

#music-popup button {
  background: #ff4fd8;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

#music-popup button:hover {
  transform: translateY(-2px);
  background: #ff2fc0;
}

/* Mobile */
@media (max-width: 768px) {
  #music-popup {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    flex-direction: column;
    text-align: center;
    gap: 0.7rem;
    font-size: 1rem;
  }

  #music-popup button {
    width: 100%;
    padding: 0.7rem 0;
  }
}

#music-visualizer {
  width: 50px;
  height: 30px;
  background: transparent;
}

.volume-container {
  position: relative;
  margin-right: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#volume-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

#volume-slider {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  width: 80px;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  -webkit-appearance: none;
  background: rgba(255,79,216,0.6);
  height: 5px;
  border-radius: 5px;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff4fd8;
}

.volume-container:hover #volume-slider {
  opacity: 1;
}
