/* Artistic CSS Enhancements for Veronica Luciano Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
  --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  --animation-speed: 0.6s;
  --hover-scale: 1.05;
  --glow-color: rgba(102, 126, 234, 0.4);
}

/* Global Artistic Enhancements */
* {
  scroll-behavior: smooth;
}

body {
  background: var(--dark-gradient);
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(249, 147, 251, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(245, 87, 108, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% { opacity: 1; transform: translateY(0px); }
  50% { opacity: 0.7; transform: translateY(-10px); }
}

/* Enhanced Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 20px rgba(246, 211, 101, 0.3); }
  100% { text-shadow: 0 0 40px rgba(246, 211, 101, 0.6), 0 0 60px rgba(253, 160, 133, 0.4); }
}

/* Artistic Navbar */
header {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(12, 12, 12, 0.8);
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  transition: all var(--animation-speed) ease;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--animation-speed) ease;
}

header:hover::before {
  opacity: 1;
}

/* Navigation Links with Artistic Hover */
nav a {
  position: relative;
  transition: all var(--animation-speed) ease;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all var(--animation-speed) ease;
  transform: translateX(-50%);
}

nav a:hover::before {
  width: 100%;
}

nav a:hover {
  color: #667eea;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Hero Section Enhancements */
#inicio {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
}

#inicio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  animation: grain 8s linear infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 10%); }
  80% { transform: translate(-15%, 0%); }
  90% { transform: translate(10%, 5%); }
}

/* Artistic Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: white !important;
  border: none;
  position: relative;
  overflow: hidden;
  transform: perspective(1px) translateZ(0);
  transition: all var(--animation-speed) ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary::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;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(var(--hover-scale));
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all var(--animation-speed) ease;
  border: 2px solid transparent;
  background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)) padding-box,
              var(--primary-gradient) border-box;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  background: var(--primary-gradient);
  color: white;
}

/* Enhanced Image Containers */
.image-artistic {
  position: relative;
  overflow: hidden;
  transition: all var(--animation-speed) ease;
  border: 2px solid transparent;
  background: linear-gradient(rgba(38, 38, 38, 1), rgba(38, 38, 38, 1)) padding-box,
              var(--primary-gradient) border-box;
}

.image-artistic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity var(--animation-speed) ease;
  pointer-events: none;
  z-index: 1;
}

.image-artistic:hover::before {
  opacity: 1;
}

.image-artistic img {
  transition: all var(--animation-speed) ease;
  filter: brightness(0.9) saturate(1.1);
}

.image-artistic:hover img {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.3);
}

.image-artistic:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(102, 126, 234, 0.5);
}

/* Music Cards Enhancement */
.music-card {
  background: rgba(38, 38, 38, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all var(--animation-speed) ease;
  position: relative;
  overflow: hidden;
}

.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--animation-speed) ease;
  pointer-events: none;
}

.music-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.music-card:hover::before {
  opacity: 0.05;
}

/* Audio Wave Animation */
.audio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-left: 8px;
}

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

.wave-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 15px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 6px; animation-delay: 0.4s; }

@keyframes audioWave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.5); }
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: var(--primary-gradient);
  position: relative;
  margin: 0 auto;
  width: 60%;
  opacity: 0.6;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-gradient);
  transform: translateY(-50%);
}

.section-divider::before { left: -15px; }
.section-divider::after { right: -15px; }

/* Contact Form Enhancement */
.form-input {
  background: rgba(38, 38, 38, 0.8) !important;
  border: 2px solid rgba(102, 126, 234, 0.2) !important;
  transition: all var(--animation-speed) ease !important;
  backdrop-filter: blur(10px);
}

.form-input:focus {
  border-color: rgba(102, 126, 234, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 0 20px rgba(102, 126, 234, 0.2) !important;
  outline: none !important;
}

/* Footer Enhancement */
footer {
  background: linear-gradient(135deg, rgba(12, 12, 12, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
  border-top: 1px solid rgba(102, 126, 234, 0.3);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
  opacity: 0.7;
}

/* Social Links */
footer a {
  transition: all var(--animation-speed) ease;
  position: relative;
}

footer a:hover {
  color: #667eea !important;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

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

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --hover-scale: 1.02;
  }
  
  .music-card:hover {
    transform: translateY(-5px);
  }
  
  .image-artistic:hover {
    transform: translateY(-3px);
  }
}

/* Loading animation for images */
.image-loading {
  background: linear-gradient(90deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    rgba(102, 126, 234, 0.2) 50%, 
    rgba(102, 126, 234, 0.1) 100%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.5);
}

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c8ef7 0%, #8b5bcf 100%);
}