/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Floating Cards Animation ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}
.floating-card {
  animation: float-slow 4s ease-in-out infinite;
}
.card-top-right { animation-delay: 0s; }
.card-bottom-left { animation: float-medium 5s ease-in-out infinite; animation-delay: 1s; }

/* ── Geometric Background Shapes ── */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.geo-circle-1 {
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, #34d399, transparent 70%);
  top: -100px; right: -150px;
  animation: float-slow 12s ease-in-out infinite;
}
.geo-circle-2 {
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #6ee7b7, transparent 70%);
  bottom: 100px; left: -100px;
  animation: float-medium 10s ease-in-out infinite;
}
.geo-circle-3 {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, #34d399, transparent 70%);
  top: 20%; right: -50px;
  animation: float-slow 8s ease-in-out infinite;
}
.geo-circle-4 {
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254,252,232,0.15), transparent 70%);
  bottom: -200px; right: -100px;
  animation: float-medium 14s ease-in-out infinite;
}
.geo-square-1 {
  width: 120px; height: 120px;
  background: #34d399;
  top: 20%; left: 5%;
  transform: rotate(45deg);
  animation: float-slow 9s ease-in-out infinite;
}
.geo-square-2 {
  width: 80px; height: 80px;
  background: rgba(254,252,232,0.2);
  top: 10%; right: 15%;
  transform: rotate(30deg);
  animation: float-medium 11s ease-in-out infinite;
}
.geo-triangle-1 {
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid #34d399;
  top: 60%; right: 5%;
  animation: float-slow 7s ease-in-out infinite;
}
.geo-diamond-1 {
  width: 200px; height: 200px;
  background: #059669;
  top: 10%; left: -50px;
  transform: rotate(45deg);
  animation: float-medium 13s ease-in-out infinite;
}
.geo-dots {
  background-image: radial-gradient(circle, #34d399 1px, transparent 1px);
  background-size: 24px 24px;
  width: 100%; height: 100%;
  top: 0; left: 0;
  opacity: 0.04;
}

/* ── Marquee ── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 30s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08), 0 4px 20px rgba(6, 78, 59, 0.06);
}

/* ── Mobile Menu ── */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Menu Button Animation ── */
.menu-open .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-open .menu-line:nth-child(2) { opacity: 0; }
.menu-open .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 20px; }

/* ── Service Card Progress Bar ── */
.service-card .progress-bar {
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Custom Select Arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' 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 12px center;
  padding-right: 40px;
}

/* ── Selection Color ── */
::selection {
  background: #059669;
  color: #fefce8;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
