/* General Reset */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;
}

.navbar-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  font-size: 1rem;
  font-weight: 600;
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-link:hover {
  color: #0056b3;
}

/* Hamburger Menu Button */
.navbar-toggle {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-icon {
  width: 24px;
  height: 2px;
  background-color: #222;
  display: block;
  position: relative;
}

.navbar-icon::before,
.navbar-icon::after {
  content: '';
  width: 24px;
  height: 2px;
  background-color: #222;
  position: absolute;
  left: 0;
}

.navbar-icon::before {
  top: -8px;
}

.navbar-icon::after {
  top: 8px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column; /* Stack content vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh; /* Ensure it takes up the full viewport height */
  background-color: #f9f9f9; /* Light background for modern feel */
  padding: 0 1rem; /* Padding for mobile responsiveness */
  overflow: hidden; /* Prevent content from spilling out */
  background: url('../assets/images/pexels-server-rack.jpg') no-repeat center center/cover; /* Set background image */
  position: relative; /* Ensure overlay is positioned correctly */
  text-align: center; /* Center-align text */
  padding: 100px 0; /* Add padding for spacing */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: 1; /* Ensure overlay is above background */
}

.hero .container {
  max-width: 800px;
  position: relative; /* Ensure text is above overlay */
  z-index: 2; /* Ensure text is above overlay */
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white; /* Change text color to white for contrast */
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: white; /* Change text color to white for contrast */
}

.hero-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #007BFF; /* Modern blue for CTA */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-bottom: 2rem; /* Add spacing below the button */
}

.hero-btn:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* Services Section */
.services {
  background-color: #fff; /* Clean white background */
  padding: 4rem 1rem; /* Generous padding for spacing */
  text-align: center;
}

.services-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #222; /* Bold headline color */
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-item {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #555; /* Subtle text color */
}

/* Why Me Section */
.why-me {
  background-color: #f9f9f9; /* Light background for contrast */
  padding: 4rem 1rem; /* Generous padding */
  text-align: center;
}

.why-me-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222; /* Bold heading color */
}

.why-me-description {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: #555; /* Subtle text color */
}

.why-me-props {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* Ensures responsiveness */
}

.why-me-prop {
  background-color: #fff; /* Clean white background */
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  max-width: 300px;
  text-align: center;
}

.icon-placeholder {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background-color: #ddd; /* Placeholder color */
  border-radius: 50%; /* Circular icon */
}

.prop-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222; /* Bold title color */
}

.prop-description {
  font-size: 1rem;
  font-weight: 400;
  color: #555; /* Subtle text color */
}

/* Featured Sites Section */
.featured-sites {
  background-color: #fff; /* Clean white background */
  padding: 4rem 2rem; /* Add more padding to the sides */
  text-align: center;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222; /* Bold heading color */
}

.featured-description {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: #555; /* Subtle text color */
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 2rem; /* Space between cards */
}

.featured-card {
  background-color: #f9f9f9; /* Light background for cards */
  padding: 3rem 2rem; /* Increase padding inside the card */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  text-align: center;
}

.featured-image-placeholder {
  width: 100%;
  height: 150px;
  background-color: #ddd; /* Placeholder color */
  border-radius: 8px;
  margin-bottom: 1.5rem; /* Add spacing below the image */
}

.featured-project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222; /* Bold title color */
}

.featured-project-description {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #555; /* Subtle text color */
}

.featured-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #007BFF; /* Modern blue for CTA */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.featured-btn:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* Contact Form Section */
.contact-form {
  background-color: #f9f9f9; /* Light background for contrast */
  padding: 4rem 1rem; /* Generous padding */
  text-align: center;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222; /* Bold heading color */
}

.contact-description {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #555; /* Subtle text color */
}

.form {
  max-width: 600px; /* Centered form width */
  margin: 0 auto; /* Center the form */
}

.form-group {
  margin-bottom: 1.5rem; /* Space between fields */
  text-align: left; /* Align labels and inputs */
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333; /* Label color */
}

.form-input,
.form-textarea {
  width: 100%; /* Full width for inputs */
  padding: 0.75rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid #ccc; /* Subtle border */
  border-radius: 5px; /* Rounded corners */
  box-sizing: border-box; /* Include padding in width */
  transition: border-color 0.3s ease; /* Smooth focus effect */
}

.form-input:focus,
.form-textarea:focus {
  border-color: #007BFF; /* Highlight border on focus */
  outline: none; /* Remove default outline */
}

.form-textarea {
  resize: none; /* Prevent resizing */
}

.form-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #007BFF; /* Match hero CTA button */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-btn:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* Footer Section */
.site-footer {
  background-color: #222; /* Dark background for contrast */
  color: #fff; /* White text for readability */
  text-align: center;
  padding: 2rem 1rem; /* Minimalist spacing */
}

.site-footer .footer-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-footer .footer-description {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.site-footer .footer-link {
  font-size: 1rem;
  font-weight: 600;
  color: #007BFF; /* Modern blue for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-link:hover {
  color: #0056b3; /* Darker blue on hover */
}

/* Thank-You Page */
.thank-you {
  text-align: center;
  padding: 4rem 2rem;
}

.thank-you-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}

.thank-you-description {
  font-size: 1.25rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 2rem;
}

.thank-you-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #007BFF;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.thank-you-btn:hover {
  background-color: #0056b3;
}

/* Ensure Footer Sticks to Bottom */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto; /* Push footer to the bottom if content is short */
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem; /* Reduce horizontal padding for smaller screens */
  }

  .contact-form {
    text-align: left; /* Align content to the left for better readability */
    padding: 2rem 1rem; /* Adjust padding for smaller screens */
  }

  .form {
    max-width: 100%; /* Ensure the form spans the full width */
    margin: 0 auto; /* Center the form */
  }

  .form-group {
    margin-bottom: 1rem; /* Reduce spacing between fields */
  }

  .form-btn {
    width: 100%; /* Make the button span the full width */
    text-align: center; /* Center the button text */
  }

  .site-footer {
    text-align: center; /* Center footer content */
    padding: 2rem 1rem; /* Adjust padding for smaller screens */
  }

  .footer-title {
    font-size: 1.5rem; /* Adjust font size for smaller screens */
  }

  .footer-description {
    font-size: 1rem; /* Adjust font size for readability */
    margin-bottom: 1rem; /* Add spacing below the description */
  }

  .footer-link {
    font-size: 1rem; /* Ensure the email link is readable */
    display: block; /* Make the link span the full width */
    margin: 0 auto; /* Center the link */
  }

  /* Featured Sites Section - Small Screens */
  .featured-grid {
    display: flex; /* Switch to flexbox for better control */
    flex-direction: column; /* Stack cards vertically */
    align-items: center; /* Center the cards */
    gap: 1.5rem; /* Maintain consistent spacing between cards */
    padding: 0; /* Remove any extra padding causing misalignment */
  }

  .featured-card {
    max-width: 300px; /* Match the width of "Why Choose Me" cards */
    width: 100%; /* Ensure cards span the full width */
    margin: 0 auto; /* Center the cards */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
  }

  .navbar-menu {
    display: none; /* Hide menu by default */
    flex-direction: column; /* Stack links vertically */
    align-items: center; /* Center links */
    background-color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    opacity: 0; /* Start hidden */
    transform: translateY(-10px); /* Start slightly above */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth animation */
  }

  .navbar-menu.active {
    display: flex; /* Show menu when active */
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Move into position */
  }

  .navbar-link {
    font-size: 1.25rem; /* Larger font for mobile */
    color: #222; /* Darker color for better visibility */
    padding: 0.5rem 0; /* Add spacing between links */
    text-align: center; /* Center text */
    width: 100%; /* Full width for better alignment */
  }

  .navbar-toggle {
    display: block; /* Show hamburger button */
  }
}

/* Medium Screen Adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .featured-grid {
    display: flex; /* Use flexbox for alignment */
    flex-wrap: wrap; /* Allow wrapping of cards */
    justify-content: center; /* Center the cards horizontally */
    gap: 2rem; /* Maintain spacing between cards */
  }

  .featured-card {
    max-width: 300px; /* Match the width of "Why Choose Me" cards */
    margin: 0 auto; /* Center the cards */
  }

  .featured-card:nth-child(2n) {
    margin: 0 auto; /* Center cards when there are two on a row */
  }
}

/* Desktop Screen Adjustments (> 1024px) */
@media (min-width: 1024px) {
  .featured-sites {
    padding: 4rem 2rem; /* Add horizontal padding to the section */
  }

  .featured-grid {
    max-width: 1200px; /* Constrain the grid width */
    margin: 0 auto; /* Center the grid */
    gap: 2rem; /* Maintain spacing between cards */
  }

  .featured-card {
    max-width: 300px; /* Match the width of "Why Choose Me" cards */
  }
}

/* Navigation Bar */

/* Larger Screens */
@media (min-width: 769px) {
  .navbar-menu {
    display: flex; /* Ensure horizontal layout */
    flex-direction: row; /* Horizontal links */
    justify-content: flex-end; /* Align links to the right */
    gap: 1.5rem; /* Space between links */
  }

  .navbar-link {
    font-size: 1rem; /* Standard font size */
    color: #007BFF; /* Match site styling */
    text-decoration: none;
  }

  .navbar-toggle {
    display: none; /* Hide hamburger button */
  }
}