/* Custom animations and styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --red-indonesia: #D81B1B;
  --red-bright: #FF0000;
  --white-pure: #FFFFFF;
  --gold-accent: #D4AF37;
  --dark-gray: #1F2937;
  --light-gray: #F9FAFB;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--red-indonesia);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-bright);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse-custom {
  animation: pulse 2s infinite;
}

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

.animate-spin-slow {
  animation: spin 8s linear infinite;
}

/* Indonesia flag gradient */
.flag-gradient {
  background: linear-gradient(180deg, var(--red-indonesia) 50%, var(--white-pure) 50%);
}

.red-gradient {
  background: linear-gradient(135deg, var(--red-indonesia), var(--red-bright));
}

.gold-gradient {
  background: linear-gradient(135deg, var(--gold-accent), #FFD700);
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(216, 27, 27, 0.1);
}

/* Button styles */
.btn-primary {
  background: var(--red-indonesia);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(216, 27, 27, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--red-indonesia);
  border: 2px solid var(--red-indonesia);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--red-indonesia);
  color: white;
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--red-indonesia);
  outline-offset: 2px;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(216, 27, 27, 0.1);
  border-left: 4px solid var(--red-indonesia);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Audio Player Styles */
.audio-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  gap: 2px;
}

.audio-bar {
  width: 3px;
  background: var(--red-indonesia);
  border-radius: 2px;
  animation: audioWave 1.5s ease-in-out infinite;
}

.audio-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes audioWave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* Custom scrollbar for audio controls */
.audio-controls::-webkit-scrollbar {
  width: 4px;
}

.audio-controls::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.audio-controls::-webkit-scrollbar-thumb {
  background: var(--red-indonesia);
  border-radius: 2px;
}