/* ─── Base Setup ───────────────────────────── */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-sans, system-ui, sans-serif);
    background: var(--bg, #11111b);
    color: var(--fg, #cdd6f4);
  }
  :root {
    --bg: #11111b;
    --bg-alt: #181825;
    --fg: #cdd6f4;
    --fg-muted: #a6adc8;
    --accent-peach: #fab387;
    --accent-green: #39ff14;
    --accent-blue: #00e0ff;
    --glass: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.12);
    --radius: 12px;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
  }

  /* ─── Custom Scrollbar (WebKit) ───────────────────── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: #181825; /* Mantle */
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: #1e1e2e; /* Base */
    border-radius: 8px;
    border: 2px solid #181825; /* Mantle (for padding) */
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: #313244; /* Slightly lighter when hovered */
  }
  
  /* ─── Firefox Scrollbar ───────────────────────────── */
  * {
    scrollbar-width: thin;
    scrollbar-color: #313244 #181825; /* thumb, track */
  }
  
  
  /* ─── Scroll Area ───────────────────────────── */
  .horizontal-scroll {
    display: flex;
    height: 100vh;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }
  
  /* ─── Each Full-Width Panel ─────────────────── */
  .section {
    flex: 0 0 100vw;
    height: 100%;
    scroll-snap-align: start;
    padding: 6rem 6vw 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    background: inherit;
    box-sizing: border-box;
    overflow-y: auto;
  }
  

  /* ─── Page Header ───────────────────────────── */
  .page-header {
    position: fixed;
    top: 1.5rem;
    left: 3rem;
    z-index: 10;
    max-width: 60ch;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  
  .page-header h1 {
    font-family: var(--font-display, sans-serif);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    color: var(--accent-blue);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
  
  .page-header p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fg-muted);
    max-width: 60ch;
    margin: 0;
    opacity: 0.85;
  }
  
  /* ─── Section Titles ────────────────────────── */
  .section h2 {
    padding-top: 2rem;
    font-family: var(--font-display, sans-serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-top: 8rem;
    margin-bottom: 1.2rem;
    color: var(--accent-peach);
    letter-spacing: -0.015em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
  }
  
  /* ─── Highlight Styles ──────────────────────── */
  .highlight {
    color: var(--accent-blue);
    font-weight: 600;
  }
  
  .important {
    color: var(--accent-green);
    font-weight: 500;
  }
  
  /* ─── Grid Layout ───────────────────────────── */
  .card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    align-items: stretch;
  }
  
  /* ─── Individual Card ───────────────────────── */
  .mg-card {
    width: 280px;
    min-height: 320px;
    background: var(--glass, rgba(255,255,255,0.05));
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: var(--radius, 12px);
    backdrop-filter: blur(20px) saturate(130%);
    padding: 1.5rem;
    text-align: center;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: background 0.3s ease, transform 0.2s ease;
    background-color: rgba(20, 20, 30, 0.25);
  }
  
  .mg-card:hover {
    background: rgba(60, 100, 130, 0.12);
    transform: translateY(-4px);
  }
  
  /* ─── Card Content ──────────────────────────── */
  .mg-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
    margin-bottom: 1rem;
  }
  
  .mg-card h3 {
    font-family: var(--font-display, sans-serif);
    font-size: 1.25rem;
    margin: 0.4rem 0 0.25rem;
    color: var(--accent-green);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
  }
  
  .mg-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--fg-muted);
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.95;
  }
  
  /* ─── Audio Player ──────────────────────────── */
  .mg-card audio {
    margin-top: auto;
    width: 100%;
  }

/* Remove underline from clickable cards */
.card-grid a {
    text-decoration: none;
    color: inherit;
  }
  
  
  /* ─── Responsive Enhancements ───────────────── */
  @media (max-width: 768px) {
    .card-grid {
      justify-content: center;
    }
  
    .page-header {
      left: 5vw;
      right: 5vw;
    }
  
    .section {
      padding: 7rem 1.5rem 3rem;
    }
  
    .section h2 {
      margin-top: 6rem;
    }
  }
  

/* ─── Diagonal Animated Background ─── */
.bg-diagonal {
    position: fixed;
    inset: 0;
    z-index: -1;  /* Ensure it stays behind the content */
    background: linear-gradient(
      135deg,
      var(--bg) 0%,
      var(--bg-alt) 25%,
      var(--bg) 50%,
      var(--bg-alt) 75%,
      var(--bg) 100%
    );
    background-size: 400% 400%;
    animation: bgMove 12s ease infinite;
  }

@keyframes bgMove {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}


  .horizontal-scroll,
.section {
  position: relative;
  z-index: 1;
}

html, body {
    position: relative;
    z-index: 0;
  }

  .horizontal-scroll,
.section {
  position: relative;
  z-index: 1;
}

.floating-back-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--accent-blue);
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .floating-back-button:hover {
    background: rgba(30, 30, 46, 0.6);
    transform: translateY(-3px);
  }
  