/* ===== 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 {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: #C2594A;
  color: #fff;
}

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(254, 252, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 213, 183, 0.3);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 252, 246, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-title {
  font-size: 1rem;
}

.nav-subtitle {
  font-size: 0.6rem;
}

.nav-link {
  position: relative;
}

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

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

/* ===== MOBILE MENU ===== */
.menu-line {
  transition: all 0.3s ease;
}

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

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

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

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

.geo-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194, 89, 74, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 213, 183, 0.3) 0%, transparent 70%);
  bottom: 10%;
  left: -50px;
  border-radius: 50%;
}

.geo-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(194, 89, 74, 0.08);
  top: 25%;
  right: 5%;
  border-radius: 24px;
  transform: rotate(25deg);
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(232, 213, 183, 0.15);
  top: 40%;
  left: 3%;
  transform: rotate(-15deg);
}

.geo-dots {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(194, 89, 74, 0.2) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  bottom: 20%;
  right: 10%;
}

/* Floating Card Animation */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #C2594A, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #C2594A, #e8d5b7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

.service-icon-wrap {
  transition: all 0.5s ease;
}

/* ===== WHY US CARDS ===== */
.why-card {
  transition: all 0.4s ease;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  position: relative;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(194, 89, 74, 0.12);
}

/* ===== INFO CARDS ===== */
.info-card {
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ===== CTA CIRCLES ===== */
.cta-circle-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  left: -100px;
}

.cta-circle-2 {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  bottom: -100px;
  right: 10%;
}

.cta-circle-3 {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  top: 20%;
  right: 30%;
}

/* ===== STAT COUNTER ===== */
.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(194, 89, 74, 0.2);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-item:not(:last-child)::after {
    display: none;
  }

  .geo-circle-1 {
    width: 300px;
    height: 300px;
  }

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

  .geo-rect-1 {
    width: 80px;
    height: 80px;
  }

  .floating-card {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .geo-circle-1 {
    width: 400px;
    height: 400px;
  }
}
