/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Navbar */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(206, 248, 240, 0.5);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
  color: #334155;
}

/* Hero */
.hero {
  min-height: 100vh;
}

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

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: -2s;
}

.card-3 {
  animation-delay: -4s;
}

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

.hero-card {
  animation: heroCardFloat 8s ease-in-out infinite;
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* Inputs */
.input-field {
  transition: all 0.2s ease;
}

.input-field:focus {
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* Scroll Reveal */
.scroll-element {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Service Cards */
.service-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Gallery */
.gallery-item {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Testimonial Cards */
.testimonial-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Mobile Menu */
.mobile-menu-open #mobile-menu {
  opacity: 1;
  pointer-events: all;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .hero-card {
    animation: none;
  }

  .scroll-element,
  .service-card,
  .gallery-item,
  .testimonial-card {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
