/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ─── Navigation ─── */
.nav { transition: box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.08); }

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ─── Hero ─── */
.hero { position: relative; }
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
}
.hero-badge {
  animation: fadeDown 0.8s ease both;
  animation-delay: 0.1s;
}

.hero h1 {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.3s;
}
.hero p {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.5s;
}
.hero > .relative > div:last-child > div:first-child,
.hero > .relative > div:last-child > div:nth-child(2) {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.65s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-blob {
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -3s; }
.blob-3 { animation-delay: -5s; }

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
  100% { transform: translate(15px, -10px) scale(1.02); }
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.8s ease both;
  animation-delay: 1s;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ─── Trust Bar ─── */
.trust-bar {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.2s;
}

/* ─── Product Cards ─── */
.product-card {
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
}
.product-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img {
  transform: scale(1.07);
}
.product-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d9488;
  flex-shrink: 0;
}

/* ─── About Section ─── */
.about-img-wrap {
  overflow: hidden;
  border-radius: 1rem;
}
.about-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-img-wrap:hover .about-img {
  transform: scale(1.05);
}
.about-exp-badge {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ─── Visit Section ─── */
.visit-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 28px 28px;
}
.visit-card {
  transition: transform 0.3s ease, background 0.3s ease;
}
.visit-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
}

/* ─── Contact Form ─── */
.input, .textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus, .textarea:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
  outline: none;
}
.input:invalid:not(:placeholder-shown), .textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.3);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── Footer ─── */
.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}
.footer-link:hover { color: #f8fafc; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
  background: #0d9488;
  color: #fff;
  transform: translateY(-2px);
}

/* ─── Scroll Reveal (Progressive Enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ─── Mobile Menu Animation ─── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
  padding-top: 0.5rem;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .trust-bar { padding: 1rem 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero h1 { font-size: 3.5rem; }
}
