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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #020612;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(0, 212, 170, 0.3);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050D1A;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 170, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 170, 0.5);
}

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

.geo-circle-1 {
  top: 10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(0, 212, 170, 0.08);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
  top: 40%;
  right: 10%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(0, 212, 170, 0.06);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

.geo-rect-1 {
  top: 20%;
  left: -3%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(0, 212, 170, 0.05);
  border-radius: 24px;
  transform: rotate(45deg);
  animation: float 18s ease-in-out infinite;
}

.geo-triangle {
  bottom: 15%;
  left: 5%;
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(0, 212, 170, 0.04);
  animation: float 22s ease-in-out infinite reverse;
}

.geo-dot-grid {
  top: 30%;
  right: 25%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(0, 212, 170, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.6;
  animation: float 25s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(2deg); }
  50% { transform: translateY(10px) rotate(-1deg); }
  75% { transform: translateY(-15px) rotate(1deg); }
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: inherit;
}

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

/* Testimonials */
.testimonial-card {
  transition: transform 0.5s ease, border-color 0.5s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.3);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.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; }

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(2, 6, 18, 0.9) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile menu animation */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* 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;
  }
  
  .reveal.hidden-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Selection color override for links */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(0, 212, 170, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}
