/* Base layout */
/* Global dark theme base */
/* colors 
background e0e0e0 //???
text 36494E //green gray
4C5B5C //light gray
C84630 //orange
120D31 //russian violet
F1F7ED //mint cream
*/
body {
  margin: 0;
  font-family: 'Lora', serif;
  background-color: #FCF7F0;
  color: #36494E;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3 {
  font-weight: 700;
  color: #120D31;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
  margin-top: 2rem;
  text-align: left;
}

h2 {
  font-size: 1.5rem;
  text-align: left;
}

/* Top navbar */
.site-header {
  background-color: #120D31;
  border-bottom: 1px solid #333;
}

.header-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.top-nav {
  display: flex;
  align-items: flex-end; 
}

.top-nav a {
  color: #FCF7F0;
  text-decoration: none;
  font-weight: bold;
}


.nav-brand {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FCF7F0;
  text-decoration: none;
}

.nav-links {
  margin-left: auto;       /* pushes this group to the right */
  display: flex;
  gap: 2rem;               /* spacing between links */
}

.nav-link {
  font-size: 1rem;
  font-weight: bold;
  color: #FCF7F0;
  text-decoration: none;
}

.top-nav a:hover {
  color: #fff;
}

/* Main content area */
.site-main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-main h1 {
  margin-top: 0;
  font-size: 2rem;
  color: #36494E;
}

figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem auto;
  max-width: 100%;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}


.image-row {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping to the next line */
  gap: 1rem;        /* Optional: space between images */
  justify-content: flex-start;
}

.image-row img {
  max-width: 100%;   /* Prevents overflow */
  height: auto;      /* Keeps aspect ratio */
  flex: 1 1 200px;   /* Responsive sizing */
}

/* Project grid layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Individual project cards */
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: white;
  background: #1a1a1a;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.project-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(200, 200, 200, 0.75);
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 0rem;
  text-align: center;
}

.project-card:hover img {
  opacity: 0.15;
  text-align: center;
}

.project-card:hover .overlay {
  opacity: 1;
  text-align: center;
}

.project-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

/* Two-column layout inside main */
.main-body {
  display: flex;
  flex-direction: row;
  gap: 10rem;
  align-items: flex-start;
}

/* Max width container for page content */
.main-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Left text column */
.main-text {
  flex: 0 1 400px;   /* don’t grow, do shrink, base size 400px */
  max-width: 400px;
}

/* Right grid column */
.main-grid {
  flex: 2;
}

/* Responsive stack on smaller screens */
@media (max-width: 800px) {
  .main-body {
    flex-direction: column;
  }

  .main-text,
  .main-grid {
    max-width: 100%;
  }
}

/*  Contact form */
form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  resize: vertical;
  background-color: #1e1e1e;
  color: #36494E;
  font-family: 'Lora', serif;
}

button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #ffd479;
  color: #121212;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
}

button:hover {
  background-color: #fff3b0;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
    max-width: 800px;
    margin: 40px auto;
  }

  .left {
    grid-column: 1 / 2;
  }

  .left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .right {
    grid-column: 2 / 4;
  }

  .right h2 {
    margin-top: 0;
  }

  @media (max-width: 700px) {
    .container {
      grid-template-columns: 1fr;
    }
    .right {
      grid-column: 1 / 2;
    }
  }