/* ========== BASE & RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

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

.geo-circle-1 {
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.4) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.3) 0%, transparent 70%);
  bottom: 10%; left: 5%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  top: 30%; left: 15%;
  animation: float-slow 12s ease-in-out infinite;
}

.geo-square-1 {
  width: 120px; height: 120px;
  background: rgba(45,212,191,0.3);
  border-radius: 24px;
  top: 20%; right: 25%;
  transform: rotate(45deg);
  animation: spin-slow 25s linear infinite;
}

.geo-square-2 {
  width: 80px; height: 80px;
  background: rgba(251,191,36,0.25);
  border-radius: 16px;
  bottom: 25%; right: 15%;
  transform: rotate(20deg);
  animation: spin-slow 18s linear infinite reverse;
}

.geo-triangle {
  width: 0; height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid rgba(45,212,191,0.2);
  top: 60%; left: 10%;
  transform: rotate(-15deg);
  animation: float-slow 16s ease-in-out infinite;
}

.geo-dots {
  width: 100px; height: 100px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 12px 12px;
  bottom: 15%; right: 35%;
}

/* ========== ANIMATIONS ========== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}

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

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

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

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

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open .menu-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
  width: 1.25rem;
}

.mobile-link {
  display: block;
  font-display: font;
  font-weight: 500;
  color: #334155;
  font-size: 1.125rem;
  padding: 0.5rem 0;
}

.mobile-link:hover {
  color: #0d9488;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible, button:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== UTILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-marquee { animation: none; }
}
