/* ──────────────────────────────── */
/* 🌐 Base Styles */
/* ──────────────────────────────── */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  font-size: 18px;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* ──────────────────────────────── */
/* 🧭 Layout Containers */
/* ──────────────────────────────── */
.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 10px;
}

#projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

/* ──────────────────────────────── */
/* 🧑‍💼 Header & Banner */
/* ──────────────────────────────── */
header {
  background: #333;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.banner-image {
  margin: 10px auto;
  width: 90%;
  max-width: 500px;
  height: auto;
  display: block;
}

/* ──────────────────────────────── */
/* 📌 Jump to Contact */
/* ──────────────────────────────── */
#jump-to-contact {
  width: 94.5%;
  text-align: center;
  margin: 0;
}

#jump-to-contact a {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem 0.75rem 0.7rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #333;
  font-weight: bold;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

#jump-to-contact a:hover {
  background-color: #005fa3;
}

/* ──────────────────────────────── */
/* 📞 Contact Section */
/* ──────────────────────────────── */
#contact {
  padding-bottom: 2rem;
}

/* ──────────────────────────────── */
/* 🧩 Typography */
/* ──────────────────────────────── */
h1, h2 {
  color: #333;
  background-color: #8cffc4;
  padding-left: 0.7rem;
}

/* ──────────────────────────────── */
/* 🖼️ Images */
/* ──────────────────────────────── */
.me-image {
  width: 60px;
  height: auto;
}

.checked-box-image {
  width: 40px;
  height: auto;
}

/* ──────────────────────────────── */
/* ✅ About Features */
/* ──────────────────────────────── */
.about-features {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.about-feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  line-height: 1;
  gap: 0.5rem;
}

/* ──────────────────────────────── */
/* 🧱 Masonry Grid (General) */
/* ──────────────────────────────── */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
  gap: 2rem;
}

.masonry-item {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  
}

.masonry-item img {
  width: auto;
  max-width: 100%;
  margin: 5px;
  padding: 1px;
  display: block;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.masonry-item img:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ──────────────────────────────── */
/* 🖼️ Project Section (Default) */
/* ──────────────────────────────── */
.project {
  background: #fff;
  padding: 45px;
  margin-bottom: 20px;
}

/* ──────────────────────────────── */
/* 🖼️ Project: Responsive Layout */
/* ──────────────────────────────── */
.project-responsive {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 30px;
  margin-bottom: 20px;
  background: #fff;
}

.project-responsive .masonry-item-poster {
  flex: 1 1 300px;
  display: flex;
  justify-content: left;
  align-items: left;
  text-align: left;
  margin: 0;
  padding: 0;
}

.project-responsive .masonry-item-poster img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
}

.project-responsive .masonry-item-poster img:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-responsive h3 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
  color: #333;
  text-align: left;
  width: 100%;
}

.project-responsive p {
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  color: #333;
  text-align: left;
  width: 100%;
}

/* ──────────────────────────────── */
/* 🖼️ Project: Wrap Pair Section */
/* ──────────────────────────────── */
.project-wrap-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0rem;
}

.project-wrap-pair .masonry-item {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5px;

}

.project-wrap-pair .masonry-item img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0px;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
}

.project-wrap-pair .masonry-item img:hover {
  transform: scale(1.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* ──────────────────────────────── */
/* 🦶 Footer Styles */
/* ──────────────────────────────── */
.site-footer {
  background-color: #222;
  color: #eee;
  padding: 2rem 1rem;
  font-size: 1.1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
  padding: 5px;
  display: flex;            /* enable flexbox */
  flex-direction: column;   /* stack children vertically */
  justify-content: center;  /* vertical centering */
  align-items: left;    
  text-align: left;     
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-column a {
  color: #aaa;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.footer-image {
  width: 40%;
  max-width: 250px;
  min-width: 200px;
  height: auto;
  display: block;
  /* margin: 0 auto; not needed because parent flex handles centering */
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #aaa;
}
/* ──────────────────────────────── */
/* Responsive Footer Adjustments */
/* ──────────────────────────────── */
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    align-items: center;   /* center all columns horizontally */
    text-align: center;    /* center text in columns */
  }

  .footer-column {
    min-width: unset;
    width: 100%;
    justify-content: center; /* vertical centering inside each column */
    align-items: center;     /* horizontal centering inside each column */
    text-align: left;     
  }

  .footer-image {
    margin-bottom: 1rem;
  }
}


/* ──────────────────────────────── */
/* 📱 Mobile Styles (Other Sections) */
/* ──────────────────────────────── */
@media (max-width: 768px) {
  .about-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-responsive .masonry-item-poster,
  .project-wrap-pair .masonry-item {
    flex: 1 1 100%;
    margin: 0 auto;
  }
}

/* ──────────────────────────────── */
/* Disable Hover Effects on Touch Devices */
/* ──────────────────────────────── */
@media (hover: none) {
  .masonry-item img:hover,
  .project-responsive .masonry-item-poster img:hover,
  .project-wrap-pair .masonry-item img:hover {
    transform: none;
    box-shadow: none;
  }
}
