/* ======== STILURI GENERALE ======== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f6;
  color: #333;
  line-height: 1.7;
}

/* ======== HERO SECTION ======== */
.hero {
  background-image: url("images/plantatie4.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .overlay {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-style: italic;
  font-size: 1.3em;
  margin-bottom: 25px;
}

.hero nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.hero nav a:hover,
.hero nav a.active {
  color: #a8d08d;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 80px 10%;
  background-color: #f9f9f6;
}

.timeline h2 {
  text-align: center;
  color: #4b772f;
  font-size: 2.3em;
  font-weight: bold;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 150px;
  bottom: 0;
  left: calc(10% + 45px);
  width: 4px;
  background-color: #a8d08d;
  border-radius: 2px;
}

.timeline-container {
  position: relative;
  margin-left: 115px;
  padding-left: 40px;
}

.an {
  position: relative;
  margin-bottom: 90px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.an::before {
  content: "";
  position: absolute;
  left: -75px;
  top: 22px;
  width: 26px;
  height: 26px;
  background-color: #a8d08d;
  border: 3px solid #4b772f;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.an .content {
  background-color: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 880px;
  margin-left: 0;
}

.an .content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.an h3 {
  color: #2f4f2f;
  font-size: 1.5em;
  margin-bottom: 10px;
  border-bottom: 2px solid #a8d08d;
  display: inline-block;
  padding-bottom: 5px;
}

.an p {
  text-align: justify;
  font-size: 1.08em;
  line-height: 1.75;
  color: #444;
}

.imagini-an {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  margin-left: 0;
}

.imagini-an img {
  width: 230px;
  height: 170px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagini-an img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

/* ===== FOOTER ===== */
footer {
  background-color: #7bb661;
  color: white;
  text-align: center;
  padding: 25px;
  font-size: 0.95em;
  margin-top: 40px;
}
