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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #667eea, #764ba2, #6b8dd6, #8e44ad);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  padding: 40px 20px;
  color: white;
}

/* Animated background */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  text-align: center;
  max-width: 1100px;
  width: 100%;
}

h1 {
  font-size: 42px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subtitle {
  margin-bottom: 50px;
  opacity: 0.85;
  font-size: 18px;
}

/* Grid layout */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* Card Styling */
.card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 30px 20px;
  border-radius: 16px;
  transition: 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Hover Lift Effect */
.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Card Title */
.card h2 {
  margin-bottom: 25px;
  font-size: 20px;
  letter-spacing: 0.5px;
}

/* Button Style */
.card a {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  background: white;
  color: #764ba2;
  font-weight: bold;
  transition: 0.3s ease;
  display: inline-block;
  position: relative;
}

/* Button Hover */
.card a:hover {
  background: #ffdd57;
  color: black;
  transform: scale(1.08);
}

/* Soft Glow Effect */
.card::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  top: -50%;
  left: -50%;
  transform: rotate(25deg);
  opacity: 0;
  transition: 0.5s;
}

.card:hover::before {
  opacity: 1;
}

/* Responsive Text */
@media (max-width: 600px) {
  h1 {
    font-size: 30px;
  }
}