/* ========== STICKY HEADER + HELPERS ========== */
/* store header height for spacing */
:root {
  --primary: #fec60d;
  --light: #f6f7f8;
  --dark: #1a2a36;
  --site-header-height: 0px;
}

/* ---------- Sticky header helper ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
  transition: transform 300ms ease, box-shadow 300ms ease;
  will-change: transform;
  background: transparent;
  
}

.topbar {
  transition: height 200ms ease, padding 200ms ease, opacity 200ms ease;
}

#site-navbar {
  background: #ffffff;
  transition: padding 200ms ease, height 200ms ease, box-shadow 200ms ease;
  box-shadow: none;
}

/* Inline SVG logo sizing — viewBox ~4:1 ratio */
#site-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  display: block;
  overflow: visible;
  transition: height 200ms ease;
}

/* When header is scrolled a little — shrink navbar */
.site-header.scrolled #site-navbar {
  padding-top: 6px;
  padding-bottom: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.site-header.scrolled #site-logo {
  height: 40px;
}

/* Hide header by translating upward (when user scrolls down) */
.site-header.hidden {
  transform: translateY(-110%);
}

/* Show header (default) */
.site-header.visible {
  transform: translateY(0);
}

/* Add top spacing for page content equal to header height. Will be set via JS too. */
body {
  padding-top: calc(var(--site-header-height) + 80px) !important;
  transition: padding-top 150ms ease;
}

/* Mobile: Topbar hidden by default; show only on large screens (keeps header shorter on phone) */
@media (max-width: 991.98px) {
  #site-topbar { display: none !important; }
  #site-logo {
    height: 40px;
    max-width: 180px;
  }
}

/* Extra small screens — keep logo from overflowing */
@media (max-width: 400px) {
  #site-logo { height: 34px; max-width: 150px; }
  .navbar-brand { padding-left: 12px !important; padding-right: 12px !important; }
}

/********** Template CSS **********/
/* Section Background */
.review-slider-section {
  background: linear-gradient(180deg, #f8f8f8, #ffffff);
  padding: 60px 0;
}

/* Section Title */
.review-slider-section h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #222;
  margin-bottom: 40px;
}

/* Main Card */
.review-card {
  
  padding: 4px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  
  transition: 0.35s ease;
}

.review-card:hover {
  transform: translateY(-8px);
 
}

/* Video Wrapper */
.video-wrapper {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #eaeaea;
  max-width: 900px;
  margin: auto;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease-in-out;
  position: relative; /* यह लाइन बहुत जरुरी है बटन के लिए */
}

.video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.25);
}

/* Owl Navigation Buttons */
.review-carousel .owl-nav button {
  position: absolute;
  top: 42%;
  background: #ffffff !important;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: 0.35s ease;
}

.review-carousel .owl-nav button:hover {
  background: #7d5ba6 !important;
  color: #fff !important;
  transform: scale(1.12);
}

/* Position */
.review-carousel .owl-nav .owl-prev {
  left: -25px;
}

.review-carousel .owl-nav .owl-next {
  right: -25px;
}

/* Arrow Icons */
.review-carousel .owl-nav button span {
  font-size: 28px;
  font-weight: bold;
  line-height: 28px;
}

/* Dots */
.review-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  background: #bbb;
  transition: 0.3s ease;
  border-radius: 50%;
}

.review-carousel .owl-dots .owl-dot.active span {
  background: #7d5ba6;
  width: 13px;
  height: 13px;
}

/* Video Box & Section */
.video-box {
  max-width: 900px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15);
  background: #000;
  /* IMPORTANT: Needed for the mute button positioning */
  position: relative; 
}

.video-section {
  background: #f8f9fa;
}

.youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Ratio */
  overflow: hidden;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   Mute Button Styling (NEW ADDED)
   ========================================= */
.mute-btn-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100; /* Ensure it stays above video */
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mute-btn-overlay:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.05);
}

.mute-btn-overlay i {
  font-size: 16px;
}

@media (max-width: 576px) {
  .video-box {
    max-width: 100%;
    border-radius: 12px;
  }
  
  /* Mobile adjustment for mute button */
  .mute-btn-overlay {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Fix overlap between projects and mini gallery */
#mini-gallery {
  margin-top: 60px !important;
}

.container-xxl.py-5 {
  position: relative;
  z-index: 1;
}

/* Shimmer Loader */
.shimmer {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Smooth Fade-in */
.fade-img {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.fade-img.loaded {
  opacity: 1;
}

.gradient-text {
  background: linear-gradient(to right, #fec60d, #ff8a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-black {
  font-weight: 900 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
  color:#fff;
}

/** text-primary **/
.text-primary {
  color: var(--primary) !important;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  color: var(--primary);
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  color: var(--primary);
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
  color: var(--primary);
}

.cta-btn {
  display: flex;
  justify-content: center;
  width: 100%;
}
.btn-outline-primary {
  background-color: none !important;
  border-color: var(--primary);
}
.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #ffffff;
  background-color: var(--primary);
  border: #1a2a36;
}

.btn-square {
  width: 38px;
  height: 38px;
  color: var(--primary);
}

.btn-sm-square {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.btn-lg-square {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  color: var(--primary);
}

.bg-primary {
  background-color: var(--primary) !important;
}

/*** Navbar ***/
/* NOTE: removed the previous conflicting rule: .navbar.sticky-top { top: -100px; } */

.navbar .navbar-brand,
.navbar a.btn {
  height: 75px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover {
  color: var(--primary);
}
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    border-top: 1px solid #eeeeee;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header Carousel ***/

/* Each slide — full viewport height */
.header-carousel .owl-carousel-item {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 520px;
  overflow: hidden;
}

/* Slide image — cover the full slide */
.header-carousel .owl-carousel-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark gradient overlay so text is always readable */
.owl-carousel-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.52) 55%,
    rgba(0, 0, 0, 0.38) 100%
  );
  z-index: 2;
}

/* Tag line above headline */
.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}

/* Thumbnail dot navigation — right side vertical strip */
.header-carousel .owl-dots {
  position: absolute;
  width: 64px;
  height: 100%;
  top: 0;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  gap: 10px;
}

.header-carousel .owl-dots .owl-dot {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
  transition: width 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  opacity: 0.7;
}

.header-carousel .owl-dots .owl-dot.active {
  width: 62px;
  height: 62px;
  box-shadow: 0 0 0 3px #febc12, 0 4px 18px rgba(0,0,0,0.45);
  opacity: 1;
}

.header-carousel .owl-dots .owl-dot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  padding: 2px;
  transition: 0.4s;
}

/* Mobile: hide thumbnail dots, smaller slide height */
@media (max-width: 767.98px) {
  .header-carousel .owl-carousel-item {
    height: 75vh;
    min-height: 460px;
  }
  .header-carousel .owl-dots {
    display: none !important;
  }
  .header-carousel .owl-carousel-item h1.display-2 {
    font-size: 2rem !important;
  }
  .hero-tag { font-size: 0.72rem; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .header-carousel .owl-carousel-item {
    height: 82vh;
  }
  .header-carousel .owl-dots {
    right: 14px;
    width: 52px;
  }
  .header-carousel .owl-dots .owl-dot { width: 38px; height: 38px; }
  .header-carousel .owl-dots .owl-dot.active { width: 52px; height: 52px; }
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** About ***/
@media (min-width: 992px) {
  .container.about {
    max-width: 100% !important;
  }

  .about-text {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .about-text {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .about-text {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Service ***/
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.service-icon {
  position: relative;
  margin: -50px 0 25px 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: 0.5s;
}

.service-item:hover .service-icon {
  color: #ffffff;
  background: var(--primary);
}

/** timeline */
body .timeline-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.timeline-steps .timeline-step {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 1rem;
}

@media (min-width: 768px) {
  .timeline-steps .timeline-step:not(:last-child):after {
    content: "";
    display: block;
    border-top: 0.25rem dotted #3b82f6;
    width: 3.46rem;
    position: absolute;
    left: 7.5rem;
    top: 0.3125rem;
  }
  .timeline-steps .timeline-step:not(:first-child):before {
    content: "";
    display: block;
    border-top: 0.25rem dotted #3b82f6;
    width: 3.8125rem;
    position: absolute;
    right: 7.5rem;
    top: 0.3125rem;
  }
}

.timeline-steps .timeline-content {
  width: 10rem;
  text-align: center;
}

.timeline-steps .timeline-content .inner-circle {
  border-radius: 1.5rem;
  height: 1rem;
  width: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #3b82f6;
}

.timeline-steps .timeline-content .inner-circle:before {
  content: "";
  background-color: #3b82f6;
  display: inline-block;
  height: 3rem;
  width: 3rem;
  min-width: 3rem;
  border-radius: 6.25rem;
  opacity: 0.5;
}
.timeline-steps .timeline-content .inner-circle:before {
  background-color: #fec60d;
}

.timeline-steps .timeline-content .inner-circle {
  background-color: #fec60d;
}

.timeline-steps .timeline-step:not(:last-child):after {
  border-color: #fec60d;
}

.timeline-steps .timeline-step:not(:last-child):before {
  border-color: #fec60d;
}

.timeline-steps .timeline-step:not(:first-child):before {
  border-color: #fec60d;
}

/*** Feature ***/
@media (min-width: 992px) {
  .container.feature {
    max-width: 100% !important;
  }

  .feature-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .feature-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .feature-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Project Portfolio ***/
#portfolio-flters li {
  display: inline-block;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: 0.5s;
  padding: 6px 16px;
  border-radius: 6px;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
  color: var(--dark);
  background-color: var(--primary);
  padding: 6px 16px;
  border-radius: 8px;
}

.portfolio-img {
  position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  background: var(--dark);
  transition: 0.5s;
}

.portfolio-img::before {
  left: 50%;
}

.portfolio-img::after {
  right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
  width: 51%;
  left: 0;
}

.portfolio-item:hover .portfolio-img::after {
  width: 51%;
  right: 0;
}

.portfolio-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 1;
  transition: 0.5s;
}

.portfolio-item:hover .portfolio-btn {
  opacity: 1;
  transition-delay: 0.3s;
}

.about-img {
  width: 100%;
  height: 100vh;        /* Full screen height on laptop/desktop */
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills area without distortion */
  object-position: center top; /* adjust focus area */
}

/* Mobile / Tablet responsive mode */
@media (max-width: 992px) {
  .about-img {
    height: auto;       /* natural height on mobiles */
  }

  .about-img img {
    height: auto;
    width: 100%;
    object-fit: cover;
  }
}


/*** Quote ***/
@media (min-width: 992px) {
  .container.quote {
    max-width: 100% !important;
  }

  .quote-text {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .quote-text {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .quote-text {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Team ***/
.team-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.team-item img {
  border-radius: 8px 60px 0 0;
}

.team-item .team-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #ffffff;
  transition: 0.5s;
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 350px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--primary);
  font-size: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
  margin-bottom: 30px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transform: scale(0.8);
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  transform: scale(1);
}

/*** Contact ***/
@media (min-width: 992px) {
  .container.contact {
    max-width: 100% !important;
  }

  .contact-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .contact-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .contact-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Footer ***/
.footer .btn.btn-social {
  margin-right: 5px;
  color: #9b9b9b;
  border: 1px solid #9b9b9b;
  border-radius: 38px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
  border-color: var(--light);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #9b9b9b;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: #ffffff;
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .copyright a:hover {
  color: var(--primary);
}

.hvr-fade {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  overflow: hidden;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: color, background-color;
  transition-property: color, background-color;
}
.hvr-fade:hover,
.hvr-fade:focus,
.hvr-fade:active {
  background-color: var(--dark);
  color: var(--primary) !important;
}

@media (max-width: 992px) {
  .row.g-4 .col-6 {
    width: 100% !important;
  }
}
