/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(165, 214, 167, 0.3);
}

#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(27, 94, 32, 0.08);
}

.nav-link {
  position: relative;
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#mobileMenuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}

.geo-circle-1 {
  width: 420px;
  height: 420px;
  background: #1B5E20;
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  background: #C8E6C9;
  border-radius: 50%;
  bottom: 15%;
  left: -50px;
  opacity: 0.2;
}

.geo-circle-3 {
  width: 80px;
  height: 80px;
  background: #F9A825;
  border-radius: 50%;
  top: 30%;
  right: 5%;
  opacity: 0.3;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: #1B5E20;
  top: 20%;
  left: 5%;
  transform: rotate(45deg);
  opacity: 0.08;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #C8E6C9;
  top: 60%;
  right: 15%;
  opacity: 0.15;
}

.geo-rect-1 {
  width: 200px;
  height: 60px;
  background: #2E7D32;
  bottom: 10%;
  left: 10%;
  transform: rotate(-15deg);
  opacity: 0.08;
  border-radius: 8px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1B5E20, #43A047, #66BB6A);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px 3px 0 0;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ===== CONDITION CARDS ===== */
.condition-card {
  position: relative;
  overflow: hidden;
}

.condition-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1B5E20, #43A047);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.condition-card:hover::after {
  transform: scaleX(1);
}

/* ===== FAQ ===== */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-content.open {
  max-height: 300px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #1B5E20;
}

.faq-item.active .faq-icon svg {
  stroke: #E8F5E9;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== FLOATING CARD ANIMATION ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

/* ===== INPUT FOCUS ===== */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .geo-circle-1 {
    width: 250px;
    height: 250px;
  }
  .geo-square-1 {
    width: 70px;
    height: 70px;
  }
  .geo-triangle-1 {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #C8E6C9;
  }
}
