/* 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 {
  overflow-x: hidden;
}

::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #f0fdfa;
}

/* Geometric Background Shapes */
.geometric-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.geo-circle--1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -100px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  left: -50px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0.3;
}

.geo-triangle--1 {
  top: 40%;
  left: 5%;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(13, 148, 136, 0.08);
  animation: spin-slow 30s linear infinite;
}

.geo-diamond {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

.geo-diamond--1 {
  top: 60%;
  right: 8%;
  background: rgba(45, 212, 191, 0.06);
  transform: rotate(45deg);
  animation: float-slow 12s ease-in-out infinite;
}

.geo-arc {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}

.geo-arc--1 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  right: 15%;
  border: 2px solid rgba(45, 212, 191, 0.1);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: spin-slow 25s linear infinite;
}

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

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

/* Navbar */
.nav {
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

.nav.scrolled {
  background: rgba(8, 14, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
.mobile-menu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  transition: color 0.2s ease;
}

.menu-line {
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

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

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

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, transparent 50%, rgba(45, 212, 191, 0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.3s ease;
}

.service-card:hover::before {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.3) 0%, transparent 50%, rgba(45, 212, 191, 0.1) 100%);
}

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

.gallery-item img {
  will-change: transform;
}

/* Review Cards */
.review-card {
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(45, 212, 191, 0.06);
  line-height: 1;
  pointer-events: none;
}

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

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

/* Form */
select option {
  background: #1e293b;
  color: #f1f5f9;
}

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

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Responsive */
@media (max-width: 768px) {
  .geo-circle--1 {
    width: 200px;
    height: 200px;
  }

  .geo-circle--2 {
    width: 150px;
    height: 150px;
  }
}
