/* Custom styles for Dr. Ali Spiritual Healing Website */

:root {
  --primary: #1a5d1a;
  --secondary: #fbbf24;
  --accent: #7e22ce;
  --light: #fef3c7;
  --dark: #064e3b;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.header-font {
  font-family: 'Playfair Display', serif;
}

.herb-pattern {
  background-image: 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='%231a5d1a' fill-opacity='0.1'%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");
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
  background-color: var(--secondary);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Cards */
.service-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form Elements */
.form-input {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mobile-menu {
    animation: fadeIn 0.3s ease-out;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

/* Testimonial section */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Footer */
.footer-link {
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
}

/* Additional custom styles */

/* Hero section enhancements */
.hero-content {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hover effects */
.btn-animated {
  position: relative;
  overflow: hidden;
}

.btn-animated::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: 0.5s;
}

.btn-animated:hover::after {
  left: 100%;
}

/* Card hover effects */
.service-card {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Testimonial section */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: #1a5d1a;
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
}

/* Form enhancements */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #1a5d1a;
  box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.1);
}

/* Footer enhancements */
.footer-link {
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fbbf24;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Social media icons */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Animation for sections */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spell card specific styles */
.spell-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.spell-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.spell-card:hover::before {
  left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
  
  .mobile-menu {
    animation: slideIn 0.3s ease-out;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success and error message styling */
.message-success {
  background-color: #d1fae5;
  border-left: 4px solid #10b981;
}

.message-error {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
}