@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Onest:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

nav {
  font-family: "Poppins", sans-serif;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #5fbf8d;
  color: white;
  border: none;
  border-radius: 50px;
  height: 55px;
  width: 55px;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}

#scrollToTopBtn:hover {
  background-color: #36a364;
}

.nav-item {
  padding-left: 25px !important;
  color: #000 !important;
  font-weight: 400;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}

.nav-item a:hover {
  color: #078948 !important;
}

header {
  background-image: url("../images/Group\ 13.jpg");
  height: 100%;
  min-height: 90vh;
  position: relative;
  /* min-height: 300px; Adjust as needed */
  display: flex;
  flex-direction: column; /* Stack text on top of image */
  align-items: center; /* Center horizontally */
  justify-content: flex-end; /* Push content to bottom */
  padding: 20px;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* No image in the provided HTML, so these styles won't have an effect */
/* Remove or adjust if you add an image later */
header img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%; /* Ensure image doesn't exceed container width */
  height: auto; /* Maintain aspect ratio */
}

.text-box {
  margin-bottom: 545px;
  /*Addspacebetweentextandimage*/
  border: 5px ridge #006125;
  padding: 30px;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  box-shadow: 13px 13px 1px 1px #000000e2;
}

.text-box h2 {
  font-family: "DM Serif Text", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 90px;
  text-align: center;

  color: #006f1c;
}

.contact-me {
  font-family: "Onest", sans-serif;
}

input {
  margin: 5px;
  width: 350px;
  padding: 5px 15px;
  outline: none;
  border-radius: 10px;
  border: 2px solid #67b0ff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

textarea {
  margin: 5px;
  width: 350px;
  border: 2px solid #67b0ff;
  border-radius: 10px;
  padding: 10px;
  outline: none;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

footer a {
  padding-left: 25px;
}

footer h6 {
  margin-bottom: 0 !important;
  font-family: "Poppins", sans-serif;
}

.send-btn {
  background: #ffffff;
  border: 3px solid #5680ec;
  border-radius: 100px;
  padding: 5px 50px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  -ms-border-radius: 100px;
  -o-border-radius: 100px;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}

.send-btn:hover {
  background: #5680ec;
  color: #ffffff;
}

.text-box h4 {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  text-align: center;
  color: #291414;
}

header img {
  max-width: 100%;
  height: auto;
}

.img-about {
  background-image: url("../images/about-bg.png");
  background-size: cover;
}

a {
  font-family: "Poppins", sans-serif;
}

.achievements {
  background: #90b493;
}

.achievements-text {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 50px;
  color: #ffffff;
}

.achievements-lists {
  font-family: "Onest", sans-serif;
  font-size: 21px;
  margin-top: 40px;
  color: #f5fce7;
}

.achievements-lists li {
  font-weight: 500;
  line-height: 3.2;
}

.card-wrapper {
  max-width: 1100px;
  margin: 0 60px 35px;
  padding: 20px 10px;
  overflow: hidden;
}

.card-list .card-item {
  list-style: none;
}

.card-list .card-item .card-link {
  display: block;
  background: #fff;
  padding: 18px;
  user-select: none;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
}

.card-list .card-item .card-link:active {
  cursor: grabbing;
}

.card-list .card-item .card-link:hover {
  border-color: #5372f0;
}

.card-list .card-link .card-image {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-list .card-link .badge {
  color: #5372f0;
  width: fit-content;
  padding: 8px 16px;
  font-size: 0.95rem;
  border-radius: 50px;
  font-weight: 500;
  background: #dde4ff;
  margin: 16px 0 18px;
}

.card-list .card-link .badge-designer {
  color: #b22485;
  background: #f7dff5;
}

.card-list .card-link .badge-marketer {
  color: #b25a2b;
  background: #ffe3d2;
}

.card-list .card-link .badge-gamer {
  color: #205c20;
  background: #d6f8d6;
}

.card-list .card-link .badge-editor {
  color: #856404;
  background: #fff3cd;
}

.card-list .card-link .card-title {
  color: #000;
  font-size: 1.19rem;
  font-weight: 600;
}

.card-list .card-link .card-button {
  height: 35px;
  width: 35px;
  color: #5372f0;
  margin: 30px 0 5px;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #5372f0;
  transform: rotate(-45deg);
  transition: 0.4s ease;
}

.card-list .card-link:hover .card-button {
  color: #fff;
  background: #5372f0;
}

.card-wrapper .swiper-pagination-bullet {
  height: 13px;
  width: 13px;
  opacity: 0.5;
  background: #5372f0;
}

.card-wrapper .swiper-pagination-bullet-active {
  opacity: 1;
}

.card-wrapper .swiper-slide-button {
  color: #5372f0;
  margin-top: -35px;
}

.learn-more {
  background: #ffffff;
  border: 5px solid #0095ff;
  border-radius: 49px;
  padding: 10px 25px;
  margin-left: 24px;
  text-decoration: none;
  color: #000000;
}

/* Responsive media query code for small screens */
@media (max-width: 768px) {
  .card-wrapper {
    margin: 0 10px 25px;
  }

  .card-wrapper .swiper-slide-button {
    display: none;
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  header {
    min-height: 200px; /* Adjust as needed */
  }

  .text-box h2 {
    font-size: 2rem; /* Adjust font size for smaller screens */
  }
  .text-box {
    margin-bottom: 550px;
  }
}
