/*
 * musicfoo Landing Page - Custom Styles
 */

/* ========================================
   Animations & Transitions
======================================== */

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

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

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

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

/* ========================================
   Enhanced Color Scheme & Gradients
======================================== */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #13d8aa 0%, #0f7938 100%);
  --card-shadow: 0 10px 40px rgba(0,0,0,0.1);
  --card-hover-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

/* ========================================
   Enhanced Header
======================================== */

.header {
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: float 20s infinite linear;
  opacity: 0.5;
}

.header .container {
  position: relative;
  z-index: 1;
}

.header img {
  animation: float 6s ease-in-out infinite;
}

/* ========================================
   Enhanced Cards
======================================== */

.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.05) !important;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-hover-shadow);
}

.card:hover::before {
  transform: scaleX(1);
}

.card .fs-50 {
  transition: transform 0.3s ease;
}

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

/* ========================================
   Enhanced Buttons
======================================== */

.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-dark {
  background: var(--primary-gradient);
  border: none;
}

.btn-white {
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ========================================
   Enhanced Navbar
======================================== */

.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

/* Add padding to body to account for fixed navbar */
body {
  padding-top: 60px;
}

.navbar-brand h3 {
  transition: all 0.3s ease;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.navbar-brand:hover h3 {
  transform: scale(1.05);
}

/* Fix navbar links visibility */
.nav-navbar .nav-link {
  position: relative;
  transition: color 0.3s ease;
  color: #444 !important;
  font-weight: 500;
}

.nav-navbar .nav-link:hover {
  color: #667eea !important;
}

.nav-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-navbar .nav-link:hover::after {
  width: 100%;
}

/* Ensure navbar mobile section is visible */
.navbar-mobile {
  display: flex !important;
  align-items: center;
}

/* ========================================
   Section Enhancements
======================================== */

.section-header {
  position: relative;
  margin-bottom: 50px;
}

.section-header small {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-header hr {
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border: none;
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ========================================
   Features Section Icons
======================================== */

.text-primary {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Background Patterns
======================================== */

.bg-gray {
  position: relative;
  background: #f8f9fa;
}

.bg-gray::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* ========================================
   Footer Enhancement
======================================== */

.footer {
  position: relative;
  background: #1a1a2e;
  color: #fff;
}

.footer h4, .footer p, .footer a {
  color: #fff !important;
}

.footer a:hover {
  color: #667eea !important;
  text-decoration: none;
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ========================================
   Scroll Animations
======================================== */

[data-aos] {
  transition-duration: 0.8s;
}

/* ========================================
   Mobile Responsiveness
======================================== */

@media (max-width: 768px) {
  .header .display-4 {
    font-size: 2.5rem;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  .header img {
    margin-top: 30px;
    max-width: 80%;
  }
}

/* ========================================
   Loading Animation
======================================== */

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ========================================
   Typography Enhancements
======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

.display-4 {
  font-weight: 800;
  line-height: 1.2;
}

.lead-2 {
  font-weight: 400;
  opacity: 0.9;
}