/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; overflow-x: hidden; }

/* ===== NAVBAR ===== */
#navbar {
  background: linear-gradient(180deg, rgba(15,23,42,0.9) 0%, transparent 100%);
}
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #059669);
  transition: width 0.3s;
  border-radius: 1px;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ===== HERO ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(20,184,166,0.15) 0%, transparent 100%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(5,150,105,0.1) 0%, transparent 100%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(6,182,212,0.1) 0%, transparent 100%);
  background-color: #0f172a;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(20,184,166,0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(5,150,105,0.03) 0%, transparent 50%);
  background-size: 60px 60px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.95) 100%);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes floatDelayed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes floatDelayed2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: floatDelayed 7s ease-in-out infinite; }
.animate-float-delayed-2 { animation: floatDelayed2 8s ease-in-out infinite; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== STATS ===== */
.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #059669);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(20,184,166,0.2);
}
.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0d9488, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-suffix {
  font-size: 2rem;
  font-weight: 800;
  color: #0d9488;
  margin-left: 2px;
}
.stat-label {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ===== SERVICES CARDS ===== */
.service-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20,184,166,0.03), rgba(5,150,105,0.03));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  border-color: #14b8a6;
}
.service-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.service-card:hover .card-icon { transform: scale(1.1); }
.service-card .card-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d9488;
  background: #f0fdfa;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.service-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.service-card p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}

/* ===== PROCESS ===== */
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(20,184,166,0.2);
}
.step-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.step-text {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

/* ===== CONTACT ===== */
#contactForm input, #contactForm select, #contactForm textarea {
  font-size: 0.95rem;
}
#contactForm input:focus, #contactForm select:focus, #contactForm textarea:focus {
  box-shadow: 0 0 0 4px rgba(20,184,166,0.15);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 100;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
  backdrop-filter: blur(10px);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { background: linear-gradient(135deg, #059669, #0d9488); box-shadow: 0 10px 30px -5px rgba(5,150,105,0.4); }
.toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 10px 30px -5px rgba(220,38,38,0.4); }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  padding: 10rem 2rem 6rem;
  overflow: hidden;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.6) 100%);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #059669);
  z-index: 60;
  width: 0%;
  transition: width 0.1s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .stat-number { font-size: 2.25rem; }
  .stat-card { padding: 1.5rem 1rem; }
  .service-card { padding: 1.25rem; }
}
