/* === CUSTOM STYLES === */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Geometric shapes */
.geo-shape {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}

.circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 3px solid rgba(254, 252, 232, 0.6);
  top: -100px;
  left: -100px;
  animation: float 20s ease-in-out infinite;
}

.circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(254, 252, 232, 0.3);
  bottom: 15%;
  right: 10%;
  animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(254, 252, 232, 0.4);
  top: 30%;
  right: 5%;
  animation: float 12s ease-in-out infinite;
}

.triangle-1 {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(254, 252, 232, 0.15);
  top: 20%;
  right: 25%;
  transform: rotate(15deg);
  animation: spin 25s linear infinite;
}

.rect-1 {
  width: 100px;
  height: 60px;
  border: 2px solid rgba(254, 252, 232, 0.3);
  border-radius: 8px;
  bottom: 25%;
  left: 8%;
  transform: rotate(-20deg);
  animation: float 18s ease-in-out infinite reverse;
}

.dot-grid {
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(254, 252, 232, 0.5) 2px, transparent 2px);
  background-size: 16px 16px;
  top: 60%;
  left: 15%;
  animation: float 22s ease-in-out infinite;
}

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

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

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

/* Nav links underline animation */
.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
#mobileMenu.open {
  transform: translateX(0);
}

/* 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; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Selection color */
::selection {
  background: #059669;
  color: #fefce8;
}
