@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #2f3e46;
  color: white;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background-color: #cad2c5;
  color: black;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

header h4 {
  font-weight: 400;
  font-size: 1rem;
  margin-top: 0.2rem;
}

header img {
  cursor: pointer;
  transition: transform 0.3s ease;
}
header img:hover {
  transform: rotate(20deg) scale(1.1);
}

.headings {
  margin: 2rem 0 1rem;
  font-size: 2.5rem;
  text-align: center;
  color: #00bfa6;
  font-weight: 600;
}

.about-container {
  margin: 2rem auto;
  background-color: #cad2c5;
  color: black;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 1000px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.about-container img {
  border-radius: 50%;
  width: 12rem;
  height: 12rem;
  object-fit: cover;
}

.education-container {
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
}
.education-container > div {
  background-color: #354f52;
  padding: 1.5rem;
  border-radius: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.education-container > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}
.images {
  background-color: #cad2c5;
  padding: 2rem;
  width: 20rem;
  color: black;
  border-radius: 0.9rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.images:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.images img {
  margin-bottom: 1rem;
  width:15rem;
  height:10rem;
  border-radius:.7rem;
}
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto;
  font-size: 1.1rem;
  max-width: 1000px;
}
.skills-container li {
  list-style: none;
  background-color: #354f52;
  padding: 0.8rem 1.2rem;
  border-radius: 2rem;
  color: white;
  transition: background-color 0.3s ease;
}
.skills-container li:hover {
  background-color: #00bfa6;
  cursor: default;
}

.ach-container {
  margin: 2rem auto;
  max-width: 900px;
  font-size: 1.1rem;
  list-style-type: "✔ ";
}
.ach-container li {
  background: #354f52;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  border-radius: 0.6rem;
}

.form-container {
  margin: 2rem auto;
  max-width: 500px;
  width: 100%;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem;
  background-color: #cad2c5;
  border-radius: 1rem;
  color: black;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
input, textarea {
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid black;
  background-color: transparent;
  font-size: 1rem;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #00bfa6;
}
button {
  background-color: #00bfa6;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
button:hover {
  background-color: #028c77;
  transform: translateY(-2px);
}

@media screen and (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .images {
    width: 100%;
    max-width: 18rem;
  }
  .skills-container {
    gap: 0.8rem;
    font-size: 1rem;
    margin:1rem;
  }
  .education-container,.about-container{
    margin: 1rem;
  }
}

@media screen and (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }
  header h4 {
    font-size: 0.8rem;
  }
  .headings {
    font-size: 1.6rem;
  }
  .about-container img {
    width: 8rem;
    height: 8rem;
  }
  form {
    padding:.76rem;
  }
}
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slides img {
  min-width: 100%; 
  object-fit: cover;
  border-radius: 0.7rem;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 0.3rem;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }
