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

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

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Geometric Decorative Shapes ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.geo-circle-1 {
  top: 15vh;
  right: 5%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.12);
}

.geo-square-1 {
  top: 35vh;
  left: 3%;
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.08);
  transform: rotate(45deg);
}

.geo-triangle-1 {
  bottom: 20vh;
  right: 10%;
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid rgba(16, 185, 129, 0.08);
}

.geo-circle-2 {
  top: 60vh;
  left: 8%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.06);
}

.geo-rect-1 {
  top: 80vh;
  right: 15%;
  width: 100px;
  height: 40px;
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.07);
}

/* ===== Navbar ===== */
.nav-scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

.nav-scrolled #navbar {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

/* Mobile menu */
#mobileMenu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #059669;
}

/* Menu button animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: translateY(-4px) rotate(-45deg);
  margin-left: 0;
}

/* ===== Marquee ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(254, 252, 232, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 2rem;
}

.marquee-dot {
  display: inline-flex;
  align-items: center;
  color: rgba(254, 252, 232, 0.3);
  font-size: 0.5rem;
  padding: 0 0.5rem;
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

/* ===== Feature Cards ===== */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #34d399);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .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; }
}

/* ===== Contact Form ===== */
#contactForm .input-field {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contactForm .input-field:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  outline: none;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .geo-shape {
    display: none;
  }
}
