/* Premium Visual Enhancements for Explr.org */

/* Scroll-to-Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--gradient-gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-elegant);
  box-shadow: var(--shadow-gold);
  backdrop-filter: blur(20px);
}

.scroll-to-top::before {
  content: '↑';
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
}

/* Enhanced Card Hover Effects */
.service-card:hover,
.pricing-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-float);
}

/* Premium Text Animations */
.hero h1 {
  position: relative;
  overflow: hidden;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineExpand 1.5s ease-out 0.5s forwards;
}

@keyframes underlineExpand {
  to { transform: scaleX(1); }
}

/* Testimonial Enhancement */
.testimonial {
  position: relative;
  transition: all var(--transition-elegant);
}

.testimonial.active {
  transform: scale(1.02);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-size: 4rem;
  color: var(--accent-gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  z-index: -1;
}

/* Parallax Effect for Sections */
.section {
  transform-style: preserve-3d;
}

.section-header {
  transform: translateZ(20px);
}

/* Gold Accent Bars */
.service-card::before,
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-elegant);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-card:hover::before,
.pricing-card:hover::before {
  transform: scaleX(1);
}

/* Premium Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Enhanced Form Styling */
.form-group input,
.form-group textarea {
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all var(--transition-elegant);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

/* Micro-interactions for Interactive Elements */
.nav-dot {
  position: relative;
  overflow: hidden;
}

.nav-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-medium);
}

.nav-dot:hover::before,
.nav-dot.active::before {
  width: 100%;
  height: 100%;
}

/* Glow Effects for CTAs */
.cta-section {
  position: relative;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* Mobile Sticky CTA Enhancement */
@media (max-width: 768px) {
  .mobile-cta-sticky {
    background: var(--gradient-gold);
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .mobile-cta-sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }
  
  .mobile-cta-sticky:active::before {
    transform: translateX(100%);
  }
}

/* Typography Rhythm Enhancement */
h1, h2, h3 {
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-elegant);
}

.section-header h2::after {
  opacity: 1;
}

/* Enhanced Dark Mode Transitions */
[data-theme="dark"] .scroll-to-top {
  background: var(--gradient-green);
  box-shadow: var(--shadow-green);
}

[data-theme="dark"] .service-card::before,
[data-theme="dark"] .pricing-card::before {
  background: var(--gradient-green);
}