html {
  scroll-behavior: smooth;
}

body,
html {
  padding: 0;
  box-sizing: border-box;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background-color: rgba(51, 51, 51, 0.85);
  color: #fff;
}

.font-weight-thin {
  font-weight: 100;
}
.font-weight-light {
  font-weight: 300;
}
.font-weight-regular {
  font-weight: 400;
}
.font-weight-medium {
  font-weight: 500;
}
.font-weight-bold {
  font-weight: 700;
}
.font-weight-black {
  font-weight: 900;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===== NAVBAR ===== */

.navbar {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(33, 33, 33, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  color: white;
  z-index: 100;
  transition: background-color 0.4s, box-shadow 0.4s;
}

.navbar-intersecting {
  background-color: rgba(33, 33, 33, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: background-color 0.4s, box-shadow 0.4s;
}

.brand-title {
  font-size: 1.5rem;
  margin: 0.5rem;
}

#logo {
  width: 135px;
  height: 50px;
}

.nav-links ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  padding: 1rem;
  display: block;
  position: relative;
  letter-spacing: 0.03em;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background-color: white;
  transition: transform 0.3s ease;
}

.nav-links li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links li:hover {
  background-color: transparent;
}

.toggle-button {
  position: absolute;
  top: 2rem;
  right: 1rem;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  display: none;
}

.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

/* ===== HERO / HEADER ===== */

.img-container {
  width: 100%;
  height: 100%;
  align-items: center;
  text-align: center;
  position: relative;
  top: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.header-text {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 600px;
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
}

.header-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-text p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

.header-img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

/* ===== PASTOR SECTION ===== */

.pastor-text {
  margin-top: 60px;
  padding-bottom: 20px;
}

.pastor-text p {
  font-weight: 300;
  color: #444;
  line-height: 1.8;
  font-size: 1rem;
}

.pastor-image {
  height: 325px;
  border-radius: 8px;
  margin-right: 24px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ===== SECTION HEADING ===== */

.section-heading {
  text-align: center;
  padding: 20px 20px 30px;
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.heading-underline {
  width: 60px;
  height: 3px;
  background-color: #333;
  margin: 0 auto 10px;
  border-radius: 2px;
}

.section-divider {
  border: none;
  height: 1px;
  background-color: #ddd;
  margin: 0 12px;
}

/* ===== MEMBER CARDS ===== */

.members {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: #000;
  padding-top: 30px;
  padding-bottom: 10px;
  position: relative;
  width: 350px;
  max-width: 100%;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-container .round {
  border: 3px solid #eee;
  border-radius: 50%;
  padding: 5px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  transition: border-color 0.3s ease;
}

.card-container:hover .round {
  border-color: #333;
}

.card-container p {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
  letter-spacing: 0.01em;
}

.card-text {
  position: absolute;
  bottom: 600px;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 32px;
  font-weight: bolder;
  text-align: center;
  align-items: center;
  padding: 10%;
}

/* ===== FOOTER ===== */

.site-footer {
  background-color: #222;
  color: white;
  margin-top: 60px;
  padding-top: 10px;
}

.footer-tagline {
  margin: 20px 0;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

footer {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.footer-socials,
.footer-left-header,
.footer-contact {
  justify-content: center;
  text-align: center;
  align-items: center;
  height: 100%;
}

.footer-left-header {
  padding-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: row;
  align-content: center;
  padding-top: 40px;
}

.icons {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

footer .footer-left-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 20px;
  color: #ffffff;
  text-align: center;
  line-height: 42px;
  margin: 0 8px 24px;
  transition: background-color 0.3s, transform 0.3s;
}

footer .footer-left-icons a.social-fb:hover {
  background-color: #1877f2;
  transform: translateY(-3px);
}

footer .footer-left-icons a.social-ig:hover {
  background-color: #e4405f;
  transform: translateY(-3px);
}

footer .footer-left-icons a.social-yt:hover {
  background-color: #ff0000;
  transform: translateY(-3px);
}

footer .footer-left-icons a:hover {
  transform: translateY(-3px);
}

.footer-divider {
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 35% 30px;
  border: none;
  height: 1px;
}

.footer-contact-row {
  padding-bottom: 10px;
}

.footer-contact-row i {
  font-size: 1.2rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.footer-contact-row .just-data {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-contact-row a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-row a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  height: 6px;
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 800px) {
  .footer-contact {
    flex-direction: column;
  }
}

@media screen and (max-width: 870px) {
  footer {
    flex-direction: column;
  }
}

@media (max-width: 1068px) {
  .members {
    flex-wrap: nowrap;
    overflow-x: scroll;
  }

  .members::-webkit-scrollbar {
    height: 4px;
    width: 4px;
    background: gray;
  }
  .members::-webkit-scrollbar-thumb:horizontal {
    background: #000;
    border-radius: 10px;
  }

  .card-container {
    margin-right: 16px;
    padding: 12px 12px;
  }
  .toggle-button {
    display: flex;
  }

  .nav-links {
    width: 100%;
    display: none;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links ul {
    width: 100%;
    flex-direction: column;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links li a {
    padding: 0.5rem 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  #logo {
    width: 100px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .header-text h1 {
    font-size: 2rem;
  }

  .header-text p {
    font-size: 0.95rem;
  }

  .pastor-image {
    height: auto;
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto 20px;
    float: none;
  }
}

@media (max-width: 520px) {
  .header-text h1 {
    font-size: 1.5rem;
  }

  .header-text p {
    font-size: 0.85rem;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 350px) {
  .header-text h1 {
    font-size: 1.3rem;
  }
}

@media (max-width: 320px) {
  .pastor-image {
    width: 275px;
    height: 280px;
  }
}
