/* =============================
   GLOBAL RESET & BASE STYLING
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================
   HEADER
============================= */
header {
  background: linear-gradient(90deg, #141e30, #243b55);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  letter-spacing: 1.5px;
  font-weight: 600;
  font-size: 1.8rem;
  box-shadow: 0 4px 25px rgba(0,0,0,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

header .tagline {
  font-size: 1rem;
  margin-top: 10px;
  font-weight: 400;
  opacity: 0.85;
}

/* =============================
   NAVBAR
============================= */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  border-radius: 20px;
  margin: 20px auto;
  max-width: 1000px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.2);
  flex-wrap: wrap;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar a:hover {
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.6);
  transform: translateY(-2px);
}

/* SEARCH BAR IN NAVBAR */
.navbar input {
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  font-size: 1em;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all 0.3s ease;
}

.navbar input:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* =============================
   MAIN GRID
============================= */
main {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

/* =============================
   CARD STYLE
============================= */
.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 360px; /* equal height */
}

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

.card-content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.card-content p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: auto;
}

/* BUTTONS */
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  box-shadow: 0 4px 18px rgba(238, 9, 121, 0.5);
  transform: translateY(-2px);
}

/* CARD HOVER EFFECT */
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

/* =============================
   FOOTER
============================= */
footer {
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 20px;
  font-size: 0.95em;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #ff6a00;
}

/* =============================
   RESPONSIVE TWEAKS
============================= */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .navbar input {
    width: 100%;
  }
}
