/* 
  Ayo Solanke - Redesign based on kirkwhalum.com
  Colors: 
  - Primary Background: #faf9f7 (off-white)
  - Primary Text: #120c0d (dark charcoal/black)
  - Primary Accent: #c5a059 (muted premium gold)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Merriweather+Sans:wght@300;400;700&display=swap');

:root {
  --color-bg: #faf9f7;
  --color-text: #120c0d;
  --color-accent: #c5a059;
  --color-accent-dark: #a98239;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Merriweather Sans', sans-serif;
  
  --base-font-size: 16px;
  --base-line-height: 1.6;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  font-size: var(--base-font-size);
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 300;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Accessibility: Focus states for keyboard navigation */
a:focus-visible, 
button:focus-visible, 
.btn:focus-visible, 
input:focus-visible, 
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.py-4 { padding: 4rem 0; }

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--color-text);
  background-color: transparent;
  color: var(--color-text);
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}

.btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}

.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.btn-accent:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 12, 13, 0.1);
  padding: 1rem 0;
}

.site-header.scrolled-dark {
  background-color: rgba(18, 12, 13, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem 0 2.5rem 0; /* Extra bottom padding for the soft fade */
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 55px !important;
  max-height: 55px;
  width: auto !important;
  max-width: 200px;
  transition: filter 0.3s ease;
  /* Safely force logo to be white without breaking anti-aliasing in Safari */
  filter: contrast(0) brightness(2);
}

.site-header.scrolled .site-logo {
  /* Force logo to be dark when the nav background becomes light */
  filter: brightness(0) opacity(0.9);
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  color: var(--color-bg);
  transition: color 0.3s ease;
}

.site-header.scrolled .desktop-nav a {
  color: var(--color-text);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1000;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-bg);
  transition: all 0.3s ease;
}

.site-header.scrolled .mobile-menu-toggle span,
.mobile-menu-toggle.active span {
  background-color: var(--color-text);
}

/* Hamburger to X Animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Responsive Nav */
@media (max-width: 991px) {
  .site-header {
    padding: 1rem 0;
  }
  
  .site-header.scrolled {
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background-color: rgba(250, 249, 247, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 999;
  }

  .desktop-nav.nav-active {
    right: 0;
  }

  .desktop-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .desktop-nav a {
    color: var(--color-text);
    font-size: 1.1rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-text);
  color: var(--color-bg);
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0 !important;
  transition: opacity 2s ease-in-out !important;
}

.hero-video-bg.loaded {
  opacity: 1 !important;
}

.hero-video-bg iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  position: absolute;
  top: 50%;
  left: 50%;
  /* Scale up to push the YouTube title and logo out of the visible screen area */
  transform: translate(-50%, -50%) scale(1.5) !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 12, 13, 0.65); /* Dark overlay to make text pop */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-logo {
  max-width: 95%;
  width: 1000px;
  height: auto;
  margin-bottom: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  animation: signatureReveal 2.5s ease-in-out 0.3s forwards;
  filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 75%;
    margin-bottom: 1rem;
  }
}

@keyframes signatureReveal {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    opacity: 0;
    transform: scale(0.98) translateX(-15px);
  }
  30% {
    opacity: 1;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.hero-content p {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Page Title Template */
.page-title {
  padding: 12rem 0 6rem;
  background-color: var(--color-text);
  text-align: center;
}

.page-title h1 {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.page-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-bg);
  font-size: 1.1rem;
  opacity: 0.8;
}

/* About Section */
.about {
  background-color: var(--color-bg);
  padding: 10rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image img {
  border: 1px solid var(--color-accent);
  padding: 1rem;
  background-color: var(--color-bg);
  box-shadow: -15px 15px 0 var(--color-text);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: translate(5px, -5px);
  box-shadow: -20px 20px 0 var(--color-accent);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(18, 12, 13, 0.7);
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.read-more-link:hover {
  color: var(--color-text);
}

.read-more-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.read-more-link svg {
  transition: transform 0.3s ease;
}

.read-more-link:hover svg {
  transform: translateX(5px);
}

/* Media / Music Section */
.media {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: 10rem 0;
}

.media h2 {
  color: var(--color-accent);
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.custom-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-family: var(--font-body);
  color: rgba(18, 12, 13, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.custom-form input,
.custom-form textarea {
  width: 100%;
  padding: 0.5rem 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(18, 12, 13, 0.2);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.custom-form input:focus,
.custom-form textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.custom-form .btn-primary {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 1rem 3rem;
  letter-spacing: 0.15em;
}

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

.music-card {
  background-color: rgba(250, 249, 247, 0.05);
  border: 1px solid rgba(255, 186, 71, 0.2);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.music-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-10px);
  background-color: rgba(250, 249, 247, 0.1);
}

.music-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.music-card p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.album-art-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.album-art-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.album-art-card .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 12, 13, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-art-card .play-overlay svg {
  color: var(--color-accent);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.album-art-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

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

.album-art-card:hover .play-overlay {
  opacity: 1;
}

.album-art-card:hover .play-overlay svg {
  transform: scale(1.2);
}

/* Featured Courses */
.featured-courses {
  background-color: var(--color-bg);
  padding: 10rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  margin-bottom: 0;
}

.btn-outline {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.course-card {
  background-color: #fff;
  border: 1px solid rgba(18, 12, 13, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.course-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.course-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-info h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  font-weight: 600;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  align-self: flex-start;
}

/* Gallery Styles */
.featured-gallery, .full-gallery {
  background-color: var(--color-bg);
}

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

.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  background: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.gallery-item:hover img {
  transform: scale(1.1);
  opacity: 1;
}

/* Footer */
.site-footer {
  background-color: var(--color-bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(18, 12, 13, 0.1);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--color-text);
  font-size: 1.6rem;
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* The Secret Page Styles (Pinned Notes Board) */
.secret-grid {
  column-count: 1;
  column-gap: 3rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .secret-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .secret-grid {
    column-count: 3;
  }
}

.secret-item {
  break-inside: avoid;
  margin-bottom: 3.5rem;
  position: relative;
}

.img-box {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.img-box img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.3s ease, transform 0.5s ease;
}

.img-box:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

/* Premium Editorial Collage Aesthetic */
.quote-box {
  padding: 3.5rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-box:hover {
  transform: translateY(-5px);
}

.quote-box p {
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 400;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.85;
  opacity: 0.85;
}

.quote-box .author {
  display: block;
  text-align: right;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Theme-Aligned Backgrounds */
.quote-dark { 
  background-color: var(--color-text); 
  color: var(--color-bg); 
}
.quote-dark .author { 
  color: var(--color-accent); 
}
.quote-dark:hover {
  box-shadow: 0 15px 30px rgba(18,12,13,0.3);
}

.quote-outline-gold {
  background-color: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
}
.quote-outline-gold .author {
  color: var(--color-accent-dark);
}
.quote-outline-gold:hover {
  background-color: rgba(197, 160, 89, 0.05); /* very subtle gold tint */
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15);
}

.quote-outline-dark {
  background-color: transparent;
  border: 1px solid rgba(18,12,13,0.2);
  color: var(--color-text);
}
.quote-outline-dark .author {
  color: var(--color-text);
}
.quote-outline-dark:hover {
  border-color: var(--color-text);
  box-shadow: 0 15px 30px rgba(18,12,13,0.05);
}

/* Tabs UI for Music Page */
.tabs-header {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 4rem;
  border: 1px solid var(--color-accent);
  border-radius: 30px;
  overflow: hidden;
  background: transparent;
  margin-left: auto;
  margin-right: auto;
}

.tabs-container {
  text-align: center;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text);
  padding: 0.8rem 3rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tab-btn:hover {
  background: rgba(197, 160, 89, 0.1);
}

.tab-btn.active {
  background: var(--color-accent);
  color: var(--color-bg);
}

@media (max-width: 768px) {
  .tab-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }
}

.tab-content {
  display: none;
  animation: fadeInTab 0.5s ease forwards;
  text-align: left;
}

.tab-content.active {
  display: block;
}

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

/* ==========================================================================
   Music Page Styles
   ========================================================================== */

.music-projects {
  overflow: hidden;
}

.music-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: center;
}


/* --- Mobile Section Spacing & Reordering --- */
@media (max-width: 991px) {
  /* Reduce huge desktop padding */
  .about, .media, .featured-courses, .featured-gallery, .py-4 {
    padding: 1.5rem 0 !important;
  }
  
  .page-title {
    padding: 8rem 0 4rem !important;
  }

  /* Reorder section headers to push 'View All' buttons below the grid */
  section .container:has(.section-header) {
    display: flex;
    flex-direction: column;
  }

  .section-header {
    display: contents;
  }

  .section-header h2,
  .about-text h2,
  .media h2 {
    order: 1;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem !important;
  }

  .music-row {
    gap: 1.25rem;
  }

  .music-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .music-content h2 {
    font-size: 1.25rem !important;
    text-align: center;
  }

  .music-content p {
    text-align: center;
  }

  .music-actions {
    justify-content: center;
  }

  .page-title h1 {
    font-size: 2rem !important;
  }

  h1 { font-size: 2.2rem !important; }
  h3 { font-size: 1.25rem !important; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .courses-grid, .gallery-grid, .media-grid, .about-grid, .music-projects {
    order: 2;
  }

  .section-header .btn,
  .section-header .btn-outline {
    order: 3;
    margin-top: 1.5rem;
    margin-left: 0 !important;
    align-self: center;
  }
}

.music-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .music-row {
    flex-direction: row;
    gap: 3rem;
    align-items: center; /* Center content vertically with the image */
  }
  
  .music-row.layout-right {
    /* flex-direction: row-reverse; (Disabled to keep constant left layout on desktop) */
  }
}

.music-image {
  flex: 0 0 250px; /* Lock the image to a compact 250px width on desktop */
  max-width: 250px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.music-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.95);
}

.music-image:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

.music-content {
  flex: 1;
}

.music-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.music-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.music-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.music-actions .btn {
  padding: 0.8rem 1.5rem;
  font-size: 0.75rem;
}

/* Mobile Stacked Depth Deck for Secret Page */
@media (max-width: 767px) {
  .secret-grid {
    position: relative;
    height: 500px;
    padding: 0;
    margin-top: 3rem;
    margin-bottom: 5rem;
    display: block;
    overflow: visible;
  }
  
  .secret-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
    border-radius: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, z-index 0s;
    opacity: 0;
    pointer-events: none;
    transform-origin: top center;
    /* Ensure content inside doesn't overflow bounds */
    overflow: hidden;
  }
  
  /* Reset quote padding to fit nicely in absolute container */
  .secret-item.quote-box {
    padding: 2.5rem 2rem !important; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Make transparent quote boxes opaque to hide cards underneath */
  .secret-item.quote-outline-gold,
  .secret-item.quote-outline-dark {
    background-color: var(--color-bg) !important;
  }
  
  /* Make images fill the entire absolute container */
  .secret-item.img-box {
    padding: 0 !important;
  }
  
  .secret-item.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Stack Classes */
  .secret-item.stack-front {
    opacity: 1;
    z-index: 10;
    transform: scale(1) translateX(0);
    pointer-events: auto; /* Only front card is interactive */
  }
  
  .secret-item.stack-behind-1 {
    opacity: 1;
    z-index: 9;
    transform: scale(0.95) translateX(-20px);
  }
  
  .secret-item.stack-behind-2 {
    opacity: 1;
    z-index: 8;
    transform: scale(0.9) translateX(-40px);
  }

  .secret-item.stack-behind-3 {
    opacity: 0;
    z-index: 7;
    transform: scale(0.85) translateX(-60px);
  }
}

/* Onboarding Hint Animation */
@keyframes pulseHint {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
  100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
}

.pulse-hint {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  white-space: nowrap;
  animation: pulseHint 2s infinite ease-in-out;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}
.pulse-hint.hidden {
  opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeInIndicator 1s ease-in forwards 3s;
  z-index: 10;
}

.scroll-indicator i {
  margin-top: 10px;
  animation: bounce 2s infinite;
  font-size: 1.2rem;
}

@keyframes fadeInIndicator {
  to { opacity: 0.8; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #d1b16c;
  transform: translateY(-5px);
}

