/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* RESET & GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Font & Base Colors */
html, body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* HEADER */
header {
  /* subtle gradient background */
  background: linear-gradient(135deg, #3a4046, #2c2f33);
  color: #fff;
  text-align: center;
  padding: 1rem;
  /* small border below */
  border-bottom: 0.25rem solid #1e1f21;
  /* text-shadow + box-shadow for modern look */
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* NAVIGATION */
nav {
  background-color: #2c2f33;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  transition: background-color 0.2s ease;
}
nav a:hover {
  background-color: #343a40;
  border-radius: 0.25rem;
}

/* HEADINGS & TEXT */
h1 {
  margin: 0;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-weight: 600;
}
h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.4rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-weight: 600;
}
p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 400;
}
strong {
  font-weight: 600;
}

/* HIGHLIGHT & INTRO SECTIONS */
.highlight {
  background-color: #cce8d8;
  padding: 0.25rem 0.4rem;
  border-radius: 0.25rem;
}
#intro {
  background-color: #fff;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 0.25rem;
  border: 0.063rem solid #ddd;
}

/* MAIN & SECTIONS */
main {
  max-width: 60rem; 
  margin: 0 auto;
  padding: 1.5rem;
}
section {
  background-color: #fff;
  border-radius: 0.3125rem;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 0.063rem solid #eee;
  /* subtle box-shadow */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}
section:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* LISTS */
ul, ol, dl {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
  background-color: #e9e9e9;
  text-align: center;
  padding: 1rem;
  border-top: 0.25rem solid #d4d4d4;
  position: relative;
}
.back-to-top {
  float: right;
  margin-top: -1.5rem;
  color: #343a40;
  text-decoration: none;
  font-weight: 500;
}
.back-to-top:hover {
  text-decoration: underline;
}

/* PROJECT IMAGES */
.project-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}
.project-images figure {
  flex: 1 1 15rem;
  text-align: center;
  margin: 0;
  background-color: #fcfcfc;
  padding: 0.5rem;
  border: 0.063rem solid #ddd;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.project-images img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

/* FORMS */
form {
  margin-top: 1rem;
  background-color: #fff;
  border: 0.063rem solid #ddd;
  padding: 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 0.063rem solid #ccc;
  border-radius: 0.25rem;
}
button[type="submit"] {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
button[type="submit"]:hover {
  background-color: #43a047;
}

/* GENERIC BUTTONS */
button,
.btn {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  font-weight: 500;
  margin: 1rem 0;
}
button:hover,
.btn:hover {
  background-color: #43a047;
}
button:active,
.btn:active {
  transform: scale(0.98);
}

/* RESPONSIVE */
@media (max-width: 37.5em) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  .back-to-top {
    float: none;
    display: block;
    margin: 1rem auto 0;
  }
  section {
    margin: 1rem;
  }
}
