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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

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

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

.nav-link {
  position: relative;
}

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

.shape-circle-1 {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  top: -80px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  bottom: 15%;
  left: 5%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  top: 30%;
  left: 8%;
  animation: float 7s ease-in-out infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(255, 255, 255, 0.08);
  top: 20%;
  right: 10%;
  transform: rotate(15deg);
  animation: spin-slow 20s linear infinite;
}

.shape-diamond {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.06);
  bottom: 25%;
  right: 5%;
  transform: rotate(45deg);
  animation: float 9s ease-in-out infinite;
}

.shape-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  top: 60%;
  left: 15%;
  animation: float 5s ease-in-out infinite reverse;
}

.shape-squares {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  top: 45%;
  right: 20%;
  transform: rotate(30deg);
  animation: spin-slow 15s linear infinite;
}

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

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

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  transform: translateY(0);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

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

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

@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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* ========== BUTTON FOCUS ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #0f766e;
}

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

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
