/* Custom CSS for Collages Landing Page */

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

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

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

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

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 194, 1, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 194, 1, 0.6);
  }
}

/* Utility classes for animations */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out forwards;
}

.animate-pulse-gentle {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Intersection Observer classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Enhanced button styles */
.btn-primary {
  @apply bg-primary hover:bg-gray-600 text-white font-semibold py-3 px-8 rounded-full;
  @apply transition-all duration-200 transform hover:scale-105;
  @apply shadow-lg hover:shadow-xl;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  @apply bg-white hover:bg-gray-50 text-primary border-2 border-primary font-semibold py-3 px-8 rounded-full;
  @apply transition-all duration-200 transform hover:scale-105;
  @apply shadow-lg hover:shadow-xl;
}

/* Feature card enhancements */
.feature-card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  transform: scale(1);
  position: relative;
}

.feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 194, 1, 0.1), rgba(78, 205, 196, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-primary {
  color: black;
  background: linear-gradient(135deg, #6B7280, #9CA3AF);
}

.feature-card-primary:hover {
  background: linear-gradient(135deg, #9CA3AF, #6B7280);
}

.feature-card img {
  width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.feature-card:hover img {
  transform: scale(1.1);
}

/* Navigation enhancements */
.nav-link {
  @apply text-gray-700 hover:text-primary font-medium;
  @apply transition-colors duration-200;
  position: relative;
}

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

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

/* Pricing card enhancements */
.pricing-card {
  @apply bg-white rounded-2xl shadow-lg p-8;
  @apply transition-all duration-300 transform hover:scale-105;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 194, 1, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotate 8s linear infinite;
}

.pricing-card:hover::before {
  opacity: 1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pricing-card-premium {
  @apply bg-primary text-white;
  @apply shadow-2xl border-2 border-primary;
}

.pricing-card-premium::before {
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Segmented pricing control styling */
.pricing-option {
  position: relative;
  z-index: 1;
}

.pricing-option.active {
  background-color: #6B7280;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-option:not(.active) {
  color: #6B7280;
}

.pricing-option:not(.active):hover {
  color: #374151;
  background-color: rgba(255, 194, 1, 0.1);
}

/* Hero section enhancements */
.hero-gradient {
  background: linear-gradient(135deg, rgba(255, 194, 1, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
}

.hero-image-container {
  position: relative;
}

.hero-image-container::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(255, 194, 1, 0.2), rgba(78, 205, 196, 0.2));
  border-radius: 24px;
  z-index: -1;
  filter: blur(20px);
}

/* Mobile menu animations */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu.open {
  max-height: 300px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6B7280;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
  .hero-text {
    text-align: center;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    @apply py-4 px-6 text-base;
  }
  
  .pricing-card {
    @apply p-6;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .feature-card:hover,
  .pricing-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
  
  .feature-card:active,
  .pricing-card:active,
  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.98);
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
  }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    @apply border-2 border-black;
  }
  
  .nav-link {
    @apply border-b border-transparent hover:border-current;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    @apply text-black bg-white;
  }
  
  .btn-primary,
  .btn-secondary {
    @apply border border-black text-black bg-white;
  }
}