/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== NAVIGATION ========== */
#nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 251, 252, 0.85);
  border-bottom: 1px solid rgba(232, 238, 242, 0.6);
}

#nav.scrolled {
  background: rgba(250, 251, 252, 0.95);
  box-shadow: 0 1px 20px rgba(11, 29, 58, 0.06);
}

.h-18 {
  height: 72px;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  display: block;
  border-bottom: 1px solid rgba(232, 238, 242, 0.5);
  transition: color 0.2s;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ========== HERO ========== */
#hero {
  position: relative;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4ECDC4, #7EDDD6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ========== WHY US CARDS ========== */
.why-card {
  position: relative;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.visible {
  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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== BACK TO TOP ========== */
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ========== FORM 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='%230B1D3A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
  -webkit-appearance: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .font-display {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
