/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 20px;
}

/* Header Styling */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background-color: #222;
  color: white;
}

header .header-image {
  width: 100%;
  max-width: 300px; /* Limit maximum width for smaller screens */
  height: auto;
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  padding: 8px 12px;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  border-radius: 4px;
  padding: 5px 0;
  min-width: 150px;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li {
  width: 100%;
}

nav ul li ul li a {
  padding: 10px;
  display: block;
}

/* Main Content Styling */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

main h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #222;
}

/* Responsive Image Styling */
.responsive-image {
  width: 100%;         /* Makes the image take up 100% of its container width */
  max-width: 1200px;   /* Limits the maximum width on larger screens */
  height: auto;        /* Maintains aspect ratio */
  display: block;      /* Prevents inline spacing issues */
  margin: 0 auto;      /* Centers the image in its container */
}

/* Paragraph Styling */
p {
  text-align: left;
  margin-bottom: 1em;
  max-width: 800px;
}

/* Success Message Styling */
.success-message {
  color: green;
  font-weight: bold;
  margin: 20px 0;
  text-align: center;
}

/* Contact Form Styling */
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
}

form label {
  margin-top: 10px;
  font-weight: bold;
  text-align: left;
}

form input, form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form button {
  margin-top: 15px;
  padding: 10px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background-color: #444;
}

/* Responsive Image Styling */
header .header-image {
  width: 100%;
  max-width: 150px; /* Adjust maximum width for larger screens */
  height: auto;
}

main img {
  width: 100%;
  max-width: 100%; /* Ensures it adapts to container width */
  height: auto;
  object-fit: cover; /* Maintains aspect ratio and fills width */
  border-radius: 8px;
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li ul {
    position: static;
  }

  main h1 {
    font-size: 1.8em;
  }

  p {
    max-width: 100%;
  }
}
