/* ========================================
   Shear Envy by Shelby Senior — Styles
   ======================================== */

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

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

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

/* Nav link underline on hover */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d97706;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 253, 247, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(6, 78, 59, 0.1);
}

/* Mobile nav links */
.mobile-nav-link {
  position: relative;
}

/* Floating card animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-6px) translateX(4px); }
}

.floating-card {
  animation-duration: 3.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.card-stat-1 {
  animation-name: float;
}

.card-stat-2 {
  animation-name: float-delayed;
  animation-delay: 0.5s;
}

.card-stat-3 {
  animation-name: float-slow;
  animation-delay: 1s;
}

/* Hero blobs */
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-blob {
  animation: blob-drift 12s ease-in-out infinite;
}

.blob-1 {
  animation-delay: 0s;
}

.blob-2 {
  animation-delay: -4s;
}

.blob-3 {
  animation-delay: -8s;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* Form focus states */
input:focus, select:focus, textarea:focus {
  outline: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: #065f46;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Selection color */
::selection {
  background: #34d399;
  color: #064e3b;
}

/* Smooth image loading */
img {
  display: block;
  max-width: 100%;
}

/* Print styles */
@media print {
  #navbar, .floating-card, .hero-blob {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
