/* General */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f8ff, #e6e9ff);
  color: #333;
  line-height: 1.6;
  animation: fadeInBody 1s ease-in;
}
@keyframes fadeInBody {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
header h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  margin: 0;
  animation: fadeInName 1s ease-out;
  color: #f1c40f;
}

@keyframes fadeInName {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  background: #34495e;
  color: #ecf0f1;
  padding: 1rem 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  animation: slideDown 0.8s ease-out;
}
@keyframes fadeInNav {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

header nav ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInNav 1.2s ease-out;
}
header nav a {
  position: relative;
  color: #ecf0f1;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
header nav a:hover {
  background-color: #1abc9c;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.5);
}
header nav a:hover::after {
  width: 100%;
}
header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, #f1c40f, #e74c3c, #1abc9c);
  transition: width 0.4s ease-in-out;
  border-radius: 2px;
}

/* Page variations */
.page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInSection 0.8s ease-in;
}
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page.about {
  border-top: 6px solid #1abc9c;
}
.page.family {
  border-top: 6px solid #e74c3c;
}
.page.faith {
  border-top: 6px solid #9b59b6;
}
.page.contact {
  border-top: 6px solid #3498db;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #34495e;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: currentColor;
  margin-top: 0.25rem;
  animation: growLine 0.5s forwards;
}
@keyframes growLine {
  from {
    width: 0;
  }
  to {
    width: 50px;
  }
}

/* Contact Form Animations */
input,
textarea {
  padding: 0.75rem;
  border: 2px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus,
textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
  outline: none;
}
button {
  padding: 0.75rem;
  background-color: #3498db;
  color: white;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
button:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}
form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

form input,
form textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: #34495e;
  color: #ecf0f1;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  animation: fadeInFooter 1s ease-in;
}
@keyframes fadeInFooter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
