/* I use comments for eazy aceesibility and debugging...thanks */

/* Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

/* Top Navigation */
.topnav {
  background-color: rgb(77, 207, 160);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1000;
}
.topnav #mylinks{
  position: absolute;
  top:100%;
  left:0;
  width:100%;
  background: rgb(77, 207, 160)
  z-index: 2000;
}

#logo {
  height: 10vh;
  left: 1rem;
  top: 0.5rem;
}

/* Default navigation (desktop) */
.navigation {
  display: flex;
  gap: 1rem;
}

.nav-items {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.nav-items:hover {
  text-decoration: underline;
}

/* Hide hamburger on desktop */
.icon {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Mobile nav hidden by default */
@media (max-width: 700px) {
  .navigation {
    flex-direction: column;
    background-color: rgb(77, 207, 160);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;

    /* For smooth slide effect */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .navigation.show {
    max-height: 500px; /* enough to show all items */
    transition: max-height 0.3s ease-in;
  }

  .navigation a {
    text-align: left;
    padding: 10px 16px;
  }

  .icon {
    display: block;
  }
}

/* Hero Section */
.hero {
  /* fallback for browsers that don't understand image-set */
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              url("images/marenje_team2.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 4rem 1rem;

  /* modern browsers will prefer WebP */
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              -webkit-image-set(
                url("images/toWEBP/marenje_team2.webp") type("image/webp") 1x,
                url("images/marenje_team2.jpg") type("image/jpeg") 1x
              ) center/cover no-repeat;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              image-set(
                url("images/toWEBP/marenje_team2.webp") type("image/webp") 1x,
                url("images/marenje_team2.jpg") type("image/jpeg") 1x
              ) center/cover no-repeat;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
}

/* Change hero image on smaller screens */
@media (max-width: 900px) {
  .hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url("images/marenje_team1.jpg") center/cover no-repeat;

    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                -webkit-image-set(
                  url("images/toWEBP/marenje_team1.webp") type("image/webp") 1x,
                  url("images/marenje_team1.jpg") type("image/jpeg") 1x
                ) center/cover no-repeat;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                image-set(
                  url("images/toWEBP/marenje_team1.webp") type("image/webp") 1x,
                  url("images/marenje_team1.jpg") type("image/jpeg") 1x
                ) center/cover no-repeat;
  }
}


/* Intro Paragraph */
.intro {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
  line-height: 1.6;
}

/* Goals Section */
.goals {
  background-color: #f7f7f7;
  padding: 2rem;
  text-align: center;
}

.goals-items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.goals-items li {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.goals-items i {
  font-size: 2rem;
  color: rgb(77, 207, 160);
  display: block;
  margin-bottom: 0.5rem;
}

/* Bible Verse */
.verse {
  padding: 2rem;
  background: rgb(77, 207, 160);
  color: white;
  text-align: center;
}

.verse blockquote {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
}

.verse span {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
}

/* Footer */
.copyright {
  border-top: solid black 1px;
  background: rgba(236, 233, 228, 0.5);
  height: 12vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright img {
  height: 6vh;
  margin-right: 0.5rem;
}

.intro, .goals, .verse{
  opacity: 0;
  animation: fade-In-Up 1s ease forwards;
}

/* different delays, so they appear one after the other */
.intro{
  animation-delay: 0.2s;
}
.goals{
  animation-delay: 0.4s;
}
.verse{
  animation-delay: 0.6s;
}
/* ===== About-Page Styles ===== */


/* Apply animation to all about sections */
.about-history, 
.about-vision, 
.about-mission, 
.about-quote {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 8px;
    opacity: 0;
    animation: fade-In-Up 1s ease forwards;
}
/* Fade-in animation */
@keyframes fade-In-Up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Different delays so they appear one after another */
.about-history { 
    background-color: #f7f9fc;
    animation-delay: 0.2s;
}
.about-vision { 
    background-color: #fff7f0;
    animation-delay: 0.4s;
}
.about-mission { 
    background-color: #f3fdf9;
    animation-delay: 0.6s;
}
.about-quote { 
    background-color: rgba(118, 185, 160, 0.08);
    border-left: 5px solid rgb(77, 207, 160);
    font-style: italic;
    animation-delay: 0.8s;
}

/* Headings */
.about-history h2,
.about-vision h2,
.about-mission h2 {
    color: rgb(51, 51, 113);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-transform: uppercase;
}

/* Paragraphs */
.about-history p,
.about-vision p {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

/* Mission List */
.about-mission ul {
    list-style-type: disc;
    padding-left: 2rem;
    text-align: left;
    display: inline-block;
}

.about-mission li {
    margin: 0.5rem 0;
}

/* Quote */
.about-quote blockquote {
    margin: 0;
    padding: 1rem;
}

.about-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
    font-style: normal;
    color: #555;
}

/* ===== Team-Page Styles ===== */


.team-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f2f3f7;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-In-Up 1s ease forwards;
}

/* Profile Image */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgb(77, 207, 160);
}

/* Member Info */
.team-info h3 {
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
    color: rgb(51, 51, 113);
}

.team-info p {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #444;
}

.team-info .role {
    font-weight: bold;
    color: rgb(77, 207, 160);
    margin-bottom: 0.5rem;
}

/* Contact Links */
.team-info a {
    display: inline-block;
    margin-right: 0.8rem;
    text-decoration: none;
    color: rgb(118, 185, 160);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.team-info a:hover {
    color: rgb(51, 51, 113);
}

/* Responsive Layout for small screens */
@media (max-width: 700px) {
    .team-member {
        flex-direction: column;
        text-align: center;
    }

    .team-member img {
        width: 100px;
        height: 100px;
    }

    .team-info {
        margin-top: 0.5rem;
    }
}

/* ===== Contact Page Styles ===== */

/* Contact Info Section */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.info-item i {
    font-size: 2rem;
    color: rgb(77, 207, 160);
    margin-bottom: 0.5rem;
}
/* animation for contact-info and conatact-form */
.contact-info, .contact-form{
    opacity: 0;
    animation: fade-In-Up 1s ease forwards;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f0e9e9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation-delay: 0.4s;
}

.contact-form h2 {
    margin-bottom: 1rem;
    color: rgb(51, 51, 113);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

.contact-form button {
    padding: 0.8rem;
    background: rgb(77, 207, 160);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: rgb(90, 150, 130);
}

/* Contact Form Status Messages */
.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
}

.form-status.success {
    color: green;
}

.form-status.error {
    color: red;
}

/* Responsive for Contact Page */
@media (max-width: 700px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .info-item {
        margin-bottom: 1rem;
    }
}
