/* Global styles */
html {
  scroll-behavior: smooth;
}

section{
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

section h2{
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #8B4513;
  color: #fff;
}

/*Body styling*/
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0f5132, #198754);
  color: #fff;
  line-height: 1.6;
}

/* Header */
header {
  background: transparent;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

nav a:hover {
  color: #8B4513;
  text-decoration: underline;
}

/* Sections */
section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

/* Project Card */
#project {
  margin: 3rem auto;
  padding: 0 1rem;
}

#project h2 {
  text-align: left;
  margin-bottom: 2rem;
}

.project-container{
  color: #111;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.project-card {
  flex: 0 1 300px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  text-align: left;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card h3 {
  margin-top: 0;
}

.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-card a:hover {
  text-decoration: underline;
  color: #00509E;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Contact Section */
#contact {
  margin: 3rem auto;
  padding: 0 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin: 0.5rem 0;
}

.contact-list a {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
}

.contact-list a:hover {
  text-decoration: underline;
  color: #00509E;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: transparent;
  color: #fff;
  margin-top: 3rem;
}

/* Responsive Media Query */
@media (max-width: 768px){
  /* Making the project cards full width on smaller screens */
  .project-card{
    flex: 1 1 100%;
  }

  /*Reducing padding in sections */
  section {
    padding: 1rem;
  }

  /* Adjusting header text size */
  header h1{
    font-size: 2rem;
  }

  /* Stacking nav links vertically if needed */
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  nav a {
    margin: 0.5rem;
  }
}