/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(255, 107, 74, 0.3);
  color: #fff;
}

/* ===== Floating Cards Animation ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

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

.float-medium {
  animation: float-medium 5s ease-in-out infinite;
}

.float-fast {
  animation: float-fast 4.5s ease-in-out infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-slow, .float-medium, .float-fast {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Navbar ===== */
.nav-scrolled {
  background: rgba(12, 12, 12, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-scrolled .logo-text {
  color: #fff;
}

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

/* ===== Custom Select ===== */
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='%239a9a9a' 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;
}

/* ===== Button Hover Glow ===== */
.btn-glow:hover {
  box-shadow: 0 0 40px rgba(255, 107, 74, 0.3);
}

/* ===== Image Hover ===== */
img {
  display: block;
  max-width: 100%;
}

/* ===== Smooth focus ===== */
*:focus-visible {
  outline: 2px solid #ff6b4a;
  outline-offset: 2px;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0c0c;
}
::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.1;
  }
}
