
/* Fonts and base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
  color: #333;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  margin-bottom: 0.5em;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2em 0;
}

/* Header */
header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-family: 'DM Serif Display', serif;
  margin-top: 0em;
  margin-bottom: 0.5rem;
}

.logo {
  font-size: 1.8em;
  margin: 0;
}

nav {
  list-style: none;
  display: flex;
  gap: 2em;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0rem;
}

/* About Section */
.about-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

/* .about-section h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 0rem;
}
.about-section h4 {
  width: 100%;
  text-align: center;
  margin-top: 0.2rem;
} */

.name {
  display: flex;
  flex-direction: row;
  gap: 1rem; /* space between h2 and h4 */
  align-items: baseline; /* vertical alignment */
  margin: 0rem;
}

.name h3, .name h2 {
  margin-top: 0; /* remove default margin */
  margin-bottom: 0.5rem;
}

.about-section .text {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
  text-align: left;
}

.about-section .image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  padding: 1rem;
}

.about-section img {
  width: 70%;
  border-radius: 50px;
  box-shadow: 0 8px 8px rgba(0,0,0,0.25);
}

/* Projects Section */
.projects-gallery {
  padding: 1rem 0;
}

.projects-gallery h2 {
  margin-left: 1rem;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
}

.project-tile {
  flex: 0 0 auto;
  /* width: 250px; */
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-tile img {
  height: 200px;
  margin-bottom: 1rem;
}


/* Project page */

.project-card {
  display: flex;
  align-items: center;
  gap: 2rem; /* space between text and image */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.project-card .project-text {
  flex: 1;
  text-align: left;
}

.project-card img {
  width: 400px;
  max-width: 40vw;
  border-radius: 8px;
  object-fit: cover;
}
.projects-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}
/* Contact Section */
.contact-section {
  /* background: #e9f1fb; */
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0rem 1rem;
  box-sizing: border-box;
}

.form-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form {
  display: flex;font-family: 'Source Serif 4', serif;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  gap: 1rem;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.contact-form label {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0.8rem 0.5rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  resize: vertical;
}

.btn-primary {
  align-self: center;
  background-color: #bfa14a;
  color: #1a1a1a;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.25s ease;
}

.btn-primary:hover {

  background-color: #9e8b32;
}

/* Footer */
footer {
  background: #323512;
  color: white;
  text-align: center;
  padding: 2em 0;
}

/* Responsive */
@media (max-width: 768px) {
  .about-section {
    <section id="about" class="ab
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 1em;
  }
}

main > section {
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 1200px) {
  main > section {
    max-width: 1000px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start; /* Optional: aligns nav to the left */
    gap: 1em;                /* Optional: adds space between title and nav */
  }
  nav {
    width: 100%;             /* Optional: nav takes full width */
    justify-content: flex-end; /* Optional: nav links align left */
  }
}
/* Stack as column on small screens */
@media (max-width: 500px) {
  .name {
    flex-direction: column;
    align-items: flex-start; /* optional: align left when stacked */
    gap: 0rem;
  }
}

@media (max-width: 700px) {
  .project-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .project-card img {
    max-width: 100%;
    margin: 1rem 0 0 0;
  }
}