/* GOOGLE FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #005ea5, #8e001c); /* match header */
  color: #222;
  scroll-behavior: smooth;
}


/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #8e001c;
}

/* NAVBAR MENU LIST RESET & STYLE */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none; /* Removes the dots */
  padding-left: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #005ea5;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #8e001c, #005ea5);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.nav-links a:hover {
  color: #8e001c;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px #8e001c, 0 0 20px #8e001c;
}



.navbar.scrolled {
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}


/* Add hamburger icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1000;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #005ea5;
  border-radius: 3px;
  transition: 0.3s;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
  }
}

/* Optional animation for open icon */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}



/* HEADER */
header {
  padding-top: 110px;
  text-align: center;
  background: linear-gradient(135deg, #005ea5, #8e001c);
  color: white;
  padding-bottom: 60px;
  clip-path: ellipse(100% 85% at 50% 15%);
}
.logo-img {
  height: 120px;
  border-radius: 25px;
}
.logos {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 30px;
}
.main-title {
  font-size: 3.5rem;
  font-weight: 800;
}
.subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* SLIDER */
.slider {
  position: relative;
  height: 75vh;
  margin: 0 auto;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide-text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 16px 28px;
  font-size: 1.8rem;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 2;
  border-radius: 6px;
  transition: 0.3s ease;
}
.slider-btn:hover {
  background: white;
}
.prev { left: 20px; }
.next { right: 20px; }

/* SECTIONS */
#ausfluge, #tagebuch, #okosystem {
  padding-top: 40px;
  padding-bottom: 40px;
}

.preview-section {
  padding: 80px 30px;
  max-width: 100%;
  background: none; /* body already has background */
  border-radius: 0;
}


/* SECTION HEADINGS */
.preview-section h3 {
  font-size: 2.4rem;
  color: white;
  margin-bottom: 40px;
  text-align: center;
}

/* CARDS */
.preview-card {
  background: white;
  border-left: 5px solid #8e001c;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto; /* center it */
}
.preview-card p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: #005ea5;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}
.btn:hover {
  background: #8e001c;
}

/* MAP GALLERY */
.map-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.map-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  text-align: center;
}
.map-card img {
  width: 100%;
  display: block;
}
.map-card h4 {
  font-size: 1.2rem;
  color: #005ea5;
  margin: 12px 0;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .main-title {
    font-size: 2.4rem;
  }
  .subtitle {
    font-size: 1.2rem;
  }
  .map-gallery {
    flex-direction: column;
    align-items: center;
  }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  font-size: 0.9rem;
}



/* Hidden by default */


/*Atentie efectul de scroll reveal e aici*/
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Shown when active */
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}
    .timeline {
      position: relative;
      max-width: 1000px;
      margin: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
    }

    /* Horizontal line behind dots (adjusted to center) */
    .timeline::before {
      content: '';
      position: absolute;
      top: 20%;
      left: 0;
      right: 0;
      height: 4px;
      background-color: #999;
      transform: translateY(-50%);
      z-index: 0;
    }

    .timeline a {
      position: relative;
      text-decoration: none;
      color: #333;
      font-weight: bold;
      z-index: 1;
      flex: 1;
    }

    /* Use a .dot span inside the link */
    .timeline a .dot {
      display: inline-block;
      width: 20px;
      height: 20px;
      background-color: #2196F3; /* Blue */
      border-radius: 50%;
      border: 3px solid white;
      box-shadow: 0 0 0 2px #2196F3; /* Blue outline */
      transition: transform 0.3s ease, background-color 0.3s;
    }

    .timeline a:hover .dot {
      transform: scale(1.5);
      background-color: #1976D2; /* Darker blue on hover */
      box-shadow: 0 0 0 3px #1976D2;
    }

    .timeline a .label {
      display: block;
      margin-top: 12px;
      font-size: 14px;
    }

    @media screen and (max-width: 700px) {
      .timeline {
        flex-direction: column;
        align-items: center;
      }

      .timeline::before {
        top: 0;
        left: 18px;
        height: 100%;
        width: 4px;
        transform: none;
      }

      .timeline a {
        flex-direction: column;
        align-items: center;
        margin: 10px 0; /* 20px vertical gap between points */
      }

      .timeline a .dot {
        margin-bottom: 8px;
      }
    }
