/* styles.css */
body {
  background-color: #121212;
  color: #E0E0E0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #1E1E1E;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

h1 {
  color: #F39C12;
  transition: transform 0.3s ease-in-out;
}

h1:hover {
  transform: scale(1.1);
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #E0E0E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
  color: #F39C12;
}

#portfolio {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

#portfolio a {
  color: #E0E0E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

#portfolio a:hover {
  color: #F39C12;
}

#portfolio a {
  display: inline-block;
  color: #E0E0E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transform 0.2s;
  padding: 10px 15px;
  border-radius: 5px;
  background-color: transparent;
  border: 2px solid #F39C12;
  margin-bottom: 20px; /* Added margin to create space below the link */
}

#hero {
  position: relative;
  background: url('../images/groupimage.avif') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Darker overlay */
  z-index: 1;
}

#hero h2, #hero p, #hero .cta-button {
  position: relative;
  z-index: 2;
}

#about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 50px;
}

.about-text h2 {
  font-size: 2em;
  color: #F39C12;
  margin-bottom: 15px;
}

#about .about-text {
  flex: 1;
}

#about .about-image {
  width: 40%;
  height: 300px;
  border-radius: 10px;
  background: url('../images/website2image.avif') center/cover no-repeat;
}

#services {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px;
  text-align: center;
  background-color: #34495E;
  border-radius: 10px;
}

.services-image,
.services-imageTwo {
  width: 30%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.services-image {
  background-image: url('../images/spaceimage.avif'); /* Replace with actual left image */
}

.services-imageTwo {
  background-image: url('../images/contactimage.avif'); /* Replace with actual right image */
}

.services-text {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-text h2 {
  font-size: 2em;
  color: #F39C12;
  margin-bottom: 15px;
}

.services-text ul {
  list-style: none;
  padding: 0;
}

.services-text ul li {
  font-size: 1.2em;
  margin: 10px 0;
}


#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px;
  max-width: 500px;
  margin: 0 auto;
  background: #1E1E1E;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

#contact h2 {
  margin-bottom: 20px;
  color: #F39C12;
}

#contact p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

#contact form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#contact form div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px;
  width: 100%;
}

#contact label {
  font-weight: bold;
  margin-bottom: 5px;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #F39C12;
  border-radius: 5px;
  background: #2E2E2E;
  color: white;
  font-size: 1em;
}

#contact textarea {
  height: 100px;
  resize: none;
}

#contact button {
  width: 100%;
  padding: 10px;
  background-color: #F39C12;
  color: #121212;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

#contact button:hover {
  background-color: #FFB74D;
}

#contact .checkbox-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #F39C12;
  color: #121212;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out, transform 0.2s;
}

.cta-button:hover {
  background-color: #FFB74D;
  transform: scale(1.05);
}

section {
  padding: 50px;
  animation: fadeIn 1.5s ease-in-out;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #1E1E1E;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Prevent Horizontal Scrolling */
  html, body {
      overflow-x: hidden;
      width: 100%;
  }

  /* Centering Header */
  header {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  nav ul {
      flex-direction: column;
      text-align: center;
      padding: 0;
  }

  nav ul li {
      margin: 10px 0;
  }

  /* Hero Section - Center Content Vertically */
  #hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center; /* Centers vertically */
      padding: 60px 20px;
      background-size: cover;
      text-align: center;
      min-height: 100vh; /* Takes up full screen height */
  }

  #hero h2, #hero p {
      max-width: 90%;
      margin: 0 auto;
  }

  /* About Section - Stack & Center */
  #about {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center; /* Centers vertically */
      text-align: center;
      padding: 30px;
      min-height: 100vh; /* Full height */
  }

  #about .about-image {
      width: 80%;
      height: 250px;
  }

  /* Services Section - Stack, Center, and Ensure Full Screen Height */
  #services {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center; /* Centers vertically */
      text-align: center;
      padding: 30px;
      gap: 20px;
      min-height: 100vh; /* Full height */
  }

  .services-image, .services-imageTwo {
      width: 90%;
      height: 250px;
  }

  /* Portfolio Section - Center Items */
  .portfolio-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 100vh;
      gap: 20px;
      padding: 30px;
  }

  /* Contact Section - Fix Cutoff Issue */
  #contact {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start; /* Aligns top to prevent overflow */
      text-align: center;
      width: 90%;
      max-width: 100%;
      padding: 20px;
      min-height: auto; /* Allows height to adjust */
      box-sizing: border-box;
      margin-bottom: 20px; /* Adds spacing to avoid cutoff */
  }

  #contact form {
      width: 100%;
  }

  #contact input,
  #contact textarea {
      width: 100%;
      max-width: 100%;
      padding: 12px;
      font-size: 1em;
      margin-bottom: 10px; /* Adds space between form fields */
  }

  #contact button {
      width: 100%;
      padding: 12px;
      font-size: 1em;
  }

  /* ✅ FIX: Properly Align Checkboxes & Labels in "Services Interested In" */
  #contact .checkbox-group {
      display: flex;
      flex-direction: column; /* Stack checkboxes vertically */
      align-items: center; /* Center everything */
      justify-content: center;
      width: 100%;
      gap: 10px; /* Space between checkboxes */
  }

  #contact .checkbox-group label {
      display: flex;
      align-items: center;
      justify-content: center; /* Fully center checkboxes & labels */
      gap: 10px; /* Space between checkbox and text */
      width: auto;
      font-size: 1em;
  }

  #contact input[type="checkbox"] {
      transform: scale(1.2); /* Make checkboxes easier to tap */
      margin: 0 auto; /* Center the checkboxes */
      display: flex;
      align-items: center;
  }

  /* Center Buttons & Links */
  .cta-button, #portfolio a {
      display: block;
      text-align: center;
      margin: 10px auto;
      width: 80%;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  #contact {
      width: 95%;
      padding: 15px;
  }

  #contact h2 {
      font-size: 1.5em;
  }

  #contact p {
      font-size: 1em;
  }

  #contact button {
      width: 100%;
      padding: 12px;
      font-size: 1em;
  }

  #contact .checkbox-group {
    display: none; /* Hides the checkboxes on screens smaller than 768px */
}

  /* Ensure Images Scale Properly */
  img, .services-image, .services-imageTwo, .about-image {
      width: 100%;
      height: auto;
  }
}

/* Extra Small Screens (max-width: 320px) */
@media (max-width: 320px) {
  body {
      font-size: 14px;
      text-align: center;
  }

  h1 {
      font-size: 24px;
  }

  .cta-button {
      padding: 8px 16px;
  }

  section {
      padding: 20px;
  }

  #contact .checkbox-group {
    display: none; /* Hides the checkboxes on screens smaller than 768px */
}
}