/* ============================================
   YouDance Marketing - Custom Styles
   Built on top of Tailwind CSS
   ============================================ */

/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* ============================================
   Fade-in Animation
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FAQ Accordion Styling
   ============================================ */

.accordion-item details {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.accordion-item details:last-child {
  border-bottom: none;
}

.accordion-item summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  user-select: none;
  transition: color 0.3s ease;
  padding: 1rem 0;
}

.accordion-item summary:hover {
  color: #d4af37;
}

/* Chevron icon rotation */
.accordion-item .chevron {
  display: inline-block;
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.accordion-item details[open] .chevron {
  transform: rotate(180deg);
}

/* Smooth content reveal with max-height */
.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.accordion-item details[open] .accordion-content {
  max-height: 500px;
  transition: max-height 0.4s ease;
}

/* ============================================
   Pricing Cards Hover Effects
   ============================================ */

.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Navigation Styling
   ============================================ */

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 80px;
  animation: slideInMenu 0.3s ease-out;
}

.mobile-menu.active {
  display: flex;
}

@keyframes slideInMenu {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger icon animation */
.hamburger {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 50;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Navigation background transition */
nav {
  background-color: transparent;
  transition: background-color 0.3s ease;
}

nav.scrolled {
  background-color: #000;
}

nav.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Heading Accent Underline (Gold)
   ============================================ */

.heading-accent {
  position: relative;
  display: inline-block;
}

.heading-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #d4af37;
  border-radius: 2px;
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #888 #f5f5f5;
}

/* ============================================
   Active Navigation Link
   ============================================ */

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #d4af37;
}

/* ============================================
   Stats Counter Animation
   ============================================ */

.stat-number {
  font-weight: 700;
  font-size: 2.5rem;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  nav,
  footer,
  .cta-button,
  [class*='cta'],
  .mobile-menu {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .page-break {
    page-break-after: always;
  }
}

/* ============================================
   Additional Utility Adjustments
   ============================================ */

/* Smooth transitions for common interactive elements */
button,
a {
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Responsive typography smooth transitions */
@media (max-width: 768px) {
  .mobile-menu {
    padding-top: 70px;
  }

  .stat-number {
    font-size: 1.875rem;
  }
}
