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

:root {
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
  --header-height: 3rem;
  --body-font: "Poppins", sans-serif;
  --font-semi: 600;
  --first-color: #3e6ff4;
  --margin-top: 1rem;
  --second-color: #0d1730;
}

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  width: 100%;
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
nav {
  width: 100%;
  height: var(--header-height);
  font-weight: var(--font-semi);
  font-size: var(--normal-font-size);
}
.logo > h3 {
  font-weight: 400;
}
svg {
  width: 25px;
}
.menuBar {
  display: block;
  cursor: pointer;
}
.menuBar > svg {
  transition: scale 0.3s ease;
}
.menuBar > svg:active {
  scale: 0.9;
}
div.links {
  gap: 2rem;
  display: none;
}
.nav__links {
  text-decoration: none;
  color: #000;
  position: relative;
}
.nav__links:hover {
  position: relative;
}
.nav__links:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.nav__links.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/* ====== SIDEBAR DROPDOWN ===== */
.sidebar {
  background-color: #0d1730;
  gap: 2rem;
  position: fixed;
  top: var(--header-height);
  right: -100%;
  width: 80%;
  height: 100%;
  padding: 2rem;
  background-color: var(--second-color);
  transition: 0.5s;
}

.sidebar.show {
  right: 0;
}

.sidebar_links {
  width: max-content;
  color: white;
}
.sidebar_links:hover {
  position: relative;
}
.sidebar_links:hover::after {
  content: "";
  width: 100%;
  height: 0.18rem;
  position: absolute;
  top: 2rem;
  left: 0;
  background-color: var(--first-color);
}
.sidebar_links.active::after {
  top: 2rem;
}

/* ====== MAIN ====== */
.main {
  margin-top: var(--header-height);
}
.section {
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.home {
  position: relative;
  padding: 4rem 0 5rem;
}
.home {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.home_data h1 {
  font-size: var(--big-font-size);
}
span#element {
  color: var(--first-color);
}
.highlight {
  color: var(--first-color);
}
.contact_btn {
  padding: 0.7rem 2.2rem;
  font-size: var(--h2-font-size);
  border-radius: 5px;
  border: none;
  background-color: var(--first-color);
  color: White;
  font-weight: 700;
  margin-top: 40px;
  text-decoration: none;
}
/* ====== ICONS ====== */
.social_links {
  list-style: none;
  margin-bottom: 5rem;
  gap: 1.5rem;
}
.social_links a svg:hover {
  fill: var(--first-color);
}
/* ====== PROFILE PICTURE ====== */
.home_img {
  width: 250px;
  position: absolute;
  top: 53%;
  right: 10px;
}
img {
  width: 100%;
}

/* ====== BUTTONS ====== */
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  margin-top: 40px;
  text-decoration: none;
  transition: 0.3s;
}
.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}
/* ====== About ====== */
.about,
.skills,
.work {
  text-align: center;
}
.section_title {
  color: var(--first-color);
  font-size: var(--h2-font-size);
  position: relative;
  display: inline;
}
.section_title::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.about_content,
.skill_content,
.work_content {
  margin-top: var(--margin-top);
  text-align: center;
  gap: 1rem;
}
.skill_content {
  margin-top: 2rem;
}
.about_content {
  max-width: 900px;
  margin-inline: auto;
}
.about_img {
  min-width: 200px;
}
.about_img img {
  width: 100%;
  border-radius: 0.5rem;
}
.about_info,
.skill_info {
  padding-inline: 1rem;
  max-width: auto;
}
.about_info p {
  font-size: var(--normal-font-size);
}

/* ===== SKILLS ===== */
.wrapper {
  display: block;
}
.skills_name {
  width: 100%;
  gap: 2rem;
  margin-block: 2rem;
}
div.box {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0px 1px 4px rgba(146, 161, 176, 0.15),
    0px 1px 4px rgba(146, 161, 176, 0.15);
  padding: 0.5rem 0.2rem 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  position: relative;
}
.box i {
  font-size: 2rem;
  color: var(--first-color);
}
.inner_text {
  width: 100%;
  font-weight: var(--font-semi);
}
.box::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-radius: 10px;
  height: 0.24rem;
  background-color: var(--first-color);
}
.box1::after {
  width: 95%;
}
.box2::after {
  width: 85%;
}
.box3::after {
  width: 65%;
}
.skill_work {
  margin-top: var(--margin-top);
}
.skill_work img {
  width: 100%;
  border-radius: 0.5rem;
}

/* ===== WORK ===== */
.project_work {
  padding-block: 2rem;
  display: grid;
  /* grid-template-columns: repeat(1, 1fr); */
  gap: 2rem;
}
.work_img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}
.work_img img {
  width: 100%;
  height: 100%;
  transition: all 1s ease;
}
.work_img img:hover {
  transform: scale(1.1);
  filter: brightness(120%);
  filter: contrast(120%);
  filter: grayscale(130%);
  
}
.work_img:hover > .pr-title {
  transform: translateY(0%);
}
.pr-title {
  background-color: red;
  position: absolute;
  /* opacity: 0; */
  width: 100%;
  bottom: 0;
  transform: translateY(100%);
  padding: 0.3rem 1rem;
  background: rgb(36,85,219);
  background: linear-gradient(0deg, rgba(36,85,219,1) 3%, rgba(50,94,215,1) 36%, rgba(87,125,229,1) 85%);
  transition: transform 0.4s ease;
}
.pr-title h3{
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-family: Quicksand;
}


/* ===== FOOTER ===== */
.my_footer {
  margin-top: var(--margin-top);
  background-color: #0d1730;
  color: white;
  text-align: center;
}
.footer_info {
  margin-block: var(--margin-top);
}
.footer_title {
  font-size: var(--h2-font-size);
}
.social_icons {
  margin-block: 2rem;
  gap: 1.5rem;
}

.social_icons a {
  text-decoration: none;
  font-size: var(--h2-font-size);
  color: white;
  transition: scale 0.3s ease;
}

.social_icons a:hover {
  scale: 1.1;
}
.social_icons a:first-of-type:focus,
.social_icons a:first-of-type:hover {
  color: rgb(21, 166, 21);
}
.social_icons a:nth-child(2):focus,
.social_icons a:nth-child(2):hover {
  color: dodgerblue;
}

.social_icons a:nth-child(3):focus,
.social_icons a:nth-child(3):hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

ul > li {
  text-align: left;
  list-style: none;
}