/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* Section Styles */
.section-label { letter-spacing: 0.2em; }
.section-title { line-height: 1.15; }
.section-desc { line-height: 1.7; }

/* Navbar */
#navbar { transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease; }
#navbar.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Scroll indicator */
.scroll-indicator { animation: float 2s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Hero animations */
.hero-badge { animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.2s; }
.hero-title { animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.4s; }
.hero-subtitle { animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.6s; }
.hero-cta { animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.8s; }
.hero-stats > div { animation: fadeRight 0.6s ease forwards; opacity: 0; }
.hero-stats > div:nth-child(1) { animation-delay: 1s; }
.hero-stats > div:nth-child(2) { animation-delay: 1.1s; }
.hero-stats > div:nth-child(3) { animation-delay: 1.2s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Service cards */
.service-card { transform: translateY(0); }
.service-card:hover { transform: translateY(-4px); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Mobile menu */
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Selection */
::selection { background: rgba(13, 148, 136, 0.2); color: #1e293b; }

/* Focus visible */
:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }

/* Select styling */
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%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* Responsive */
@media (max-width: 768px) {
  .section-title { font-size: 2.25rem; }
  .hero-title { font-size: 2.5rem; }
  @media (min-width: 769px) {
    .hero-title { font-size: 3.5rem; }
  }
}
