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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

::selection {
  background: #34d4a8;
  color: #0a2e4d;
}

/* === NAVBAR === */
#navbar {
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(5, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#navbar .max-w-7xl {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#navbar.scrolled .max-w-7xl {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* === MOBILE MENU === */
#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

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

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
  z-index: 1;
}

/* === SERVICE CARDS === */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

/* === COUNTER ANIMATION === */
[data-count] {
  display: inline-block;
}

/* === 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; }

/* === GEOMETRIC DECORATIONS === */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* === BUTTONS === */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #34d4a8;
  outline-offset: 2px;
}

/* === FORM === */
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='%230a2e4d' 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;
  padding-right: 2.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #hero::after {
    height: 60px;
  }

  .font-serif {
    line-height: 1.2;
  }
}

/* === ANIMATIONS === */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(10px) rotate(-6deg); }
}

.geo-float {
  animation: float 6s ease-in-out infinite;
}

.geo-float-reverse {
  animation: float-reverse 7s ease-in-out infinite;
}
