@import url('color.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;

}

body {
  line-height: 1.8;
  padding: 0;
  font-size: 14px;

  /* background-color: #004030; */
  background-color: rgb(238, 236, 212);

}


section {
  min-height: 100vh;
  /* padding: 1rem 2rem; */
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#home {
  display: flex;
  position: relative;
  top: 3em;
  justify-content: center;
  border-radius: 1.5em;
  margin: 1em;

}

.about-me {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  flex-wrap: wrap;


}

.about-me>div {
  flex: 1;
  margin: 0;
  min-width: 150px;
  order: 2;
}

.about-me h3 {
  font-size: 18px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.about-me h4 {
  font-size: 24px;
  color: #c5620b;
  margin-bottom: 1rem;
  text-align: center;

}

.about-me p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  padding: .5em;
  border-left: 5px solid #c5620b;
  border-left-style: double;
  border-top: 5px solid #c5620b;
  border-top-left-radius: 2em;
  border-top-style: double;


}

.highlight {
  font-weight: bold;

}

.about-me figure {
  flex: 1;
  display: flex;
  justify-content: left;
  align-items: center;
  min-width: 50%;
  margin: 0;

  order: 1
}

.about-me figure>div {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 7px solid #c5620b;
  border-style: double;
}

.about-me figure img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;



}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  text-decoration: none;
  padding: 12px 24px;
  font-size: .8rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s;
}

.download-btn {
  background-color: white;
  color: #c5620b;
  border: 2px solid #c5620b;
  ;

}

.project-btn {
  background-color: #c5620b;
  ;
  border: 2px solid#c5620b;
  color: white
}

.btn:hover {
  transform: translateY(-2px);
  background-color: #904707;
  color: white;

}

/*******************************  WORKS *****************************/
.project-grid {
  background:
    radial-gradient(circle at top left, #f1b459 0%, transparent 30%),
    radial-gradient(circle at top right, #ebaff9 0%, transparent 30%),
    radial-gradient(circle at bottom left, #ebaff9 0%, transparent 30%),
    radial-gradient(circle at bottom right, #f1b459 0%, transparent 30%),
    #fefee3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4em 1em;
  gap: 3em;




}

.project-heading {
  font-size: 40px;
  padding: 10px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 5px;

}

h2 {
  text-align: center;
  color: #c5620b;
  font-size: 24px;
  padding-bottom: .1em;
}




h4 {
  font-size: 20px;
  font-weight: bold;
  text-align: center;

}


.project-image {
  display: flex;
  background-color: rgba(255, 255, 255, 0.6);
  justify-content: center;
  border-radius: 15px;



}

.project-image img {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;

}


.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: .5em;
  gap: .7em;
  margin: 0;





}

.project-content p {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  padding: .5em;

}





.read-more-btn {
  background-color: white;
  color: #c5620b;
  border: 2px solid #c5620b;
  font-size: 14px;
  border-radius: 20px;
  padding: .5em 1em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s;
  text-align: center;
  text-decoration: none;
  width: fit-content;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  background-color: #904707;
  color: white;
}















/* Tablet & Desktop */
@media screen and (min-width: 768px) {

  #home {
    justify-content: center;
    align-items: center;

  }

  .about-me {
    flex-direction: row;

    gap: 0;
    text-align: center;
    justify-content: center;

  }

  .about-me figure>div {
    width: 400px;
    height: 400px;
    border-radius: none;


  }


  .about-me h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .about-me p {
    font-size: 16px;
  }


  .about-me figure {
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .about-me figure img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* Bubble styles for 16 bubbles */
  .about-me figure::before,
  .about-me figure::after,
  .about-me figure .bubble,
  .about-me figure .bubble2,
  .about-me figure .bubble3,
  .about-me figure .bubble4,
  .about-me figure .bubble5,
  .about-me figure .bubble6,
  .about-me figure .bubble7,
  .about-me figure .bubble8,
  .about-me figure .bubble9,
  .about-me figure .bubble10,
  .about-me figure .bubble11,
  .about-me figure .bubble12,
  .about-me figure .bubble13,
  .about-me figure .bubble14 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 0;
    /* Add box-shadow for separation */
    box-shadow: 0 0 18px 6px rgba(200, 100, 20, 0.08);
  }

  .about-me figure::before {
    content: '';
    width: 80px;
    height: 80px;
    background: #ebaff9;
    top: 0px;
    left: 0px;
    animation: bubbleMove1 6s infinite alternate;
  }

  .about-me figure::after {
    content: '';
    width: 50px;
    height: 50px;
    background: #f1b459;
    bottom: 0px;
    right: 0px;
    animation: bubbleMove2 5s infinite alternate;
  }

  .about-me figure .bubble {
    width: 40px;
    height: 40px;
    background: #c5620b;
    opacity: 0.4;
    top: 65%;
    left: 5%;
    animation: bubbleMove3 7s infinite alternate;
  }

  .about-me figure .bubble2 {
    width: 30px;
    height: 30px;
    background: #ebaff9;
    opacity: 0.3;
    top: 10%;
    right: 10%;
    animation: bubbleMove4 8s infinite alternate;
  }

  .about-me figure .bubble3 {
    width: 60px;
    height: 60px;
    background: #f1b459;
    opacity: 0.35;
    bottom: 5%;
    left: 75%;
    animation: bubbleMove5 9s infinite alternate;
  }

  .about-me figure .bubble4 {
    width: 25px;
    height: 25px;
    background: #c5620b;
    opacity: 0.25;
    top: 85%;
    left: 35%;
    animation: bubbleMove6 6s infinite alternate;
  }

  .about-me figure .bubble5 {
    width: 35px;
    height: 35px;
    background: #ebaff9;
    opacity: 0.32;
    top: 30%;
    left: 85%;
    animation: bubbleMove7 7s infinite alternate;
  }

  .about-me figure .bubble6 {
    width: 45px;
    height: 45px;
    background: #f1b459;
    opacity: 0.28;
    bottom: 20%;
    right: 25%;
    animation: bubbleMove8 8s infinite alternate;
  }

  .about-me figure .bubble7 {
    width: 20px;
    height: 20px;
    background: #c5620b;
    opacity: 0.22;
    top: 5%;
    left: 65%;
    animation: bubbleMove9 6s infinite alternate;
  }

  .about-me figure .bubble8 {
    width: 55px;
    height: 55px;
    background: #ebaff9;
    opacity: 0.27;
    bottom: 65%;
    right: 0%;
    animation: bubbleMove10 9s infinite alternate;
  }

  .about-me figure .bubble9 {
    width: 22px;
    height: 22px;
    background: #f1b459;
    opacity: 0.26;
    top: 55%;
    left: 90%;
    animation: bubbleMove11 7s infinite alternate;
  }

  .about-me figure .bubble10 {
    width: 38px;
    height: 38px;
    background: #c5620b;
    opacity: 0.29;
    bottom: 10%;
    right: 40%;
    animation: bubbleMove12 8s infinite alternate;
  }

  .about-me figure .bubble11 {
    width: 28px;
    height: 28px;
    background: #ebaff9;
    opacity: 0.31;
    top: 70%;
    left: 20%;
    animation: bubbleMove13 6s infinite alternate;
  }

  .about-me figure .bubble12 {
    width: 60px;
    height: 60px;
    background: #f1b459;
    opacity: 0.33;
    bottom: 75%;
    right: 5%;
    animation: bubbleMove14 9s infinite alternate;
  }

  .about-me figure .bubble13 {
    width: 100px;
    height: 100px;
    background: #c5620b;
    opacity: 0.24;
    top: 25%;
    left: 60%;
    animation: bubbleMove15 7s infinite alternate;
  }

  .about-me figure .bubble14 {
    width: 70px;
    height: 70px;
    background: #ebaff9;
    opacity: 0.28;
    bottom: 50%;
    right: 80%;
    animation: bubbleMove16 8s infinite alternate;
  }

  /* Keyframes for bubbles */
  @keyframes bubbleMove1 {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(-30px) scale(1.1);
    }
  }

  @keyframes bubbleMove2 {
    0% {
      transform: translateX(0) scale(1);
    }

    100% {
      transform: translateX(30px) scale(1.2);
    }
  }

  @keyframes bubbleMove3 {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(-25px) scale(1.15);
    }
  }

  @keyframes bubbleMove4 {
    0% {
      transform: translateX(0) scale(1);
    }

    100% {
      transform: translateX(-28px) scale(1.1);
    }
  }

  @keyframes bubbleMove5 {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(32px) scale(1.08);
    }
  }

  @keyframes bubbleMove6 {
    0% {
      transform: translateX(0) scale(1);
    }

    100% {
      transform: translateX(22px) scale(1.2);
    }
  }

  @keyframes bubbleMove7 {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(-20px) scale(1.12);
    }
  }

  @keyframes bubbleMove8 {
    0% {
      transform: translateX(0) scale(1);
    }

    100% {
      transform: translateX(25px) scale(1.09);
    }
  }

  @keyframes bubbleMove9 {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(28px) scale(1.1);
    }
  }

  @keyframes bubbleMove10 {
    0% {
      transform: translateX(0) scale(1);
    }

    100% {
      transform: translateX(-24px) scale(1.13);
    }
  }

  @keyframes bubbleMove11 {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(-22px) scale(1.09);
    }
  }

  @keyframes bubbleMove12 {
    0% {
      transform: translateX(0) scale(1);
    }

    100% {
      transform: translateX(20px) scale(1.11);
    }
  }

  @keyframes bubbleMove13 {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(26px) scale(1.07);
    }
  }

  @keyframes bubbleMove14 {
    0% {
      transform: translateX(0) scale(1);
    }

    100% {
      transform: translateX(-26px) scale(1.14);
    }
  }

  @keyframes bubbleMove15 {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(-18px) scale(1.1);
    }
  }

  @keyframes bubbleMove16 {
    0% {
      transform: translateX(0) scale(1);
    }

    100% {
      transform: translateX(28px) scale(1.12);
    }
  }

  .project-grid {
    justify-content: center;
    font-size: 16px;
    gap: 2em;

  }

  .project-card {
    gap: .5em;
    flex-direction: row;
    padding: 1rem;



  }

  h2 {
    color: #c5620b;
    font-size: 32px;
    padding-bottom: 1rem;
  }

  .project-image {
    display: flex;
    max-width: 50%;
  }


  h4 {
    font-size: 24px;
  }



  .project-content {
    text-align: center;
    justify-content: center;
    align-items: center;
    max-width: 50%;
    align-items: center;


  }


  .project-content p {
    font-size: 16px;
  }

  .project-card .project-content {
    order: 1;
  }

  .project-card .project-image {
    order: 2;
  }

  /* Alternate: Image on left for every even card */
  .project-card:nth-child(even) .project-content {
    order: 2;
    border-right: 5px solid rgb(86, 13, 82);
    border-radius: 10px;

  }

  .project-card:nth-child(even) .project-image {
    order: 1;
  }

  .project-card:nth-child(odd) .project-content {
    border-left: 5px solid rgb(86, 13, 82);
    border-radius: 5px;

  }




}