:root {
  --primary-color: #ecf0f1;
  --secondary-color: #2c3e50;
  --background-color: #2a2a2a;
  --bottom-text-color: #008080; /* Teal */
  --hover-transform: translateY(-5px);
  --hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--primary-color);
  background-color: var(--background-color);
}

a {
  text-decoration: none;
  color: inherit;
}

.top-section {
  background: linear-gradient(rgba(70, 70, 70, 0.8), rgba(70, 70, 70, 0.8)), url('images/main.png') no-repeat center center;
  background-size: cover;
  color: var(--bottom-text-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  position: relative;
}

.top-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.top-section h1,
.top-section p {
  position: relative;
  z-index: 1;
}

.middle-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
}

.middle-section .text-container,
.middle-section .image-container {
  flex: 1 1 45%;
  max-width: 600px;
  padding: 20px;
}

.middle-section .text-container {
  text-align: left;
}

.middle-section .image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.bottom-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 20px;
  background-color: var(--secondary-color);
}

.bottom-section .image-container {
  position: relative;
  flex: 1 1 30%;
  max-width: 300px;
  text-align: center;
  padding: 20px;
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px;
}

.bottom-section .image-container:hover {
  transform: var(--hover-transform);
  box-shadow: var(--hover-shadow);
}

.bottom-section .image-container img {
  max-width: 100%;
  height: auto;
}

.bottom-section .image-description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(40, 40, 40, 0.9);
  color: var(--bottom-text-color);
  padding: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  .middle-section {
    flex-direction: column;
  }

  .middle-section .text-container,
  .middle-section .image-container {
    flex-basis: 100%;
  }

  .bottom-section .image-container {
    flex-basis: 100%;
    max-width: none;
  }
}
