/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #111;
  color: #fff;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Navigation Bar (Fixed) */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8); /* Keep the darker background */
  padding: 20px 0;
  z-index: 10;
  display: flex;
  justify-content: center; /* Center the logo */
  align-items: center;
  position: relative;
}

nav .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

nav .logo img {
  width: 300px;  /* Adjust width as needed */
  height: auto;  /* Maintain aspect ratio */
}

/* Navigation Links */
.nav-links {
  position: absolute;
  right: 20px;  /* Move the nav items to the right */
  list-style: none;
  text-align: center;
  margin-top: 10px;
}

.nav-links li {
  display: inline;
  margin: 0 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f0c674;
}

/* Hero Section */
#hero {
  height: 60vh;
  background: url('your-hero-image.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 80px; /* Adjusted for the top bar */
}

.hero-content {
  z-index: 10;
}

.hero-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.cta-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #f0c674;
  color: #111;
  text-decoration: none;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #d8a944;
}

/* Projects Section */
#projects {
  padding: 50px 20px;
  text-align: center;
}

#projects h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#projects p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.project {
  margin-bottom: 40px;
}

.project h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.project p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.project-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  width: 100%; /* Ensure it takes up the full available width */
  margin: 0 auto;
  padding: 35px;
  background-color: #222;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  box-sizing: border-box; /* Ensure padding is included in the width */
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  background-color: #333;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
  width: 100%;
  font-size: 1rem;
}

form button {
  padding: 12px 20px;
  background-color: #f0c674;
  border: none;
  color: #111;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
}

form button:hover {
  background-color: #d8a944;
}

/* Mobile-Specific Styles (Under 768px) */
@media screen and (max-width: 768px) {
  /* Fix the position of the nav links underneath the top bar */
  nav {
    flex-direction: column; /* Stack the logo and nav links vertically */
    padding-top: 60px; /* Add space for the fixed top bar */
    margin-right: 0; /* Ensure nav is aligned */
  }

  nav .logo img {
    width: 200px; /* Adjust logo size for mobile */
  }

  /* Navigation Links Underneath Top Bar */
  .nav-links {
    position: static; /* Allow the nav items to flow below the logo */
    text-align: center;
    width: 100%;
    margin-top: 20px;
  }

  .nav-links li {
    display: inline-block; /* Make links appear horizontally */
    margin: 10px 0;
  }

  .nav-links a {
    font-size: 16px;  /* Adjust font size for mobile */
    margin: 0 15px;   /* Proper spacing between nav links */
  }

  /* Hero Section Adjustments */
  #hero {
    height: 50vh; /* Adjust hero height for mobile */
    margin-top: 100px; /* Prevent content from being hidden under the fixed nav */
  }

  /* Contact Form Adjustments */
  .contact-form {
    width: 90%; /* Ensure the form fits the mobile screen */
    margin: 0 auto;
    padding: 35px; /* Increase padding for better spacing */
    box-sizing: border-box; /* Ensure padding is included in the width */
  }

  .form-group label {
    font-size: 1rem;
  }

  form button {
    font-size: 16px;
    padding: 12px 30px;
  }

  /* Projects Section Adjustments */
  #projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%; /* Ensure projects take up full width on mobile */
  }

  #projects, #about, #team, #contact {
    flex: 1 0 45%;
    margin: 10px;
    text-align: center;
  }

  .project-img {
    max-width: 100%;
  }

  /* Prevent Horizontal Scrolling */
  html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%; /* Ensure the body width does not exceed screen width */
  }

  /* Ensure sections and content fit within the screen width */
  #projects, #about, #team, #contact {
    box-sizing: border-box;
    padding: 0 10px;
  }

  /* Prevent content from shifting to the right */
  .container {
    padding: 0 10px;
  }
}