/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 240, 242, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.close {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* ===== HERO GEO ANIMATIONS ===== */
.hero-geo {
  will-change: transform;
}

.hero-geo-1 {
  animation: float1 8s ease-in-out infinite;
}

.hero-geo-2 {
  animation: float2 10s ease-in-out infinite;
}

.hero-geo-3 {
  animation: float3 7s ease-in-out infinite;
}

.hero-geo-4 {
  animation: pulse 3s ease-in-out infinite;
}

.hero-geo-5 {
  animation: pulse 2.5s ease-in-out infinite reverse;
}

.hero-geo-6 {
  animation: spin 20s linear infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, 20px) scale(1.08); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -15px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2) !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ===== SERVICE CARDS ===== */
.card-service {
  perspective: 1000px;
}

.card-service > div {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-service:hover > div {
  transform: translateY(-6px);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 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 { opacity: 1; transform: none; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf0f2;
}
::-webkit-scrollbar-thumb {
  background: #d4394e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #971a30;
}

/* ===== SELECTION ===== */
::selection {
  background: #f9c7dc;
  color: #7B2D3B;
}

/* ===== FORM STYLES ===== */
select option {
  background: #7B2D3B;
  color: white;
}

/* ===== UTILITY ===== */
@media (max-width: 768px) {
  .hero-geo-1,
  .hero-geo-2,
  .hero-geo-3 {
    opacity: 0.5;
  }
}
