/*
  Enables smooth scrolling when navigating via anchor links
*/
html {
  scroll-behavior: smooth;
}

/*
  Sets black background for the entire page and top padding to account for fixed nav
*/
body {
  background: black;
  padding-top: 60px;
}

/*
  Makes all images responsive (scale with width, preserve aspect ratio)
*/
img {
  width: 100%;
  height: auto;
}

/*
  Styles the fixed navigation bar at the top
*/
#main-nav {
  position: fixed;         /* Stick to the top of the viewport */
  top: 0;
  left: 0;
  width: 100%;             /* Full width */
  background: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
  z-index: 999;            /* Stay on top of other content */
  padding: 0.5rem 1rem;    /* Padding around the nav */
}

/*
  Styles the nav list horizontally with spacing
*/
#main-nav ul {
  display: flex;           /* Arrange items in a row */
  justify-content: center; /* Center items */
  list-style: none;        /* Remove bullets */
  margin: 0;
  padding: 0;
  gap: 1.5rem;             /* Space between nav links — adjust here for desktop gap */
  flex-wrap: wrap;         /* Allow wrapping on smaller screens */
}

/*
  Styles each nav link
*/
#main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

/*
  Change link color on hover
*/
#main-nav a:hover {
  color: #ff00ff;
}

/*
  Section titles with glow
*/
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 1rem;
  color: #fff;
  text-shadow: 0 0 12px darkmagenta;
}

/*
  Hero section fills entire screen, centers content
*/
#hero-container {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;                       /* Space between hero elements */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*
  Dark overlay for background images in hero
*/
#hero-container .overlay {
  content: "";
  background: black;
  opacity: 0.6;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

/*
  Main logo styling and animation
*/
#main-logo {
  max-width: 350px;              /* Logo size — adjust here to make bigger/smaller */
  position: fixed;
  z-index: 2;
  top: 50px;                    /* Adjust to move logo down */
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;          /* Prevents logo from blocking clicks */
  animation: pulseLogo 5s ease-in-out infinite; /* Glowing pulsing animation */
  filter: drop-shadow(0 0 10px magenta);        /* Glow effect */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

/*
  Logo fade out state (used via JS)
*/
#main-logo.fade-out {
  opacity: 0;
  filter: blur(2px) brightness(80%);
}

/*
  Heading in the hero
*/
#hero-heading {
  color: white;
  font-size: 60px;
  position: relative;
  z-index: 2;
  font-weight: 800;
  padding: 0 2vw;
  margin: 0;
  text-shadow: 0 0 12px darkmagenta;
  text-wrap: balance;
}

/*
  Subtitle below the hero heading
*/
.hero-subtitle {
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
  text-shadow: 0 0 8px black;
  max-width: 800px;
  margin: 0 auto 1rem;
  padding: 0 2vw;
  z-index: 2;
  position: relative;
}

/*
  Ensures the book button stacks correctly
*/
#book-button {
  position: relative;
  z-index: 2;
}

/*
  Container for feature cards (equipment, services, etc.)
*/
#card-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 72px 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/*
  Individual card styles
*/
.card {
  background: #222;
  color: white;
  width: 18rem;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.15);
}

.card-img {
  width: 100%;
  height: 225px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-body {
  text-align: center;
  padding: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 12px darkmagenta;
  margin-bottom: 0.5rem;
}

.card-text {
  color: #ddd;
  margin-bottom: 1rem;
  text-align: center;
}

.card-body .btn {
  margin: 0 auto;
}

/*
  Music track styling with audio player
*/
.track {
  text-align: center;
  margin-bottom: 2rem;
}

.track audio {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.track .album-art {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.audio-container {
  display: flex;                     /* Arrange horizontally */
  align-items: center;              /* Vertically align note with player */
  justify-content: center;          /* ✅ Center the whole row */
  gap: 0.5rem;                      /* Space between note and player */
  margin: 0 auto 1rem;              /* Auto margins center the block */
  max-width: 500px;             
}

.music-note {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 0 8px darkmagenta;
}

@keyframes bounceNote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}


/*
  Studio gear section layout
*/
#studio-gear {
  padding: 2rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  color: white;
  position: relative;
  z-index: 1;
}

#studio-gear h2 {
  color: white;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px darkmagenta, 0 0 18px #ff00ff;
}

#studio-gear .gear-intro {
  color: white;
  font-size: 1rem;
  text-shadow: 0 0 8px darkmagenta, 0 0 12px #ff00ff;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.gear-gallery {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.gear-gallery img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.25);
}

/*
  Contact section with centered layout
*/
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  background: #333;
  color: white;
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
}

/*
  Primary button styles
*/
.btn,
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #8a2be2;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 12px #8a2be2;
  transition: background 0.3s ease;
}

.btn:hover,
.btn-primary:hover {
  background-color: #6a1cb8;
}

.contact-phone {
  text-align: center;
  margin-top: 1.5rem;
}

.contact-phone a {
  display: inline-block;
  background-color: #8a2be2;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  box-shadow: 0 0 10px #8a2be2;
  transition: background-color 0.3s ease;
}

.contact-phone a:hover {
  background-color: #6a1cb8;
}

/*
  Responsive layout for screens under 768px wide (mobile)
*/
@media (max-width: 768px) {
  #main-logo {
    max-width: 200px;     /* Smaller logo for mobile */
    top: 75px;             /* Adjust logo vertical position */
  }

  #hero-heading {
    font-size: 32px;
    padding: 0 5vw;
    text-shadow: 0 0 12px darkmagenta;
  }

  #card-container {
    flex-direction: column;
    gap: 16px;
    margin: 48px 0;
  }

  .card-img {
    height: 160px;
  }

  .card-title {
    font-size: 1.25rem;
    text-shadow: 0 0 12px darkmagenta;
  }

  #studio-gear h2 {
    font-size: 1.5rem;
  }

  #studio-gear .gear-intro {
    font-size: 0.95rem;
  }

  #main-nav ul {
  justify-content: center;
  padding: 0; /* remove any vertical/horizontal padding */
  margin: 0 auto; /* explicitly center it */
  text-align: center;
  gap: 0.3rem; /* adjust spacing here if you want smaller gaps */
}
  #main-nav li {
    flex: 0 1 auto;
    text-align: center;
  }

#main-nav a {
  display: inline-block;
  padding: 0.1rem 0.2rem;
  font-size: 1rem;
  white-space: nowrap;
  width: auto; /* override any 100% width */
}}

/*
  Keyframes for pulsing logo animation
*/
@keyframes pulseLogo {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}
