body {
  font-family: 'Nunito', sans-serif;
}
.using-nunito {
  font-family: 'Nunito', sans-serif;
}



.main-box {
  position: relative;
  width: 100%;           
  height: 70vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
  overflow-x: hidden;
}

.main-box img.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;        
  object-fit: cover;    
  z-index: 0;           
}

.inner-box1 {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.55);
  color: rgb(30, 163, 204);
  width: 23%;
  height: 65%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
  font-size: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.inner-box1 h3 {
  color: #1aabee; 
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.inner-box1:hover {
  transform: scale(1.03);
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.inner-box {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.55);
  color: white;
  width: 28%;
  height: 70%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
  font-size: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.inner-box h3 {
  color: #1aabee; 
  font-size: 40px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  margin: 0;
}

/* Desktop hover */
.inner-box:hover {
  transform: scale(1.03);
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Mobile tap active state */
.inner-box.active {
  transform: scale(1.03);
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 991.98px) {
  .main-box {
    height: auto;
    flex-direction: column;
    padding: 20px 10px;
  }

  .inner-box,
  .inner-box1 {
    width: 90% !important;
    height: auto !important;
    min-height: 200px;
    margin-bottom: 20px;
    font-size: 18px;
    padding: 20px 15px;
    backdrop-filter: blur(4px);
  }

  .inner-box h3 {
    font-size: 28px;
  }
  
  .inner-box1 h3 {
    font-size: 20px;
  }
}

@media (max-width: 575.98px) {
  .inner-box {
    font-size: 16px !important;
    padding: 15px 10px !important;
  }

  .inner-box h3 {
    font-size: 22px !important;
  }

  .inner-box1 {
    font-size: 16px !important;
    padding: 15px 10px !important;
  }

  .inner-box1 h3 {
    font-size: 18px !important;
  }
}

/* Baaki aapka service-item aur flip styles agar chahiye to waisa hi rahenge */

.service-item {
  background-color: transparent;
  transition: background-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
  padding: 2rem;
  border-radius: 1rem; 
  box-shadow: none;    
}

.service-item:hover {
  background-color: #e0e0e0; 
  min-height: 240px; 
}
.service-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  z-index: 10; 
}

.services .row {
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-item {
  background-color: transparent;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: none;
  
  transition: background-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
  will-change: transform;
  width: 100%; 
  height: 240px; 
  transform-origin: center center;
}
.service-item p {
  background-color: #28bcee;
  min-height: 130px;       
  padding: 10px 20px;  
  margin-top: 12px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: white;

  line-height: 1.5;          
  white-space: normal;    
  word-wrap: break-word;
}

.service-item:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  z-index: 10; 
}


.service-icon img {
  width: 70px;       
  height: 70px;      
  object-fit: contain;  
}

.flip-wrapper {
  perspective: 1000px;
}


/* Jab navbar toggle karke menu open ho */
.navbar-collapse.collapse.show a.nav-link {
  color: white !important;
}

/* Agar hover effect chahiye to */
.navbar-collapse.collapse.show a.nav-link:hover {
  color: #ddd !important; /* thoda halka white hover pe */
}




/* Flip container */
.service-item {
  width: 100%;
  height: 300px;
  position: relative;
  transition: transform 2.5s ease-in-out;
  transform-style: preserve-3d;
}

/* Flip on hover */
.flip-wrapper:hover .service-item {
  transform: rotateY(180deg);
  background-color: #e0e0e0;
}


/* Common to both sides */
.front-side,
.back-side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
  border-radius: inherit;
}

/* FRONT SIDE (content) */
.front-side {
  z-index: 2;
  
}

/* BACK SIDE (image) */
.back-side {
  transform: rotateY(180deg);
  z-index: 1;
  overflow: hidden;
    border-radius: 10px;
  
}

/* BACKGROUND IMAGE */
.back-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}


