/* ========== BASE & RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ========== NAVBAR ========== */
#navbar.scrolled {
  background: rgba(51, 20, 44, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(107, 45, 91, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.geo-circle-1 {
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, #F5A623 0%, transparent 70%);
  top: -80px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, #f472b6 0%, transparent 70%);
  bottom: 10%; left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}

.geo-square-1 {
  width: 140px; height: 140px;
  background: #F5A623;
  border-radius: 24px;
  top: 25%; left: 8%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
  opacity: 0.08;
}

.geo-square-2 {
  width: 80px; height: 80px;
  background: #f472b6;
  border-radius: 16px;
  bottom: 20%; right: 12%;
  transform: rotate(20deg);
  animation: float 6s ease-in-out infinite;
  opacity: 0.1;
}

.geo-triangle-1 {
  width: 0; height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #F5A623;
  top: 60%; left: 5%;
  opacity: 0.07;
  animation: float 9s ease-in-out infinite;
}

.geo-diamond {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, #f472b6, #F5A623);
  border-radius: 12px;
  top: 40%; right: 5%;
  transform: rotate(45deg);
  animation: spin-slow 15s linear infinite;
  opacity: 0.09;
}

.geo-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 20px solid #F5A623;
  bottom: -40px; left: 30%;
  opacity: 0.06;
  animation: float 7s ease-in-out infinite reverse;
}

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

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

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
  opacity: 0;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }

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

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

/* ========== SERVICE CARDS ========== */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #F5A623, #f472b6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }

/* ========== GALLERY ========== */
.gallery-item {
  position: relative;
  cursor: pointer;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(51, 20, 44, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }

/* ========== BACK TO TOP ========== */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ========== MOBILE MENU ========== */
.mobile-link { border-bottom: 1px solid rgba(167, 109, 149, 0.2); }
.mobile-link:last-child { border-bottom: none; }

/* ========== CUSTOM SELECT ========== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%23F5A623' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .geo-circle-1 { width: 260px; height: 260px; }
  .geo-circle-2 { width: 160px; height: 160px; }
  .geo-square-1 { width: 80px; height: 80px; }
  .geo-diamond { width: 60px; height: 60px; }
  .geo-ring { width: 120px; height: 120px; border-width: 12px; }
  .geo-triangle-1 { border-left-width: 45px; border-right-width: 45px; border-bottom-width: 80px; }
}
