/* Import brand font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap");

/* ===== Global Styles ===== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  color: #222;
}

/* ===== Navbar ===== */
.navbar {
  padding: 0px;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.navbar .nav-link {
  margin-left: 15px;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #f9c10b !important;
}

/* ===== Hero Section ===== */
header {
  background: url("../images/hero.jpg") no-repeat center center/cover;
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

header .btn {
  font-size: 1.2rem;
  padding: 10px 25px;
  border-radius: 30px;
}

/* ===== Services Section ===== */
.card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Projects Section ===== */
section.bg-light img {
  transition: transform 0.4s ease;
  border-radius: 10px;
}

section.bg-light img:hover {
  transform: scale(1.05);
}

/* ===== Homepage Carousel (Ken Burns zoom-out) ===== */
#homeCarousel .carousel-item img {
  height: 420px;
  object-fit: cover;
  animation: kenburnsZoomOut 5s ease-in-out both;
  transform-origin: center center;
}

@keyframes kenburnsZoomOut {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* ===== Running Gallery (two-row marquee) ===== */
.running-gallery {
  overflow: hidden;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.marquee-track {
  display: inline-flex;
  gap: 20px;
  align-items: center;
}

.marquee img {
  height: 180px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Left to Right */
.marquee-ltr .marquee-track {
  animation: scroll-ltr 25s linear infinite;
}

/* Right to Left */
.marquee-rtl .marquee-track {
  animation: scroll-rtl 25s linear infinite;
}

@keyframes scroll-ltr {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes scroll-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== Contact Form ===== */
form .form-control {
  border-radius: 8px;
  border: 1px solid #ccc;
}

form .btn {
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 30px;
}

/* ===== Footer ===== */
footer {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Expanded Footer */
.site-footer {
  background: #111;
  color: #fff;
}

.site-footer a {
  color: #ddd;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f9c10b;
}

.site-footer h5 {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer .footer-brand {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}

.site-footer .list-unstyled li {
  margin-bottom: 0.4rem;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.875rem;
  color: #bbb;
}

/* ===== Floating Get Quote Button ===== */
.fab-quote {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  background: #f9c10b;
  color: #111;
  border: none;
  border-radius: 9999px;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fab-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  background: #ffd54d;
  color: #111;
}

.fab-quote:active {
  transform: translateY(0);
}

/* Back To Top Button */
.fab-top {
  position: fixed;
  right: 20px;
  bottom: 80px; /* sits above Get Quote */
  z-index: 1050;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-top.show {
  opacity: 1;
  pointer-events: auto;
}

.fab-top:hover {
  transform: translateY(-2px);
}

/* ===== Contact Us Vertical Rail & Sidenav ===== */
.contact-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  background: #f9c10b;
  color: #111;
  padding: 12px 10px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.contact-rail:hover {
  background: #ffd54d;
  color: #111;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.contact-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.contact-sidenav {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  z-index: 1055;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.18);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.contact-sidenav.show {
  right: 0;
}

.contact-sidenav .sidenav-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.contact-sidenav .sidenav-body {
  padding: 20px;
}

.steps-section {
  display: contents;
}
.steps-container {
  width: 100%;
  display: flex;
  position: relative;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.steps-max-width {
  gap: 3rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
.steps-header {
  gap: 1.5rem;
  position: sticky;
  top: 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.steps-actions {
  gap: 1rem;
  display: flex;
}
.steps-cards {
  grid-area: span 1 / span 1 / span 1 / span 1;
}
.step-card {
  position: relative;
  margin-bottom: 2rem;
  padding: 2rem;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
}
.step-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1.02);
}
.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0.3;
}
.step-card:nth-child(odd) {
  transform: rotate(-2deg);
  background-color: #f39c12; /* Orange */
}
.step-card:nth-child(even) {
  transform: rotate(2deg);
  background-color: #3498db; /* Blue */
}
@media (max-width: 768px) {
  .steps-max-width {
    flex-direction: column;
  }
  .step-card {
    transform: none !important;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* ===== Logo Preloader Styles ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000; /* matches your navbar theme */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Logo animation */
.preloader-logo {
  width: 160px;
  height: auto;
  animation: pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Subtle breathing effect */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Fade-out effect */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.navbar,
.navbar .nav-link {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}
