/* 🌐 Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(180deg, #f6f9fc 0%, #eef3f8 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 🌈 Header Section */
header {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  background: linear-gradient(135deg, #007acc, #00bcd4);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

header h1 {
  font-size: 2.4rem;
  letter-spacing: 0.8px;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

header p {
  font-size: 1.05rem;
  color: #e8faff;
  max-width: 600px;
  margin: 0 auto;
}

/* 🧱 Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 🪄 Project Card */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.6rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 122, 204, 0.08);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 122, 204, 0.2);
}

.card h2 {
  color: #007acc;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

/* 🔗 Button Styling */
.card a {
  align-self: flex-start;
  background: linear-gradient(135deg, #007acc, #00bcd4);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 188, 212, 0.25);
}

.card a:hover {
  background: linear-gradient(135deg, #0064b4, #0098a9);
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.35);
  transform: translateY(-2px);
}

/* 🌟 Subtle Hover Glow Effect */
.card:hover h2 {
  color: #005a99;
}

/* ⚙️ Footer */
footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #e2e2e2;
  letter-spacing: 0.4px;
}

footer p {
  opacity: 0.9;
}

/* 📱 Responsive Adjustments */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.5rem 1.2rem;
  }

  .card h2 {
    font-size: 1.15rem;
  }
}
