@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif; /* Fixed capitalization */
  scroll-behavior: smooth;
  
}

html {
  scroll-behavior: smooth;
}

.jigishafam .cardwrapper .card .socials, 
.jigishafam .cardwrapper .card, 
.jigishafam .cardwrapper, 
.jigishafam .wrapper, 
.jigishafam {
  display: flex;
  justify-content: center;
  align-items: center;
  
}



/* Replace your existing .jigishafam .bg styles with this: */

.jigishafam {
    position: relative;
    padding: 5%;
    flex-direction: column;
    width: 100%;
    gap: 3em;
    min-height: 100vh;
    height: max-content;
    
    /* Remove the ::after pseudo-element styles from here */
  }
  
  /* Create the background using pseudo-element */
  .jigishafam::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    /* If you have a background image, uncomment and replace the gradient: */
    /* background-image: url('your-background-image.jpg'); */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    /* Performance optimizations */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Keep the overlay effect */
  .jigishafam::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    mix-blend-mode: hue;
    
    
    z-index: 1;
  }
  
  /* Remove the separate .bg class entirely */
  /* .jigishafam .bg { ... } - DELETE THIS */
  
  /* Mobile optimization */
  @media (max-width: 768px) {
    .jigishafam::before {
      /* On mobile, you might want to use absolute positioning for better performance */
      position: absolute;
      height: 0vh;
    }
    
    .jigishafam::after {
      position: absolute;
      height: 0vh;
    }
  }
  
  /* Alternative solution if you prefer to keep the .bg class: */
  /*
  .jigishafam .bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    will-change: transform;
    transform: translateZ(0);
  }
  */
.jigishafam .wrapper {
  flex-direction: column;
  gap: 3px;
  margin-bottom: 1rem;
  z-index: 13;
}

.jigishafam .wrapper img {
  width: 28rem;
}

.jigishafam .wrapper h3 {
  font-family: "Montserrat", sans-serif;
  color: white;
  font-weight: 700;
  font-size: 32px;
}

.jigishafam .cardwrapper {
  z-index: 13;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  gap: 3em;
}

.jigishafam .cardwrapper .card {
  row-gap: 15px;
  height: 25rem;
  width: 300px;
  z-index: 13;
  flex-direction: column;
  justify-content: flex-start; /* Changed from 'start' to proper value */
  color: white;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 15px; /* Removed duplicate border-radius */
  padding: 20px;
  transition: transform 0.3s ease; /* More specific transition */
  cursor: pointer;
}

.jigishafam .cardwrapper .card:hover {
  transform: scale(1.05);
}

.jigishafam .cardwrapper .card h3 {
  font-weight: 700;
  font-size: 1.2em;
  text-align: center;
  text-transform: capitalize;
}

.jigishafam .cardwrapper .card h4 {
  font-weight: 500;
  font-size: 1em;
  text-align: center;
}

.jigishafam .cardwrapper .card .crdimage {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  border-radius: inherit;
  background-color: transparent; /* Changed from rgba(255, 255, 255, 0) */
}

.jigishafam .cardwrapper .card .crdimage img {
  width: 100%;
   /* Changed from inherit to 100% */
  aspect-ratio: 1/1;
  object-fit: cover; /* Removed -o prefix */
  object-position: center 15%; /* Removed -o prefix */
  border-radius: inherit;
}

.jigishafam .cardwrapper .card .socials {
  flex-direction: row;
  gap: 1em;
}

.jigishafam .cardwrapper .card .socials a {
  color: white;
  font-size: 1.6em;
  transition: color 0.2s ease; /* More specific transition */
}

.jigishafam .cardwrapper .card .socials a:hover {
  color: aquamarine;
}

@media screen and (max-width: 500px) {
  .jigishafam {
    padding: 3em 8%;
  }
  
  .jigishafam .cardwrapper .card {
    padding: 14px;
  }
  
  .jigishafam .wrapper img {
    width: 25rem;
  }
}

@media screen and (max-width: 300px) {
  .jigishafam .cardwrapper .card {
    width: 100%;
  }
}

.contactus .chess {
  position: absolute;
  
  bottom: 2%;
  aspect-ratio: 4/1;
  
  object-fit: cover;
  object-position: 0% 0%;
  align-self:center;
  max-width: 500px;
  z-index: 13;
  width: 100%;
  opacity: 0.7;
  
}
@media (max-width:600px) {
  .contactus .chess {
    position: relative;
  }
}
