body {
    scroll-behavior: smooth;
}
img {
    transition: transform 0.3s ease;
}
img:hover {
    transform: scale(1.05);
}
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-up 1s ease forwards;
  opacity: 0;
}

.animate-fade-up.delay-100 { animation-delay: 0.3s; }
.animate-fade-up.delay-200 { animation-delay: 0.6s; }
section {
  position: relative;
  overflow: hidden;
}

section img {
  transition: transform 0.4s ease;
}

section img:hover {
  transform: scale(1.05);
}
main section:first-of-type {
  padding-top: 7rem; /* Adjust for header height */
}
@media (min-width: 768px) {
  main section:first-of-type {
    padding-top: 6rem; /* slightly less for tablets and desktops */
  }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
section#about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,192,203,0.15), transparent 70%);
  animation: shimmer 8s infinite ease-in-out;
}
@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}
.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}

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

/* ===============================================
   Accessibility: Focus Styles
   =============================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ec4899;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===============================================
   Screen Reader Only (utility)
   =============================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
