body {
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
}

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

:root {
  --primary-red: #e82b38;
  --primary-red-dark: #c41f2b;
  --primary-red-light: #ff4655;
}

.gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-red {
  background: linear-gradient(135deg, #e82b38 0%, #c41f2b 100%);
}

.gradient-blue {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.gradient-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.content-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.content-card:hover::before {
  left: 100%;
}

.channel-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.channel-card:hover {
  transform: scale(1.05);
}

.channel-card:hover .channel-icon {
  transform: scale(1.1) rotate(5deg);
}

.channel-icon {
  transition: all 0.3s ease;
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stats-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e82b38 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topic-tag {
  transition: all 0.3s ease;
}

.topic-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 43, 56, 0.3);
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.float-animation-delay {
  animation: float 3s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(232, 43, 56, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(232, 43, 56, 0.6);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.content-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero Parallax Styles */
.hero-parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.hero-parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('../img/background/detail-hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  transform: translateY(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(232, 43, 56, 0.92) 0%, 
    rgba(196, 31, 43, 0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* CTA Parallax Styles */
.cta-parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.cta-parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('../img/background/detail-cta.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  transform: translateY(0);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.88) 0%, 
    rgba(232, 43, 56, 0.75) 100%
  );
  z-index: 1;
}

.cta-parallax-content {
  position: relative;
  z-index: 2;
}

nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-parallax-section {
        min-height: 250px;
    }
}