* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(49, 151, 149, 0.15);
  color: #1c3322;
}

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

@keyframes breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(49, 151, 149, 0.4),
      0 10px 40px -5px rgba(49, 151, 149, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(49, 151, 149, 0),
      0 10px 40px -5px rgba(49, 151, 149, 0.15);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatDelay {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

@keyframes scrollReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.cta-breath {
  animation: breathe 3s ease-in-out infinite;
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card-delay {
  animation: floatDelay 4.5s ease-in-out infinite;
  animation-delay: 1s;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.particle-1 {
  width: 6px;
  height: 6px;
  background: rgba(49, 151, 149, 0.15);
  left: 10%;
  animation: particleFloat 15s linear infinite;
  animation-delay: 0s;
}

.particle-2 {
  width: 4px;
  height: 4px;
  background: rgba(184, 134, 11, 0.12);
  left: 30%;
  animation: particleFloat 20s linear infinite;
  animation-delay: 3s;
}

.particle-3 {
  width: 8px;
  height: 8px;
  background: rgba(49, 151, 149, 0.1);
  left: 55%;
  animation: particleFloat 18s linear infinite;
  animation-delay: 6s;
}

.particle-4 {
  width: 5px;
  height: 5px;
  background: rgba(28, 51, 34, 0.08);
  left: 75%;
  animation: particleFloat 22s linear infinite;
  animation-delay: 2s;
}

.particle-5 {
  width: 7px;
  height: 7px;
  background: rgba(49, 151, 149, 0.12);
  left: 90%;
  animation: particleFloat 16s linear infinite;
  animation-delay: 8s;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(28, 51, 34, 0.06);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #319795, #3ab5b0);
  transition:
    width 0.3s ease,
    left 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hamburger-icon span {
  transition: all 0.3s ease;
}

.hamburger-active #bar1 {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-active #bar2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-active #bar3 {
  transform: translateY(-8px) rotate(-45deg);
}

#success-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#success-modal.active .modal-content {
  transform: scale(1);
}

#success-modal.active .modal-backdrop {
  opacity: 1;
}

.complaint-option input:checked + div {
  background-color: #319795;
  color: white;
  border-color: #319795;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232D3748'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea::-webkit-scrollbar {
  width: 4px;
}

textarea::-webkit-scrollbar-track {
  background: transparent;
}

textarea::-webkit-scrollbar-thumb {
  background: rgba(49, 151, 149, 0.2);
  border-radius: 2px;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

@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: smooth;
  }
}

@media (max-width: 768px) {
  .floating-card,
  .floating-card-delay {
    animation: none;
  }

  .particle {
    display: none;
  }
}
