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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 90, 33, 0.3);
  color: #fff;
}

/* ===== NAVBAR ===== */
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-blur-xl;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== FLOATING CARDS ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -2s; }
.card-3 { animation-delay: -4s; }

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

/* ===== SCROLL DOT ===== */
.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== MARQUEE ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 40s linear infinite;
  display: flex;
  gap: 16px;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ===== BOUNCE SLOW ===== */
@keyframes bounceSlow {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-8px); }
}

.animate-bounce-slow {
  animation: bounceSlow 3s ease-in-out infinite;
}

/* ===== MENU TABS ===== */
.menu-tab {
  border-color: rgba(255, 255, 255, 0.1);
  color: #a3a3a3;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-tab:hover {
  color: #ff7a42;
  border-color: rgba(255, 122, 66, 0.3);
}

.menu-tab.active {
  background: rgba(255, 90, 33, 0.15);
  border-color: #ff7a42;
  color: #ff7a42;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-card { animation: none; }
  .scroll-dot { animation: none; }
  .animate-marquee { animation: none; }
  .animate-bounce-slow { animation: none; }
  .reveal { transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}
