/* Slide-in animations for the entire MD Photography Solutions website */

/* Main titles: slide in from left */
.main-title {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), 
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.main-title.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Smaller text (paragraphs, list items, etc.): slide in from right (opposite direction) */
.small-text {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), 
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.small-text.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Optional stagger for multiple small-text elements */
.small-text:nth-child(2) { transition-delay: 0.1s; }
.small-text:nth-child(3) { transition-delay: 0.2s; }
.small-text:nth-child(4) { transition-delay: 0.3s; }
.small-text:nth-child(5) { transition-delay: 0.4s; }

/* For lists */
ul.small-text li {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), 
              transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

ul.small-text.visible li {
  opacity: 1;
  transform: translateX(0);
}

ul.small-text li:nth-child(1) { transition-delay: 0.05s; }
ul.small-text li:nth-child(2) { transition-delay: 0.1s; }
ul.small-text li:nth-child(3) { transition-delay: 0.15s; }
ul.small-text li:nth-child(4) { transition-delay: 0.2s; }
ul.small-text li:nth-child(5) { transition-delay: 0.25s; }

/* Ensure headings in sections get main-title */
h1, h2, .section-title, h3 {
  /* Base styles already in inline <style>, we add the animation class in HTML */
}