/* --------------------------------------------------
   Core Sections
   -------------------------------------------------- */

/* Hero / Intro */
.section-zero {
  background-color: #D2B48C;
  padding: 60px 20px;
}

.section-zero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
  text-align: center;
}

/* Project sections (injected via JS) */
.section-projects {
  padding: 60px 0;
  border-bottom: 1px solid #dcdcdc;
  position: relative;
  transition: background-color 0.3s ease;
  overflow: visible;
  min-height: 40vh;
}
.section-projects::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

/* Alternating backgrounds */
.section-projects.even {
  background-color: #f0f9f3;
}

.section-projects.odd {
  background-color: #ffffff;
}

/* Fallback alternating if JS classes missing */
#projects-wrapper .section-projects:nth-of-type(odd) {
  background-color: #f0f9f3;
}
#projects-wrapper .section-projects:nth-of-type(even) {
  background-color: #ffffff;
}

/* Shared layout for left/right content */
.section-left {
  padding: 50px;
  text-align: left;
}

.section-left h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #A52A2A;
  margin-bottom: 1rem;
  text-align: left;
}

.section-left p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #444;
  text-align: left;
}

/* Image side */
.section-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Static image styles (single image per project) */
.gallery-image {
  width: 100%;
  max-width: 600px;        /* controls how wide the image can get — reduce if still too large */
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------
   Contact section
   -------------------------------------------------- */
.section-four {
  background-color: #D2B48C;
  padding: 60px 20px;
}

.section-four-left h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
  text-align: center;
}

.section-four-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-four-right p {
  font-size: 1.5rem;
  color: #333;
  text-align: center;
  margin: 0;
}

.section-four-right a {
  color: #007bff;
  text-decoration: none;
}

.section-four-right a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-icons img {
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease;
}
.social-icons img:hover {
  transform: scale(1.15);
}

/* --------------------------------------------------
   Responsive (tablet / mobile)
   -------------------------------------------------- */
@media (max-width: 992px) {
  .section-left h1 {
    font-size: 2rem;
  }

  .section-left p {
    font-size: 1.1rem;
  }

  .gallery-image {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .section-left {
    padding: 30px 20px;
  }

  .section-left h1 {
    font-size: 1.8rem;
  }

  .section-left p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .gallery-image {
    max-width: 320px;
  }

  .section-four {
    padding: 30px 15px;
  }

  .section-four-left h1 {
    font-size: 2.2rem;
  }

  .section-four-right p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .social-icons img {
    width: 40px;
    height: 40px;
  }
}

/* Small devices: stack columns */
@media (max-width: 576px) {
  .section-left,
  .section-right {
    width: 100%;
    display: block;
  }

  .section-projects .row {
    flex-direction: column;
  }

  .section-left {
    padding: 20px;
  }

  .section-left h1 {
    font-size: 1.6rem;
  }

  .section-left p {
    font-size: 1.05rem;
  }

  .gallery-image {
    max-width: 100%;
    height: auto;
    margin-top: 16px;
  }
}