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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

::selection {
  background: #065f46;
  color: #fefce8;
}

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

#navbar.scrolled {
  background: rgba(254, 252, 232, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-logo-text {
  transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
  color: #064e3b;
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #5e4f3e;
}

#navbar.scrolled .nav-link:hover {
  color: #059669;
}

#navbar.scrolled .nav-link::after {
  background: #059669;
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
  padding: 2rem;
}

.menu-line {
  display: block;
}

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

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

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

.mobile-link {
  opacity: 1;
}

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

.circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #fbbf24;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #34d399;
  bottom: 15%;
  right: 15%;
  animation: float 6s ease-in-out infinite reverse;
}

.triangle-1 {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid #fde047;
  top: 25%;
  right: 8%;
  transform: rotate(15deg);
  animation: spin 20s linear infinite;
  opacity: 0.1;
}

.rect-1 {
  width: 120px;
  height: 120px;
  background: #6ee7b7;
  border-radius: 24px;
  top: 40%;
  right: 5%;
  transform: rotate(45deg);
  animation: float 10s ease-in-out infinite;
  opacity: 0.12;
}

.dot-grid {
  width: 120px;
  height: 120px;
  top: 60%;
  left: 5%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  opacity: 0.2;
  animation: float 7s ease-in-out infinite;
}

.dot-grid span {
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #065f46;
  border-radius: 4px;
}

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

/* ===== FORM STYLES ===== */
input:focus, textarea:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* ===== SUCCESS MESSAGE ===== */
.success-msg {
  display: none;
  background: #065f46;
  color: #fefce8;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin-top: 1rem;
  font-weight: 600;
  animation: fadeIn 0.4s ease;
}

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