/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  height: 100vh;
  margin: 0;
  padding: 0;
  background: url('../bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 25px 60px;
  background: linear-gradient(90deg, #1cb5e0, #000046);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  height: 80px;
  transition: box-shadow 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 0 20px cyan;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: #00f5ff;
  transition: 0.3s;
}

.nav-links a:hover {
  text-shadow: 0 0 8px cyan;
  color: #0ff;
}

.nav-links a:hover::after {
  width: 100%;
}

h1 {
  color: cyan;
  text-shadow: 0 0 10px cyan;
  margin-bottom: 20px;
  margin-top: 60px;
  text-align: center;
}

h2 {
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  margin: 30px 0 15px;
  font-size: 24px;
  text-align: center;
}

.card {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid cyan;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 280px;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}



.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid cyan;
}

.card h3 {
  text-align: center;
  padding: 12px 0;
  margin: 0;
  font-size: 20px;
  color: cyan;
  text-shadow: 0 0 5px cyan;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* Ensure top alignment */
  gap: 30px;
  justify-content: center;
  max-width: 100%;
  padding: 10px 0;
}


.card-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: rgba(173, 255, 255, 0.9);
  color: #000;
  font-size: 15px;
  line-height: 1.6;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
  padding: 0 16px;
}


.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px cyan;
}

.card:hover .card-content {
  max-height: 300px; /* adjust based on content height */
  opacity: 1;
  padding: 16px;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .card {
    width: 90%;
  }
}