*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --coral-500: #FF6B4A;
  --coral-400: #FF8566;
  --charcoal-900: #1a1a1a;
  --charcoal-800: #2d2d2d;
}

body {
  background-color: var(--charcoal-900);
  color: white;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.geo-shape {
  position: absolute;
  opacity: 0.03;
}

.geo-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 2px solid var(--coral-500);
  top: -200px;
  right: -100px;
}

.geo-rect-1 {
  width: 300px;
  height: 300px;
  background: var(--coral-500);
  bottom: 20%;
  left: -80px;
  transform: rotate(45deg);
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 208px solid var(--coral-500);
  top: 40%;
  right: 5%;
  opacity: 0.02;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--coral-500);
  bottom: 10%;
  right: 15%;
  opacity: 0.04;
}

.geo-dots {
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, var(--coral-500) 1px, transparent 1px);
  background-size: 12px 12px;
  top: 60%;
  left: 10%;
  opacity: 0.06;
}

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

.hero-overlay {
  background-image: linear-gradient(
    to right,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.8) 50%,
    rgba(26, 26, 26, 0.4) 100%
  );
}

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

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

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral-500);
  transition: width 0.3s ease;
}

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

/* Mobile Menu */
.hamburger-line {
  display: block;
}

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

#mobile-menu.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 24px;
  margin-left: 0;
  margin-right: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* 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, var(--coral-500), var(--coral-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

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

.reveal.visible {
  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; }

/* Staggered service card reveals */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Gallery item stagger */
.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.3s; }

/* Selection */
::selection {
  background: var(--coral-500);
  color: white;
}

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

::-webkit-scrollbar-track {
  background: var(--charcoal-900);
}

::-webkit-scrollbar-thumb {
  background: var(--charcoal-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--coral-500);
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.2s ease;
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 300px;
    height: 300px;
  }
  .geo-rect-1 {
    width: 150px;
    height: 150px;
  }
  .geo-triangle-1 {
    display: none;
  }
}
