@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #172734;
    --secondary-color: #2a4d69;
    --text-color: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

nav {
    background-color: var(--secondary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-container {
    text-align: center;
    padding: 2rem 0;
    margin-top: 5rem;
}

.logo {
    max-width: 20%;
    height: auto;
}

.home-container, .team-container {
    max-width: 1200px;
    padding: 2rem;
}

.home-container h1, .team-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.home-sections {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.home-section {
    flex-basis: 48%;
    background-color: rgba(42, 77, 105, 0.8);
    border-radius: 10px;
    padding: 2rem;
}

.home-section h2 {
    margin-bottom: 1rem;
}

.home-section ul {
    list-style-position: inside;
}

.team-member {
  background-color: rgba(42, 77, 105, 0.8);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.team-member h2, .team-member h3 {
    text-align: center;
  margin-bottom: 1rem;
}

.member-image {
  text-align: center;
  margin-bottom: 1rem;
}

.member-image img {
  max-width: 100%; /* This ensures the image never exceeds its container width */
  height: auto; /* This maintains the aspect ratio */
  max-height: 400px; /* This sets a maximum height for larger screens */
  width: auto; /* This allows the width to adjust based on the max-height */
}

.linkedin-link {
  display: inline-block;
  margin-top: 1rem;
}

.linkedin-link img {
  width: 140px; /* Set a fixed width for the LinkedIn icon */
  height: auto;
}

@media screen and (max-width: 768px) {
  .team-member {
      padding: 1rem; /* Reduce padding on smaller screens */
  }

  .member-image img {
      max-height: none; /* Remove max-height constraint on smaller screens */
  }
}

footer {
    background-color: var(--secondary-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-bottom: 0.5rem;
    }

    .logo {
        max-width: 50%;
    }

    .home-sections {
        flex-direction: column;
    }

    .home-section {
        margin-bottom: 1rem;
    }

    .member-image img {
        max-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}