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

    :root {
      --dark-bg: #2a1f18;
      --light-bg: #f3f2ef;
      --primary-color: #f3f2ef;
      --secondary-color: #ceb192;
      /* Use a tan accent instead of the previous blue. The accent now matches the secondary colour for a classic look. */
      --accent-color: #ceb192;
      /* Keep the highlight as a slightly darker bronze for hover states */
      --highlight-color: #9b8359;
      --text-dark: #1a1918;
      /* Corrected font name to match the Typekit definition */
      --font-base: 'le-havre', sans-serif;
    }

    body {
      font-family: var(--font-base);
      background-color: var(--dark-bg);
      color: var(--primary-color);
      line-height: 1.6;
    }

    /* Use a lighter weight for headings to avoid bolding */
    h1, h2, h3 {
      font-weight: 400;
      line-height: 1.2;
    }

    h1 {
      font-size: 3rem;
    }

    h2 {
      font-size: 2.2rem;
      margin-bottom: 1rem;
    }

    h3 {
      font-size: 1.3rem;
      margin-top: 1rem;
    }

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

    /* Hero section */
    .hero {
      position: relative;
      height: 90vh;
      width: 100%;
      /* Use the custom hero background provided in the images folder */
      background-image: url('images/Hero BG.png');
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      overflow: hidden;
      color: var(--primary-color);
    }

    .hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.45);
      z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 600px;
      margin-left: 5%;
    }

    .hero-content h1 {
      font-size: 3.5rem;
      margin-bottom: 0.5rem;
    }

    .hero-content .tagline {
      font-size: 1.5rem;
      font-style: italic;
      color: var(--secondary-color);
      margin-bottom: 1.5rem;
    }

    .cta-btn {
      display: inline-block;
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 999px;
      background-color: var(--accent-color);
      color: var(--light-bg);
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .cta-btn:hover {
      background-color: var(--highlight-color);
    }

    .hero-mic {
      /* Position the microphone centered vertically along the right edge */
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      width: 35%;
      height: auto;
      object-fit: contain;
      z-index: 2;
      opacity: 0.95;
    }

    /* BSD emblem positioned in the top-left of the hero */
    .hero-logo {
      position: absolute;
      top: 20px;
      left: 20px;
      width: 140px;
      height: auto;
      z-index: 3;
    }

    /* Sections */
    .section {
      padding: 4rem 1rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .section h2 {
      text-align: center;
      margin-bottom: 2rem;
      color: var(--secondary-color);
    }

    /* Portfolio */
    .portfolio .cards-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .card {
      position: relative;
      background-color: var(--light-bg);
      color: var(--text-dark);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s ease;
    }

    .card:hover {
      transform: translateY(-6px);
    }

    .card img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      display: block;
      transition: transform 0.35s ease;
    }

    .card:hover img {
      transform: scale(1.04);
    }

    .card h3 {
      margin: 0.5rem 1rem 1rem;
      font-size: 1.1rem;
      color: var(--text-dark);
    }

    .card-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .card:hover .card-overlay {
      opacity: 1;
      pointer-events: all;
    }

    .play-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background-color: var(--accent-color);
      border: none;
      color: var(--light-bg);
      font-size: 1.2rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
      position: relative;
      overflow: visible;
    }

    .play-btn:hover {
      background-color: var(--highlight-color);
    }

    /* Pulse effect for the play button */
    .play-btn::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      transform: scale(1);
      opacity: 0;
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
      transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover .play-btn::after {
      opacity: 1;
      transform: scale(1.15);
      box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    /* Process / Timeline */
    .process .timeline {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      margin-top: 2rem;
    }

    .timeline-item {
      flex: 1 1 200px;
      max-width: 200px;
      text-align: center;
      padding: 0 0.5rem;
    }

    .timeline-item .dot {
      display: block;
      width: 16px;
      height: 16px;
      margin: 0 auto 0.5rem;
      border-radius: 50%;
      background-color: var(--accent-color);
    }

    .timeline-item h3 {
      color: var(--secondary-color);
      font-size: 1.1rem;
      margin-bottom: 0.3rem;
    }

    .timeline-item p {
      font-size: 0.9rem;
      color: var(--primary-color);
    }

    /* Testimonials */
    .testimonials {
      text-align: center;
    }

    .testimonial-list {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .testimonial {
      background-color: var(--light-bg);
      color: var(--text-dark);
      border-radius: 8px;
      padding: 1.5rem;
      max-width: 600px;
      margin: 0 auto;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .testimonial .quote {
      font-size: 1.2rem;
      font-style: italic;
      margin-bottom: 0.5rem;
    }

    .testimonial .author {
      font-size: 0.9rem;
      color: var(--highlight-color);
    }

    .before-after {
      margin-bottom: 2rem;
    }

    .before-after h3 {
      color: var(--secondary-color);
      margin-bottom: 1rem;
    }

    .audio-comparison {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
    }

    .audio-wrapper {
      background-color: var(--light-bg);
      color: var(--text-dark);
      border-radius: 8px;
      padding: 1rem;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      flex: 1 1 200px;
      max-width: 300px;
    }

    .audio-wrapper p {
      margin-bottom: 0.5rem;
      color: var(--highlight-color);
      font-weight: 600;
    }

    /* Contact form */
    .contact {
      background-color: var(--light-bg);
      color: var(--text-dark);
      border-radius: 8px;
      padding: 3rem 2rem;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      text-align: center;
    }

    .contact h2 {
      color: var(--text-dark);
      margin-bottom: 1rem;
    }

    .contact p {
      margin-bottom: 2rem;
      color: var(--text-dark);
    }

    #contact-form {
      max-width: 600px;
      margin: 0 auto;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      margin-bottom: 1rem;
    }

    .form-group label {
      text-align: left;
      margin-bottom: 0.3rem;
      font-weight: 600;
      color: var(--text-dark);
    }

    .form-group input,
    .form-group textarea {
      padding: 0.6rem;
      border-radius: 4px;
      border: 1px solid #ccc;
      font-family: var(--font-base);
      font-size: 1rem;
    }

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

    .contact .cta-btn {
      margin-top: 1.5rem;
    }

    /* Footer */
    footer {
      background-color: var(--dark-bg);
      color: var(--primary-color);
      text-align: center;
      padding: 1rem 0;
      font-size: 0.9rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .hero-content h1 {
        font-size: 2.5rem;
      }
      .hero-content .tagline {
        font-size: 1.2rem;
      }
      .hero-mic {
        display: none;
      }
      .process .timeline {
        flex-direction: column;
        align-items: center;
      }
      .timeline-item {
        max-width: none;
        margin-bottom: 2rem;
      }
    }

    /* === Animations ===================================================== */

    /* Respect reduced motion */
    @media (prefers-reduced-motion: reduce) {
      .animate, .parallax, .reveal { animation: none !important; transition: none !important; }
    }

    /* Hero entrance */
    @keyframes slideFadeUp {
      0%   { opacity: 0; transform: translateY(16px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    .hero-content h1,
    .hero-content .tagline,
    /* Ensure the CTA button within hero-content is targeted */
    .hero-content .cta-btn {
      opacity: 0;
      transform: translateY(16px);
    }
    .hero-content.hydrated h1   { animation: slideFadeUp 0.7s ease-out 0.05s forwards; }
    .hero-content.hydrated .tagline { animation: slideFadeUp 0.7s ease-out 0.18s forwards; }
    .hero-content.hydrated .cta-btn { animation: slideFadeUp 0.7s ease-out 0.31s forwards; }

    /* Mic gentle float */
    @keyframes floatSoft {
      0%   { transform: translateY(-50%) translateZ(0); }
      50%  { transform: translateY(calc(-50% - 6px)) translateZ(0); }
      100% { transform: translateY(-50%) translateZ(0); }
    }
    .hero-mic {
      will-change: transform;
      animation: floatSoft 6s ease-in-out infinite;
    }

    /* Parallax helper (position nudge set by JS) */
/* Increase transition duration and ease to make the mic’s movement smoother and more noticeable */
.hero-mic.parallax {
  transition: transform 0.18s ease-out;
}

    /* Scroll reveal */
    .reveal {
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.in {
      opacity: 1;
      transform: translateY(0);
    }