/* Custom CSS Variables and Styles */
:root {
  --background: 40 20% 97%;
  --foreground: 200 50% 15%;
  --primary: 185 55% 30%;
  --primary-foreground: 0 0% 100%;
  --muted-foreground: 200 20% 40%;
  --border: 40 20% 88%;
  --teal-dark: 195 60% 22%;
  --teal-mid: 185 55% 30%;
  --green-brand: 155 45% 42%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
}

.font-display {
  font-family: 'Sora', system-ui, sans-serif;
}

/* Gradient Background */
.gradient-bg {
  background: linear-gradient(135deg, hsl(195 60% 22%), hsl(185 55% 30%), hsl(155 45% 42%));
}

.gradient-text {
  background: linear-gradient(135deg, hsl(195 60% 22%), hsl(185 55% 30%), hsl(155 45% 42%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Styles */
.btn-hero {
  background: linear-gradient(135deg, hsl(195 60% 22%), hsl(185 55% 30%), hsl(155 45% 42%));
  color: white;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  box-shadow: 0 0 40px hsl(185 55% 30% / 0.2);
  transform: scale(1.02);
}

/* Shadow Glow */
.shadow-glow {
  box-shadow: 0 0 40px hsl(185 55% 30% / 0.2);
}

/* Animations */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

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

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

.fade-in {
  opacity: 0;
  animation: fade-in 0.6s ease-out forwards;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

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

.float-animation.delay-200 {
  animation-delay: 200ms;
}

.float-animation.delay-400 {
  animation-delay: 400ms;
}


/* Service Cards Animation */
.service-card {
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0ms; }
.service-card:nth-child(2) { animation-delay: 100ms; }
.service-card:nth-child(3) { animation-delay: 200ms; }
.service-card:nth-child(4) { animation-delay: 300ms; }
.service-card:nth-child(5) { animation-delay: 400ms; }
.service-card:nth-child(6) { animation-delay: 500ms; }

/* Header Scroll Effect */
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -8px hsl(200 50% 15% / 0.12);
}

/* Logo transitions */
.logo-white {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

/* Ensure nav links transition smoothly */
.nav-link {
  transition: color 0.3s ease;
}

/* Mobile menu icon and border transitions */
.mobile-menu-icon {
  transition: color 0.3s ease;
}

.mobile-menu-border {
  transition: border-color 0.3s ease;
}

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, transform, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Form Focus States */
input:focus,
textarea:focus {
  outline: none;
}

/* Mobile Menu Animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 500px;
}


.hero-content {
  padding-top: clamp(6rem, 15vh, 10rem);
  padding-bottom: clamp(3rem, 10vh, 6rem);
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
}

.hero-stats {
  margin-top: clamp(2rem, 4vh, 4rem);
  padding-top: clamp(1rem, 2vh, 2rem);
}

@media (max-height: 700px) {
  .hero-content {
    padding-top: 6rem;
    padding-bottom: 2rem;
    min-height: auto;
  }
  
  .hero-stats {
    margin-top: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 0;
    display: none !important;
  }
}

@media (max-height: 640px) {
  h1 {
    font-size: clamp(1.75rem, 5vw, 3rem) !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-stats {
    display: none !important;
  }
}