/* ============================================
   Katie's Tropical Sno — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
  background: #A7F3D0;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6EE7B7;
}

/* Selection */
::selection {
  background: #A7F3D0;
  color: #064E3B;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.08);
  height: 72px;
}

.navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 4px 30px rgba(5, 150, 105, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #059669;
  border-radius: 9999px;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FDFBF7;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
}

.btn-primary:active {
  transform: translateY(0) !important;
}

.btn-secondary {
  background: transparent;
  color: #047857;
  border: 2px solid #A7F3D0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ECFDF5;
  border-color: #6EE7B7;
}

/* ============================================
   Badges
   ============================================ */
.badge-emerald {
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
}

/* ============================================
   Hero
   ============================================ */
.hero-image-card {
  box-shadow: 0 25px 80px rgba(5, 78, 59, 0.15), 0 8px 20px rgba(5, 78, 59, 0.1);
}

.hero-image-card:hover {
  transform: translateY(-4px);
  transition: transform 0.4s ease;
}

.floating-card-1 {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.floating-card-2 {
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.3);
}

/* Floating elements */
.float-1 { animation: floatA 6s ease-in-out infinite; }
.float-2 { animation: floatB 5s ease-in-out infinite; }
.float-3 { animation: floatC 7s ease-in-out infinite; }
.float-4 { animation: floatA 5.5s ease-in-out infinite; }
.float-5 { animation: floatB 6.5s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes floatC {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(3deg); }
}

/* Hero floating cards */
.floating-card-1 { animation: floatCard 4s ease-in-out infinite; }
.floating-card-2 { animation: floatCardDelayed 4.5s ease-in-out infinite; }

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

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

/* Background blobs */
.hero-blob {
  animation: blobPulse 8s ease-in-out infinite;
}

.blob-2 { animation-delay: -3s; }
.blob-3 { animation-delay: -5s; }

@keyframes blobPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

/* Scroll indicator */
.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ============================================
   Flavor Cards
   ============================================ */
.flavor-card {
  will-change: transform;
}

/* ============================================
   Reveal Animations
   ============================================ */
.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[data-reveal-state="hidden"] {
  opacity: 0;
  transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal[data-reveal-state="hidden"] {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
  .float-1, .float-2, .float-3, .float-4, .float-5,
  .floating-card-1, .floating-card-2 {
    animation: none;
  }
  .hero-blob { animation: none; }
  .scroll-dot { animation: none; }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
  max-h: 0;
}

.mobile-menu.open {
  max-h: 400px;
}

.mobile-nav-link {
  display: block;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .navbar {
    height: 64px;
  }

  #hero {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-blob {
    display: none;
  }

  .floating-elements {
    display: none;
  }

  .floating-card-2 {
    display: none;
  }

  .floating-card-1 {
    -webkit-transform: scale(0.85);
    transform: scale(0.85);
  }

  h1 {
    font-size: 2.75rem !important;
    line-height: 1.1 !important;
  }

  .reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero {
    padding-top: 90px;
  }
}

/* ============================================
   Focus Visible
   ============================================ */
*:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ============================================
   Print
   ============================================ */
@media print {
  .navbar, .floating-elements, .hero-blob { display: none; }
  body { background: white; }
  a { color: #047857; }
}
