/* === CUSTOM STYLES === */

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

/* Selection color */
::selection {
  background-color: #7B2D3B;
  color: white;
}

/* Header scroll state */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(254, 252, 251, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Nav links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  border-radius: 1px;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

/* Mobile nav links */
.mobile-nav-link {
  border-radius: 0.75rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #7B2D3B 0%, #5a1e2a 100%);
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a1e2a 0%, #3d141c 100%);
}

.btn-secondary {
  transition: all 0.3s ease;
}

/* Input fields */
.input-field {
  transition: all 0.2s ease;
}

.input-field:focus {
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

.input-field:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

/* Hero decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 228, 232, 0.6) 0%, transparent 70%);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 194, 204, 0.5) 0%, transparent 70%);
  bottom: 20%;
  left: 10%;
  animation-delay: -3s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(244, 145, 158, 0.4) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Floating cards */
.floating-card {
  animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: -1.3s;
}

.card-3 {
  animation-delay: -2.6s;
}

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

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Image hover zoom container */
img {
  display: block;
  max-width: 100%;
}

/* Subtle gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #7B2D3B 0%, #e0223f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* Card hover image zoom */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

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