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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
}

::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f0fdfa;
}

/* ========== NAVBAR ========== */
.nav {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.nav.scrolled {
  background: rgba(2, 6, 23, 0.95);
  border-bottom-color: rgba(20, 184, 166, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

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

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

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
  color: #f0fdfa;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.25);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  color: #f0fdfa;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(45, 212, 191, 0.4);
  color: #f0fdfa;
  transform: translateY(-2px);
}

/* ========== HERO ========== */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(2, 6, 23, 0.85) 0%,
    rgba(4, 47, 46, 0.75) 40%,
    rgba(13, 148, 136, 0.55) 70%,
    rgba(2, 6, 23, 0.80) 100%
  );
}

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

.geo-circle--1 {
  top: 15vh;
  right: 5%;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(45, 212, 191, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
  bottom: 20vh;
  left: 3%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(45, 212, 191, 0.06);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.geo-square--1 {
  top: 40vh;
  left: 8%;
  width: 80px;
  height: 80px;
  background: rgba(20, 184, 166, 0.04);
  border: 1px solid rgba(45, 212, 191, 0.1);
  transform: rotate(45deg);
  animation: rotate-slow 20s linear infinite;
}

.geo-diamond--1 {
  bottom: 30vh;
  right: 10%;
  width: 60px;
  height: 60px;
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.12);
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
}

.geo-ring--1 {
  top: 60vh;
  right: 15%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(45, 212, 191, 0.06);
  border-radius: 50%;
  animation: pulse-ring 4s ease-in-out infinite;
}

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

@keyframes rotate-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
}

/* ========== GALLERY ========== */
.gallery-item {
  cursor: pointer;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .geo-shape {
    animation: none;
  }
  .geo-circle--1, .geo-circle--2, .geo-square--1, .geo-diamond--1, .geo-ring--1 {
    animation: none;
  }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: #14b8a6;
  transform: translateY(-2px);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  animation: slideDown 0.3s ease;
}

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

.mobile-menu.open {
  display: block;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* ========== MOBILE MENU BUTTON ========== */
.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .font-display.text-4xl { font-size: 2.25rem; }
  .font-display.text-5xl { font-size: 2.5rem; }
}
