/* Custom styles and overrides */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection color */
::selection {
  background-color: rgba(126, 34, 206, 0.2);
  color: #3b0764;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ff;
}
::-webkit-scrollbar-thumb {
  background: #d8b4fe;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Geometric shape animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

.geometric-shape {
  animation: float 6s ease-in-out infinite;
}

.geometric-shape:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.geometric-shape:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 7s;
}

/* Button focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

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

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

/* Reduced motion support */
@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;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print styles */
@media print {
  nav,
  #mobile-menu-btn,
  .geometric-shape,
  button,
  form {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .bg-plum-900,
  footer {
    background: #fff !important;
    color: #000 !important;
  }
}
