* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
#navbar .nav-text { color: #ffffff; }
#navbar.scrolled .nav-text { color: #ffffff; }
#navbar .nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color .3s;
}
#navbar .nav-link:hover { color: #c9a961; }
#navbar .nav-link.active { color: #c9a961; }
#navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: #c9a961;
  transition: width .3s ease;
}
#navbar .nav-link:hover::after,
#navbar .nav-link.active::after { width: 100%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 1s ease forwards; }
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.google-badge {
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(201,169,97,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.55rem 1rem 0.55rem 0.6rem;
  box-shadow: 0 8px 32px rgba(201,169,97,0.15);
  transition: transform .3s ease, box-shadow .3s ease;
}
.google-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201,169,97,0.25);
}
.google-g {
  background: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cta-btn {
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background-color .35s ease, color .35s ease, border-color .35s ease;
  will-change: transform;
}
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
  pointer-events: none;
}
.cta-btn:hover { transform: translateY(-3px); }
.cta-btn:hover::before { left: 130%; }
.cta-btn:active { transform: translateY(-1px) scale(0.98); }

.cta-primary { box-shadow: 0 10px 30px rgba(201,169,97,0.3); }
.cta-primary:hover { background-color: #e0c989; box-shadow: 0 16px 40px rgba(201,169,97,0.5); }

.cta-ghost:hover { border-color: #c9a961; color: #c9a961; background: rgba(201,169,97,0.08); }

.cta-dark:hover { background-color: #c9a961; color: #0a0a0a; box-shadow: 0 14px 36px rgba(201,169,97,0.35); }

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,97,0.15);
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  transition: all 0.45s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,97,0.12), transparent 60%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.service-card:hover {
  background: rgba(201,169,97,0.04);
  border-color: rgba(201,169,97,0.55);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(201,169,97,0.12), 0 0 0 1px rgba(201,169,97,0.15);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .w-14 {
  background: rgba(201,169,97,0.2);
  border-color: rgba(201,169,97,0.6);
  transform: scale(1.08) rotate(-5deg);
}
.service-card .w-14 { transition: transform .4s ease, background .4s ease, border-color .4s ease; }

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.portfolio-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.testimonial-card {
  background: #faf8f4;
  border: 1px solid rgba(10,10,10,0.06);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.4s ease;
}
.testimonial-card:hover {
  border-color: rgba(201,169,97,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.reason-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem;
  border-radius: 1rem;
  transition: all 0.4s ease;
}
.reason-card:hover {
  background: rgba(201,169,97,0.05);
  border-color: rgba(201,169,97,0.3);
  transform: translateY(-4px);
}

.ig-tile {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 0.5rem;
  position: relative;
}
.ig-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}
.ig-tile:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

/* Before / After Slider */
.ba-wrapper { max-width: 900px; margin: 0 auto; }
.ba-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(201,169,97,0.2);
  user-select: none;
  touch-action: none;
  background: #000;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
.ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  will-change: width;
}
.ba-before-wrap .ba-img {
  width: 200%;
  max-width: none;
  left: 0;
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #c9a961;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 20px rgba(201,169,97,0.6);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #c9a961;
  color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 4px rgba(201,169,97,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ba-divider:hover .ba-handle,
.ba-divider.active .ba-handle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 6px rgba(201,169,97,0.3);
}
.ba-label {
  position: absolute;
  top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,10,10,0.7);
  border: 1px solid rgba(201,169,97,0.5);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}
.ba-label-left { left: 1rem; }
.ba-label-right { right: 1rem; color: #c9a961; }

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 12px 30px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
@media (min-width: 640px) {
  .wa-float {
    bottom: 1.75rem;
    right: 1.75rem;
    width: 66px; height: 66px;
    padding-right: 0;
  }
}
.wa-float:hover {
  background: #1ebe5a;
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(37,211,102,0.7);
}
.wa-icon { position: relative; z-index: 2; display: flex; }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: waPulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
  z-index: 1;
}
.wa-pulse-2 { animation-delay: 1.1s; }
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  80%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 0.85rem;
  background: #0a0a0a;
  color: #c9a961;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(201,169,97,0.4);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  #navbar .nav-text { font-size: 0.95rem; }
}
@media (max-width: 640px) {
  .ba-handle { width: 40px; height: 40px; }
  .ba-label { font-size: 0.62rem; padding: 0.3rem 0.65rem; }
  .ba-label-left { left: 0.6rem; top: 0.6rem; }
  .ba-label-right { right: 0.6rem; top: 0.6rem; }
  #navbar .max-w-7xl { padding-top: 0.85rem; padding-bottom: 0.85rem; }
}
@media (max-width: 380px) {
  .google-badge { padding: 0.45rem 0.8rem 0.45rem 0.5rem; }
  .google-g { width: 26px; height: 26px; }
}
