/* Global Reset & Base Styles */
html {
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} 
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Styles */
nav {
  background-color: #333;
  width: 100%;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center; 
  padding: 0 10px;
}
nav a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
  display: inline-block;
}
nav a:hover,
nav a:focus {
  background-color: #575757;
  color: #fff;
  outline: none;
}

/* Main Content Styles */
main {
  width: 90%;
  margin: 30px auto; /* Centers content with generous vertical spacing */
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Optional container */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}
p {
  font-size: 18px;
  margin-bottom: 15px;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  height: 60px;
  font-size: 14px;
  margin-top: auto;
}
footer a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #fff;
}

/* Project Section Styles */
.project {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.project-img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
}
.project-info {
  flex: 1; /* Expands to fill the remaining space */
}
.read-more-btn {
  display: inline-block;
  background-color: #0073e6;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  margin-top: 10px;
}
.read-more-btn:hover {
  background-color: #005bb5;
}

/* Hero Section*/
.hero {
  text-align: center;
  padding: 40px 20px;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #222;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  margin-top: 20px;
}
.cta-button {
  background-color: #0073e6;
  color: white;
  font-size: 16px;
  padding: 12px 20px; /* Matches nav buttons */
  text-decoration: none;
  text-align: center;
  display: inline-block;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.cta-button:hover {
  background-color: #005bb5;
}

/* Pictures For porject more info pages*/
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Space between images */
  flex-wrap: wrap; /* Ensures images stack on small screens */
}

.image-box {
  text-align: center;
  max-width: 45%;
}

.image-box img {
  width: 100%; /* Makes images responsive */
  height: auto;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
  main {
      width: 95%;
      padding: 15px;
  }
  nav {
      flex-direction: column;
      height: auto;
      padding: 10px 0;
  }
  nav a {
      padding: 8px;
  }
  .project {
      flex-direction: column;
      text-align: center;
  }
  .project-img {
      margin: 0 auto 10px;
  }
}
