/* Glassmorphism Styles */

:root {
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-hover: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glass-blur: 20px;
  --glass-radius: 25px;
  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  --glass-gradient-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

/* Base glassmorphism mixin */
.glass {
  background: var(--glass-gradient);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border-radius: var(--glass-radius);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), var(--glass-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass:hover {
  background: var(--glass-gradient-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.15), 0 12px 40px 0 rgba(31, 38, 135, 0.45);
  border-color: rgba(255, 255, 255, 0.3);
}

.glass:hover::before {
  opacity: 1;
}

/* Glass card variant */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1), 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  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;
}

.glass-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
  transform: translateY(-5px) scale(1.02);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.15), 0 15px 45px 0 rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
}

.glass-card:hover::after {
  left: 100%;
}

/* Glass light variant - no more dark backgrounds! */
.glass-light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  backdrop-filter: blur(30px) saturate(200%) brightness(1.2);
  -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.2);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.2), 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Glass button */
.glass-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 12px 30px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.2);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.4);
  color: #fff;
}

/* Glass navigation */
.glass-nav {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Glass section */
.glass-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 40px;
  margin: 20px 0;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1), 0 20px 60px -10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.glass-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  border-radius: 30px;
  pointer-events: none;
}

/* Glass input fields */
.glass-input {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px 20px;
  color: #fff;
  transition: all 0.3s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 20px rgba(24, 210, 110, 0.2);
}

/* Glass progress bar */
.glass-progress {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-progress-bar {
  background: linear-gradient(90deg, rgba(24, 210, 110, 0.8), rgba(53, 232, 136, 0.8));
  height: 100%;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.glass-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Glass testimonial */
.glass-testimonial {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.glass-testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 100px;
  color: rgba(255, 255, 255, 0.1);
  font-family: Georgia, serif;
}

/* Glass overlay for modals */
.glass-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(24, 210, 110, 0.1) 100%);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}

/* Glass modal */
.glass-modal {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 40px;
  position: relative;
  z-index: 1000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .glass-card {
    padding: 20px;
    border-radius: 10px;
  }
  
  .glass-section {
    padding: 20px;
    border-radius: 15px;
  }
  
  .glass-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}