*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,body {
  font-family: 'Roboto', sans-serif;
  background-color: #f7f8fc;
  color: #333;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background-color: #333;
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header nav ul {
  list-style: none;
  padding: 0;
}

header nav ul li {
  display: inline;
  margin: 0 1rem;
}

header nav ul li a {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #ff6347; /* Hover effect color */
}

main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2, h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 0.8rem;
}

ul li a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul li a:hover {
  color: #ff6347;
}

/* Section Styling */
section {
  margin-bottom: 3rem;
}

.project-card {
  background-color: #f1f1f1;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.project-card p {
  color: #777;
}

.project-card .btn {
  background-color: #007bff;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.project-card .btn:hover {
  background-color: #0056b3;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

form input, form textarea {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
  background-color: #fafafa;
}

form input[type="submit"] {
  background-color: #28a745;
  color: white;
  cursor: pointer;
  border: none;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
  background-color: #218838;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  width: 100%;
}

footer p {
  font-size: 1rem;
  color: #aaa;
}

footer p a {
  color: #ff6347;
  text-decoration: none;
}

footer p a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  header nav ul {
    text-align: center;
  }

  header nav ul li {
    display: block;
    margin: 1rem 0;
  }

  main {
    padding: 1.5rem;
  }
}

/* Only target the index page using the unique class 'index-page' */
body.index-page {
    width: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
  }
  
  /* Ensure the main section stretches horizontally */
  body.index-page main {
    display: flex;
    width: 100%;
    padding: 0 10px; /* Optional: Add some padding to prevent content from touching the edges */
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  
  /* Make sure header and footer are full-width */
  body.index-page header, body.index-page footer {
    width: 100%;
  }
  
  /* Optional: Set text alignment for headings */
  body.index-page h1, body.index-page h2, body.index-page p {
    width: 100%;
    text-align: center; /* Optional: Center the text horizontally */
  }
  
  /* Footer styling for visibility at the bottom */
  body.index-page footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
  }
  