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

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

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

/* Scroll dot animation */
@keyframes scrollDot {
  0% { top: -16px; }
  100% { top: 48px; }
}

.scroll-dot {
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* Navigation */
.nav-link {
  position: relative;
}

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

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

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

.mobile-menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #0d9488;
  transition: width 0.3s ease;
}

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

.menu-line {
  transition: all 0.3s ease;
}

/* Scroll reveal base — content is visible by default */
.about-reveal,
.products-reveal,
.products-card,
.visit-reveal,
.contact-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .about-reveal,
  .products-reveal,
  .products-card,
  .visit-reveal,
  .contact-reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .about-reveal.in-view,
  .products-reveal.in-view,
  .products-card.in-view,
  .visit-reveal.in-view,
  .contact-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .products-card:nth-child(2) { transition-delay: 0.1s; }
  .products-card:nth-child(3) { transition-delay: 0.2s; }
}

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

input::placeholder,
textarea::placeholder {
  color: #cbd5e1;
}

/* Image hover effect */
.overflow-hidden {
  overflow: hidden;
}

.overflow-hidden img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overflow-hidden:hover img {
  transform: scale(1.03);
}

/* Selection color */
::selection {
  background: #0d9488;
  color: white;
}
