@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;800&family=Teko&display=swap");
:root {
  --text-color: #fff;
  --text-dark-color: #c3c3c3;
  --paragraph-color: #c5c5c5;
  --logo: #3bd20f;
  --main-color: #f55422;
  --bg-color: #030d1c;
  --bg-dark-color: #010813;
  --blue: #007bff;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
}

::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 3rem;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark-color);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--text-color);
  cursor: pointer;
}

html {
  font-size: 62.5%;
  font-family: "Rubik", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
}

/* important h2 underline */

.main-about-container h2,
.main-resume-container h2,
.main-skill h2,
.main-projects-container h2,
.contact-container h2 {
  position: relative;
  font-weight: 700;
  padding-bottom: 2rem;
  font-size: 4rem;
  line-height: 1.3;
  text-transform: capitalize;
  color: #fff;
  font-family: "Rubik", sans-serif;
  text-align: center;
}

.main-about-container h2::after,
.main-resume-container h2::after,
.main-skill h2::after,
.main-projects-container h2::after,
.contact-container h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  width: 100%;
  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0), rgb(165, 165, 165), rgba(0, 0, 0, 0));
  bottom: 0px;
  max-width: 300px;
  margin: 0 auto;
}

/* -------------------------------- */

/* ---------------------------------------- header ---------------------------------------- */
.bg-img {
  width: 100%;
  height: 100vh;
  position: fixed;
  background-image: url(/images/main-bg.jpeg);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

header {
  width: 60%;
  height: 100vh;
  margin: 0 auto;
}

.navbar-container {
  width: 100%;
  height: 8vh;
}

.navbar {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.navbar-logo img {
  width: 3.8rem;
}

.navbar-logo span {
  color: var(--main-color);
}

.menu-bg {
  display: none;
}

.link-list {
  display: flex;
  gap: 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  list-style: none;
  text-transform: capitalize;
  letter-spacing: 0.05rem;
}

.list-item {
  margin: 2rem 0;
}

.list-item i {
  display: none;
  color: white;
}

.list-item a {
  transition: all 0.3s;
}

.list-item a:hover {
  color: var(--main-color);
}

/* ---------- header main ---------- */

.header-main {
  width: 100%;
  height: 100%;
  position: relative;
}

.header-main-container {
  width: 100%;
  height: 40vh;
  margin: 0 auto;
  text-align: center;
  color: var(--text-color);
  position: relative;
  top: 30%;
  transform: translateY(-50%);
}

.header-main-container h3 {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.3rem;
}

.header-main-container h1 {
  font-size: 4.8rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.3rem;
  color: var(--main-color);
}

.header-icon a {
  font-size: 1.4rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.header-icon a:hover {
  color: var(--main-color);
}

.header-btn {
  margin-top: 4rem;
  width: auto;
  height: auto;
  justify-content: center;
}

.header-btn button {
  width: 15rem;
  height: 5rem;
  border-radius: 2.5rem;
  margin: 0 2rem;
  border: 2px solid var(--main-color);
  background: transparent;

  font-size: 1.4rem;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s;
}

.header-btn button:hover {
  background: var(--main-color);
}

.arrow {
  position: relative;
  margin: 0 auto;
  margin-top: 4rem;
  font-size: 3rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  transition: all 0.3s;
  background: #343a408f;
  animation: arrow 2s ease-out infinite;
}

@keyframes arrow {
  0% {
    margin-top: 4rem;
  }

  15% {
    margin-top: 2rem;
  }

  30% {
    margin-top: 4rem;
  }
  45% {
    margin-top: 3rem;
  }
  60%,
  100% {
    margin-top: 4rem;
  }
}

.arrow a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------------------------------------- main ---------------------------------------- */

main {
  width: 100%;
  height: auto;
  background-color: var(--bg-color);
  padding: 5% 0 0 0;
}

/* ---------- main about ---------- */

.main-about-container {
  position: relative;
  width: 60%;
  height: auto;
  margin: 0 auto;
  padding-bottom: 5%;
}

.main-about {
  position: relative;
  width: 100%;
  height: auto;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 50%);
}

.main-img-bg {
  width: 90%;
  height: 100%;
  background: var(--dark);
  position: relative;
  border-radius: 1rem;
  padding: 2%;
}

.img {
  width: 100%;
  height: 100%;
  border-radius: 0.8rem;
  background-image: url(/images/my-photo.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0% 30%;
}

.main-about-content {
  position: relative;
}

.main-content {
  width: 95%;
  height: auto;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.main-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
}

.main-content h3 span {
  color: var(--main-color);
}

.main-content h6 {
  margin: 2rem 0 2rem;
  color: var(--text-dark-color);
  font-weight: 400;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  text-align: left;
}

.main-content p {
  font-size: 1.4rem;
  color: var(--paragraph-color);
  line-height: 2.4rem;
  font-family: "Rubik", sans-serif;
  text-align: left;
  margin-bottom: 2rem;
}

.main-btn {
  position: relative;
  display: inline-block;
  padding: 9px 15px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 15px;
  color: var(--text-color);
  font-weight: 400;
  background: transparent;
  font-family: "Teko", sans-serif;
}

.main-btn::after {
  content: "";
  width: 35%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: 0;
  top: 0;
  transition: all 500ms ease;
}

.main-btn:hover::after {
  width: 100%;
}

/* ---------- main resume ---------- */

.main-resume-bg {
  position: relative;
  width: 100%;
  height: auto;
  background-color: var(--bg-dark-color);
  padding: 5%;
}

.main-resume-container {
  width: 70%;
  height: auto;
  margin: 0 auto 15rem;
}

.main-resume-timeline {
  width: 100%;
  height: 70vh;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.timeline-bg {
  width: 95%;
  height: 100%;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-color);
  overflow: hidden;
}

/* ---------- timline content ---------- */

.timeline-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 30%;
  padding: 0 5%;
  margin: 1rem 0;
  overflow-y: scroll;
}

.timeline-item::-webkit-scrollbar {
  display: none;
}

.timeline-item {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.timeline-item .icon:after {
  position: absolute;
  content: "";
  left: auto;
  top: auto;
  width: 8px;
  height: 8px;
  background-color: #f55422;
  border-radius: 50%;
  margin-top: 10px;
  margin-left: -3px;
}

.timeline-item .icon:before {
  position: absolute;
  content: "";
  left: auto;
  top: auto;
  width: 1px;
  height: 100%;
  background-color: #f55422;
  margin-top: 3rem;
}

.main-resume-content {
  display: flex;
  flex-direction: column;
  row-gap: 0.6rem;
  width: auto;
  height: 19rem;
  margin-top: 0.3rem;
  padding: 0 4rem;
}

.main-resume-content h5 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  margin: 0;
  font-weight: normal;
  color: var(--text-color);
  line-height: 1.3;
  text-transform: capitalize;
}

.date {
  width: 9rem;
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  background: var(--main-color);
  box-sizing: border-box;
  text-align: center;
}

.main-resume-content p:nth-child(3) {
  font-size: 1.4rem;
  line-height: 2.4rem;
  color: var(--paragraph-color);
}

/* ----------- main skill ----------- */

.main-skill {
  width: 60%;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.skill-grid {
  width: 100%;
  height: auto;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0 2rem;
}

.skills h3 {
  font-weight: 400;
  letter-spacing: 0.01rem;
  margin: 4rem 0 0.5rem 0;
  color: var(--text-color);
  font-size: 1.6rem;
}

.progress-bar {
  background: #959595;
  width: 100%;
  height: 0.5rem;
  border-radius: 5px;
  margin: 0 auto;
}

.progress-bar div {
  height: 0.5rem;
  border-radius: 5px;
  width: 0%;
}

.progress-bar div span {
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: #222;
  float: right;
  margin-top: -8px;
  margin-right: -20px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ------------------------------------------- */

.bar-1 {
  background: var(--main-color);
}

.bar-1.active-bar {
  animation: html 2s ease-in-out forwards;
}

@keyframes html {
  to {
    width: 75%;
  }
}

.bar-1 span {
  border: 1px solid var(--main-color);
}

/* ------------------------------------------- */
.bar-2 {
  background: var(--blue);
}

.bar-2.active-bar {
  animation: css 2s ease-in-out forwards;
}

@keyframes css {
  to {
    width: 85%;
  }
}

.bar-2 span {
  border: 1px solid var(--blue);
}

/* ------------------------------------------- */

.bar-3 {
  background: var(--purple);
}

.bar-3.active-bar {
  animation: bts 2s ease-in-out forwards;
}

@keyframes bts {
  to {
    width: 50%;
  }
}

.bar-3 span {
  border: 1px solid var(--purple);
}

/* ------------------------------------------- */
.bar-4 {
  background: var(--yellow);
}

.bar-4.active-bar {
  animation: js 2s ease-in-out forwards;
}

@keyframes js {
  to {
    width: 30%;
  }
}

.bar-4 span {
  border: 1px solid var(--yellow);
}

/* ------------------------------------------- */

.bar-5 {
  background: #f29111;
}

.bar-5.active-bar {
  animation: mysql 2s ease-in-out forwards;
}

@keyframes mysql {
  to {
    width: 20%;
  }
}

.bar-5 span {
  border: 1px solid #f29111;
}

/* ------------------------------------------- */

.bar-6 {
  background: #0acf83;
}

.bar-6.active-bar {
  animation: figma 2s ease-in-out forwards;
}

@keyframes figma {
  to {
    width: 40%;
  }
}

.bar-6 span {
  border: 1px solid #0acf83;
}

/* ---------- main projects ---------- */

.main-projects-container {
  position: relative;
  width: 100%;
  height: auto;
  padding: 5% 0;
}

.cards {
  width: 60%;
  height: auto;
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}
/* ----- cards & card animation ----- */

.card {
  width: 25rem;
  background: #1e2529;
  border: 1px solid #343637;
  position: relative;
  margin: 0 auto;
}

.image-container {
  width: 100%;
  height: 17rem;
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  background: #ff4656d8;
  mix-blend-mode: multiply;
  transform: translateX(-120%) skewX(-10deg);
  transition: transform 0.3s ease-out;
}

.card-footer {
  padding: 2rem 2rem 3.5rem;
  color: rgb(236, 232, 225);
  transition: all 0.3s ease;
}

.card-footer h3 {
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.card-footer span {
  font-weight: bold;
  font-size: 1.2rem;
  color: #5a6469;
}

.card-footer p {
  font-size: 1.5rem;
  line-height: 2.5rem;
  margin: 2rem 0;
}

.click-project {
  font-weight: 500;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  color: #ff4656d8;
}

.click-project span {
  display: block;
  margin-left: 0.4rem;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.card:hover .click-project {
  color: rgb(56, 62, 58);
}

.card:hover .click-project span {
  transform: translateX(0.5rem);
}

.card:hover .image-container::before {
  transform: translateX(0) skewX(-10deg) scaleX(1.3);
}

.card:hover .card-footer {
  background: var(--white);
  color: rgb(56, 62, 58);
}

.card:hover span {
  color: #ff4656;
}

.card::before {
  content: "";
  position: absolute;
  display: block;
  height: 0.5rem;
  width: 100%;
  background-color: linear-gradient(to right, #ff4656 50%, #383e3a 50%);
  background-size: 200%;
  background-position: 100%;
  background-repeat: no-repeat;
  bottom: 0;
  left: 0;
  z-index: 9;
  transition: all 0.5s;
}

.card:hover::before {
  background-position: 0;
}

/* ----------- main contact ----------- */

.contact-container {
  width: 100%;
  height: auto;
  background-color: var(--bg-dark-color);
  background-image: url(/images/review-bg.png);
  background-size: cover;
  padding: 5% 0;
  position: relative;
}

.contact {
  width: 50%;
  height: auto;
  margin: 4rem auto;
}

.name-subject {
  width: 100%;
  height: auto;
}

.name-subject input,
.email input,
.message textarea {
  width: 100%;
  height: 5rem;
  outline: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--dark);
  color: var(--white);
  font-size: 1.4rem;
  margin: 2rem 0;
}

.name-subject input:focus,
.email input:focus,
.message textarea:focus {
  border-bottom: 2px solid var(--white);
}

.email {
  width: 100%;
  height: auto;
}

.message {
  width: 100%;
  height: auto;
}

.message textarea {
  resize: vertical;
  max-height: 15rem;
}

.send-me {
  width: 14rem;
  height: 4rem;
  margin: 2rem 0;
  position: relative;
}

.send-me-btn {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
  border: none;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: #fff !important;
  font-weight: 400;
  font-family: "Teko", sans-serif;
}

.send-me-btn::after {
  content: "";
  width: 35%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: 0;
  top: 0;
  transition: all 500ms ease;
}

.send-me-btn:hover::after {
  width: 100%;
}

/* ------------------------ Footer ------------------------ */

footer {
  width: 100%;
  height: auto;
  background-color: var(--bg-color);
  padding: 5% 0 2%;
}

.footer-container {
  width: 60%;
  height: auto;
  margin: 0 auto;
}

.footer-link {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.link-bg {
  position: relative;
  min-width: 4rem;
  min-height: 4rem;
  background-color: var(--bg-dark-color);
  transform: rotate(45deg);
  border-radius: 1rem;
  transition: all 0.3s;
  margin: 0 1.2rem;
}

.link-bg:hover {
  background-color: var(--main-color);
}

.link-bg a {
  position: absolute;
  top: 25%;
  left: 35%;
  transform: rotate(-45deg);
  font-size: 1.6rem;
}

.copyright {
  width: 100%;
  height: auto;
  text-align: center;
  margin: 3rem 0 0;
}

.copyright p {
  font-size: 1.6rem;
  color: var(--white);
  margin: 1rem 0;
}
