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

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(222, 247, 184);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* HEADER */
.site-header {
  background-color: rgb(29, 56, 2);
  background-size: cover;
  background-position: center;
  height: auto;
  color: white;
  position: relative;
}

.site-header .overlay {
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo img {
  width: 100px;
  height: auto;
}

/* NAVIGATION */
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0;
  text-align: center;
}

.main-navigation a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #ffcc00;
}

/* HERO TEXT */
.hero-text {
  text-align: center;
  margin-top: 1rem;
}

.hero-text h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1rem;
}

/* ABOUT ME */
.about-me {
  padding: 2rem 1rem;
  text-align: center;
}

.about-me h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background-color: blanchedalmond;
  color: #222;
}

.about-me img {
  width: 200px;
  border-radius: 10%;
  object-fit:cover;
  margin-bottom: 1rem;
}

.about-me p {
  text-align: justify;
  padding: 0 1rem;
}

/* PROJECTS */
.my-projects {
  padding: 2rem 1rem;
}

.my-projects header {
  text-align: center;
  margin-bottom: 2rem;
}

.my-projects h2 {
  font-size: 1.5rem;
  background-color: blanchedalmond;
  margin-bottom: 1rem;
}

.my-projects header p {
  margin: 20px auto;
  max-width: 100%;
  padding: 0 1rem;
  text-align: left;
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* PROJECT CARD */
.project {
  width:80%;
  background: #ebf8d2;
  border-radius: 8px;
  box-shadow: -10px -4px 10px rgba(76, 75, 75, 0.1);
  border: 1px solid rgb(216, 161, 129);
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.project:hover {
  transform: translateY(-10px) scale(1.02);
  border: 2px solid #ffcc00;
  background-color: #241106;
  color: aliceblue;
}

.project img {
  width: 100%;
  height: 250px;
  object-fit:fill;
  border-bottom: 2px solid black;
}

.project a {
  text-decoration: none;
  color: inherit;
}

.figcaption {
  padding: 0.5em;
}

.figcaption p {
  background-color: rgb(233, 137, 137);
  padding: 0.5rem;
}

.figcaption h3 {
  background-color: beige;
  color: #013a0e;
  padding: 0.5rem;
}

.figcaption:hover p {
  background-color: white;
  color:blue;
}

.figcaption:hover h3 {
  background-color: rgb(214, 235, 183);
}

.project figure {
  position: relative;
}

.comingsoon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.6rem 1.2rem;
  background: #ffffffcc; /* semi-transparent white */
  color: #444;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  max-width: 80%;
  line-height: 1.2;
  font-family: Arial, sans-serif;
}

/* FOOTER */
.my-contact {
  margin-top: 5rem;
  padding: 1rem;
  background: #013a0e;
  color: white;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

.my-contact a {
  color: aliceblue;
}

.my-contact a:hover,
.p2:hover {
  color: #ffcc00;
}

.p1, .p2 {
  padding: 10px;
}

.top-page {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.top-page a {
  text-decoration: none;
  background-color:bisque;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}

.top-page i {
  color: brown;
  font-size: 1.5rem;
}

.top-page a:hover {
  background-color: #ffcc00;
  transform: scale(1.1);
}

.top-page a:hover i {
  color: #013a0e;
}


/* -------------------------------
   MEDIA QUERIES
--------------------------------*/

/* Tablets (min-width: 768px) */
@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .main-navigation ul {
    flex-direction: row;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  .about-me img {
    width: 250px;
  }

  .wrapper {
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width:100%;
    padding:50px;
  }
        

  .project {
    flex: 1 1 calc(50% - 2rem); /* 2 per row */
    max-width: 48%;
  }
}

/* Desktops (min-width: 1024px) */
@media (min-width: 1024px) {
  .project {
    flex: 1 1 calc(25% - 2rem); /* 4 per row */
    max-width: 23%;
  }

  .about-me img {
    width: 300px;
  }

  .logo img {
    width: 120px;
  }

  .my-projects header p {
    font-size: 1.1rem;
  }
}
