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

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

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

::selection {
  background: #059669;
  color: #fef3c7;
}

/* ========== NAVBAR ========== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fde68a;
  transition: all 0.2s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.mobile-nav-link {
  display: block;
  transition: all 0.2s ease;
}

/* ========== NAVBAR SCROLLED STATE ========== */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(2, 44, 34, 0.3);
}

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

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

.geo-circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #6ee7b7;
  bottom: 10%;
  left: 5%;
  opacity: 0.06;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fef3c7;
  top: 40%;
  right: 15%;
  opacity: 0.1;
}

.geo-square-1 {
  width: 100px;
  height: 100px;
  background: #fde68a;
  top: 20%;
  left: 45%;
  transform: rotate(45deg);
  border-radius: 12px;
  opacity: 0.07;
}

.geo-square-2 {
  width: 60px;
  height: 60px;
  background: #6ee7b7;
  bottom: 25%;
  right: 30%;
  transform: rotate(30deg);
  border-radius: 8px;
  opacity: 0.09;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #fde68a;
  top: 60%;
  left: 8%;
  opacity: 0.06;
  transform: rotate(-15deg);
}

/* ========== FLOATING CARDS ========== */
.floating-card {
  z-index: 10;
}

.card-float-1 {
  animation: float-1 4s ease-in-out infinite;
}

.card-float-2 {
  animation: float-2 5s ease-in-out infinite;
}

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

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

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

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

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MOBILE MENU ANIMATION ========== */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

#mobile-menu.open {
  max-height: 500px;
}

/* ========== BUTTON HOVER EFFECTS ========== */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
  .floating-card {
    display: none;
  }

  .geo-shape {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .floating-card.card-float-3 {
    display: none;
  }
}

/* ========== FORM FOCUS STATES ========== */
input:focus, textarea:focus {
  outline: none;
}

/* ========== SMOOTH SCROLL OFFSET ========== */
section[id] {
  scroll-margin-top: 80px;
}

/* ========== IMAGE LAZY LOADING ========== */
img {
  max-width: 100%;
  height: auto;
}
