@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-gold: #1A365D; /* Deep Navy Blue */
  --color-gold-accent: #2563EB; /* Slate Blue Highlight */
  --color-gold-hover: #1D4ED8;
  --color-charcoal: #FFFFFF; /* Pristine White Background */
  --color-charcoal-light: #F8FAFC; /* Slate-50 Alternative Background */
  --color-charcoal-lighter: #F1F5F9; /* Slate-100 Borders and Cards */
  --color-text-white: #0F172A; /* Deep Slate-900 Core Text */
  --color-text-gray: #475569; /* Slate-600 Secondary Body Text */
}

/* Smooth Scrolling and Custom Scrollbar */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--color-charcoal);
  color: var(--color-text-white);
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--color-text-white);
  background-color: var(--color-charcoal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-gold);
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-charcoal);
}
::-webkit-scrollbar-thumb {
  background: var(--color-charcoal-lighter);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Luxury Glassmorphism Utilities */
.glass-premium {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.03);
}

.glass-navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  transform: translateY(-5px);
}

/* Golden Border Glow on Hover */
.glow-gold-hover {
  position: relative;
  overflow: hidden;
}
.glow-gold-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 1px solid var(--color-gold);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glow-gold-hover:hover::after {
  opacity: 1;
}

/* Interactive Before/After Comparison Slider */
.ba-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.ba-image-before, .ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.ba-image-before {
  z-index: 1;
}

.ba-image-after {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--color-gold);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  pointer-events: auto;
}

.ba-slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: #FFFFFF;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  color: var(--color-gold);
  font-size: 14px;
}

.ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 4;
}

.ba-label-before {
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.ba-label-after {
  right: 16px;
  background: var(--color-gold);
  color: #FFFFFF;
  border: 1px solid var(--color-gold);
}

/* Testimonials Carousel transitions */
.testimonial-slide {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Timeline Custom Connected Lines */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(27, 54, 93, 0.3) 15%, rgba(27, 54, 93, 0.3) 85%, transparent);
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
}

/* IntersectionObserver Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom Badge Pulse */
.badge-pulse {
  position: relative;
}
.badge-pulse::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  border: 1px solid var(--color-gold);
  animation: pulseOutline 2s infinite;
  pointer-events: none;
}

@keyframes pulseOutline {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Gold Underline Link effect */
.link-gold-underline {
  position: relative;
}
.link-gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}
.link-gold-underline:hover::after {
  width: 100%;
}

/* Floating WhatsApp Notification Pulse */
.wa-pulse {
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
