/* Base Styles */
:root {
  --primary-color: #3a5a78;
  --secondary-color: #e9ecef;
  --accent-color: #f8a13f;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --transition-speed: 0.3s;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  position: relative;
  padding-top: 56px;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

/* Navigation */
#mainNav {
  transition: background-color 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNav .navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

#mainNav .navbar-brand:hover {
  color: var(--accent-color);
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: #555;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: color var(--transition-speed);
}

#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--primary-color);
}

#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: url("https://source.unsplash.com/random/1600x900/?church")
    no-repeat center center;
  background-size: cover;
  padding: 8rem 0;
  color: white;
  text-align: center;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(58, 90, 120, 0.9) 0%,
    rgba(29, 45, 60, 0.85) 100%
  );
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.content-section {
  padding: 5rem 0;
}

.section-card {
  background-color: white;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-heading {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.divider {
  width: 50px;
  border-top: 3px solid var(--accent-color);
  margin: 1.5rem auto;
}

/* Feature Boxes */
.feature-box {
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Service Times */
.service-time {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background-color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.service-time:hover {
  background-color: #dfe5ea;
}

.special-announcement {
  background-color: var(--accent-color);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

/* Events */
.event-card {
  display: flex;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  min-width: 80px;
}

.event-date .month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-date .day {
  font-size: 1.8rem;
  font-weight: 700;
}

.event-details {
  padding: 1rem;
  flex-grow: 1;
}

.event-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.event-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.event-details i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* Contact Section */
.contact-info,
.contact-form {
  padding: 1.5rem;
  height: 100%;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 2rem;
}

footer h5 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
  text-decoration: none;
}

footer .social-links {
  margin-top: 1rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.fade-in-delay {
  animation: fadeIn 1s ease-in-out 0.3s both;
}

.fade-in-delay-2 {
  animation: fadeIn 1s ease-in-out 0.6s both;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section {
    padding: 6rem 0;
  }

  .content-section {
    padding: 4rem 0;
  }

  .section-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 5rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.2rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .section-card {
    padding: 1.5rem;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    padding: 0.5rem;
    min-width: auto;
  }

  .event-date .month,
  .event-date .day {
    margin: 0 0.5rem;
  }
}
