/* Raw Studio — Custom Styles */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

/* Selection */
::selection {
  background: rgba(22, 163, 74, 0.4);
  color: #fdfbf7;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0f0d;
}
::-webkit-scrollbar-thumb {
  background: #166534;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Reveal animations — progressive enhancement, only active with JS */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion — disable reveal animations */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero floating cards animation */
@media (prefers-reduced-motion: no-preference) {
  @keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }
  @keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(8px); }
  }
  @keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
  }
  #hero .absolute.top-0.right-0 {
    animation: float1 4s ease-in-out infinite;
  }
  #hero .absolute.top-40.left-0 {
    animation: float2 5s ease-in-out infinite;
  }
  #hero .absolute.bottom-0.right-8 {
    animation: float3 4.5s ease-in-out infinite;
  }
}

/* Mobile menu transitions */
#mobileMenu {
  transition: opacity 0.3s ease;
}
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}
#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(10, 15, 13, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
