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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

#navbar.scrolled .font-serif,
#navbar.scrolled a:not(.bg-teal-700):not(.bg-white\/10) {
  color: #1e293b;
}

#navbar.scrolled .text-slate-500 {
  color: #64748b;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: #0d9488;
}

/* ========== HERO FLOATING CARDS ========== */
.floating-card {
  animation: floatUp 0.8s ease-out both;
}

.card-1 { animation-delay: 0.6s; }
.card-2 { animation-delay: 0.9s; }
.card-3 { animation-delay: 1.2s; }

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle continuous float */
.floating-card {
  animation: gentleFloat 4s ease-in-out infinite;
}

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

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

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

@media (prefers-reduced-motion: no-preference) {
  .reveal-item {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Staggered delays for grid items */
.reveal-item:nth-child(1) { transition-delay: 0.05s; }
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.15s; }
.reveal-item:nth-child(4) { transition-delay: 0.2s; }
.reveal-item:nth-child(5) { transition-delay: 0.25s; }
.reveal-item:nth-child(6) { transition-delay: 0.3s; }

/* ========== PRODUCT CARDS ========== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ========== BUTTONS ========== */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ========== FORM ========== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ========== SELECTION ========== */
::selection {
  background: #99f6e4;
  color: #042f2e;
}

/* ========== RESPONSIVE HERO CARDS ========== */
@media (max-width: 767px) {
  .floating-card {
    display: none;
  }
}
