* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
}
#message-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

#message {
  font-size: 18px;
  font-weight: bold;
}

nav {
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: space-around;
  top: 0;
  width: 100%;
  color: white;
  font-size: large;
  overflow: hidden;
  padding: 10px;
  position: fixed;
  z-index: 1000;
}
.nav-head {
  font-size: 35px;
  letter-spacing: 1px;
}
li {
  display: flex;
  float: inline-start;
  overflow: hidden;
}
li a {
  padding: 15px;
  display: block;
  color: white;
}
li a:hover {
  color: #ed2279;
}
.contact_btn {
  padding: 10px 30px;
  color: black;
  margin-left: 8rem;
  background-color: #ed2279;
  border-radius: 30px;
  font-size: larger;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
.contact_btn:hover {
  color: white;
  border: 2px solid #ed2279;
  background: transparent;
}
.checkbtn {
  font-size: 30px;
  float: right;
  margin-right: 30px;
  cursor: pointer;
  display: none;
}
.checkbox {
  display: none;
}

body {
  background-color: rgb(21, 21, 21);
  background-size: cover; /* Ensures the background covers the viewport */
  background-position: center;
  background-attachment: fixed; /* Keeps the background fixed when scrolling */
  overflow-x: hidden;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

@media screen and (max-width: 952px) {
  .nav_head {
    font-size: 30px;
  }
  nav li a {
    font-size: 18px;
  }
  nav .contact_btn {
    margin: 20%;
  }
}
@media screen and (max-width: 820px) {
  .checkbtn {
    display: block;
    margin-left: 150px;
  }
  .nav_head {
    padding-left: 10px;
  }
  nav ul {
    z-index: 1000;
    position: fixed;
    width: 60%;
    height: 50vh;
    background-color: black;
    top: 50px;
    right: -100%;
    padding: 20px;
    transition: all 0.5s;
  }
  nav li {
    text-align: center;
    display: block;
    float: left;
    width: 330px;
    height: 60px;
    padding: 5px;
  }
  nav .contact_btn {
    width: 90%;
  }
  nav li a {
    font-size: 20px;
    color: white;
  }

  #check:checked ~ ul {
    right: 0;
  }
}
.home {
  padding: 220px 100px;
  color: white;
  display: flex;
  justify-content: space-around;
  gap: 5rem;
}
.description {
  padding-top: 20px;
}
.description h1 {
  font-size: 30px;
  font-weight: 700;
}
.description h1 span {
  color: #ed2279;
  font-size: 55px;
}
.description h2 {
  margin: 20px;
  font-size: 30px;
  font-weight: 900;
}
.description h2 span {
  color: #ed2279;
  position: relative;
}
.description h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0px;
  height: 100%;
  border-left: 4px solid #ed2279;
  background-color: rgb(21, 21, 21);
}
@keyframes text {
  0% {
    left: 0;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 0;
  }
}
.font i {
  margin: 25px 8px;
  border: 3px solid #ed2279;
  border-radius: 50%;
  padding: 13px;
  font-size: 20px;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}
.font i:hover {
  background-color: #ed2279;
  transform: translateY(-15px);
  box-shadow: 0px 0px 15px #ed2279;
}
.description button {
  padding: 13px 20px;
  font-size: 20px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ed2279, rgb(231, 201, 35));
  cursor: pointer;
  border: none;
}
.home img {
  background-color: #ed2279;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 0 30px #ed2279;
  filter: brightness(1.1);
  transition: 0.4s ease-in-out;
}
.home img:hover {
  box-shadow: 0 0 50px #ed2279;
}
@keyframes animate {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}
/* responsive home section */
@media screen and(max-width:820px) {
  .home img {
    margin-top: -7rem;
    margin-left: -1rem;
    margin-bottom: -5rem;
    width: 390px;
    height: 340px;
  }
  .home {
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }
  .description {
    margin-left: -4rem;
  }
  .description h1 {
    font-size: 25px;
  }
  .description h1 span {
    font-size: 40px;
  }
  .description h2 {
    font-size: 25px;
  }
}
/* About */
.about {
  display: flex;
  justify-content: space-around;
  margin: 100px 150px;
  gap: 60px;
  padding-top: 100px;
  color: white;
}
.about_photo img {
  background: #ed2279;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 0 30px #ed2279;
  /* filter: brightness(1.1); */
}
@keyframes animate1 {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translate(-15px);
  }
  100% {
    transform: translate(0px);
  }
}
.about_section {
  margin-bottom: 30px;
}
.about section h1 {
  font-size: 50px;
}
.about_section h2 {
  margin-top: 10px;
}
.about_section span {
  color: #ed2279;
}
.about_section p {
  margin-top: 15px;
}
.about_btn {
  padding: 13px 25px;
  font-size: 20px;
  background-color: #ed2279;
  margin-top: 25px;
  border-radius: 20px;
  box-shadow: 0px 0px 15px #ed2279;
  border: none;
  cursor: pointer;
}
/* responsive about */
@media screen and (max-width: 768px) {
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about_photo {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .about_photo img {
    width: 100%;
    max-width: 300px; /* Ensures the image doesn't get too large */
    height: auto;
  }
}
/* responsive my work */
@media (max-width: 768px) {
  .project_container {
    flex-direction: column; /* Stack items vertically */
    align-items: center;
  }

  .grid_item {
    width: 100%; /* Take full width */
    max-width: 400px; /* Set a max width for better scaling */
  }

  .card {
    width: 100%;
    padding: 15px;
  }

  .card img {
    width: 100%; /* Ensure image takes full width of card */
    height: auto;
    border-radius: 10px;
  }
}

/* services section */
h1.service_section {
  margin-top: 10rem;
  color: white;
  font-size: 50px;
  padding-top: 100px;
  text-align: center;
}
h1.service_section span {
  color: #ed2279;
}
div.card {
  display: flex;
  justify-content: space-around;
  gap: 50px;
  text-align: justify;
  margin: 70px;
  color: white;
}
.service_card {
  background-color: rgb(48, 48, 48);
  padding: 30px;
  border-radius: 10px;
  transition: 0.5 ease;
  width: 300px; /* Ensure all cards have the same width */
  height: 200px;
}
.service_card:hover {
  border: 2px solid #ed2279;
  background-color: #ab1757;
  transform: translateY(-20px);
}
.service_card i {
  font-size: 40px;
  color: #ed2279;
}
.service_card h2 {
  font-size: 30px;
  margin-top: 10px;
}
.service_card p {
  margin-top: 10px;
  margin-bottom: 10px;
}
.service_card a {
  font-size: large;
  color: #ed2279;
}

@media screen and (max-width: 820px) {
  h1.about_section {
    font-size: 35px;
    margin-bottom: -40px;
  }
  .card {
    grid-template-columns: 1fr;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
  }
  .service_card {
    margin-top: 20px;
  }
  .service_card h2 {
    font-size: 25px;
  }
  .service_card {
    min-width: 280px;
    min-height: 200px;
  }
}
@media screen and (max-width: 768px) {
  .home img,
  .about_photo img {
    width: 100%;
    height: auto;
    max-width: 300px; /* Optional: Set a max-width to avoid overly large images */
  }

  .home,
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .description {
    margin-top: 20px;
  }
}

/* project */

/* responsive portfolio section */
@media screen and (max-width: 820px) {
  h1.port_section {
    font-size: 35px;
  }
  .project1 {
    grid-template-columns: 1fr;
    margin-bottom: 200px;
    flex-wrap: wrap;
  }
  .port_card {
    margin-bottom: -17px;
  }
}

/* contact */
.form h1 {
  margin: 150px 0px 40px 0px;
  text-align: center;
  color: white;
  font-size: 50px;
  padding-top: 80px;
}
.form h1 span {
  color: #ed2279;
}
.form,
input,
textarea {
  width: 550px;
  margin: 10px 340px;
  padding: 15px;
  /* background-color: rgb(63, 63, 63); */
  font-size: 18px;
  color: white;
  border: none;
  border-radius: 5px;
}
.form .form_btn {
  padding: 15px 30px;
  font-size: 20px;
  background-color: #ed2279;
  margin: 1.5rem 33rem;
  border-radius: 10px;
  box-shadow: 0px 0px 20px #ed2279;
  cursor: pointer;
  border: none;
  transition: 0.3s ease;
}
.form.form_btn:hover {
  background-color: transparent;
  border: 2px solid #ed2279;
  color: white;
}
.footer {
  margin-top: 20px;
  background-color: black;
  color: white;
  padding: 30px;
  font-size: 20px;
  text-align: center;
}
*::selection {
  background-color: #ab1757;
}
/* responsive contact */
@media screen and (max-width: 820px) {
  .form h1 {
    font-size: 35px;
  }
  .form input,
  textarea {
    margin-left: 50px;
    width: 450px;
  }
  .form.form_btn {
    margin-left: 14rem;
    padding: 10px 25px;
    font-size: 18px;
  }
}
.project1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* Ensures alignment */
  gap: 20px;
  margin-top: 5rem;
}
.port_card {
  margin: 0;
  padding: 0;
  text-align: center;
}
.port_card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
#portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* chat */
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  padding: 50px 0;
}

.form h1 {
  margin: 50px 0;
  text-align: center;
  color: white;
  font-size: 50px;
}

.form input,
.form textarea {
  width: 100%;
  max-width: 500px; /* Adjust width as needed */
  padding: 15px;
  font-size: 18px;
  color: white;
  border: none;
  border-radius: 5px;
  background-color: rgb(63, 63, 63);
}

.form .form_btn {
  padding: 15px 30px;
  font-size: 20px;
  background-color: #ed2279;
  border-radius: 10px;
  box-shadow: 0px 0px 20px #ed2279;
  cursor: pointer;
  border: none;
  transition: 0.3s ease;
  margin-top: 20px;
}

h1.port_section {
  margin-top: 5rem;
  color: white;
  font-size: 50px;
  padding-top: 20px;
  text-align: center;
}

h1.port_section span {
  color: #ed2279;
}

/* New add in chat */
.project_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.grid_item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.grid_item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Make the entire card clickable */
.card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* Ensure the text is visible and clickable */
.card_container {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 0 0 10px 10px;
  transition: 0.3s ease;
}

.card:hover .card_container {
  background: rgba(0, 0, 0, 0.9);
}
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }
  .home {
    flex-direction: column;
    padding: 150px 20px;
    gap: 3rem;
  }
  .about {
    flex-direction: column;
    margin: 50px auto;
    text-align: center;
  }
  .service_card {
    width: 90%;
    margin: auto;
  }
  .form,
  .form input,
  .form textarea {
    width: 90%;
    margin: auto;
  }
}
div.card {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap on small screens */
  justify-content: center;
  gap: 2rem; /* Adds 2rem gap between items */
  text-align: center;
  margin: 5% auto;
  color: white;
}
.card_container h3 {
  font-size: 20px;
  font-weight: 600;
  padding: 10px;
}
