/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Nav link underline on hover */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #2dd4bf;
  transition: width 0.2s ease;
  margin-top: 2px;
}

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

/* Mobile links */
.mobile-link {
  position: relative;
  padding-left: 0;
}

.mobile-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #2dd4bf;
  transition: width 0.2s ease;
}

.mobile-link:hover::before {
  width: 16px;
}

/* Product card image overflow */
.product-card {
  will-change: transform;
}

/* Feature card hover glow */
.feature-card {
  will-change: transform;
  backdrop-filter: blur(4px);
}

/* Testimonial card subtle pattern */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 120px;
  color: #f0fdfa;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
  .product-card,
  .feature-card,
  .testimonial-card {
    transition: none;
  }
  .product-card:hover,
  .feature-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
  .product-card img {
    transition: none;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

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

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

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