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

body {
  overflow-x: hidden;
}

::selection {
  background: #A7F3D0;
  color: #064E3B;
}

/* ===== Navigation ===== */
.nav-scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.nav-scrolled .nav-link {
  position: relative;
}

.nav-scrolled .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

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

.mobile-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
  color: #059669;
  transform: scale(1.05);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: #D1FAE5;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #FEF3C7;
  bottom: -50px;
  left: -50px;
  animation-delay: -3s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #BBF7D0;
  top: 50%;
  left: 40%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Content Animation */
.hero-content {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

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

/* Hero Cards */
.hero-card-main {
  animation: cardFloat 6s ease-in-out infinite;
}

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

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

.float-1 { animation-delay: 0s; }
.float-2 { animation-delay: -1.5s; }
.float-3 { animation-delay: -3s; }

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

/* ===== Service Cards ===== */
.service-card {
  cursor: default;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== Form Styles ===== */
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='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .hero-float-card {
    display: none;
  }

  .hero-card-main {
    position: relative;
    width: 100% !important;
    margin-top: 2rem;
  }

  .hero-card-main img {
    height: 280px;
  }

  h1 {
    font-size: 2.75rem !important;
  }
}

@media (max-width: 640px) {
  .nav-scrolled .hidden {
    display: none;
  }
}

/* ===== Focus Visible ===== */
*:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Print ===== */
@media print {
  .nav-scrolled,
  .hero-blob,
  .hero-float-card {
    display: none;
  }
}
