/* style.css */

/* Color Variables */
:root {
  --bg-color: #f4f4f4;        /* Light gray background */
  --text-color: #333;         /* Darker gray for text */
  --accent-color: #800000;    /* Dark maroon */
  --header-bg: #e0e0e0;       /* Slightly darker gray for header */
  --nav-hover: #4d0000;       /* Hover color (deeper maroon) */
  --logo-width: 90px;         /* Adjust logo size here */
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Header and Nav */
header {
  background-color: var(--header-bg);
  display: flex;
  flex-wrap: wrap;  /* Allows the nav to wrap under the logo on smaller screens */
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
}
.logo-container img {
  width: var(--logo-width);
  margin-right: 0.75rem;
}

.site-title {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 1.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;  /* Allows the menu items to wrap on smaller screens */
}
nav ul li {
  margin-left: 1.5rem;
}
nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: var(--nav-hover);
}

/* Main Content */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Headings */
h1, h2, h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  background-color: var(--header-bg);
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Members specific styles */
.member {
  display: flex;
  flex-wrap: wrap; /* Ensure wrapping on smaller screens */
  align-items: center;
  margin-bottom: 2rem;
}
.member img {
  width: 200px; /* Optimal size for mobile and adjusts for desktop */
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 1rem;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.member img:hover {
  filter: grayscale(0%);
}
.member-info {
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .logo-container img {
    width: 50px; /* Smaller logo for mobile */
  }

  nav ul {
    padding-top: 0.5rem;
    justify-content: center;
  }
  
  nav ul li {
    margin-left: 0.5rem; /* Less spacing for mobile */
    margin-right: 0.5rem;
  }

  .site-title {
    font-size: 1rem; /* Smaller font for mobile */
  }

  .member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .member img {
    width: 150px; /* Smaller images for mobile */
    height: 150px;
    margin-bottom: 1rem; /* Adds space between the image and text */
  }
}
