html{
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  scroll-behavior: smooth;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.15"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.15"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5em;
  margin: 0.5em 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2em;
  margin: 1em 0;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  background: linear-gradient(45deg, #ff5252, #ff7979);
}

.features, .testimonials {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.feature, .testimonial {
  max-width: 200px;
  margin: 0 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #667eea;
}

.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.gradient-bar {
  width: 100%;       
  height: 6px;     
  background: linear-gradient(270deg, #667eea, #764ba2, #ff6b6b, #4ecdc4, #45b7d1); 
  background-size: 400%; 
  animation: gradientFlow 8s ease-in-out infinite; 
  position: relative;
}

.gradient-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(270deg, rgba(255,255,255,0.3), transparent, rgba(255,255,255,0.3));
  background-size: 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%, 100% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
}

@keyframes shimmer {
  0%, 100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -200% 0;
  }
}

@media only screen and (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  
  .hero h1 {
    font-size: 2.5em;
  }
  
  .quiz-card {
    width: 220px;
    height: 220px;
  }
}

.quiz-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 18px;
  padding: 25px;
  display: inline-flex;
  width: 240px;
  height: 240px; 
  text-align: center;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quiz-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.quiz-card:hover::before {
  opacity: 1;
}

.quiz-card h2 {
  font-size: 1.4em;
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-weight: 600;
}

.quiz-card p {
  margin: 5px 0;
  line-height: 1.5;
  color: #5a6c7d;
}

.info-tag {
  font-size: 0.9rem;
  opacity: 0.9;
}

.grid-container {
  display: flex;
  gap: 25px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px 0 30px 0;
  scroll-behavior: smooth;
}

.grid-container::-webkit-scrollbar {
  height: 8px;
  margin: 0 20px;
}

.grid-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 0 35px;
}

.grid-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #667eea, #764ba2, #ff6b6b);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.grid-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #5a6fd8, #6a4190, #ff5252);
}

.grid-container::-webkit-scrollbar-button {
  display: none;
}

/* Section headings styling */
h1 {
  color: white;
  margin: 40px 20px 20px 20px;
  font-size: 2.2em;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}


#writeups {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

#maths {
  background: linear-gradient(135deg, #4779A8 0%, #578DC7 50%, #53B5ED 100%);
}

#maths h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, white, white);
  border-radius: 2px;
}

#ppqs {
  background: linear-gradient(135deg, #db72ba 0%, #ba3490 50%, #a82a80 100%);
  position: relative;
  overflow: hidden;
}

#ppqs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

#ppqs h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, white, white);
  border-radius: 2px;
}

#ppqs .quiz-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(251, 247, 255, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(168, 42, 128, 0.15), 
              0 4px 15px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

#ppqs .quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(219, 114, 186, 0.08) 0%, rgba(168, 42, 128, 0.12) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#ppqs .quiz-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 45px rgba(168, 42, 128, 0.25), 
              0 8px 25px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.5),
              0 0 25px rgba(219, 114, 186, 0.2);
  border: 1px solid rgba(219, 114, 186, 0.4);
}

#ppqs .quiz-card:hover::before {
  opacity: 1;
}

#ppqs .quiz-card h2 {
  color: #6b1c47;
  text-shadow: 0 1px 2px rgba(168, 42, 128, 0.2);
  position: relative;
  z-index: 2;
}

#ppqs .quiz-card p {
  color: #8b3a5e;
  position: relative;
  z-index: 2;
}

#ppqs .quiz-card p:first-of-type {
  color: #a82a80;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

#biology {
    background: linear-gradient(135deg, #CAE0BC 0%, #EAFAEA 100%);
    color: #780C28;
    margin: 0;
    padding-top:10px;
  text-decoration: none;
}

#biology .grid-container {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  margin: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

#biology a{
  text-decoration: none;
}



.site-card {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 15px;
  padding: 25px;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 280px;
  height: 280px; 
  text-align: center;
  margin: 15px;
  backdrop-filter: blur(5px);
}

.site-card:hover {
  transform: translateY(-5px);
  background-color: #c7c7c7;
}

.site-card-shop-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  width: 250px;
  height: 425px; 
  text-align: center;
}

.site-card-shop-item:hover {
  transform: translateY(-5px);
  background-color: #c7c7c7;
}
.site-icon-shop {
  width: 20%;
  height: 20%;
  margin-bottom: 15px;
}

.site-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
}

.site-details h2 {
  font-size: 1.2em;
  margin: 0;
  color: #0077cc;
}

.site-details h6 {
    color: #871338;
}

.site-details h3 {
    color: #871338;
}

.site-details p {
  margin: 5px 0 0;
  color: #666;
  font-size: 0.9em;
}

footer {
  color: white;
  text-align: center;
}

footer a {
  text-decoration: none;
  color: lightgray;
}

.hero-features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 10px 0;
  justify-content: center;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-features a {
  text-decoration: none;
  color: white;
}

/* Hidden sections functionality */
.hidden-sections {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.hidden-sections.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* View All Quizzes Button */
.view-all-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 30px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.view-all-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-all-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.view-all-button:hover::before {
  opacity: 1;
}

.view-all-button:active {
  transform: translateY(-1px) scale(1.02);
}

.view-all-button i {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.view-all-button:hover i {
  transform: scale(1.1);
}


.back-line {
  width: 90%;
  height: 14px;
  background: linear-gradient(90deg, #667eea 0%, #667eea 49%, #764ba2 50%, #764ba2 100%);
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.back-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 10px;
  border-radius: 20px;
  transform: translateY(-50%);
  z-index: -1;
}

.back-line .view-all-button {
  z-index: 2;
  position: relative;
}