body {
  font-family: Arial, sans-serif;
  background-image: url('uploads/indexbackground.jpg'); /* change the path to your image */
  background-size: cover; /* make it cover the full screen */
  background-position: center; /* center the image */
  background-repeat: no-repeat; /* prevent repeating */
  background-attachment: fixed; /* optional – keeps image fixed while scrolling */
  font-family: Arial, sans-serif;
  color: #fff; /* optional – if you want text to contrast */
  text-align: center;
  padding: 20px;
}

a {
  text-decoration: none;
  color: inherit; /* makes link take same color as parent (like h2) */
}

h1 {
  color: #de0404;
  margin-bottom: 30px;
}

.panelh1{
    color: #de0404;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.85);
  padding: 20px 25px;
  border-left: 5px solid #cc0813;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    
}


h2 {
  color: #de0404; 
  margin-bottom: 10px;
  
}

.center {
  text-align: center;
  color: #de0404;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border-left: 15px solid #cc0813;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: inline-block;
  min-width: 150px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
  padding: 10px 40px 40px;
  justify-content: center; /* centers the group */
}

.card {
    display: block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.25);
    color: #de0404;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
     max-width: 170px;
     min-width: 150px;

    opacity: 0;
    transform: translateY(30px) scale(1); /* start slightly down and normal size */
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--delay, 0s);

    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: auto;
}

.card:hover {
    transform: translateY(-10px) scale(1.05); /* slide up + slightly larger */
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.35); /* optional subtle hover background */
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(1);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.card h2 {
    color: #fff;
    font-size: 26px;
    margin: 0;
}






/* index page */

body.index {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  text-align: center;
  margin: 0;
  padding: 50px 20px;
  background-image: url('uploads/indexbackground.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title */
.indexh1 {
  font-family: "Merriweather", "Georgia", serif;
  font-weight: 700;
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: 1px;
  margin-bottom: 25px;
  display: inline-block;
  padding: 15px 30px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.25);
  color: #cc0813;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Paragraph */
.indexpara {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 100px auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  padding: 20px 25px;
  border-left: 5px solid #cc0813;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #cc0813;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.25s ease;
  margin: 10px;
}

.btn:hover {
  background-color: #610f13;
  transform: translateY(-4px);
}

/* Animation */
@keyframes reverseZoomOut {
  from {
    transform: scale(1.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.indexh1,
.indexpara,
.btn {
  animation: reverseZoomOut 1s ease-out forwards;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablets */
@media (max-width: 992px) {
  .indexh1 {
    font-size: 2rem;
    padding: 12px 20px;
  }

  .indexpara {
    font-size: 1rem;
    margin: 80px auto;
    padding: 18px 20px;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  body.index {
    padding: 30px 10px;
    background-attachment: scroll; /* improves mobile performance */
  }

  .indexh1 {
    font-size: 1.6rem;
    padding: 10px 16px;
  }

  .indexpara {
    font-size: 0.95rem;
    margin: 60px auto;
    padding: 15px;
    border-left: 4px solid #cc0813;
  }

  .btn {
    display: block;
    width: 90%;
    max-width: 300px;
    margin: 10px auto;
    font-size: 0.95rem;
  }
}
