/* Custom styles for landing page */

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

/* Custom focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Button hover effects */
button {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

button:active::after {
  width: 300px;
  height: 300px;
}

/* Card hover effects */
.shadow-sm {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shadow-sm:hover {
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
}

/* Star rating styles */
.lucide-star {
  transition: transform 0.2s ease;
}

.lucide-star:hover {
  transform: scale(1.1);
}

/* Header scroll effect */
header {
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Loading animation */
@keyframes loading {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

.loading {
  animation: loading 1.5s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
  .text-4xl {
    font-size: 2rem;
    line-height: 2.25rem;
  }
  
  .text-3xl {
    font-size: 1.75rem;
    line-height: 2rem;
  }
  
  .text-xl {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

/* Scroll animations */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Initial state for elements that will animate (scoped to landing pages only) */
body.landing section:not(.animate-in),
body.landing .shadow-sm:not(.animate-in) {
  opacity: 0;
  transform: translateY(30px);
}

/* Print styles */
@media print {
  header,
  footer {
    display: none;
  }
  
  .no-print {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
}
