/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FLOATING CARDS ===== */
@media (prefers-reduced-motion: no-preference) {
  .float-card-1 { animation: floatA 6s ease-in-out infinite; }
  .float-card-2 { animation: floatB 7s ease-in-out infinite; }
  .float-card-3 { animation: floatC 5.5s ease-in-out infinite; }
  .float-card-4 { animation: floatD 6.5s ease-in-out infinite; }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes floatD {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(14px); }
}

/* ===== SCROLL INDICATOR ===== */
.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ===== NAVBAR SCROLL STATE ===== */
.nav-scrolled {
  background: rgba(7, 12, 23, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ===== MOBILE MENU ===== */
.menu-line { transition: all 0.3s ease; }
#mobileMenu.open .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#mobileMenu.open .menu-line:nth-child(2) { opacity: 0; }
#mobileMenu.open .menu-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 20px; }

/* ===== SELECTION ===== */
::selection { background: rgba(20, 184, 191, 0.3); color: #f1f5f9; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #070c17; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

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

/* ===== RESPONSIVE HERO CARDS ===== */
@media (max-width: 1023px) {
  #hero { padding-top: 6rem; }
}
