* {
  font-family: Verdana, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: Merriweather, serif;

  h2 {
    font-size: 22px;
    font-family: Verdana, sans-serif;
    color: #283106;
    text-align: center;
  }
}

#homeheading {
  background-color: #D1D8BD;
  padding: 2% 1%;
  color: #283106;
  text-align: center;

  p {
    font-size: 20px;
    font-family: Verdana, sans-serif;
  }

  h2 {
    font-size: 55px;
    font-family: cursive;
  }
}

/* Centers everything */
.projects-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.projects {
  display: flex;
  gap: 30px;
  align-items: center;
  /* prevents height shifting */
}

/* Square cards */
.project {
  width: 225px;
  aspect-ratio: 1 / 1;
  background: #DFE0DC;
  color: #777E5C;
  border-radius: 10px;
  padding: 15px;
  box-sizing: border-box;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  transition: transform 0.3s ease, background 0.3s ease;
}

.project p {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project:hover {
  transform: scale(1.15);
  background: #B0B6BC;
  z-index: 10;
  color: #283106;
}

.project:hover p {
  opacity: 1;
}

.connect {
  text-align: center;
  margin: 10px;
}

.connect img {
  width: 35px;
  height: auto;
  display: block;
  margin: 3px auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #283106;
  padding: 15px 30px;
  color: #DFE0DC;
  position: sticky;
  top: 0;
  font-family: Verdana, sans-serif;
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #DFE0DC;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #B0B6BC;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 60px;
    background: #222;
    width: 200px;
    padding: 20px;
  }

  .nav-links li {
    margin: 10px 0;
  }

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

  .hamburger {
    display: block;
  }
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  position: relative;
  align-items: flex-start;
  margin: 30px 0px;
}

.timeline-date {
  width: 180px;
  font-weight: bold;
  font-size: 15px;
  color: #555;
  position: relative;
  text-align: left;
}

.timeline-content {
  background: white;
  padding: 15px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  position: relative;
  padding: 20px 25px;
}

/* line */
.timeline::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #555;
}

/* bullet point */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  width: 20px;
  height: 20px;
  background: #555;
  border-radius: 50%;
  border: 2px solid white;
}

#competition {
  padding: 25px;
  background-color: #DFE0DC;
}

.competition-details {
  padding: 8px;
  border-radius: 8px;
  background-color: #B0B6BC;
  color: #283106;
}

#competition ul {
  list-style-type: disc;
  padding-left: 25px;
}

/* Gallery layout */
.gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  display: block;
  width: 200px;
  height: 120px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Zoom & dim effect on hover */
.gallery-item:hover img {
  transform: scale(1.1) rotate(2deg);
  filter: brightness(80%);
}

/* Overlay text */
.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 5px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}