/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* Body Background & Text */
body {
  background: linear-gradient(to bottom, #a8edea, #fed6e3);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

header p.subtitle {
  font-size: 1.25rem;
  color: #f0f0f0;
  margin-bottom: 1rem;
}

/* Homepage Buttons */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.project-card {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background-color: rgba(0,0,0,0.35);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  transition: 0.3s;
  text-align: center;
  min-width: 180px;
}

.project-card:hover {
  background-color: rgba(0,0,0,0.6);
}

/* Layer Content */
.layer-content {
  flex: 1;
  max-width: 1000px; /* wider boxes */
  margin: 2rem auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  word-wrap: break-word;
}

.layer-content ul {
  list-style-type: none;
}

.layer-content li {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  padding: 0.5rem 0;
}

/* Description under each item */
.layer-content li span.desc {
  display: block;
  font-size: 1rem;
  color: #ddd;
  margin-top: 0.25rem;
  padding-left: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.4);
}

footer a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: 2px solid #fff;
  border-radius: 8px;
  transition: 0.3s;
  display: inline-block;
}

footer a:hover {
  background-color: #fff;
  color: #333;
}

/* Fade-in animation */
.fade-in {
  animation: fadeIn 1s ease-in forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }

  header p.subtitle {
    font-size: 1.1rem;
  }

  .layer-content li {
    font-size: 1.3rem;
  }

  .layer-content li span.desc {
    font-size: 0.95rem;
  }

  footer a, .project-card {
    font-size: 1rem;
    min-width: 140px;
  }
}
