/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.scrolled {
  background: rgba(250, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 45, 45, 0.08);
}

/* ── Mobile Menu ── */
#mobile-menu.open { transform: translateX(0); }
#mobile-menu.closed { transform: translateX(100%); }
.mobile-link { transition: color 0.2s, transform 0.2s; }
.mobile-link:hover { transform: scale(1.05); }
.menu-line { transition: all 0.3s ease; }
#menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menu-btn.active .menu-line:nth-child(2) { opacity: 0; }
#menu-btn.active .menu-line:nth-child(3) { width: 24px; margin-left: 0; }

/* ── Hero Geometric Shapes ── */
.geo-shape {
  position: absolute;
  pointer-events: none;
}
.geo-circle-1 {
  top: 10%;
  right: 5%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 74, 0.15) 0%, transparent 70%);
  animation: float-slow 8s ease-in-out infinite;
}
.geo-circle-2 {
  top: 50%;
  left: 45%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(232, 93, 74, 0.12);
  animation: float-medium 6s ease-in-out infinite;
}
.geo-square-1 {
  top: 20%;
  left: 42%;
  width: 80px;
  height: 80px;
  background: rgba(232, 93, 74, 0.08);
  border-radius: 16px;
  transform: rotate(45deg);
  animation: float-fast 5s ease-in-out infinite;
}
.geo-triangle-1 {
  bottom: 20%;
  right: 10%;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(232, 93, 74, 0.07);
  animation: float-medium 7s ease-in-out infinite reverse;
}
.geo-circle-3 {
  bottom: 15%;
  left: 5%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 123, 104, 0.06);
  animation: float-slow 9s ease-in-out infinite;
}
.geo-line-1 {
  top: 35%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232, 93, 74, 0.08), transparent);
}
.geo-line-2 {
  bottom: 35%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232, 93, 74, 0.06), transparent);
}

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

/* ── Floating Stat Cards ── */
.stat-card {
  animation: float-card 4s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #E85D4A, #FF7B68);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::after {
  transform: scaleX(1);
}

/* ── Review Cards ── */
.review-card {
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(232, 93, 74, 0.08);
  line-height: 1;
  pointer-events: none;
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back to Top ── */
#back-to-top.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .geo-circle-1 { width: 250px; height: 250px; }
  .geo-circle-2 { display: none; }
  .geo-square-1 { width: 50px; height: 50px; }
  .geo-triangle-1 { display: none; }
  .geo-circle-3 { width: 80px; height: 80px; }
}

@media (max-width: 640px) {
  .geo-circle-1 { width: 180px; height: 180px; }
  .geo-square-1 { display: none; }
}
