/* 
===================================================================
  SLEEK DARK THEME & ACCELERATED ANIMATIONS (animations.css)
===================================================================
*/

:root {
  /* GROUP 3: Page Background */
  --wbb-bg-dark: #070a0f;

  /* GROUP 1: Website Text & Accents Color */
  --wbb-electric-blue: #0066ff;

  /* GROUP 2: Action Buttons Color */
  --wbb-neon-green: #25d366;

  /* Dynamic Frame Background (calculated via app-engine.js) */
  --wbb-frame-bg: #141c2e;

  --wbb-card-bg: #0f172a;
  --wbb-card-border: rgba(255, 255, 255, 0.08);
  --wbb-text-main: #ffffff;
  --wbb-text-subtle: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  background-color: var(--wbb-bg-dark);
  color: var(--wbb-text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- UNIFIED ACTION FRAME CONTAINER --- */
.wbb-action-frame {
  width: 100%;
  max-width: 580px; /* Centered & Taller-than-wider portrait aspect */
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
  border-radius: 24px; /* Rounded corners */
  background-color: var(--wbb-frame-bg);
  border: 1px solid var(--wbb-card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

/* --- INSTANT CRITICAL BUTTONS & BASE STYLING --- */
.wbb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.wbb-btn:active {
  transform: scale(0.98);
}

/* Glowing Action Button (Group 2) */
.wbb-btn-glow-green {
  background-color: var(--wbb-neon-green);
  color: #000000;
  box-shadow: 0 0 15px var(--wbb-neon-green);
}

/* Floating WhatsApp Sticky CTA (Group 2) */
.wbb-floating-wa {
  position: fixed;
  bottom: 3%;
  right: 3%;
  width: 56px;
  height: 56px;
  background-color: var(--wbb-neon-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--wbb-neon-green);
  z-index: 999999;
  text-decoration: none;
  transition: transform 0.2s ease;
}

/* Center icon perfectly inside floating button */
.wbb-floating-wa svg {
  display: block;
  margin: auto;
}

.wbb-floating-wa:hover {
  transform: scale(1.08);
}

/* --- FEATURE BADGES (Group 1 Accents) --- */
.wbb-feature-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--wbb-electric-blue);
  padding: 14px 18px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  margin-bottom: 12px;
}

.wbb-feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid var(--wbb-electric-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wbb-electric-blue);
  flex-shrink: 0;
}

/* --- TWO-TONE BOLD HEADINGS --- */
.wbb-title-white {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.wbb-title-blue {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--wbb-electric-blue);
}

/* --- SLIDESHOW BACKGROUND ENGINE --- */
.wbb-slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.wbb-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.wbb-slide.active {
  opacity: 0.35;
}

.wbb-slideshow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 15, 0.6) 0%,
    var(--wbb-bg-dark) 100%
  );
  z-index: 2;
}

.wbb-hero-content {
  position: relative;
  z-index: 3;
}

/* --- DEFERRED SCROLL REVEAL (0.5s Fade In) --- */
.wbb-scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
  will-change: opacity, transform;
}

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

/* --- DESKTOP SIDE IMAGES & SLOW SCROLL REVEAL --- */
.wbb-services-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.wbb-services-content {
  width: 100%;
}

.wbb-desktop-img {
  display: none; /* Hidden on portrait / taller screens */
  width: 280px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px; /* Rounded corners */
  border: 1px solid var(--wbb-card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* Double animation duration (1.0s move-in and fade-in) */
.wbb-scroll-reveal-slow {
  transition: opacity 1s ease-in-out, transform 1s ease-in-out !important;
}

/* Detect wider-than-taller screens (aspect ratio > 1:1 / landscape) */
@media (min-aspect-ratio: 1/1) {
  .wbb-services-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 3.75%;
    gap: 3.75%;
  }

  .wbb-services-content {
    width: 40%;
    flex-shrink: 0;
  }

  .wbb-desktop-img {
    display: block;
    width: 22.5%; /* 2 images * 22.5% = 45% total image width */
    max-height: 520px;
    flex-shrink: 0;
  }
}