/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f8ff;
  color: #333;
  overflow-x: hidden;
  position: relative;
}

/* Header/Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1e2a38;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
nav a {
  margin-left: 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
nav a:hover {
  color: #00bcd4;
}

/* Main Content */
main {
  padding: 100px 2rem 80px;
}
section {
  margin-bottom: 3rem;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e2a38;
  text-align: center;
}

/* Card Layout with Glassmorphism */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 2rem;
  width: 320px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0, 188, 212, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 25px rgba(0, 188, 212, 0.8);
  animation: glow 1s ease-in-out infinite alternate;
}
@keyframes glow {
  from {
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
  }
  to {
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.8);
  }
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 14px;
}
.card h3 {
  margin: 1.2rem 0;
  color: #1e2a38;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Button Styling */
.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.card button {
  padding: 10px 20px;
  border: none;
  background: linear-gradient(45deg, #00bcd4, #1e88e5);
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.card button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #1e88e5, #00bcd4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}
.card button:hover::before {
  transform: scaleX(1);
}
.card button:hover {
  color: #fff;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #1e2a38;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  z-index: 1000;
}

/* Modal - Glass Style */
/* MODALS */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
}
.modal-content.fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: none;
}
.modal-content.smallbox {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 400px;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
}
.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 38px;
  background: linear-gradient(45deg, #e53935, #d32f2f);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.2);
  background: linear-gradient(45deg, #ff5252, #e53935);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.modal-content.smallbox button {
  margin-top: 1rem;
  padding: 10px 25px;
  background: #00bcd4;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
}


/*New Ribon Button*/
.ribbon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e91e63;
  color: #fff;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0 10px 0 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: popIn 0.6s ease-out;
  z-index: 10;
}

/* Optional: Entry animation */
@keyframes popIn {
  0% {
    transform: scale(0.3) rotate(-20deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  .card-container {
    flex-direction: column;
    align-items: center;
  }
  main {
    padding: 100px 1rem 80px;
  }
  .card {
    width: 90%;
  }
}



/* Login Mobal */

@keyframes modalFadeIn {
    0% {
      opacity: 0;
      transform: scale(0.8);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
    
#loginModal {

    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none; 
    align-items: center; 
    justify-content: center;
    z-index: 9999;
  }
  #loginModal.show {
    display: flex;
  }
  #loginModalContent {
    background: #fff;
    padding: 30px 25px;
    border-radius: 20px;
    width: 320px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
    animation: modalFadeIn 0.4s ease forwards;
  }
  
  #loginModalContent h3 {
    margin-bottom: 20px;
    color: #2C3E50;
  }

  #loginModalContent input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
  }

  #loginModalContent button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    margin: 10px 5px;
    cursor: pointer;
  }

  #loginModalContent .submitBtn {
    background-color: #2ECC71;
    color: white;
  }



  #errorMsg {
    color: red;
    display: none;
    margin-top: 10px;
  }