/* United Garage Door Supplier - Global & Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-navy: #0f172a;
  --primary-blue: #1e293b;
  --brand-blue: #0284c7;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --accent-amber: #f59e0b;
  --success-green: #10b981;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* HEADER & NAVBAR LAYOUT STABILITY FIXES */
.top-bar {
  position: relative;
  z-index: 40;
  width: 100%;
  display: block;
}

#main-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: block;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Custom Keyframe Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.8);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes radarPing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.animate-float {
  animation: floatSlow 4s infinite ease-in-out;
}

.animate-radar {
  animation: radarPing 2s infinite ease-in-out;
}

/* Glassmorphism & Badges */
.glass-nav {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Hero Gradient Overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(30, 41, 59, 0.85) 60%, rgba(15, 23, 42, 0.95) 100%);
}

.emergency-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(185, 28, 28, 0.85) 50%, rgba(15, 23, 42, 0.96) 100%);
}

/* Interactive Before/After Image Comparison Slider */
.ba-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 480px;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  user-select: none;
  touch-action: none;
}

@media (max-width: 640px) {
  .ba-container {
    height: 320px;
  }
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #ffffff;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 20;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f97316;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  font-size: 1.1rem;
  border: 3px solid #ffffff;
}

/* Custom Accordion Transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Custom Gallery Filter Cards */
.gallery-card {
  transition: all 0.4s ease;
}
.gallery-card.hidden-card {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

/* Hover Lift Utilities */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.14), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #0f172a;
  color: #ffffff;
  border-left: 5px solid #f97316;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Active Nav Link Styling */
.nav-link.active {
  color: #f97316;
  font-weight: 700;
}
