/* Base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Floating card animations */
.floating-card {
  animation: float1 3.5s ease-in-out infinite;
}

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

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

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

/* Scroll reveal (progressive enhancement - content visible without JS) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu transitions */
#mobileMenu {
  transition: max-height 0.3s ease;
}

/* Nav link hover underline effect */
#navLinks a {
  position: relative;
}

#navLinks a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F05A28;
  transition: width 0.2s ease;
}

#navLinks a:hover::after {
  width: 100%;
}

/* Service card hover lift */
.group:hover {
  transform: translateY(-4px);
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid #F05A28;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile link styles */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Ensure hero text is readable */
.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
