/* ===== Base & Animations ===== */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #064e3b;
  color: #fefce8;
}

/* ===== Hero Geometric Shapes ===== */
.hero-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: shapeAppear 0.8s ease forwards;
}

.shape-circle-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -5%;
  right: -5%;
  animation-delay: 0.3s;
}

.shape-circle-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  left: -3%;
  animation-delay: 0.5s;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(110, 231, 183, 0.08);
  border: 2px solid rgba(110, 231, 183, 0.15);
  border-radius: 24px;
  top: 20%;
  left: 5%;
  transform: rotate(45deg);
  animation-delay: 0.6s;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(250, 204, 21, 0.1);
  top: 35%;
  right: 8%;
  animation-delay: 0.7s;
  animation-name: shapeAppear;
}

.shape-dot {
  width: 16px;
  height: 16px;
  background: #d97706;
  border-radius: 50%;
  top: 60%;
  left: 3%;
  animation-delay: 0.9s;
  opacity: 0;
  animation-name: shapeAppear;
}

.shape-strip {
  width: 200px;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.3), transparent);
  bottom: 25%;
  right: 15%;
  border-radius: 3px;
  animation-delay: 0.8s;
  opacity: 0;
  animation-name: shapeAppear;
}

@keyframes shapeAppear {
  from { opacity: 0; transform: scale(0.8) rotate(0deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.shape-triangle {
  animation-name: shapeAppearTri;
}

@keyframes shapeAppearTri {
  from { opacity: 0; transform: scale(0.8) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ===== Fade Up Animation ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease forwards;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s 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; }

/* ===== Service Cards ===== */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(6, 78, 59, 0.3);
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(6, 78, 59, 0.08);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ===== Nav Links Hover ===== */
.nav-link {
  position: relative;
}

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

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

/* ===== Button Focus ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #064e3b;
  outline-offset: 2px;
}

/* ===== Smooth Scroll Offset ===== */
section[id] {
  scroll-margin-top: 80px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #faf8f5;
}

::-webkit-scrollbar-thumb {
  background: #064e3b;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .shape-circle-1 {
    width: 250px;
    height: 250px;
  }

  .shape-circle-2 {
    width: 160px;
    height: 160px;
  }

  .shape-rect-1 {
    width: 70px;
    height: 70px;
  }
}
