html {
  scroll-behavior: smooth;
}

body {
  background: url('../img/background.jpg') center center / cover no-repeat fixed;
}

.index .bits {
  position: relative;
  width: 100%;
  height: 60rem;
}

.index .bits .bit {
  position: absolute;
  font-family: monospace, monospace;
  font-weight: bold;
  font-size: 3rem;
  color: #002738;
  user-select: none;
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(29, 35, 46, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Positions based on your example */
.index .bits .bit-1 { top: 32rem; left: 2rem; }
.index .bits .bit-2 { top: 22rem; left: 11rem; }
.index .bits .bit-3 { top: 7rem;  left: 18rem; }
.index .bits .bit-4 { top: 30rem; right: 3rem; }
.index .bits .bit-5 { top: 10rem; left: 3rem; }
.index .bits .bit-6 { top: -8rem; left: 43rem; }
.index .bits .bit-7 { top: -5rem; right: 20rem; }
.index .bits .bit-8 { top: 47rem; right: 5rem; }
.index .bits .bit-9 { top: 13rem; right: 28rem; }
.index .bits .bit-10 { top: 40rem; right: 10rem; }
.index .bits .bit-11 { top: 45rem; left: 7rem; }
.index .bits .bit-12 { top: 13rem; right: 10rem; }
.index .bits .bit-13 { top: -4rem; left: 15rem; }

/* Rotation animation */
@keyframes rotateBit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.index .bits .bit-rotate {
  animation: rotateBit 15s linear infinite;
}

/* Hover effect */
.index .bits .bit:hover {
  transform: scale(1.3) rotate(0deg);
  background: rgba(29, 35, 46, 0.3);
  color: #0f1216;
  cursor: default;
}

.tilt-label {
  position: absolute;
  top: 0px;
  right: -15px;
  color: white;
  padding: 2px 5px;
  font-size: 0.55rem;
  font-weight: bold;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  pointer-events: none;
}

.solution-tilt-label {
  position: absolute;
  top: 20px;
  right: -35px;
  color: white;
  min-width: 140px;
  padding: 4px 10px 0 10px;
    text-align: center;
  font-weight: bold;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  pointer-events: none;
  background-color: #ffc107;
  white-space: nowrap;
}

.tech-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.tech-scroll img {
  display: inline-block;
  height: 45px;
  margin: 0 15px;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;

  filter: grayscale(100%) brightness(50%);
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.tech-scroll img:hover {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
  mix-blend-mode: normal;
  background-color: transparent;
}

.navbar {
  transition: all 0.3s ease;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar.shrink {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.projects-container {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
}

.scrolling-wrapper {
  display: inline-flex;
  gap: 20px;
}

.shrink {
  padding: 0.5rem 1rem;
  opacity: 0.95;
}

.nav-blur {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.8);
}

.nav-blur.bg-primary {
  background-color: rgba(0, 0, 0, 0.6);
}

.project-card {
  position: relative;
  display: inline-block;
  width: 300px;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  padding: 20px;
  background: rgba(201, 101, 138, 0.9);
  border-radius: 10px;
  max-width: 90%;
}

.project-content h5 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.transparent-section {
  /* background-color: rgba(0,0,0,0.4); */
  /* backdrop-filter: blur(2px); */
}

.project-content p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.project-content small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.responsive-heading {
  font-size: 2.2rem;
}

@media (min-width: 576px) {
  .responsive-heading {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .responsive-heading {
    font-size: 4rem;
  }
}

.mySwiper {
  width: 100%;
  max-width: 900px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.mySwiper .swiper-slide {
  background: #fff;
  width: 350px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.mySwiper img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fbaa04;
}
