@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Rethink+Sans:ital,wght@0,400..800;1,400..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap");

* {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-family: "IBM Plex Mono", Arial, Helvetica, sans-serif;
  font-size: 16px;
}

body {
  width: 100vw;
  overflow-x: hidden; /* optional: prevents horizontal scroll from slight overflow */
}
.nav {
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}
.navbar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 800px;
  position: relative;
  height: 70px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  background: #1b1b1b;
  flex-wrap: wrap;
}
.menu-toggle {
  display: none;
}
.navbar a {
  text-decoration: none;
  color: #9c9c9c;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navbar ul a:hover {
  transform: translateY(-5px);
  color: white;
  text-shadow: 1px 1px 3px lightgreen;
  transition: 1s;
  border-radius: 20%;
  font-size: 2rem;
}
.logolinks .icons i {
  margin-right: 5px;
  padding: 5px;
  font-size: 1rem;
}
.logolinks .icons i:hover {
  color: lightgreen;
}
/*Hero*/
.hero {
  background-color: black;
  height: 40vh; /*view port height*/
  color: aliceblue;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
}

/*about*/
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background-color: #1b1b1b;
}
.about-me-box {
  margin-top: 60px;
  margin-left: 30px;
  height: 360px;
  width: 400px;
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
  color: aliceblue;
  line-height: 1rem;
}
.about-me-box h2 {
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: Raleway;
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 70%;
}
.about-me-box p {
  width: 100%;
  margin-top: 30px;
  gap: 10px;
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2rem;
  letter-spacing: 1%;
}
.about-me-box .btn {
  text-decoration: none;
  margin-top: 30px;
  border-radius: 4px;
  padding: 21px 64px;
  border: 2px solid #62ba1b;
  background-color: #3f8e00;
  box-shadow: 0px 8px 30px 0px #3f8e0080;
  color: aliceblue;
}
.about-me-box .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px #62ba1b;
  color: white;
}

.photoME {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  margin: 30px;
  border: 2px solid #62ba1b; /* just to see the boundary clearly */
}

.photoME img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0px 0%;
}

/*SKILLS*/
.skills {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: black;
}
.skills .words {
  text-align: center;

  margin-bottom: 5em;
}
.skills .words .h2s {
  font-size: 3.8rem;
  color: aliceblue;
}
.skills .words p {
  font-size: 2rem;
  color: aliceblue;
}
.skillslogo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3em;
  margin-bottom: 5em;
}

.skillslogo img {
  width: 180px;
  height: 160px;
  background-color: #ffffff;
  border-radius: 10%;
}
.skillslogo img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px #62ba1b;
  color: white;
  cursor: pointer;
}
/*Projects*/
.projects {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  flex-wrap: wrap;
}
.projects .projects-intro {
  text-align: center;
  line-height: 1.4em;
  font-weight: 500;
  color: #9c9c9c;
  width: 50%;
  margin-bottom: 30px;
}
.projects-intro h2 {
  font-size: 3rem;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}
.projectbox {
  padding: 2px;
  width: 897px;
  height: 1038px;
  top: 780px;
  left: 207px;
  flex-wrap: wrap;
}
.project1 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  margin-bottom: 30px;
}

.project-side-text {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
}
.gray {
  color: #9c9c9c;
  font-family: "IBM Plex Mono", "Gill Sans", "Gill Sans MT", Calibri,
    "Trebuchet MS", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 1%;
  width: 80%;
  padding: 5px;
}
.pill-yellow {
  background: #fff6e9;
  color: #ffa217;
  width: 72px;
  height: 24px;
  top: 27px;
  border-radius: 60px;
  padding-right: 10px;
  padding-left: 10px;
  gap: 10px;
  font-family: IBM Plex Mono;
  font-weight: 700;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 1%;
}
.orange-button {
  width: 189.89285278320312px;
  background: #ffa217;
  border-radius: 4px;
  padding-top: 10px;
  padding-right: 24px;
  padding-bottom: 10px;
  padding-left: 24px;
  border: none;
  text-align: center;
}
.orange-button a {
  text-decoration: none;
  font-family: IBM Plex Mono;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.project-side-text,
h3 {
  font-family: Raleway;
  font-weight: 800;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  vertical-align: bottom;
}

/*second project*/
.pill-blue {
  color: #000aff;
  background: #d0e6ff;
  font-family: IBM Plex Mono;
  font-weight: 700;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 1%;
  width: 60px;
  height: 24px;
  top: 27px;
  border-radius: 60px;
  padding-right: 10px;
  padding-left: 10px;
  gap: 10px;
}
.blue-button {
  background: #000aff;
  width: 189.89285278320312px;
  border-radius: 4px;
  padding-top: 10px;
  padding-right: 24px;
  padding-bottom: 10px;
  padding-left: 24px;
  border: none;
  text-align: center;
  margin-left: 5px;
}
.blue-button a {
  text-decoration: none;
  font-family: "IBM Plex Mono", "Gill Sans", "Gill Sans MT", Calibri,
    "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.project2 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  margin-bottom: 30px;
}
/*third project*/
.pill-green {
  background: #e0fff8;
  color: #2ab090;
  font-family: IBM Plex Mono;
  font-weight: 700;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 1%;
  width: 88px;
  height: 24px;
  top: 27px;
  border-radius: 60px;
  padding-right: 10px;
  padding-left: 10px;
  gap: 10px;
}
.green-button {
  background: #2ab090;

  width: 189.89285278320312px;
  border-radius: 4px;
  padding-top: 10px;
  padding-right: 24px;
  padding-bottom: 10px;
  padding-left: 24px;
  border: none;
  text-align: center;
}
.green-button a {
  text-decoration: none;
  font-family: "IBM Plex Mono", "Gill Sans", "Gill Sans MT", Calibri,
    "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}
/*images for projects*/
.project-side-img img {
  margin-top: 5px;
  width: 400px;
  height: 300px;
  object-fit: cover;
  object-position: center center;
  border-radius: 20px;
  border: 1px solid black;
}

.green-button:hover {
  transform: translateY(-5px);
  background-color: greenyellow;
}

.blue-button:hover {
  transform: translateY(-5px);
  background-color: rgb(44, 175, 218);
}
.orange-button:hover {
  transform: translateY(-5px);
  background-color: orangered;
}
/*blogs*/
.blog {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: auto;
  background-color: #1b1b1b;
}
.myblog {
  margin-top: 20px;
  color: white;
  font-size: 1.4rem;
  text-align: center;
  padding: 5px;
}
.blog-cards {
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.blog-post {
  border: 2px solid #62ba1b;
  background-color: #3f8e00;
  height: 300px;
  width: 260px;
  gap: 20px;
  margin-left: 20px;
  margin-top: 10px;
  border-radius: 15px 15px 1px 1px;
}
.blog-post a {
  color: whitesmoke;
  text-decoration: none;
}
.blog-post p {
  text-align: center;
  padding: 4px;
}
.blog-post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center; /* centers the image inside */
  border-radius: 15px 15px 1px 1px;
}
.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px #3f8e00;
}

/*contact*/
.contact {
  gap: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: black;
  color: white;
}
.partnership {
  margin-top: 40px;
  width: 50%;
}
.partnership p {
  font-size: 1.1rem;
  font-weight: 400;
}
.contact .contactinfo {
  height: 150px;
  font-weight: 500;
  padding: 10px;
  margin-top: 10px;
}

.contactinfo ul li {
  list-style: none;
  font-size: 1.2rem;
}
/*footer*/
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #1b1b1b;
  color: #9c9c9c;
  height: 140px;
}

.footer .icons2 a i {
  font-size: 2rem;
  color: lightgreen;
}
.footer .icons2 a i:hover {
  color: #ffffff;
}
.footer .homelogo a {
  margin-bottom: 15px;
  color: whitesmoke;
}
/* === Responsive Styles === */

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
  .hero {
    .hero {
      background-color: black;
      height: 50vh;
      color: aliceblue;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
    } /* or height: auto; or height: 40vh; adjust as you like */
  }
  body {
    width: auto;
  }
  .navbar {
    width: 100%;
    padding: 0 20px;
  }

  .projectbox {
    width: 90%;
    height: auto;
  }

  .project1,
  .project2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-side-img img {
    width: 90%;
    height: auto;
  }

  .project-side-text {
    align-items: center;
  }

  .about-me-box {
    width: 90%;
    margin-left: 0;
    text-align: center;
    align-items: center;
  }

  .photoME {
    width: 300px;
    height: 300px;
  }

  .partnership {
    width: 80%;
  }
}

/* Small tablets & large phones */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
  }
  body {
    width: auto;
  }
  .navbar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
    position: relative;
  }
  .logolinks .icons i {
    margin-right: 5px;
    padding: 5px;
    font-size: 1.8rem;
  }
  .navbar ul {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    position: absolute;
    top: 60px; /* adjust depending on navbar height */
    left: 0;
    width: 100%;
    background-color: #1b1b1b;
    z-index: 10;
    padding: 10px 0;
  }

  .menu.active {
    display: flex; /* show when active */
  }

  .hero h1 {
    font-size: 2.2rem;
    padding: 0 10px;
  }

  .about-me-box h2 {
    font-size: 2rem;
  }

  .about-me-box p {
    font-size: 0.9rem;
  }

  .skills .words .h2s {
    font-size: 2.2rem;
  }

  .skills .words p {
    font-size: 1.2rem;
  }

  .projects-intro h2 {
    font-size: 2.2rem;
  }

  .project-side-text h3 {
    font-size: 20px;
  }

  .blog-post {
    width: 45%;
    margin: 10px;
  }

  .blog-post p {
    font-size: 10px;
  }

  .blog-post a {
    font-size: 7px;
  }

  .contactinfo ul li {
    font-size: 1rem;
  }

  .footer {
    height: auto;
    padding: 20px 0;
  }
  .project1 {
    border: 1px dotted black;
  }
  .project2 {
    border: 1px dotted black;
  }
}
/* for mobile phones and smaller screens*/
@media (max-width: 480px) {
  * {
    font-size: 14px;
  }

  .menu-toggle {
    display: flex;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
  }
  body {
    width: auto;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 10px;
    position: relative;
  }

  .navbar ul {
    display: none; /* hide menu by default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: black;
    z-index: 10;
    padding: 10px 0;
  }
  .menu.active {
    display: flex; /* show menu when active */
  }

  .hero {
    height: auto;
    padding: 40px 10px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .about-me-box {
    margin-top: 30px;
  }

  .about-me-box h2 {
    font-size: 1.8rem;
  }

  .about-me-box .btn {
    padding: 16px 40px;
  }

  .photoME {
    width: 220px;
    height: 220px;
  }

  .skills .words .h2s {
    font-size: 1.8rem;
  }
  .project1 {
    border: 1px dotted black;
  }
  .project2 {
    border: 1px dotted black;
  }
}
