/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: black;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  }
  
  .hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
  }
  
  .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
    background-color: black;
  }
  
  .hero-video.active {
    opacity: 1;
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    display: grid;
    color: rgba(255, 255, 255, 0.9); /* ✅ subtle transparency */
  }
  
  .hero-content h1 {
    font-size: 3em;
    margin-bottom: 0.7em;
    line-height: 1.2;
  }
  
  .hero-line {
    font-size: 1.3em;
    line-height: 1.6;
    margin: 0.3em auto;
    display: inline-block;
    word-break: break-word;
  }  
  
  /*.hero-line:last-child {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
  }*/

  .hero-line {
    opacity: 0;
    text-wrap: balance;
    transform: translateY(10px);
    animation: fadeInUp 0.8s forwards;
  }
  
  .hero-line:nth-child(2) {
    animation-delay: 0.3s;
  }
  .hero-line:nth-child(3) {
    animation-delay: 0.6s;
  }

  .hero-line:first-of-type {
    max-width: 50ch; /* around 36 characters */
  }
  
  .hero-line:last-of-type {
    max-width: 45ch;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 0.9;
      transform: translateY(0);
    }
  }

  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 2em;
    }
  
    .hero-content p {
      font-size: 1.1em;
    }
  }
  
  @media (max-width: 480px) {
    .hero-content h1 {
      font-size: 1.7em;
    }
  
    .hero-content p {
      font-size: 1em;
    }
  }
  
  #media-carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 360px;  /* adjust if needed */
    max-width: 100%;
    padding: 8px 10px;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999;
    box-sizing: border-box;
  }
  
  #media-container-wrapper {
    flex: 1;
    max-width: 100%;
    overflow: hidden;
  }
  
  #media-container {
    cursor: default;
  }
  
  #carousel-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .carousel-arrow {
    background: rgba(255, 255, 255, 0.08); /* subtle background always */
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.15); /* slightly stronger on hover */
    transform: scale(1.08);
  }
  
  .carousel-arrow svg {
    stroke: white;
  }

  .preview-thumbnail {
    width: 100%;
    height: 180px;
    position: relative;
    background-size: 100% auto;       /* fill width, allow cropping height */
    background-position: center -20px; /* shift image up to crop top bar */
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  
  .preview-thumbnail:hover .play-button {
    background-color: rgba(0, 0, 0, 0.65);
    transform: translate(-50%, -50%) scale(1.05);
  }

  #media-container {
    cursor: default;
  }
  
  .media-preview {
    cursor: pointer;
  }
  
  /* Wrapper for preview + title */
  .media-body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
/* Ensure consistent preview dimensions */
.preview-thumbnail,
.spotify-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.preview-thumbnail {
  position: relative;
}

.spotify-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    z-index: 2;
    gap: 6px;
    margin-top: 2px;
  }
  
  .youtube-profile {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
  }
  
  .youtube-title {
    font-size: 14px;
    color: white;
    font-family: sans-serif;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }

  .featured-works {
    padding: 80px 40px;
    background-color: #0b0b0b;
    color: white;
  }
  
  .section-title {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
  }
  
  .work-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
  }
  
  .work-tile:hover {
    transform: translateY(-4px);
  }
  
  .work-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .tile-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-family: 'Playfair Display', serif;
  }
  
  .tile-arrow {
    position: absolute;
    top: 10px;
    right: 12px;  /* was left: 12px */
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
  }
  
  .tile-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background-color: #000;
  }  
  
  .work-tile:hover .tile-arrow {
    color: white;
  }
  
  /* === Newsletter Section Wrapper === */
/* === Container + Fade Animation === */
.newsletter-section {
    background: #0c0c0c;
    padding: 20px 20px;
    text-align: center;
    position: relative;
    color: white;
  }

  .newsletter-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;                  /* slightly larger */
    height: 220px;
    background-image: url('/images/treble_clef.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;                 /* slightly stronger presence */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.06));  /* optional subtle sharpening */
  }  

  .newsletter-container {
    position: relative;
    z-index: 2;
  }
  
  .newsletter-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 560px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .newsletter-container:hover {
    transform: translateY(-2px);
  }
  
  .newsletter-container h2 {
    font-size: 2.1em;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.4em;
  }
  
  .newsletter-intro {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.8em;
    max-width: 460px;
    margin-inline: auto;
  }

  .newsletter-intro {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .newsletter-intro.visible {
    opacity: 1;
    transform: translateY(0);
  }  
  
  /* === Row Layouts === */
  .form-row,
  .email-submit-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 500px;
    margin: 0 auto 14px auto;
  }
  
  /* === Inputs === */
  .form-row input[type="text"],
  .input-wrapper input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 0.95em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
  }

  input[type="text"],
input[type="email"] {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

input:focus {
  transform: scale(1.015);
  box-shadow: 0 0 8px rgba(197, 98, 68, 0.25);
}
  
  input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  
  input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(197, 98, 68, 0.35);
    outline: none;
  }
  
  /* === Button === */
  .email-submit-row input[type="submit"] {
    padding: 10px 18px;
    border-radius: 10px;
    background-color: #c56244;
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    font-size: 0.95em;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .email-submit-row input[type="submit"]:hover {
    background-color: #a94830;
    box-shadow: 0 0 10px rgba(197, 98, 68, 0.35);
    transform: translateY(-1px);
  }
  
  /* === Success Message === */
  .newsletter-response {
    font-size: 0.95em;
    color: #90ee90;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    min-height: 1.4em;
    margin-top: 12px;
  }
  
  .newsletter-response.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* === Powered by === */
  .newsletter-powered {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 20px;
  }
  
  .newsletter-powered a {
    color: inherit;
    text-decoration: none;
  }
  
  .newsletter-powered a:hover {
    text-decoration: underline;
    color: rgba(255, 255, 255, 0.6);
  }

  /* ABOUT */
  .about-section {
    background: #0c0c0c;
    padding: 50px 50px;
    font-family: 'Georgia', serif;
    color: white;
  }
  
  .about-flex-container {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  .about-image img {
    width: 320px;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  }
  
  .about-text {
    flex: 1;
    min-width: 280px;
    text-align: left;
  }
  
  .about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-bottom: 1.2em;
    font-weight: 600;
    color: white;
  }
  
  .about-text p {
    font-size: 1.05em;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.4em;
    text-align: justify;
  }
  
  .about-text a {
    color: #c56244;
    text-decoration: none;
  }
  
  .about-text a:hover {
    text-decoration: underline;
  }

  /* contact form */
  .contact-widget-section {
    background: #0c0c0c;
    padding: 20px 20px 40px;
    text-align: center;
    color: white;
  }

  .contact-container {
    max-width: 580px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .contact-container:hover {
    transform: translateY(-2px);
  }

  .contact-container h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
  }

  .contact-container p.description {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 2em;
  }

  .contact-container form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
  }

  .contact-container form div label {
    font-weight: 500;
    margin-bottom: 0.3em;
  }

  .contact-container form div input, .contact-container form div textarea {
    background-color: #111;
    border: 1px solid #333;
    color: white;
    font-size: 1em;
    padding: 0.8em;
    border-radius: 6px;
    width: 100%;
  }

  .contact-container form div textarea {
    resize: vertical;
    min-height: 120px;
  }

  .contact-container form button {
    background-color: #c56244;
    color: white;
    font-weight: 500;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  }

  .contact-container form button:hover {
    background-color: #a94b30;
    transform: scale(1.015);
    box-shadow: 0 0 8px rgba(197, 98, 68, 0.25);
  }