/* styles.css */

/* GENERAL PAGE STYLES */
body {
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  /* scroll-padding-top: 8rem; */
}
/* Default (mobile-first approach) */
:root {
  scroll-padding-top: 4rem; /* Mobile value */
}

/* Desktop */
@media (min-width: 768px) {
  :root {
    scroll-padding-top: 6rem; /* Desktop value */
  }
}

/* HEADER NAVIGATION LINKS */
.header-nav-link {
  transition: all 0.2s ease-in-out;
}
.header-nav-link.active {
  color: #0D9488;
  font-weight: 600;
  border-bottom: 2px solid #0D9488;
  padding-bottom: 2px;
}

/* SCROLL TO TOP BUTTON */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background-color: #0d9488;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: background-color 0.3s, opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#scrollToTopBtn:hover {
  background-color: #0f766e;
  opacity: 1;
}

/* ANIMATIONS */
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.4s ease-out forwards;
}

/* FLOATING BUBBLES BACKGROUND */
.floating-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(56, 178, 172, 0.15);
  animation: float 15s linear infinite;
  opacity: 0.4;
  will-change: transform, opacity;
}

@keyframes float {
  0%   { transform: translateY(0vh) translateX(0vw); opacity: 0.4; }
  25%  { transform: translateY(-25vh) translateX(5vw); opacity: 0.5; }
  50%  { transform: translateY(-50vh) translateX(-5vw); opacity: 0.3; }
  75%  { transform: translateY(-75vh) translateX(10vw); opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(0vw); opacity: 0.4; }
}

/* Carousel wrapper */
#carousel-container {
  overflow: hidden;
  position: relative;
  outline: none;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#carousel-container::-webkit-scrollbar {
  display: none;
}

#carousel {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Individual cards */
#carousel > a {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  #carousel > a {
    width: calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  #carousel > a {
    width: calc(33.333% - 1.333rem);
  }
}

/* FOCUS RING FOR ACCESSIBILITY */
[tabindex="0"]:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0D9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* MERCHANDISE PAGE FILTER ACTIVE STATE */
.filter-btn.active-filter {
  background-color: #0d9488;
  color: white;
}

/* Mobile menu base styles and animation */
#mobile-menu {
transition: transform 0.3s ease, opacity 0.3s ease;
transform: translateX(100%);
opacity: 0;
will-change: transform, opacity;
position: fixed;
top: 0;
right: 0;
height: 100vh;
width: 80vw;
background-color: white;
box-shadow: -2px 0 8px rgba(0,0,0,0.15);
z-index: 9999;
padding-top: 4rem; /* space for fixed header */
}

#mobile-menu.open {
transform: translateX(0);
opacity: 1;
}

/* Hamburger & close icons */
#menu-toggle {
position: relative;
width: 24px;
height: 24px;
}

#icon-hamburger,
#icon-close {
transition: opacity 0.3s ease;
position: absolute;
top: 0;
left: 0;
}

#icon-hamburger.hidden,
#icon-close.hidden {
opacity: 0;
pointer-events: none;
}

/* Fade-out animation */
@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; }
}

.fade-out {
animation: fadeOut 1s forwards;
}

/* Initially hidden via opacity and pointer-events */
#cookie-consent-banner.show {
  opacity: 1;
  pointer-events: auto;
}

/* Music Toggle Button: Circle, size & colors matching scrollToTopBtn */
#musicToggle {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  background-color: #0d9488;       /* same as scrollToTopBtn */
  border-radius: 50%;              /* circle */
  width: 50px;                    /* same size */
  height: 50px;                   /* same size */
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* same shadow */
  transition: background-color 0.3s ease, opacity 0.5s ease;
  z-index: 9999;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;                     /* fixed size, no padding */
}

/* Music icon inside the button */
#musicIcon {
  color: white;
  width: 24px;                   /* same as scrollToTopBtn font-size */
  height: 24px;
  animation: pulse 2s infinite;  /* The pulse animation */
  transition: color 0.3s ease;
}

/* Pulsating animation - Using the more prominent version from previous suggestion */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25); /* More prominent scale */
    opacity: 0.4;          /* More prominent opacity change */
  }
}

/* Hover and focus states */
#musicToggle:hover,
#musicToggle:focus {
  background-color: #0f766e;    /* same hover color as scrollToTopBtn */
  outline: none;
  box-shadow: 0 0 8px 2px rgba(13,148,136,0.6);
}

/* When music is playing — change background to green, icon to red */
#musicToggle.playing {
  background-color: rgba(56, 178, 172, 0.15);
}

#musicToggle.playing #musicIcon {
  color: #0f766e;
}

/* When music is NOT playing, but page is scrolled */
#musicToggle.transparent:not(.playing) {
  background-color: rgba(13, 148, 136, 0.1); /* very light teal */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(13, 148, 136, 0.1);
  box-shadow: none; /* Remove shadow to reduce blocking */
}

#musicToggle.transparent:not(.playing) #musicIcon {
  color: white;
  fill: white;
}

#musicToggle.transparent:not(.playing) {
  opacity: 0.6;
}

/* Responsive adjustments for smaller devices */
@media (max-width: 640px) {
    #musicToggle {
        bottom: 130px; /* place above scrollToTopBtn */
        top: auto;
        right: 1.5rem;
        transform: none;

        width: 50px;
        height: 50px;
    }

    #musicIcon {
        width: 24px;
        height: 24px;
    }
}

/* Extra small devices like iPhone SE */
@media (max-width: 380px) {
    #musicToggle {
        bottom: 120px; /* extra space on ultra-small devices */
    }
}

/* faq */
.faq-content {
  transition: max-height 0.5s ease-in-out;
}
