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

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

body {
  margin: 0;
}

::selection {
  background: rgba(192, 87, 58, 0.4);
  color: white;
}

/* Geometric Animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

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

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

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

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

@keyframes dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

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

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 87, 58, 0.15) 0%, transparent 70%);
  top: 10%;
  left: -100px;
  animation: float-slow 12s ease-in-out infinite;
}

.shape-circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 149, 58, 0.12) 0%, transparent 70%);
  bottom: 15%;
  right: -50px;
  animation: float-slow-reverse 10s ease-in-out infinite;
}

.shape-square-1 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(192, 87, 58, 0.2);
  top: 25%;
  right: 15%;
  animation: spin-slow 30s linear infinite;
  border-radius: 16px;
}

.shape-square-2 {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(212, 149, 58, 0.15);
  bottom: 30%;
  left: 10%;
  animation: spin-slow 25s linear infinite reverse;
  border-radius: 12px;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(192, 87, 58, 0.08);
  top: 40%;
  left: 5%;
  animation: float-medium 8s ease-in-out infinite;
  transform-origin: center;
}

.shape-dots {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 5%;
  background-image: radial-gradient(circle, rgba(192, 87, 58, 0.3) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: float-medium-reverse 14s ease-in-out infinite;
}

/* Service Cards */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Navbar */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(26, 20, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  transform: translateX(0);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 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; }

/* Form Styles */
select option {
  background: #2A2018;
  color: white;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
  .shape-circle-1 {
    width: 250px;
    height: 250px;
  }
  
  .shape-circle-2 {
    width: 150px;
    height: 150px;
  }
  
  .shape-square-1,
  .shape-square-2 {
    display: none;
  }
  
  .shape-triangle-1 {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .shape-circle-1 {
    width: 300px;
    height: 300px;
  }
}
