/* YoPaws Website - Custom Styles */

/* ===== Scroll Behavior ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes phoneScreenCycle {
  0%, 28% { transform: translateX(0); }
  33%, 61% { transform: translateX(-100%); }
  66%, 94% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

/* ===== Scroll Reveal ===== */
/* JS adds .reveal-init to enable animation; without JS content stays visible */
.reveal-init .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-init .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-init .reveal-delay-1 { transition-delay: 0.1s; }
.reveal-init .reveal-delay-2 { transition-delay: 0.2s; }
.reveal-init .reveal-delay-3 { transition-delay: 0.3s; }
.reveal-init .reveal-delay-4 { transition-delay: 0.4s; }
.reveal-init .reveal-delay-5 { transition-delay: 0.5s; }
.reveal-init .reveal-delay-6 { transition-delay: 0.6s; }
.reveal-init .reveal-delay-7 { transition-delay: 0.7s; }
.reveal-init .reveal-delay-8 { transition-delay: 0.8s; }

/* ===== Hero Animations ===== */
.hero-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-fade-in-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-fade-in-delay-3 {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.hero-illustration {
  animation: float 4s ease-in-out infinite;
}

/* ===== Navigation ===== */
.nav-transparent {
  background: transparent;
  box-shadow: none;
}

.nav-solid {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ===== Screenshot Grid (3 visible, carousel rest) ===== */
.screenshot-carousel {
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

.screenshot-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.screenshot-slide {
  width: calc(33.333% - 1rem);
  min-width: calc(33.333% - 1rem);
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.screenshot-slide:last-child {
  margin-right: 0;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screenshot-caption {
  text-align: center;
  padding: 0.5rem 0.75rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.screenshot-frame {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #1a1a2e;
  border: 3px solid #2d2d44;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-dot {
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: #ff8e42 !important;
  transform: scale(1.2);
}

.carousel-dot:hover:not(.active) {
  background: #ff8e42 !important;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .screenshot-slide {
    width: calc(50% - 0.75rem);
    min-width: calc(50% - 0.75rem);
    margin-right: 1rem;
  }
}

@media (max-width: 480px) {
  .screenshot-slide {
    width: 100%;
    min-width: 100%;
    margin-right: 0;
  }
}

/* ===== Phone Mockup (legacy, kept for reference) ===== */
.phone-mockup {
  width: 280px;
  height: 560px;
  border-radius: 2.5rem;
  border: 6px solid #e2e8f0;
  background: white;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #e2e8f0;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen-container {
  width: 300%;
  height: 100%;
  display: flex;
  animation: phoneScreenCycle 12s ease-in-out infinite;
}

.phone-screen {
  width: calc(100% / 3);
  height: 100%;
  padding: 2rem 1rem;
  flex-shrink: 0;
}

/* ===== Feature Card Hover ===== */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 142, 66, 0.12);
}

/* ===== Paw Print Decorations ===== */
.paw-float {
  position: absolute;
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
}

.paw-float-delay {
  animation-delay: -2s;
}

.paw-float-delay-2 {
  animation-delay: -4s;
}

/* ===== Step Connector ===== */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 142, 66, 0.5), rgba(255, 142, 66, 0.1));
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== CTA Button Pulse ===== */
.cta-pulse {
  animation: pulse-soft 2s ease-in-out infinite;
}

/* ===== Legal Page Styles ===== */
.legal-content h2 {
  color: #ff8e42;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #FFF3EB;
}

.legal-content h3 {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  color: #475569;
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content li {
  line-height: 1.8;
  margin-bottom: 0.25rem;
}
