/* ===== Reset default spacing and box-sizing ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Set base font and body settings ===== */
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}

/* ===== Layout structure for sticky footer ===== */
body {
  display: flex;
  flex-direction: column;
}

/* ===== Sticky Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1a1a1a;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== Header inner container ===== */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ===== Logo image settings ===== */
.logo {
  width: 120px;
  height: auto;
}

/* ===== Navigation menu styles ===== */
nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.nav-menu li a:hover {
  text-decoration: underline;
}

/* ===== Responsive layout for small screens ===== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-menu li a {
    padding: 5px 0;
  }
}

/* ===== Main content area ===== */
main {
  flex: 1;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Section spacing ===== */
section {
  margin-bottom: 40px;
}

/* ===== Project listings style ===== */
.project {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.project img {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

.project-details {
  max-width: 800px;
}

/* ===== Form styling for Contact page ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
}

input, select, textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ===== Submit button style ===== */
.button {
  background-color: #1a1a1a;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.button:hover {
  background-color: #333;
}

/* ===== Sticky Footer at the bottom ===== */
footer {
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  padding: 15px 10px;
}
