/* ============================================
   Donni Got Motion — Custom Styles
   ============================================ */

/* ---------- Base & Typography ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ---------- Hero Animations ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation-name: fade-in;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

/* ---------- Scroll Reveal (below-fold only) ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Default state: always visible (no JS required) */

/* When JS adds the 'js-supported' class, enable scroll-reveal */
.js-supported .reveal-up {
  opacity: 0;
  transform: translateY(30px);
}

.js-supported .reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}

.js-supported .reveal-right {
  opacity: 0;
  transform: translateX(30px);
}

.js-supported .reveal-up.revealed,
.js-supported .reveal-left.revealed,
.js-supported .reveal-right.revealed {
  opacity: 1;
  transform: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Navbar ---------- */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
  background: rgba(253, 242, 244, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(128, 22, 48, 0.08);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* ---------- Buttons & Links ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a11630;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fdf2f4;
}

::-webkit-scrollbar-thumb {
  background: #c22644;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a11630;
}

/* ---------- Selection ---------- */
::selection {
  background: #c22644;
  color: #fdf2f4;
}

/* ---------- Image Placeholder ---------- */
img {
  max-width: 100%;
  height: auto;
}

/* ---------- Form Focus States ---------- */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(194, 38, 68, 0.15);
}

/* ---------- Card Hover Glow ---------- */
.group:hover .group-hover\:bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Subtle Pattern Overlay ---------- */
.pattern-overlay {
  background-image: url('data:image/svg+xml,%3Csvg width=&quot;40&quot; height=&quot;40&quot; viewBox=&quot;0 0 40 40&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E%3Cg fill=&quot;%23a11630&quot; fill-opacity=&quot;0.03&quot; fill-rule=&quot;evenodd&quot;%3E%3Cpath d=&quot;M0 40L40 0H20L0 20M40 40V20L20 40&quot;/%3E%3C/g%3E%3C/svg%3E');
}
