html, body, * {
  font-family: 'Inter', sans-serif !important;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #141414;
  margin: 0;
  overflow-x: hidden;

}
/* Popup Modal Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999; /* Highest z-index to stay above ads */
}

.popup-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Inter', sans-serif;
}

.popup-heading {
  color: white;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.popup-content video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.popup-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-btn {
  background-color: #ff4444;
  color: white;
}

.mock-btn {
  background-color: #4fc74f;
  color: white;
}

.popup-btn:hover {
  transform: scale(1.05);
}

.physics {
  display: flex;
  position: relative;
  justify-content: center;
  color: #fff;
  font-size: 50px;
  align-items: center;
  margin-bottom: -50px;
  margin-top: -90px;
}
.chemmath {
  display: flex;
  position: relative;
  justify-content: center;
  color: #fff;
  font-size: 50px;
  align-items: center;
  margin-bottom: -100px;
  margin-top: -102px;
}

.phyanim {
  padding-left: 10px;
  margin-top: 130px;
}

.phytext {
  padding-right: 25px;
  margin-top: 200px;
}

.grid-container-phy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  width: 85vw;
  margin-left: auto;
  margin-right: auto;
  column-gap: 20px;
  row-gap: 25px;
  margin-top: 20px;
}

.grid-container-chem {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 85vw;
  margin-left: auto;
  margin-right: auto;
  column-gap: 20px;
  row-gap: 25px;
  margin-top: 100px;
}

.grid-container-math {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: 85vw;
  margin-left: auto;
  margin-right: auto;
  column-gap: 20px;
  row-gap: 25px;
  margin-top: 100px;
}

.grid-item {
  position: relative;
  background-color: grey;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: white;
  height: 550px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  width: 80%;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: "El Messiri", system-ui;
  line-height: 20px;
  font-size: 15px;
  overflow: hidden;
}

.grid-item img {
  width: 90%;
  height: 75%;
  object-fit: fill;
  border-radius: 10px;
  margin: 0;
}

.open {
  background-color: #4fc74f;
  color: rgb(255, 255, 255);
  padding: 10px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  border-radius: 10px;
  border: none;
  letter-spacing: 0.8px;
}

.badge {
  display: inline-block;
  position: absolute;
  top: 2px;
  right: 10px;
  color: white;
  
  font-size: 13px;
  background-color: red;
  border-radius: 50%;
  text-align: center;
  width: 30px;
  height: 30px;
  line-height: 30px;
  animation: sparkle 0.5s infinite;
}

@keyframes sparkle {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.large-file-badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: blue;
  color: white;
  padding: 5px;
  font-size: 18px;
  border-radius: 3px;
  z-index: 10;
}

.subject-section {
  margin-bottom: 48px;
}
@media (max-width: 778px) {
  .subject-section {
    margin-bottom: 32px;
  }
}

@media (max-width: 778px) {
  .physics {
    font-size: 35px;
    margin-bottom: -100px;
    margin-top: -130px;
  }
  .phyanim {
    position: relative;
    margin-top: 150px;
    right: 15px;
    width: 20px;
  }
  .phytext {
    left: 15px;
    position: relative;
    font-size: 50px;
  }
  .grid-container-phy {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, 1fr);
    column-gap: 10px;
    row-gap: 25px;
    margin-top: 120px;
  }
  .grid-container-chem {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 85vw;
    column-gap: 10px;
    row-gap: 25px;
    margin-top: 120px;
  }
  .grid-container-math {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    column-gap: 10px;
    row-gap: 25px;
    margin-top: 120px;
  }
  .grid-item {
    font-size: 11px;
    width: 200px;
    height: 400px;
  }
  .grid-item img {
    width: 90%;
    height: 68%;
    border-radius: 10px;
  }
  .open {
    padding: 8px;
    font-size: 15px;
  }
  .grid-container-phy,
  .grid-container-chem,
  .grid-container-math {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }
  .grid-item {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
  }

  .popup-heading {
    font-size: 20px;
    margin-bottom: 15px;
}
.popup-content {
    width: 95%;
    padding: 15px;
}

.popup-buttons {
    flex-direction: column;
    gap: 10px;
}

.popup-btn {
    width: 100%;
}
}



