/* ===== ENSURE CONTENT VISIBILITY ===== */
.hero-content,
.logo-container,
.main-heading,
.heading-word,
.subtitle,
.podcast-preview,
.waitlist-form-container,
.stat-item,
.header__marq {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== CUSTOM MODERN SCROLLBAR ===== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 20, 112, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--bright-purple) 50%,
    var(--accent-orange) 100%
  );
  border-radius: 10px;
  border: 2px solid rgba(10, 10, 10, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(75, 20, 112, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--bright-purple) 0%,
    var(--accent-orange) 50%,
    var(--primary-purple) 100%
  );
  box-shadow: 0 6px 20px rgba(129, 39, 191, 0.4);
  transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    135deg,
    var(--accent-orange) 0%,
    var(--secondary-brown) 50%,
    var(--primary-purple) 100%
  );
  box-shadow: 0 2px 10px rgba(166, 101, 47, 0.5);
}

::-webkit-scrollbar-corner {
  background: rgba(10, 10, 10, 0.3);
  border-radius: 10px;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-purple) rgba(10, 10, 10, 0.3);
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(75, 20, 112, 0.1);
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--bright-purple) 0%,
    var(--accent-orange) 100%
  );
  border-radius: 8px;
  border: 1px solid rgba(10, 10, 10, 0.1);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--accent-orange) 0%,
    var(--bright-purple) 100%
  );
}

/* Smooth scrolling enhancement */
html {
  scroll-behavior: smooth;
}

/* Custom scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(10, 10, 10, 0.2);
  z-index: 9999;
  backdrop-filter: blur(10px);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-purple) 0%,
    var(--bright-purple) 50%,
    var(--accent-orange) 100%
  );
  width: var(--scroll-progress, 0%);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(129, 39, 191, 0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Scrollbar animations for different sections */
.features::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--secondary-brown) 0%,
    var(--accent-orange) 100%
  );
}

.footer::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--dark-brown) 0%,
    var(--primary-purple) 100%
  );
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--bright-purple) 50%,
    var(--accent-orange) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(75, 20, 112, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.scroll-to-top:hover {
  background: linear-gradient(
    135deg,
    var(--bright-purple) 0%,
    var(--accent-orange) 50%,
    var(--primary-purple) 100%
  );
  box-shadow: 0 12px 35px rgba(129, 39, 191, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 4px 15px rgba(75, 20, 112, 0.5);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  color: white;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Enhanced scroll indicator with pulse effect */
.scroll-indicator::before {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(129, 39, 191, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(129, 39, 191, 0.8),
      0 0 30px rgba(166, 101, 47, 0.4);
  }
}

/* Mobile responsive scrollbar */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }

  .scroll-indicator {
    height: 3px;
  }
}

@media (max-width: 480px) {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }

  .scroll-indicator {
    height: 2px;
  }
}

/* ===== MODERN WAITLIST PAGE STYLES WITH NEW COLOR THEME ===== */

:root {
  /* Color Theme from Image */
  --primary-purple: #4b1470;
  --secondary-brown: #7d4d36;
  --accent-orange: #a6652f;
  --bright-purple: #8127bf;
  --dark-brown: #43352d;

  /* Functional Colors */
  --primary-color: #ffffff;
  --secondary-color: #0a0a0a;
  --text-muted: #a0a0a0;

  /* Updated Gradients with New Color Theme */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--bright-purple) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary-brown) 0%,
    var(--accent-orange) 100%
  );
  --gradient-podcast: linear-gradient(
    135deg,
    var(--bright-purple) 0%,
    var(--accent-orange) 50%,
    var(--primary-purple) 100%
  );
  --gradient-text: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-purple) 100%
  );
  --gradient-background: linear-gradient(
    135deg,
    var(--dark-brown) 0%,
    var(--primary-purple) 50%,
    var(--secondary-color) 100%
  );

  /* Shadows and Effects */
  --shadow-soft: 0 10px 40px rgba(75, 20, 112, 0.15);
  --shadow-strong: 0 20px 60px rgba(75, 20, 112, 0.25);
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Syne", sans-serif;
  background: var(--gradient-background);
  color: var(--primary-color);
  overflow-x: hidden;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--gradient-background);
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 25s infinite linear;
  filter: blur(1px);
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  background: var(--gradient-primary);
}

.shape-2 {
  width: 180px;
  height: 180px;
  top: 55%;
  right: 12%;
  animation-delay: -8s;
  background: var(--gradient-secondary);
}

.shape-3 {
  width: 90px;
  height: 90px;
  top: 75%;
  left: 15%;
  animation-delay: -15s;
  background: var(--gradient-primary);
}

.shape-4 {
  width: 150px;
  height: 150px;
  top: 25%;
  right: 25%;
  animation-delay: -20s;
  background: var(--gradient-secondary);
}

.shape-5 {
  width: 200px;
  height: 200px;
  top: 5%;
  right: 3%;
  animation-delay: -12s;
  background: var(--gradient-primary);
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.08;
  }
  90% {
    opacity: 0.08;
  }
  100% {
    transform: translateY(-200px) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* ===== AUDIO WAVES BACKGROUND ===== */
.audio-waves {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  opacity: 0.12;
}

.wave {
  width: 4px;
  background: var(--gradient-podcast);
  border-radius: 3px;
  animation: audioWave 2s ease-in-out infinite;
  filter: blur(0.5px);
}

.wave-1 {
  height: 25px;
  animation-delay: 0s;
}
.wave-2 {
  height: 40px;
  animation-delay: 0.15s;
}
.wave-3 {
  height: 60px;
  animation-delay: 0.3s;
}
.wave-4 {
  height: 40px;
  animation-delay: 0.45s;
}
.wave-5 {
  height: 25px;
  animation-delay: 0.6s;
}

@keyframes audioWave {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.12;
  }
  50% {
    transform: scaleY(0.2);
    opacity: 0.25;
  }
}

/* ===== MAIN WRAPPER ===== */
.wrapp {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
}

/* ===== LOGO SECTION ===== */
.logo-container {
  position: fixed;
  top: clamp(1rem, 3vw, 2.5rem);
  left: clamp(1rem, 3vw, 2.5rem);
  z-index: 1000;
  transition: var(--transition);
  margin-bottom: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  transition: var(--transition);
}

.logo-icon {
  width: clamp(40px, 5vw, 60px);
  height: clamp(40px, 5vw, 60px);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  transition: color 0.3s ease;
  text-decoration: none !important;
}

.logo-text:hover {
  color: var(--bright-purple) !important;
  text-shadow: 0 2px 15px rgba(75, 20, 112, 0.4);
}

/* Ensure logo container doesn't affect text color */
.logo-container:hover .logo-text {
  color: var(--bright-purple) !important;
}

.logo:hover .logo-text {
  color: var(--bright-purple) !important;
}

/* Reset any unwanted link styles if logo is wrapped in a link */
.logo-container a,
.logo a {
  text-decoration: none !important;
  color: inherit !important;
}

.logo-container a:hover,
.logo a:hover {
  text-decoration: none !important;
  color: inherit !important;
}

/* ===== HEADER SECTION ===== */
.header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(6rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 4vw, 4rem);
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  animation: fadeInUp 1s ease-out;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.main-heading {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 800;
  line-height: clamp(1.1, 1.2, 1.3);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: clamp(-0.03em, -0.02em, -0.01em);
  word-spacing: clamp(0.1em, 0.2em, 0.3em);
}

.heading-word {
  display: inline-block;
  margin: clamp(0.05em, 0.1em, 0.15em) clamp(0.1em, 0.15em, 0.2em);
  opacity: 1;
  visibility: visible;
  color: var(--primary-color);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  line-height: inherit;
}

/* FIXED GRADIENT TEXT - Enhanced visibility */
.gradient-text {
  background: var(--gradient-text) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;

  /* Strong fallback for better visibility */
  color: var(--bright-purple) !important;

  /* Enhanced effects */
  position: relative;
  display: inline-block !important;
  filter: drop-shadow(0 0 25px rgba(129, 39, 191, 0.4));

  /* Force maximum visibility */
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10;
  line-height: inherit;
}

/* Enhanced fallback method */
.gradient-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 1;
  opacity: 1;
  line-height: inherit;
}

/* Browser-specific enhanced fixes */
@supports (-webkit-background-clip: text) {
  .gradient-text {
    background: var(--gradient-text) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
}

/* Firefox and other browsers fallback */
@supports not (-webkit-background-clip: text) {
  .gradient-text {
    background: none !important;
    color: var(--bright-purple) !important;
    text-shadow: 0 0 20px rgba(129, 39, 191, 0.6),
      0 0 40px rgba(166, 101, 47, 0.4) !important;
  }
}

.highlight {
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: clamp(-6px, -1vw, -10px);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: clamp(3px, 0.5vw, 5px);
  background: var(--gradient-text);
  border-radius: 2px;
  opacity: 0.7;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.05);
  }
}

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

.subtitle-container {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: clamp(1.4, 1.5, 1.6);
  opacity: 1;
  visibility: visible;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ===== PODCAST PREVIEW WITH PLAY BUTTON ===== */
.podcast-preview {
  margin-bottom: clamp(3rem, 6vw, 4rem);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.podcast-player {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(129, 39, 191, 0.2);
  border-radius: var(--border-radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 450px;
  margin: 0 auto;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.podcast-player:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(129, 39, 191, 0.4);
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.podcast-player::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(129, 39, 191, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.podcast-player:hover::before {
  left: 100%;
}

.player-visual {
  flex-shrink: 0;
}

.equalizer {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 45px;
}

.equalizer .bar {
  width: 5px;
  background: var(--gradient-podcast);
  border-radius: 3px;
  animation: equalizer 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(129, 39, 191, 0.3);
}

.equalizer .bar:nth-child(1) {
  animation-delay: 0s;
}
.equalizer .bar:nth-child(2) {
  animation-delay: 0.15s;
}
.equalizer .bar:nth-child(3) {
  animation-delay: 0.3s;
}
.equalizer .bar:nth-child(4) {
  animation-delay: 0.45s;
}
.equalizer .bar:nth-child(5) {
  animation-delay: 0.6s;
}
.equalizer .bar:nth-child(6) {
  animation-delay: 0.75s;
}
.equalizer .bar:nth-child(7) {
  animation-delay: 0.9s;
}
.equalizer .bar:nth-child(8) {
  animation-delay: 1.05s;
}

@keyframes equalizer {
  0%,
  100% {
    height: 12px;
  }
  25% {
    height: 35px;
  }
  50% {
    height: 25px;
  }
  75% {
    height: 42px;
  }
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.live-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(166, 101, 47, 0.5);
}

.episode-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: var(--gradient-primary);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(129, 39, 191, 0.3);
  flex-shrink: 0;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(129, 39, 191, 0.5);
}

.play-button svg {
  width: clamp(16px, 4vw, 20px);
  height: clamp(16px, 4vw, 20px);
  margin-left: 2px; /* Optical alignment for play icon */
}

/* ===== WAITLIST FORM ===== */
.waitlist-form-container {
  margin-bottom: clamp(3rem, 6vw, 4rem);
  animation: fadeInUp 1s ease-out 0.9s both;
}

.waitlist-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  justify-content: center;
}

#name,
#email {
  flex: 1;
  min-width: 250px;
  padding: clamp(0.9rem, 2.5vw, 1.2rem) clamp(1rem, 3vw, 1.5rem);
  border: 2px solid rgba(129, 39, 191, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-family: inherit;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

#name:focus,
#email:focus {
  outline: none;
  border-color: var(--bright-purple);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(129, 39, 191, 0.1), var(--shadow-soft);
  transform: translateY(-2px);
}

#name::placeholder,
#email::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.submit-btn {
  position: relative;
  padding: clamp(0.9rem, 2.5vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
  border: none;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: var(--primary-color);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-soft);
  min-width: 180px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.btn-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  transition: left 0.4s ease;
  z-index: 0;
}

.submit-btn:hover .btn-bg {
  left: 0;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  pointer-events: none;
  z-index: 1;
}

.submit-btn:active .btn-ripple {
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-text {
  position: relative;
  z-index: 2;
}

.form-features {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(129, 39, 191, 0.15);
  border-radius: 25px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 39, 191, 0.3);
  transform: translateY(-2px);
  color: var(--primary-color);
}

.feature-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px rgba(129, 39, 191, 0.3));
}

/* ===== STATS SECTION ===== */
.stats-container {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 6vw, 4rem);
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.stat-item {
  text-align: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(129, 39, 191, 0.15);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  min-width: 140px;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 39, 191, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.stat-number {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== ANIMATED MARQUEE ===== */
.header__marq {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(75, 20, 112, 0.1);
  border-top: 1px solid rgba(129, 39, 191, 0.2);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.header__marq-wrapp {
  display: flex;
  animation: marquee 30s linear infinite;
  padding: clamp(0.6rem, 2vw, 1rem);
  white-space: nowrap;
}

.header__marq-txt {
  display: flex;
  align-items: center;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-right: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
}

.header__marq-txt:hover {
  color: var(--primary-color);
}

.header__marq-star {
  margin: 0 clamp(0.8rem, 2vw, 1.2rem);
  display: flex;
  align-items: center;
}

.header__marq-star img {
  width: clamp(16px, 3vw, 20px);
  height: clamp(16px, 3vw, 20px);
  filter: drop-shadow(0 0 8px rgba(129, 39, 191, 0.4));
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 2rem);
  background: rgba(67, 53, 45, 0.1);
  backdrop-filter: blur(5px);
}

.content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 6vw, 4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

.stroke {
  -webkit-text-stroke: 2px var(--bright-purple);
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(129, 39, 191, 0.3));
}

.section-title__square {
  display: inline-block;
  width: clamp(8px, 2vw, 12px);
  height: clamp(8px, 2vw, 12px);
  background: var(--gradient-text);
  margin-left: clamp(0.5rem, 2vw, 1rem);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.feature-card {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(129, 39, 191, 0.15);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 39, 191, 0.3);
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(129, 39, 191, 0.1),
    transparent,
    rgba(166, 101, 47, 0.1),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
  animation: rotate 8s linear infinite;
  z-index: 0;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.feature-icon-large {
  font-size: clamp(3rem, 6vw, 4rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  filter: drop-shadow(0 0 15px rgba(129, 39, 191, 0.4));
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: clamp(1rem, 2vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
  padding: clamp(3rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: rgba(67, 53, 45, 0.2);
  border-top: 1px solid rgba(129, 39, 191, 0.2);
  backdrop-filter: blur(10px);
}

.footer__div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.3rem, 1vw, 0.5rem);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__div span {
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  animation: bounce 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

.footer__div span:hover {
  color: var(--primary-color);
  transform: scale(1.2) translateY(-5px);
  text-shadow: 0 0 20px rgba(129, 39, 191, 0.6);
}

.footer__div span:nth-child(1) {
  --i: 1;
}
.footer__div span:nth-child(2) {
  --i: 2;
}
.footer__div span:nth-child(3) {
  --i: 3;
}
.footer__div span:nth-child(4) {
  --i: 4;
}
.footer__div span:nth-child(5) {
  --i: 5;
}
.footer__div span:nth-child(6) {
  --i: 6;
}
.footer__div span:nth-child(7) {
  --i: 7;
}
.footer__div span:nth-child(8) {
  --i: 8;
}
.footer__div span:nth-child(9) {
  --i: 9;
}
.footer__div span:nth-child(10) {
  --i: 10;
}

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

/* ===== ENHANCED RESPONSIVE DESIGN ===== */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .form-group {
    gap: clamp(0.8rem, 2vw, 1rem);
  }

  .header {
    padding: clamp(5rem, 7vw, 7rem) clamp(1rem, 3vw, 2rem)
      clamp(2rem, 3vw, 3rem);
  }

  .hero-content {
    padding-top: clamp(1.5rem, 4vw, 3rem);
  }

  .main-heading {
    font-size: clamp(2rem, 6.5vw, 4rem);
    line-height: clamp(1.1, 1.15, 1.25);
  }
}

/* Tablets */
@media (max-width: 768px) {
  .logo-container {
    top: clamp(0.8rem, 2vw, 1.5rem);
    left: clamp(0.8rem, 2vw, 1.5rem);
    margin-bottom: 0;
  }

  .logo {
    gap: clamp(0.4rem, 1.5vw, 0.8rem);
  }

  .logo-icon {
    width: clamp(32px, 4.5vw, 45px);
    height: clamp(32px, 4.5vw, 45px);
  }

  .logo-text {
    font-size: clamp(0.9rem, 2.2vw, 1.3rem);
    line-height: 1.2;
  }

  .header {
    padding: clamp(4rem, 6vw, 6rem) clamp(1rem, 3vw, 2rem)
      clamp(1.5rem, 3vw, 2.5rem);
    min-height: 100vh;
  }

  .hero-content {
    padding-top: clamp(1.5rem, 4vw, 3rem);
  }

  .main-heading {
    font-size: clamp(1.8rem, 6vw, 3.4rem);
    line-height: clamp(1.1, 1.15, 1.2);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    word-spacing: clamp(0.05em, 0.1em, 0.2em);
  }

  .heading-word {
    margin: clamp(0.03em, 0.08em, 0.12em) clamp(0.08em, 0.12em, 0.18em);
  }

  .subtitle {
    font-size: clamp(0.95rem, 2.8vw, 1.25rem);
    line-height: clamp(1.4, 1.45, 1.55);
    padding: 0 clamp(1rem, 2.5vw, 2rem);
  }

  .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.8rem, 2vw, 1.2rem);
  }

  #name,
  #email {
    min-width: auto;
    width: 100%;
    padding: clamp(1rem, 3vw, 1.3rem) clamp(1.2rem, 3vw, 1.6rem);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  }

  .submit-btn {
    min-width: auto;
    width: 100%;
    padding: clamp(1rem, 3vw, 1.3rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  }

  .form-features {
    gap: clamp(0.8rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-item {
    flex: 1 1 auto;
    min-width: 140px;
    padding: clamp(0.6rem, 2vw, 1rem) clamp(1rem, 3vw, 1.4rem);
  }

  .stats-container {
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
    justify-content: center;
  }

  .features {
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .feature-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
  }

  .header__marq-wrapp {
    padding: clamp(0.6rem, 2vw, 1rem);
  }

  .audio-waves {
    bottom: 12%;
    opacity: 0.08;
  }

  .alert-container {
    top: clamp(0.8rem, 2vw, 1.5rem);
    right: clamp(0.8rem, 2vw, 1.5rem);
    left: clamp(0.8rem, 2vw, 1.5rem);
    max-width: none;
  }

  .alert {
    padding: clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.85rem, 2vw, 1rem);
  }

  .modal-content {
    width: clamp(280px, 90vw, 600px);
    max-height: 90vh;
    margin: clamp(1rem, 3vw, 2rem);
  }

  .modal-header {
    padding: clamp(1rem, 3vw, 1.5rem);
    min-height: clamp(65px, 10vw, 85px);
    flex-direction: row;
    align-items: flex-start;
  }

  .modal-title {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    padding-right: clamp(3rem, 8vw, 4rem);
    padding-top: clamp(0.2rem, 1vw, 0.4rem);
    line-height: 1.2;
  }

  .modal-close {
    position: absolute;
    top: clamp(0.8rem, 2.5vw, 1.2rem);
    right: clamp(0.8rem, 2.5vw, 1.2rem);
    width: clamp(36px, 7vw, 44px);
    height: clamp(36px, 7vw, 44px);
    padding: clamp(0.5rem, 1.8vw, 0.7rem);
  }

  .modal-close svg {
    width: clamp(18px, 4.5vw, 22px);
    height: clamp(18px, 4.5vw, 22px);
  }

  .modal-body {
    padding: clamp(0.8rem, 2.5vw, 1.5rem);
  }

  .video-container {
    padding-bottom: 56.25%;
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
  }

  .playlist-link {
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1rem, 2.5vw, 1.3rem);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .podcast-player {
    flex-direction: column;
    text-align: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    padding: clamp(1.2rem, 3vw, 2rem);
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .logo-container {
    top: clamp(0.6rem, 1.5vw, 1rem);
    left: clamp(0.6rem, 1.5vw, 1rem);
    margin-bottom: 0;
  }

  .logo-icon {
    width: clamp(28px, 4vw, 38px);
    height: clamp(28px, 4vw, 38px);
  }

  .logo-text {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    line-height: 1.1;
  }

  .header {
    padding: clamp(3.5rem, 5vw, 5rem) clamp(0.8rem, 2.5vw, 1.5rem)
      clamp(1.5rem, 2.5vw, 2rem);
  }

  .hero-content {
    padding-top: clamp(1rem, 3vw, 2rem);
  }

  .main-heading {
    font-size: clamp(1.8rem, 5.5vw, 2.8rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
    line-height: clamp(1.05, 1.1, 1.15);
    word-spacing: clamp(0.03em, 0.08em, 0.15em);
  }

  .heading-word {
    margin: clamp(0.02em, 0.05em, 0.08em) clamp(0.05em, 0.08em, 0.12em);
  }

  .subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: clamp(1.35, 1.4, 1.5);
    padding: 0 clamp(0.8rem, 2vw, 1.5rem);
  }

  .stat-number {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .feature-card {
    padding: clamp(1.2rem, 4vw, 2rem);
  }

  .footer {
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  }

  .audio-waves {
    bottom: 12%;
    opacity: 0.08;
  }

  .alert-container {
    top: clamp(0.5rem, 2vw, 1rem);
    right: clamp(0.5rem, 2vw, 1rem);
    left: clamp(0.5rem, 2vw, 1rem);
  }

  .alert {
    padding: clamp(0.8rem, 3vw, 1.2rem);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .alert-close {
    top: clamp(0.3rem, 1vw, 0.5rem);
    right: clamp(0.3rem, 1vw, 0.5rem);
    padding: clamp(0.3rem, 1vw, 0.5rem);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }

  .feature-item {
    padding: clamp(0.6rem, 2vw, 0.9rem) clamp(0.8rem, 3vw, 1.2rem);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .header__marq-txt {
    font-size: clamp(0.8rem, 2vw, 1rem);
    margin-right: clamp(2rem, 4vw, 3rem);
  }

  .modal {
    padding: clamp(0.5rem, 2vw, 1rem);
  }

  .modal-content {
    width: 100%;
    max-width: none;
    max-height: 95vh;
    margin: 0;
    border-radius: 12px;
  }

  .modal-header {
    padding: clamp(1rem, 3vw, 1.3rem) clamp(0.8rem, 2.5vw, 1.2rem);
    min-height: clamp(70px, 12vw, 90px);
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .modal-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
    padding-right: clamp(3.5rem, 10vw, 5rem);
    padding-top: clamp(0.3rem, 1.5vw, 0.6rem);
    line-height: 1.1;
    word-wrap: break-word;
    max-width: calc(100% - clamp(3.5rem, 10vw, 5rem));
  }

  .modal-close {
    position: absolute;
    top: clamp(0.6rem, 2vw, 1rem);
    right: clamp(0.6rem, 2vw, 1rem);
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    padding: clamp(0.6rem, 2vw, 0.8rem);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
  }

  .modal-close:hover {
    background: rgba(0, 0, 0, 0.5);
  }

  .modal-close svg {
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
    stroke-width: 2.5;
  }

  .modal-body {
    padding: clamp(0.8rem, 2vw, 1rem);
  }

  .video-container {
    padding-bottom: 56.25%;
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    border-radius: 8px;
  }

  .playlist-description {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    padding: 0;
  }

  .playlist-link {
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(0.8rem, 2vw, 1rem);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    gap: 0.3rem;
  }

  .podcast-player {
    padding: clamp(1rem, 3vw, 1.5rem);
    gap: clamp(0.8rem, 2vw, 1rem);
  }

  .equalizer {
    height: clamp(25px, 6vw, 35px);
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .logo-container {
    top: 0.5rem;
    left: 0.5rem;
    margin-bottom: 0;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .logo-text {
    font-size: 0.75rem;
    line-height: 1.1;
  }

  .header {
    padding: 3rem 0.8rem 1.5rem;
  }

  .hero-content {
    padding-top: 1rem;
  }

  .main-heading {
    font-size: clamp(1.4rem, 5vw, 2.8rem);
    line-height: 1.5;
    word-spacing: 0.05em;
  }

  .heading-word {
    margin: 0.02em 0.05em;
  }

  .subtitle {
    font-size: 0.85rem;
    line-height: 1.35;
    padding: 0 0.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.char {
  display: inline-block;
  will-change: transform;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== SELECTION STYLES ===== */
::selection {
  background: var(--bright-purple);
  color: var(--primary-color);
}

/* ===== FOCUS STYLES ===== */
*:focus {
  outline: 2px solid var(--bright-purple);
  outline-offset: 2px;
}

/* ===== ALERT CONTAINER ===== */
.alert-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

.alert {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(129, 39, 191, 0.3);
  color: var(--primary-color);
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-strong);
}

.alert.show {
  transform: translateX(0);
  opacity: 1;
}

.alert.success {
  border-color: rgba(166, 101, 47, 0.4);
  background: rgba(166, 101, 47, 0.1);
}

.alert.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

.alert-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.alert::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(129, 39, 191, 0.2),
    transparent
  );
  transition: left 0.8s;
}

.alert.show::before {
  left: 100%;
}

/* ===== YOUTUBE PLAYLIST MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--gradient-background);
  border: 1px solid rgba(129, 39, 191, 0.3);
  border-radius: var(--border-radius);
  width: clamp(320px, 90vw, 900px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(20px);
  transform: scale(0.8) translateY(50px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(129, 39, 191, 0.2);
  position: relative;
  min-height: clamp(60px, 8vw, 80px); /* Ensure minimum height */
}

.modal-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: clamp(2.5rem, 6vw, 3rem); /* Add padding to prevent overlap */
  line-height: 1.3;
  flex: 1;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: clamp(0.4rem, 1.5vw, 0.6rem);
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: clamp(0.8rem, 2vw, 1rem);
  right: clamp(0.8rem, 2vw, 1rem);
  width: clamp(32px, 6vw, 40px);
  height: clamp(32px, 6vw, 40px);
  flex-shrink: 0;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  transform: scale(1.1);
}

.modal-close svg {
  width: clamp(16px, 4vw, 20px);
  height: clamp(16px, 4vw, 20px);
}

.modal-body {
  padding: clamp(1rem, 3vw, 2rem);
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.playlist-info {
  text-align: center;
}

.playlist-description {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.playlist-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1.2rem, 3vw, 1.5rem);
  background: var(--gradient-secondary);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.playlist-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  background: var(--gradient-primary);
}

.playlist-link svg {
  width: clamp(16px, 4vw, 20px);
  height: clamp(16px, 4vw, 20px);
  flex-shrink: 0;
}

/* ===== MODAL RESPONSIVE DESIGN ===== */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
  .modal-content {
    width: clamp(300px, 85vw, 800px);
    max-height: 85vh;
  }

  .video-container {
    padding-bottom: 56.25%;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .modal-content {
    width: clamp(280px, 90vw, 600px);
    max-height: 90vh;
    margin: clamp(1rem, 3vw, 2rem);
  }

  .modal-header {
    padding: clamp(1rem, 3vw, 1.5rem);
    min-height: clamp(65px, 10vw, 85px);
    flex-direction: row;
    align-items: flex-start;
  }

  .modal-title {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    padding-right: clamp(3rem, 8vw, 4rem);
    padding-top: clamp(0.2rem, 1vw, 0.4rem);
    line-height: 1.2;
  }

  .modal-close {
    position: absolute;
    top: clamp(0.8rem, 2.5vw, 1.2rem);
    right: clamp(0.8rem, 2.5vw, 1.2rem);
    width: clamp(36px, 7vw, 44px);
    height: clamp(36px, 7vw, 44px);
    padding: clamp(0.5rem, 1.8vw, 0.7rem);
  }

  .modal-close svg {
    width: clamp(18px, 4.5vw, 22px);
    height: clamp(18px, 4.5vw, 22px);
  }

  .modal-body {
    padding: clamp(0.8rem, 2.5vw, 1.5rem);
  }

  .video-container {
    padding-bottom: 56.25%;
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
  }

  .playlist-link {
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1rem, 2.5vw, 1.3rem);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .podcast-player {
    flex-direction: column;
    text-align: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    padding: clamp(1.2rem, 3vw, 2rem);
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .modal {
    padding: clamp(0.5rem, 2vw, 1rem);
  }

  .modal-content {
    width: 100%;
    max-width: none;
    max-height: 95vh;
    margin: 0;
    border-radius: 12px;
  }

  .modal-header {
    padding: clamp(1rem, 3vw, 1.3rem) clamp(0.8rem, 2.5vw, 1.2rem);
    min-height: clamp(70px, 12vw, 90px);
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .modal-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
    padding-right: clamp(3.5rem, 10vw, 5rem);
    padding-top: clamp(0.3rem, 1.5vw, 0.6rem);
    line-height: 1.1;
    word-wrap: break-word;
    max-width: calc(100% - clamp(3.5rem, 10vw, 5rem));
  }

  .modal-close {
    position: absolute;
    top: clamp(0.6rem, 2vw, 1rem);
    right: clamp(0.6rem, 2vw, 1rem);
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    padding: clamp(0.6rem, 2vw, 0.8rem);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
  }

  .modal-close:hover {
    background: rgba(0, 0, 0, 0.5);
  }

  .modal-close svg {
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
    stroke-width: 2.5;
  }

  .modal-body {
    padding: clamp(0.8rem, 2vw, 1rem);
  }

  .video-container {
    padding-bottom: 56.25%;
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    border-radius: 8px;
  }

  .playlist-description {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    padding: 0;
  }

  .playlist-link {
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(0.8rem, 2vw, 1rem);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    gap: 0.3rem;
  }

  .podcast-player {
    padding: clamp(1rem, 3vw, 1.5rem);
    gap: clamp(0.8rem, 2vw, 1rem);
  }

  .equalizer {
    height: clamp(25px, 6vw, 35px);
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .modal-content {
    border-radius: 8px;
  }

  .modal-header {
    padding: 0.8rem 0.6rem;
    min-height: 75px;
  }

  .modal-title {
    font-size: 0.9rem;
    padding-right: 4rem;
    padding-top: 0.4rem;
    line-height: 1.1;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    padding: 0.7rem;
  }

  .modal-close svg {
    width: 22px;
    height: 22px;
  }

  .modal-body {
    padding: 0.6rem;
  }

  .video-container {
    border-radius: 6px;
    margin-bottom: 0.8rem;
  }

  .playlist-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .podcast-player {
    padding: 0.8rem;
    border-radius: 12px;
  }
}
