/* Ultra-Modern BeautyArtSurrey Styles - 2025 Trends */

/* CSS Custom Properties for Dynamic Theming */
:root {
  --primary: #f472b6;
  --secondary: #ec4899;
  --accent: #be185d;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #be185d 100%);
  --gradient-secondary: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  --gradient-hero: linear-gradient(135deg, rgba(244, 114, 182, 0.95) 0%, rgba(236, 72, 153, 0.95) 50%, rgba(190, 24, 93, 0.95) 100%);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --glass-bg: rgba(31, 41, 55, 0.8);
    --glass-border: rgba(75, 85, 99, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
  }
}

/* Modern Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary); }
  50% { box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

@keyframes slideInBlur {
  0% {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes morphBg {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(244, 114, 182, 0.5); }
  50% { text-shadow: 0 0 20px rgba(244, 114, 182, 0.8), 0 0 30px rgba(236, 72, 153, 0.6); }
}

@keyframes particleFloat {
  0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scaleIn {
  0% { transform: scale(0.8) rotate(-5deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes wiggle {
  0%, 7% { transform: rotateZ(0); }
  15% { transform: rotateZ(-15deg); }
  20% { transform: rotateZ(10deg); }
  25% { transform: rotateZ(-10deg); }
  30% { transform: rotateZ(6deg); }
  35% { transform: rotateZ(-4deg); }
  40%, 100% { transform: rotateZ(0); }
}

/* Glass Morphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Neumorphism */
.neumorphic {
  background: #f0f0f0;
  border-radius: var(--border-radius);
  box-shadow: 
    20px 20px 60px #d9d9d9,
    -20px -20px 60px #ffffff;
  transition: var(--transition);
}

.neumorphic:hover {
  box-shadow: 
    inset 10px 10px 20px #d9d9d9,
    inset -10px -10px 20px #ffffff;
}

/* Modern Buttons */
.btn-modern {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(244, 114, 182, 0.4);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

/* Interactive Cards - Toned Down */
.card-modern {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-modern:hover::before {
  transform: scaleX(1);
}

.card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-modern:active {
  transform: translateY(-1px);
}

/* Floating Elements */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

/* Morphing Background */
.morph-bg {
  animation: morphBg 8s ease-in-out infinite;
}

/* Text Effects */
.text-glow {
  animation: textGlow 3s ease-in-out infinite;
}

.text-gradient {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

.text-reveal {
  position: relative;
  overflow: hidden;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.text-reveal.animate::after {
  transform: translateX(100%);
}

/* Advanced Hero Section */
.hero-ultra-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Fallback for when no hero image is set */
.hero-ultra-modern:not([style*="background-image"]) {
  background: var(--gradient-hero) !important;
}

.hero-ultra-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 10s infinite linear;
  pointer-events: none;
}

/* Interactive Service Cards - Subtle Animation */
.service-card-ultra {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
}

.service-card-ultra::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.service-card-ultra:hover::before {
  opacity: 0.05;
}

.service-card-ultra:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(244, 114, 182, 0.15);
  border-color: var(--primary);
}

.service-card-ultra .icon {
  font-size: 3rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.service-card-ultra:hover .icon {
  transform: scale(1.1);
}

/* Gallery with Advanced Effects */
.gallery-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.gallery-item-modern {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item-modern:hover img {
  transform: scale(1.1);
}

.gallery-item-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item-modern:hover::after {
  opacity: 0.8;
}

.gallery-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.gallery-item-modern:hover .gallery-overlay {
  opacity: 1;
}

/* Navigation with Glass Effect */
.nav-ultra-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.nav-ultra-modern.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-modern {
  position: relative;
}

.form-modern input,
.form-modern textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(244, 114, 182, 0.2);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  outline: none;
}

.form-modern input:focus,
.form-modern textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.1);
  transform: translateY(-2px);
}

.form-modern label {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
  pointer-events: none;
}

.form-modern input:focus + label,
.form-modern input:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.875rem;
  color: var(--primary);
  background: var(--bg-primary);
  padding: 0 0.5rem;
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* Testimonial Cards - Simple Hover */
.testimonial-ultra {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.2s ease;
}

.testimonial-ultra::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 2rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-ultra:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Footer Modern */
.footer-ultra-modern {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.footer-ultra-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-card-ultra:hover {
    transform: translateY(-2px);
  }
  
  .card-modern:hover {
    transform: translateY(-2px);
  }
  
  .gallery-modern {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --border-radius: 12px;
    --border-radius-lg: 16px;
  }
  
  .btn-modern {
    padding: 0.875rem 1.5rem;
  }
  
  .card-modern {
    padding: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .float-animation,
  .hero-particle,
  .btn-glow {
    animation: none;
  }
  
  .glass,
  .glass-card {
    background: white;
    backdrop-filter: none;
  }
}

/* Custom Utilities */
.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-slide-blur {
  animation: slideInBlur 0.8s ease-out;
}

.animate-wiggle {
  animation: wiggle 2s ease-in-out;
}

.interactive-hover {
  transition: var(--transition-bounce);
}

.interactive-hover:hover {
  transform: translateY(-3px);
}

.bg-gradient-animated {
  background: linear-gradient(-45deg, #f472b6, #ec4899, #be185d, #f472b6);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.text-shadow-glow {
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.5);
}

.border-gradient-animated {
  border: 2px solid;
  border-image: linear-gradient(-45deg, #f472b6, #ec4899, #be185d, #f472b6) 1;
  border-image-slice: 1;
  animation: gradientShift 3s ease infinite;
}
