/* DSGVO Compliant Locally Hosted Fonts */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('./fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('./fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg-dark: #090a0f;
  --accent-gold: #f9e4a4;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(20, 22, 30, 0.4);
  --glass-border: rgba(249, 228, 164, 0.15);
}

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

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.top-nav {
  position: fixed;
  top: -100px;
  /* Hidden initially */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 2rem;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
  opacity: 0;
  pointer-events: none;
}

.top-nav.visible {
  top: 2rem;
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(249, 228, 164, 0.4);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: none; /* Disable global snap to prevent playlist interference */
}

/* Maintain snapping for individual sections within the track */
.scroll-track, 
.sticky-container {
  scroll-snap-type: y mandatory;
}

.snap-point,
.section-hero,
.section-portfolio,
.site-footer {
  scroll-snap-stop: always;
  scroll-snap-align: start;
}

/* Cinematic Film Grain Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* Site Footer */
.site-footer {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg-dark);
  position: relative;
  z-index: 10;
  box-shadow: 0 -20px 50px var(--bg-dark);
  /* Smooth blend into the bottom */
}

.site-footer a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s;
}

.site-footer a:hover {
  color: var(--accent-gold);
}

/* Legal / Text Pages */
.legal-page-container {
  max-width: 800px;
  margin: 6rem auto;
  padding: 4rem;
  background: rgba(15, 18, 25, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-transform: translateZ(0);
  /* Safari hardware acceleration fix */
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.legal-page-container h1 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

.legal-page-container h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-page-container h3 {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-page-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.back-btn:hover {
  color: var(--accent-gold);
  transform: translateX(-5px);
}

/* Video Consent Overlay */
.video-consent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 5;
  color: var(--text-primary);
  border-radius: 10px;
  padding: 2rem;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

.video-consent-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-consent-overlay p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  max-width: 80%;
}

.video-wrapper iframe {
  z-index: 1;
}

/* Avatar Background */
.avatar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: var(--bg-dark);
  opacity: 0;
  /* For Entrance Animation */
}

body.loaded .avatar-container {
  animation: fadeIn 2.5s ease-out forwards;
}

.avatar-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  /* Fixes Pic 1 and 3 back to original */
  opacity: 0;
  mix-blend-mode: screen;
  /* Drops black background */
}

/* Base state */
.avatar-layer.active {
  opacity: 1;
}

.avatar-1 {
  left: 65%;
  /* Pushes the entire frame 15vw to the right to free up the text */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);

  /* Entrance Zoom */
  transform: translate(-50%, -50%) scale(1.05);
  transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1);
}

body.loaded .avatar-1 {
  transform: translate(-50%, -50%) scale(1);
}

.avatar-2 {
  object-fit: cover;
  object-position: center 30%;
  /* Fine-tuned based on your reference framing to precisely center the face when filling the screen */
}

.avatar-3 {
  left: 30% !important;
  /* Horizontal positioning preserved as "perfect" */
  width: 130vw;
  height: 130vh;
  /* Overscan dimensions to allow zooming out without black edges */
  object-position: center 49%;
  /* Slightly higher nudge to 49% */
  transform: translate(-50%, -50%) scale(0.77);
  /* "Zoomed out" using scale while overscanning to fill viewport height */
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 25%);
  mask-image: linear-gradient(to left, transparent 0%, black 25%);
}

.avatar-4 {
  object-fit: cover;
  object-position: center 35%;
  /* Midpoint tweak to pull the face back down slightly */
  transform: translate(-50%, -50%) scale(1.55);
  /* Increments the zoom strictly more to crop the forehead further */
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to right, transparent 40%, var(--bg-dark) 95%),
    radial-gradient(circle at center, transparent 30%, var(--bg-dark) 90%),
    linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
  z-index: 1;
}


/* Layout & Typography */
main {
  position: relative;
  z-index: 2;
}

section.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 10vw;
  position: relative;
  z-index: 2;
}

.scroll-track {
  position: relative;
  z-index: 2;
}

.sticky-container {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.absolute-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 10vw;
}

#sectionTracks {
  align-items: flex-start;
  text-align: left;
  padding-left: 5vw;
}

.content-wrapper {
  max-width: 600px;
  padding: 3rem;
  height: fit-content;
}

.text-right {
  align-self: flex-end;
  text-align: right;
}

.text-left {
  align-self: flex-start;
  text-align: left;
}

h1 {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.glow-text {
  text-shadow: 0 0 20px rgba(249, 228, 164, 0.4);
}

h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

p.subtitle {
  font-size: 1.5rem;
  color: var(--accent-gold);
  font-weight: 400;
}

/* Hero Entrance Animations */
#heroTitle,
#heroSubtitle {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

#heroTitle {
  transition-delay: 0.3s;
}

#heroSubtitle {
  transition-delay: 0.5s;
}

body.loaded #heroTitle,
body.loaded #heroSubtitle {
  opacity: 1;
  transform: translateY(0);
}

p.about-text {
  font-size: 1.25rem;
  /* Matched to Vita/Awards size */
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
  /* Justified for clean block edges as requested */
  white-space: pre-wrap;
}

/* Scrolling containers - disabled for Vita/Awards to show full height */
.about-card-scroll {
  overflow-y: visible;
  padding-right: 0.5rem;
}

#aboutCard2,
#aboutCard3 {
  max-height: 82vh;
  /* Consistent centering and dot clearance */
  height: auto;
}

.awards-list-container {
  display: flex;
  justify-content: flex-end;
  text-align: left;
  margin-top: 2rem;
}

.awards-list-container.text-left {
  justify-content: flex-start;
}

.awards-list {
  list-style: none;
  max-width: 500px;
  height: auto;
  overflow-y: visible;
  overflow-x: hidden;
  padding-right: 1.5rem;
  padding-bottom: 3rem;
}

.awards-list li {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}

.highlight-text {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.awards-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-gold);
}

.awards-list::-webkit-scrollbar {
  width: 6px;
}

.awards-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.awards-list::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 10px;
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;

  /* Entrance */
  opacity: 0;
  transition: opacity 1.5s ease 1s;
  animation: pulse 2s infinite;
}

body.loaded .scroll-indicator {
  opacity: 1;
}

.scroll-indicator .line {
  width: 1px;
  height: 50px;
  background: var(--accent-gold);
  margin-top: 1rem;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-gold);
  }
}


/* Tracks Header Alignment */
.tracks-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2.5rem;
  /* Space between title and filters */
}

.tracks-header h2 {
  margin: 0;
}

/* Tag Filters */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: rgba(249, 228, 164, 0.1);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border-color: var(--accent-gold);
  font-weight: bold;
}

/* Track List */
.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 45vh;
  /* Restored fixed height for compact scrolling */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 1.5rem;
  padding-bottom: 3rem;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 3rem), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 3rem), transparent 100%);
}

/* Custom Scrollbar for Tracks List */
.tracks-list::-webkit-scrollbar {
  width: 6px;
}

.tracks-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.tracks-list::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 10px;
}

.track-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.track-item:hover {
  transform: translateX(10px);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(249, 228, 164, 0.1);
}

.track-item.playing {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(249, 228, 164, 0.3) inset;
  animation: pulse-border 2s infinite ease-in-out;
}

@keyframes pulse-border {

  0%,
  100% {
    border-color: rgba(249, 228, 164, 0.2);
    box-shadow: 0 0 2px rgba(249, 228, 164, 0.05) inset;
  }

  50% {
    border-color: rgba(249, 228, 164, 0.7);
    box-shadow: 0 0 10px rgba(249, 228, 164, 0.15) inset;
  }
}

.track-info-inner h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.track-info-inner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.track-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(249, 228, 164, 0.15);
  color: var(--accent-gold);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.track-play-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-gold);
}


/* Streaming Badges */
.streaming-links {
  margin-top: 3rem;
}

.streaming-links h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.streaming-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.streaming-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}

.streaming-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(249, 228, 164, 0.4);
  transform: translateY(-2px);
}

/* Custom Audio Player */

.audio-player {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  width: 95%;
  max-width: 1000px;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 100;

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.audio-player.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.player-info {
  flex: 0 1 auto;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Ensures perfect vertical centering of the title */
}

.player-info h3 {
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent-gold);
  margin: 0;
  /* Remove default margins to allow flex centering to dominate */
}



.player-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn svg {
  width: 28px;
  height: 28px;
}

.control-btn:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}

.play-btn {
  background: var(--accent-gold);
  color: var(--bg-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.play-btn:hover {
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(249, 228, 164, 0.6);
}

.player-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.time-display {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.progress-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-gold);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(249, 228, 164, 0.8);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-bar-container:hover .progress-bar-fill::after {
  opacity: 1;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0.5;
  min-width: 100px;
}

.volume-btn svg {
  width: 20px;
  height: 20px;
}

.volume-slider {
  width: 100%;
  cursor: pointer;
  accent-color: var(--accent-gold);
  height: 4px;
}

/* Floating Social Bar */
.social-bar {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 50;

  /* Entrance */
  opacity: 0;
  transition: opacity 1.5s ease 1.2s;
}

body.loaded .social-bar {
  opacity: 1;
}

/* Reusable Keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Global Scroll Timeline */
.global-scroll-timeline {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 250px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 40;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.global-scroll-timeline-fill {
  width: 100%;
  background: var(--accent-gold);
  border-radius: 4px;
  height: 0%;
  transition: height 0.1s linear;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn.text-btn span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.social-btn:hover {
  color: var(--bg-dark);
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.1) translateX(-5px);
  box-shadow: 0 0 15px rgba(249, 228, 164, 0.4);
}

/* Portfolio Section */
.section-portfolio {
  scroll-snap-align: start;
  padding: 8rem 5vw;
  background-color: var(--bg-dark);
  /* Keeps it seamlessly dark */
  position: relative;
  z-index: 5;
  /* Sit above the fixed background avatars */
  display: flex;
  justify-content: center;

  /* Cinematic Fade into the adjacent sections */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black calc(100% - 150px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black calc(100% - 150px), transparent 100%);
}

/* Video Highlight Section - Cinematic Transition */
.section-video-highlight {
  background-color: var(--bg-dark);
  display: flex !important;
  align-items: center;
  justify-content: center;

  /* Cinematic Fade into the adjacent sections */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black calc(100% - 150px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black calc(100% - 150px), transparent 100%);
}

.portfolio-container {
  width: 100%;
  /* Removed max-width so it flawlessly expands edge-to-edge on huge monitors to fit as many items as possible! */
}

.portfolio-title {
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /* Fluid responsive grid that scales up to 6 columns */
  gap: 1.5rem;
}

/* Cap the portfolio at 6 columns for wider screens */
@media (min-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.portfolio-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--glass-bg);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

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

.portfolio-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
  /* slight smooth zoom on image */
}

.portfolio-card:hover .portfolio-hover {
  opacity: 1;
  /* fade in black background + text */
}

.portfolio-hover h3 {
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  /* Matched the spacing of the year badge below */
}

.portfolio-hover p {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.portfolio-hover .year-badge {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* Credits Table Section */
.credits-section {
  width: 100%;
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.credits-toggle-btn {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 1rem 3rem;
  font-family: inherit;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.credits-toggle-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(249, 228, 164, 0.4);
}

.credits-wrapper {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, margin-top 0.5s ease;
  opacity: 0;
  margin-top: 0;
}

.credits-wrapper.open {
  max-height: 10000px;
  opacity: 1;
  margin-top: 3rem;
}

/* Category Sub-Accordions */
.category-toggle {
  width: 100%;
  margin-bottom: 1rem;
}

.category-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: none;
  padding: 1.25rem 2rem;
  font-family: inherit;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  transition: all 0.3s ease;
  font-weight: bold;
}

.category-btn:hover {
  background: rgba(249, 228, 164, 0.1);
  color: var(--accent-gold);
}

.category-btn span {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1;
}

.category-wrapper {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.category-wrapper.open {
  max-height: 5000px;
}

.credits-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-primary);
  font-size: 1rem;
  background: var(--glass-bg);
  border-radius: 8px;
  overflow: hidden;
}

.credits-table th {
  text-align: left;
  border-bottom: 2px solid var(--accent-gold);
  padding: 1.5rem;
  color: var(--accent-gold);
  font-weight: bold;
  background: rgba(0, 0, 0, 0.4);
}

.credits-table td {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  line-height: 1.6;
}

.credits-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.credits-table .credit-category {
  color: var(--text-secondary);
  font-weight: bold;
}

.credits-table .credit-title {
  font-weight: 900;
  color: #fff;
}

/* Full Credits Cinematic Overlay */
.credits-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 15, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.credits-overlay.active {
  opacity: 1;
  visibility: visible;
}

.credits-overlay-inner {
  width: 92vw;
  max-width: 960px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(40px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.credits-overlay.active .credits-overlay-inner {
  transform: translateY(0);
}

.credits-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.credits-overlay-header h2 {
  font-size: 2rem;
  color: #fff;
  margin: 0;
}

.credits-overlay-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.credits-overlay-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: rotate(90deg);
}

.credits-overlay-body {
  overflow-y: auto;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.credits-overlay-body::-webkit-scrollbar {
  width: 6px;
}

.credits-overlay-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.master-credits-btn {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
}

.master-credits-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(230, 201, 144, 0.2);
}


.credit-category-btn {
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: left;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.credit-category-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Testimonials Section (Slideshow)
   ========================================================================== */
/* ==========================================================================
   Testimonials Section (Slideshow)
   ========================================================================== */
.testimonials-wrapper {
  width: 100% !important;
  max-width: 1400px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100%;
  padding: 0 5% !important;
  margin: 0 auto;
}

.testimonials-title {
  width: 100%;
  text-align: center;
  margin-bottom: 3rem !important;
  font-size: 2.5rem !important;
}

.testimonials-slider {
  position: relative;
  width: 100% !important;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-transform: translateZ(0);
  /* Safari hardware acceleration fix */
  padding: 3.5rem 6.5rem;
  /* Stretched ratio: less vertical, more horizontal */
  border-radius: 32px;
  position: relative;
  width: 100%;
  max-width: 1400px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-gold);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(249, 228, 164, 0.2);
  background: rgba(25, 28, 38, 0.6);
}

.testimonial-card:hover .quote {
  color: #fff;
}

.testimonial-card:hover::before {
  opacity: 0.2;
  transform: scale(1.1);
  transition: all 0.6s ease;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 1.2rem;
  left: 2rem;
  font-size: 10rem;
  color: var(--accent-gold);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
  z-index: 0;
}

.testimonial-card .quote {
  font-size: 1.5rem;
  /* Slightly reduced to keep horizontal focus */
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
  text-align: center;
}

.testimonial-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center horizontally */
  text-align: center;
  /* Center text */
}

.testimonial-card .attribution {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.testimonial-card .attribution span {
  color: #fff;
  font-weight: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

.testimonial-card .credits {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: -4rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  z-index: 100;
}

.slider-arrow {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.1);
}

.slider-progress {
  display: flex;
  gap: 0.8rem;
}

.test-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.test-dot.active {
  background: var(--accent-gold);
  transform: scale(1.4);
  box-shadow: 0 0 15px rgba(249, 228, 164, 0.5);
}

@media (max-width: 1024px) {
  .testimonial-card {
    padding: 3rem;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .testimonials-slider {
    height: auto;
    min-height: 600px;
  }

  .testimonial-card {
    padding: 2.5rem 2rem;
  }

  .testimonial-card .quote {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

.credit-category-btn.active {
  border-color: var(--accent-gold);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.credit-category-btn .icon {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.credit-category-btn.active .icon {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

.credit-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease;
  opacity: 0;
  padding: 0 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.0);
  border-top: none;
}

.credit-category-content.active {
  padding: 2rem;
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.1);
  max-height: 3000px;
  /* Safe upper bound for expansion */
}

.credit-year-block {
  margin-bottom: 2.5rem;
}

.credit-year-block:last-child {
  margin-bottom: 0;
}

.credit-year {
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem 1.5rem;
}

.credit-item {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s;
}

.credit-item:hover {
  border-left-color: var(--accent-gold);
}

.credit-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.credit-item-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  /* removed grid overrides since it now naturally auto-fits! */
}

@media (max-width: 768px) {
  .credits-table th {
    display: none;
  }

  .credits-table td {
    display: block;
    padding: 0.5rem 1.5rem;
    border: none;
  }

  .credits-table tr {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
  }

  .credits-table .credit-year {
    font-weight: bold;
    color: var(--accent-gold);
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  /* Existing Audio Player Overrides */
  .audio-player {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .player-progress-container {
    width: 100%;
  }

  .volume-container {
    width: 100%;
  }

  /* Disable horizontal scroll track scaling */
  .scroll-track {
    height: auto !important;
  }

  .sticky-container {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }

  .absolute-section {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 4rem 1.5rem !important;
    opacity: 1 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important;
  }

  /* Override fixed UI elements */
  .avatar-layer {
    display: none !important;
  }

  .avatar-1 {
    display: block !important;
    opacity: 0.5 !important;
    position: fixed;
    object-position: center 0% !important;
    /* Move face to the absolute top of viewport */
    transform: scale(1.1);
    /* Slightly enlarge to keep head visible even if cropped */
  }

  h1 {
    font-size: 2.4rem;
    /* Slightly smaller to leave more room */
    line-height: 1.1;
  }

  h2 {
    font-size: 1.8rem;
  }

  p.subtitle {
    font-size: 1.1rem !important;
    margin-top: 0.5rem;
  }

  .scroll-indicator {
    margin-top: 2rem !important;
  }

  section.section-hero {
    display: block !important;
    min-height: 100vh;
    position: relative;
    padding: 0 !important;
  }

  section.section-hero .content-wrapper {
    position: absolute !important;
    bottom: 3rem !important;
    /* Pin precisely to the bottom on mobile */
    left: 1rem !important;
    right: 1rem !important;
    width: calc(100% - 2rem) !important;
    max-width: none !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
  }

  .content-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    display: block;
    /* Standard mobile behavior restored */
    width: 100%;
    position: relative;
  }

  /* Reset layout constraints and flex arrays */
  .content-wrapper.text-right,
  .content-wrapper.text-left {
    align-self: center !important;
    text-align: center !important;
    width: 100%;
    padding: 0;
  }

  .awards-list-container {
    justify-content: center !important;
    text-align: center !important;
  }

  .awards-list-container.text-left {
    justify-content: center !important;
  }

  /* Reset lists format */
  .tracks-list,
  .awards-list {
    max-height: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow-y: visible !important;
    height: auto !important;
  }

  /* Space out split-sections */
  .section-vita,
  .section-awards {
    padding-bottom: 2rem !important;
  }

  /* Shrink social bar */
  .social-bar {
    right: 0.5rem;
    transform: scale(0.8) translateY(-50%);
  }
}

/* Cinematic Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}


/* About Carousel Container */
.about-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  /* Start from top */
  justify-content: flex-end;
  /* Align to right */
  padding-right: 5vw;
  padding-top: 15vh;
  height: 100vh;
  position: relative;
}

/* Individual About Cards */
.about-card {
  position: absolute;
  width: 90%;
  max-width: 600px;
  max-height: 78vh;
  /* Room for dots below */
  height: auto;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: transform 0.4s ease;
  /* ONLY transform transitions; opacity MUST be instant for JS crossfade */
  background: rgba(20, 22, 30, 0.4);
  /* Refined glass opacity */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  right: 0;
  top: 2vh;
}

.about-card h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  flex-shrink: 0;
  text-align: center;
  /* Title centering */
}

.about-card-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) rgba(255, 255, 255, 0.1);
  padding-right: 0.5rem;
}

.about-card-scroll::-webkit-scrollbar {
  width: 4px;
}

.about-card-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.about-card-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 2px;
}

.awards-list-container,
.awards-list {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
  width: 100%;
  height: auto !important;
  overflow: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.awards-list li {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: block;
  position: relative;
  width: 100%;
}

@media (max-width: 1100px) {
  .bio-grid {
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
  }

  .bio-block {
    text-align: center !important;
    align-items: center !important;
    max-width: 100%;
  }
}


/* Multi-column grid adjustments for responsiveness */
@media (max-width: 1250px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    overflow-y: auto;
    max-height: 80vh;
    padding-right: 1.5rem;
    /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(255, 255, 255, 0.1);
  }

  /* Remove offsets on stack */
  .bio-block:first-child .awards-list-container,
  .bio-block:last-child .awards-list-container {
    padding: 0;
  }
}

/* Credits Page Styles */
.credit-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: inline-block;
}

.credit-link:hover {
  opacity: 0.7;
  transform: translateY(-2px);
  /* Simple subtle float animation */
}

/* Refined Cookie Banner Fluid Styling (Rest of the file follows...) */
.cookie-banner-overlay {
  position: fixed;
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: 95vw;
  z-index: 2147483647;
  transition: bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.cookie-banner-overlay.show {
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.cookie-content {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cookie-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Allow wrapping on smaller screens to prevent overflow */
@media (max-width: 1200px) {
  .cookie-banner-overlay {
    width: 90vw;
  }

  .cookie-content p {
    white-space: normal;
  }
}

.cookie-content a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  width: 100%;
  flex-wrap: wrap;
  /* Allow wrapping on small screens */
}

.cookie-btn {
  background: var(--bg-dark);
  border: 1.5px solid #fff;
  color: #fff;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
}

.cookie-btn:hover {
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .cookie-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }

  .cookie-content {
    padding: 2rem 1.5rem;
  }

  /* ==========================================================================
   Global Responsiveness & Mobile Optimization
   ========================================================================== */

  /* Large Tablets & Small Desktops (Up to 1024px) */
  @media (max-width: 1024px) {
    h1 {
      font-size: 4rem !important;
    }

    h2 {
      font-size: 2.5rem !important;
    }

    .section-hero,
    .absolute-section {
      padding: 3rem 5vw !important;
    }
  }

  /* Tablets (Up to 768px) */
  @media (max-width: 768px) {
    .top-nav {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    h1 {
      font-size: 3.2rem !important;
    }

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

    /* Disable custom scroll tracking and allow natural flow */
    .sticky-container {
      height: auto !important;
      position: relative !important;
      overflow: visible !important;
      display: flex !important;
      flex-direction: column !important;
    }

    #sectionAbout {
      order: 3;
    }

    #sectionTracks {
      order: 1;
    }

    #sectionVideoReel {
      order: 2;
    }

    section.section-hero {
      display: block !important;
      min-height: 100vh !important;
      position: relative !important;
      padding: 0 !important;
    }

    /* Force visibility of hero text on mobile and pin to bottom */
    section.section-hero .content-wrapper {
      position: absolute !important;
      bottom: 5vh !important;
      /* Pinned to the very bottom area circled by user */
      left: 1rem !important;
      right: 1rem !important;
      width: calc(100% - 2rem) !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      opacity: 1 !important;
      visibility: visible !important;
    }

    .avatar-container {
      opacity: 1 !important;
      visibility: visible !important;
      display: block !important;
    }

    .section-portfolio {
      padding-top: 4rem !important;
    }

    .scroll-indicator {
      margin-top: 5rem !important;
    }

    .cookie-banner-overlay {
      top: 50% !important;
      bottom: auto !important;
      transform: translate(-50%, -50%) scale(0.9) !important;
      opacity: 0 !important;
      pointer-events: none !important;
      visibility: hidden !important;
      transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s !important;
      width: 90vw !important;
    }

    .cookie-banner-overlay.show {
      opacity: 1 !important;
      transform: translate(-50%, -50%) scale(1) !important;
      pointer-events: auto !important;
      visibility: visible !important;
      bottom: auto !important;
    }

    .scroll-track {
      height: auto !important;
      position: relative !important;
    }

    .absolute-section {
      position: relative !important;
      height: auto !important;
      min-height: auto !important;
      opacity: 1 !important;
      transform: none !important;
      pointer-events: auto !important;
      padding: 4rem 5vw !important;
      display: block !important;
    }

    .content-wrapper {
      max-width: 100% !important;
      padding: 2rem 0 !important;
    }

    /* About Section - Vertical Stacking */
    .about-carousel-container {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 2rem !important;
      width: 100% !important;
      height: auto !important;
      padding: 0 !important;
    }

    .about-card {
      position: relative !important;
      width: 100% !important;
      max-width: 600px !important;
      margin: 0 auto !important;
      right: auto !important;
      top: auto !important;
      opacity: 1 !important;
      transform: none !important;
      pointer-events: auto !important;
      max-height: none !important;
      height: auto !important;
      margin-bottom: 2rem !important;
    }

    p.about-text {
      text-align: center !important;
    }

    .awards-list-container {
      justify-content: center !important;
      text-align: center !important;
    }

    .awards-list-container.text-left {
      justify-content: center !important;
    }

    .awards-list {
      padding-right: 0 !important;
      margin: 0 auto !important;
      text-align: center !important;
    }

    .awards-list li {
      padding-left: 0 !important;
      text-align: center !important;
    }

    .awards-list li::before {
      content: '▹\00A0' !important;
      position: static !important;
    }

    .about-card-scroll {
      max-height: none !important;
      overflow: visible !important;
    }

    /* Video Reel - Vertical Stacking */
    .video-reel-container {
      height: auto !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 2rem !important;
    }

    .video-item {
      position: relative !important;
      width: 100% !important;
      height: auto !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      transform: none !important;
      margin-bottom: 2rem !important;
    }

    #aboutDotsContainer,
    #reelDotsContainer,
    #sectionTestimonials,
    .global-scroll-timeline,
    .snap-point {
      display: none !important;
    }

    /* Social Bar - Keep it fixed but smaller */
    .social-bar {
      right: 1rem !important;
    }

    /* Avatar Layers - Only Show First on Mobile to save performance/energy */
    .avatar-layer {
      display: none !important;
    }

    .avatar-1 {
      display: block !important;
      opacity: 0.6 !important;
      position: fixed !important;
      left: 50% !important;
      top: 40% !important;
      /* Move the whole head container higher */
      transform: translate(-50%, -50%) scale(1.1) !important;
      width: 100vw !important;
      height: 100vh !important;
      object-fit: cover !important;
      -webkit-mask-image: none !important;
      mask-image: none !important;
      object-position: center 0% !important;
      /* Move face to top of image frame */
      z-index: -1 !important;
      visibility: visible !important;
    }
  }

  /* Mobile Phones (Up to 480px) */
  @media (max-width: 480px) {
    h1 {
      font-size: 2.5rem !important;
    }

    p.subtitle {
      font-size: 1.1rem !important;
    }

    .portfolio-grid {
      grid-template-columns: 1fr !important;
    }

    .video-reel-container {
      width: 100% !important;
    }

    .video-item {
      padding: 1.5rem !important;
    }

    .video-info h3 {
      font-size: 1.3rem !important;
    }

    .audio-player {
      width: 95% !important;
      flex-direction: column !important;
      padding: 1.2rem !important;
      gap: 1rem !important;
      bottom: 0.5rem !important;
    }

    .player-info {
      max-width: 100% !important;
      text-align: center !important;
    }

    .player-controls {
      width: 100% !important;
      justify-content: center !important;
    }

    .player-progress-container {
      width: 100% !important;
    }

    .volume-container {
      display: none !important;
    }

    .site-footer {
      flex-direction: column !important;
      height: auto !important;
      padding: 3rem 1rem !important;
      gap: 1rem !important;
    }
  }