/* Custom overrides */
.hero { min-height: 75vh; }
.hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.4)); }

.hover-card { transition: transform .2s ease, box-shadow .2s ease, background-color .2s; }
.hover-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(0,0,0,.15)!important; background:#0d6efd; color:#fff; }
.hover-card:hover p { color:#fff!important; }

.service-card .icon-wrap { width:72px; height:72px; background: rgba(13,110,253,.1); }
.service-card:hover .icon-wrap { background: rgba(13,110,253,.2); }

/* Smooth section spacing */
section { scroll-margin-top: 90px; }


.hero {
  min-height: 100vh; /* Butun ekran balandligi */
}

.hero-bg {
  object-fit: cover;
}

.hero .container {
  z-index: 2;
}

   /* Hero */
    .hero {
      min-height: 100vh;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;
    }

    .hero-bg {
      object-fit: cover;
    }

    .hero-overlay {
      background: rgba(0, 0, 0, 0.5);
    }

    /* Navbar */
/* Navbar default transparent */
#mainNav {
  background: transparent;
  transition: background 0.3s ease-in-out, box-shadow 0.3s;
}

/* Nav linklar */
#mainNav .nav-link {
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

/* Hover underline */
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #0d6efd;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}
#mainNav .nav-link:hover::after {
  width: 100%;
}

/* Scroll paytida oq fon */
#mainNav.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
#mainNav.scrolled .nav-link {
  color: #000;
}

/* Hamburger tugmasi */
.navbar-toggler {
  border: none;
  width: 32px;
  height: 26px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

/* Chiziqlar */
.navbar-toggler span,
.navbar-toggler::before,
.navbar-toggler::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Yuqorigi chiziq */
.navbar-toggler::before {
  top: 0;
}

/* Pastdagi chiziq */
.navbar-toggler::after {
  bottom: 0;
}

/* O‘rtadagi chiziq */
.navbar-toggler span {
  top: 50%;
  transform: translateY(-50%);
}

/* ✅ Active holatda X bo‘lib ochiladi */
.navbar-toggler.active::before {
  transform: rotate(45deg);
  top: 50%;
}

.navbar-toggler.active::after {
  transform: rotate(-45deg);
  bottom: 50%;
}

.navbar-toggler.active span {
  opacity: 0;
}







/* Scroll bo'lganda qora rang */
#mainNav.scrolled .navbar-toggler::before,
#mainNav.scrolled .navbar-toggler::after,
#mainNav.scrolled .navbar-toggler span {
  background: #000;
}

/* Kartalarning umumiy holati */
.service-card-item {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: none;
}

/* Ko'rsatilayotgan kartalar uchun animatsiya (pastdan yuqoriga) */
.service-card-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  display: block;
}

/* Yashirilayotgan kartalar uchun animatsiya (tepaga ko'tarilib yo'qoladi) */
.service-card-item.hide {
  opacity: 0;
  transform: translateY(-40px) scale(0.95);
  pointer-events: none;
}

/* Tugmalar uchun stillar */
#showMoreBtn,
#closeBtn {
  transition: all 0.3s ease-in-out;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
}

/* Hover effekti */
#showMoreBtn:hover,
#closeBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Yopish tugmasini alohida ko'rinishda chiqaramiz */
#closeBtn {
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  color: #333;
}
#closeBtn:hover {
  background-color: #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



    .service-card {
      min-height: 420px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .service-card .icon-wrap img {
      max-height: 1800px;
      width: auto;
      object-fit: contain;
      margin-bottom: 10px;
    }





/* Faqat mobil holat uchun */
@media (max-width: 991px) {
  /* Overlay */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* qorong‘ilikni oshirdim */
    transition: right 0.3s ease;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 10% 5%; /* oraliqlar */
    z-index: 1050;
    backdrop-filter: blur(4px); /* fonni biroz blur qilish */
  }

  .navbar-collapse.show {
    right: 0;
  }

  /* Oq panel */
  .collapse {
    background: #fff;
    width: 80%; /* 30% juda kichik edi, mobil uchun 80% qulay */
    max-width: 320px; /* juda katta bo‘lib ketmasligi uchun */
    height: auto;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  /* Linklar */
  .navbar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .navbar-nav .nav-link {
    color: #000 !important;
    font-size: 16px;
    font-weight: 500;
  }

  /* Admin tugmasi ham ichida qolishi uchun */
  .navbar-nav .nav-item.ms-lg-3 {
    margin-left: 0 !important;
  }

  .navbar-nav .btn {
    width: 100%;
    text-align: center;
    font-size: 16px;
  }
}













