/* Custom styles for Sun Tax Consultants */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #9B338C;
  --secondary: #B8329D;
  --accent: #7A206E;
  --bg-main: #FAF5F9;
  --bg-section: #F5EAFA;
  --bg-card: #FFFFFF;
  --text-primary: #1F1928;
  --text-secondary: #595166;
  --border-color: #E8C9E2;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 217, 226, 0.8);
}

.glass-nav {
  background: rgba(250, 250, 252, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 217, 226, 0.7);
}

/* Floating Badges Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-1deg);
  }
}

.animate-float-slow {
  animation: float 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-reverse 6s ease-in-out 1s infinite;
}

.animate-float-fast {
  animation: float 4s ease-in-out 0.5s infinite;
}

/* Pulse soft ring */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 29, 72, 0.3);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(92, 29, 72, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(92, 29, 72, 0);
  }
}

.pulse-button {
  animation: pulse-ring 2.5s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF5F9;
}
::-webkit-scrollbar-thumb {
  background: #E8C9E2;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9B338C;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-fade-up {
  transform: translateY(30px);
}

.reveal-fade-left {
  transform: translateX(-30px);
}

.reveal-fade-right {
  transform: translateX(30px);
}

.reveal-zoom-in {
  transform: scale(0.92);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom Badge Pill */
.badge-pill {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #E8C9E2;
  box-shadow: 0 4px 20px rgba(30, 25, 38, 0.06);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.badge-pill:hover {
  border-color: #9B338C;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(92, 29, 72, 0.15);
}

/* Accordion Smooth Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  transition: max-height 0.5s ease-in-out, padding 0.3s ease;
}

/* Hover Lift Cards */
.hover-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(92, 29, 72, 0.12);
  border-color: rgba(92, 29, 72, 0.4);
}

/* Service Detail Modal */
#service-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#service-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#service-modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
