/* Custom CSS for Impulso 360 Stucco, Stone & Repair LLC
   Neo-Modern & Architectural Futuristic Theme (Clean, High-Tech, Serious & Trustworthy)
*/

:root {
  --primary-dark: #070a13;
  --surface-dark: #0c1222;
  --surface-card: #0f172a;
  --amber-glow: #f59e0b;
  --gold-accent: #d97706;
  --neon-cyan: #38bdf8;
  --border-light: rgba(245, 158, 11, 0.18);
}

/* Smooth Scrolling & Typography */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--primary-dark);
  color: #f1f5f9;
}

/* Futuristic Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070a13;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f59e0b, #b45309);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}

/* Futuristic Background Gradients & Mesh */
.bg-cyber-grid {
  background-color: #070a13;
  background-image: 
    linear-gradient(to right, rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

.bg-pattern {
  background-color: #070a13;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.15), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Glassmorphism 2.0 Navigation */
.glass-nav {
  background: rgba(7, 10, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Modern Cyber Card */
.cyber-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(12, 18, 34, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(10px);
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
}

/* Status Indicator Dot (Futuristic Live Certification Badge) */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Button Shimmer / High-Tech Glow */
.btn-cyber {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070a13;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-cyber:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.5), 0 0 15px rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.btn-cyber::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-cyber:hover::after {
  transform: translateX(100%);
}

/* Floating Action Buttons with Glass Ring */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-btn {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Giant Panoramic Before & After Container */
.ba-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 158, 11, 0.3);
  width: 100%;
  height: 72vh;
  min-height: 520px;
  max-height: 820px;
  background: #070a13;
}

@media (max-width: 768px) {
  .ba-container {
    height: 55vh;
    min-height: 380px;
  }
}

.ba-image-before,
.ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

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

.ba-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.8);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #070a13;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.8);
  cursor: ew-resize;
  transition: transform 0.15s ease;
}

.ba-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.ba-badge {
  position: absolute;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ba-badge-before {
  top: 20px;
  left: 20px;
  background: rgba(7, 10, 19, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ba-badge-after {
  top: 20px;
  right: 20px;
  background: rgba(217, 119, 6, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

/* Modal Overlay */
.modal-overlay {
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
