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

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

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

/* ===== 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 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
  color: #0d9488;
  transform: scale(1.05);
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

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

.geo-circle-1 {
  width: 500px;
  height: 500px;
  border: 3px solid #2dd4bf;
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border: 2px solid #5eead4;
  border-radius: 50%;
  bottom: 10%;
  left: 5%;
}

.geo-rect-1 {
  width: 200px;
  height: 200px;
  background: #0d9488;
  border-radius: 32px;
  top: 15%;
  left: 3%;
  transform: rotate(45deg);
  opacity: 0.06;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid #2dd4bf;
  top: 60%;
  right: 8%;
  opacity: 0.08;
}

.geo-dot-group {
  top: 40%;
  left: 15%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-dot-group span {
  width: 8px;
  height: 8px;
  background: #2dd4bf;
  border-radius: 50%;
  opacity: 0.5;
}

.geo-dot-group span:nth-child(2) {
  width: 12px;
  height: 12px;
  opacity: 0.3;
}

.geo-dot-group span:nth-child(3) {
  width: 6px;
  height: 6px;
  opacity: 0.6;
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.2);
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

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

/* ===== Selection ===== */
::selection {
  background: #0d9488;
  color: white;
}

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

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

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

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