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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* Hero shapes */
.geo-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 94, 32, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  left: -150px;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: rgba(27, 94, 32, 0.08);
  border-radius: 24px;
  top: 200px;
  right: 5%;
  transform: rotate(45deg);
}

.geo-circle-2 {
  width: 80px;
  height: 80px;
  background: rgba(244, 228, 188, 0.6);
  border-radius: 50%;
  bottom: 15%;
  right: 10%;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(27, 94, 32, 0.07);
  top: 40%;
  left: 3%;
  transform: rotate(-15deg);
}

.geo-dots {
  background-image: radial-gradient(rgba(27, 94, 32, 0.15) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  width: 160px;
  height: 160px;
  top: 30%;
  right: 2%;
  opacity: 0.6;
}

/* About section shapes */
.geo-diamond-1 {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(45deg);
  border-radius: 16px;
  top: 10%;
  left: 5%;
}

.geo-circle-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -50px;
  right: -50px;
}

.geo-stripes {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.02) 20px,
    rgba(255, 255, 255, 0.02) 40px
  );
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* CTA section shapes */
.geo-circle-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 94, 32, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.geo-square-2 {
  width: 100px;
  height: 100px;
  background: rgba(27, 94, 32, 0.05);
  border-radius: 20px;
  bottom: 10%;
  left: 5%;
  transform: rotate(30deg);
}

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

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.5s;
  opacity: 0;
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.geo-shape {
  animation: float 6s ease-in-out infinite;
}

.geo-square-1 {
  animation: float-reverse 8s ease-in-out infinite;
}

.geo-circle-2 {
  animation: float 7s ease-in-out infinite;
}

.geo-triangle-1 {
  animation: float-reverse 9s ease-in-out infinite;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  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; }

/* ===== MOBILE MENU ===== */
.menu-line {
  display: block;
}

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

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

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

/* ===== 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%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #1B5E20;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 300px;
    height: 300px;
  }
  .geo-square-1 {
    width: 80px;
    height: 80px;
  }
  .geo-triangle-1 {
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 69px;
  }
}
