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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  color: black;
}

:root {
  --background-color: #f4f4f4;
  --background-color-2: white;
  --hover-color: #fdc002;
  --titl-text-size: 1.5rem;
  --subtitle-text-size: 1.2rem;
}

body {
  background-color: var(--light-blue);
}

/* ---------------header starts------------- */
.header {
  width: 100%;
  height: 5.5rem;
  background-color: var(--background-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 100;
}

.list {
  display: inline-flex;
  list-style: none;
  gap: 3.5rem;
}

.link {
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 1.1rem;
  position: relative;
}

.link::after {
  position: absolute;
  content: "";
  width: 0%;
  left: 0;
  bottom: -15%;
  border-bottom: 3px solid var(--hover-color);
  transition: 0.5s;
}

.link:hover::after {
  width: 100%;
}

.logo {
  letter-spacing: 1px;
  font-weight: 600;
}

.item {
  padding: 0.4rem 0.5rem;
}
/* --------------------header ends-----------------  */

/* --------------------home starts------------------- */

#home {
  padding: 0 2rem;
}
.home__container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 0 3rem;
}

.home__title {
  width: fit-content;
  height: fit-content;
  margin-top: 24%;
}

.title h1 {
  font-size: 3.2rem;
  font-weight: 600;
}

.title h2 {
  font-size: 2rem;
  font-weight: 500;
}

.details {
  margin-top: 1rem;
}

.home__hero {
  height: fit-content;
  margin-top: 16%;
}

.hero {
  height: 60vh;
  background-color: var(--hover-color);
  border-radius: 50%;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons i {
  color: black;
}

.social-icons a {
  position: relative;
  display: inline-flex;
  font-size: 2.3rem;
  width: 3.2rem;
  height: 3.2rem;
  text-decoration: none;
  justify-content: center;
  text-align: center;
  align-items: center;
  border: 3px solid var(--hover-color);
  border-radius: 50%;
  overflow: hidden;
}

.social-icons a::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  color: white;
  top: 0;
  left: 0;
  background-color: var(--hover-color);
  z-index: -1;
  transition: 0.3s;
}

.social-icons a:hover::before {
  width: 100%;
}
/* ---------------home ends------------- */

/* --------------about starts------------- */

.about__container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 5rem;
}

.about__hero {
  margin-top: 10%;
}
.left {
  height: 55vh;
}

.about__info {
  margin-top: 8%;
}

.about__title {
  font-size: var(--titl-text-size);
}

.info {
  margin-top: 0.8rem;
  font-size: var(--subtitle-text-size);
}
/* ---------------about ends---------- */

/* ------------------skills-------------- */
#skills {
  padding: 8rem;
}

.skills__container {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  /* background-color: #fed602; */
}

.skills__title h2 {
  font-size: 36px;
}

.skills__title p {
  font-size: var(--subtitle-text-size);
}

.skills__data-lists {
  width: 40%;
  height: fit-content;
}

.skill-container-img img {
  height: 60vh;
}

.data-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.skills__data {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.skill__data-name {
  width: 100%;
  position: relative;
  padding: 1rem;
  background-color: white;
  box-shadow: 0.6rem 0.6rem 2rem 0.2rem rgb(82, 82, 82);
  border-radius: 0.3rem;
}

.skill__data-name i {
  font-size: 3rem;
  margin-left: 0.5rem;
}

.data-bar {
  position: absolute;
  height: 0.5rem;
  width: 90%;
  left: 0;
  bottom: 0rem;
  background-color: #58e719;
  border-radius: 0.5rem;
}

.data-row p {
  color: black;
}

.skill__percentage {
  color: black;
}

.box-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.box-icon p {
  font-size: 1.2rem;
}

.data-row {
  display: flex;
  align-items: center;
  align-content: center;
}

.html-5 i {
  color: #fe6d01;
}

.css .data-bar {
  width: 70%;
}

.css i {
  color: #039be5;
}

.javascript .data-bar {
  width: 20%;
}

.javascript i {
  color: #fed602;
}

.data-row img {
  margin-left: 0.5rem;
}

.ps {
  width: 3.2rem;
}

.ai {
  width: 2.8rem;
}

.illustrator .data-bar {
  width: 60%;
}
/* --------------------skills ends------------- */

/* ----------------portfolio starts--------------- */
.portfolio-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.portfolio-container h2 {
  font-size: 36px;
}

.cards-container {
  display: grid;
  grid-template-columns: 18rem 18rem 18rem;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0.6rem 0.6rem 2rem 0.2rem rgb(82, 82, 82);
}

.layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), #fac311);
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height 0.5s;
}

.card:hover .layer {
  height: 100%;
}

.demo {
  width: 7rem;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 0.2rem;
  background-color: var(--hover-color);
}

.layer h3 {
  font-size: 1.8rem;
  color: var(--background-color);
}

.layer p {
  font-size: 1rem;
  color: var(--background-color);
}

.card img {
  width: 100%;
  transition: 0.5s;
  display: block;
}

.card img:hover {
  scale: 1.2;
}
/* ------------------portfolio ends------------ */

/* --------------contact starts-------------- */
.contact-container {
  width: 100%;
  height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-container h2 {
  font-size: 36px;
  display: inline;
}

.form {
  width: 50%;
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input {
  width: 100%;
  padding: 0.8rem 0.8rem;
  border: 0.1rem solid black;
  border-radius: 0.3rem;
  outline: none;
}

textarea {
  border: 0.1rem solid black;
  border-radius: 0.3rem;
}

.submit-btn {
  background-color: var(--hover-color);
  padding: 0.5rem 0.8rem;
  font-size: 1.2rem;
}

.submit-btn:hover {
  background-color: #eabc25;
}
/* -------------contact ends------------- */

/* ---------------footer starts------------- */
.footer {
  width: 100%;
  height: 20vh;
  background-color: #0e2331;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer p {
  color: white;
}
/* ------------------footer ends----------- */