/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: #040A14;
  color: #e8eef7;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(0, 229, 192, 0.3);
  color: #ffffff;
}

/* ========== NAVIGATION ========== */
#site-header.scrolled {
  background-color: rgba(4, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 192, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#site-header.scrolled .menu-line {
  background-color: #ffffff;
}

#site-header.scrolled .menu-line:nth-child(3) {
  background-color: #00E5C0;
}

/* Mobile menu open state */
#mobile-menu.open {
  max-height: 400px;
}

#mobile-menu.open .mobile-link {
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Hamburger animation */
#menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@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);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========== PRODUCT CARDS ========== */
.product-card {
  will-change: transform;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* ========== HERO IMAGE FLOAT ========== */
.hero-float {
  animation: float 6s ease-in-out infinite;
}

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

/* ========== DECORATIVE SHAPES ========== */
.geo-shape {
  animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: rotate(12deg) translate(0, 0); }
  50% { transform: rotate(12deg) translate(8px, -8px); }
}

/* ========== FORM FOCUS STATES ========== */
input:focus, textarea:focus {
  outline: none;
  border-color: #00E5C0 !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 192, 0.1) !important;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040A14;
}
::-webkit-scrollbar-thumb {
  background: #1a2d4a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00E5C0;
}

/* ========== UTILITY ANIMATIONS ========== */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
  .hero-float {
    animation: none;
  }
}
