/* Base & Utilities */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { overflow-x: hidden; }

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #14b8a6;
  transition: width 0.5s ease;
}
.service-card:hover::after {
  width: 100%;
}

/* Testimonial Cards */
.testimonial-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(20, 184, 166, 0.1);
}

/* Navbar Scroll State */
.header-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.header-scrolled .nav-link { color: #64748b; }
.header-scrolled .nav-link:hover { color: #0d9488; }

/* Mobile Menu */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #14b8a6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.mobile-link:hover::after {
  width: 100%;
}

/* Custom Select Arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
  -webkit-appearance: none;
}

/* Smooth focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Selection color */
::selection {
  background: rgba(20, 184, 166, 0.2);
  color: #0f766e;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Subtle animation for hero image */
@keyframes slowZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
#hero img {
  animation: slowZoom 20s ease-in-out infinite;
}

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
