body {
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
}

.navbar {
  background-color: #222;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

/* Wrap left and center separately */
.navbar .nav-left {
  display: flex;
  align-items: center;
}

.navbar .nav-center {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex: 1;
}

.navbar .nav-right {
  margin-left: auto;
}

/* Nav Buttons (Home, About, Contact) */
.navbar .nav-center a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff4d4d, #ff9900, #00ccff);
  background-size: 200% auto;
  transition: all 0.4s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.navbar .nav-center a:hover {
  background-position: right center;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Login Button Unique Style */
.navbar .login-link {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff9900, #007bff, #6610f2);
  background-size: 200% auto;
  transition: all 0.4s ease;
  animation: pulse 2.5s infinite;
}

.navbar .login-link:hover {
  background-position: right center;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(102, 16, 242, 0.7);
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(102, 16, 242, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(102, 16, 242, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(102, 16, 242, 0.3); }
}

.content {
  text-align: center;
  margin-top: 80px;
}

/* 🔲 Card Grid */
.card-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.card {
  position: relative;
  width: 300px;
  height: 220px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
  background: #111;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* 🎯 Hover Text Reveal */
.card-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: rgba(12, 11, 11, 0.75); /* ⬅ increased opacity */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  box-sizing: border-box; /* ✅ Prevents overflow */
}

.card:hover .card-text {
  opacity: 1;
  transform: translateY(0);
}


.card:hover {
  transform: scale(1.05);
}
