/*=============== HEADER & NAV ===============*/

.logo img {
  height: 1.3rem;
  font-weight: 700;
  width: auto;
}

.nav-link {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  padding: 0.75rem 1.1rem;
  border-radius: 0.25rem;
  color: var(--neutral-color);
}

.nav-link:hover {
  background-color: var(--primary-tint);
}

.nav-cta {
  margin-left: 0.75rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
}

.main-nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* mobile menu */

.btn-mobile-nav {
  background: none;
  display: none;
}

.icon-mobile-nav {
  height: 2rem;
  width: 2rem;
  color: var(--neutral-color);
}

.icon-mobile-nav[name='close-outline'] {
  display: none;
}

@media (max-width: 1000px) {
  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    /* -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px); */
    -webkit-backdrop-filter: blur(20px);
    /* backdrop-filter: blur(20px); */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 999;
    background: rgba(255, 255, 255, 0.8);

    /* card */
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7px);
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name='close-outline'] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name='menu-outline'] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 2rem;
  }
}

/* STICKY NAVIGATION */

.sticky .header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6rem;
  padding: 0 1.25rem;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 999;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.03);
}

.sticky .hero {
  margin-top: 6rem;
}

/*=============== HERO SECTION ===============*/

.hero-content-wrapper {
  padding-top: 50px;
}

.left-content {
  width: 50%;
}

.hero-content {
  display: flex;
}
/* hero left content  */
.left-content h1 {
  font-size: 44px;
}

.left-content .my-title {
  font-size: 35px;
}

.lead {
  font-size: 18px;
  margin-top: 1rem;
}

/* Social media links start */

.social-links {
  display: flex;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.social-media-link {
  margin-right: 1.5rem;
  font-size: 2rem;
}

.social-media-link [name='logo-linkedin'] {
  color: #2867b2;
}
.social-media-link [name='logo-github'] {
  color: #333333;
}
.social-media-link [name='logo-youtube'] {
  color: #ff0000;
}

/* Hero Call to action button */
.hero-cta {
  padding: 0.5rem 2.5rem;
  background: linear-gradient(to right, #2f66f6, #673ead);
  color: #fff;
  font-size: 18px;
  border-radius: 0.25rem;
  border: 0.1rem solid #2f66f6;
  box-shadow: 13px 11px 24px -14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  position: relative;
  overflow: hidden;
  animation: fadeAnimation 1s 1s forwards;
  display: flex;
  align-items: center;
  width: fit-content;
}
.cta-link {
  display: block;
  max-width: max-content;
}

.resume-cta {
  font-size: 20px;
  margin-right: 0.5rem;
}

@keyframes fadeAnimation {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

.hero-cta::before {
  content: '';
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, #fff, transparent);
  position: absolute;
  top: 0;
  left: -100%;
  transform: skewX(-30deg);
  transition: left 0.5s;
}

.hero-cta:hover::before {
  left: 100%;
}

/* wave effect */
.wave {
  animation-name: wave-animation; /* Refers to the name of your @keyframes element below */
  animation-duration: 2.5s; /* Change to speed up or slow down */
  animation-iteration-count: infinite; /* Never stop waving :) */
  transform-origin: 70% 70%; /* Pivot around the bottom-left palm */
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  } /* The following five values can be played with to make the waving more or less extreme */
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  } /* Reset for the last half to pause */
  100% {
    transform: rotate(0deg);
  }
}

/* right content */

.right-img {
  width: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
}

/* hero image */
.hero-image-wrapper {
  align-items: center;
  /* background-image: linear-gradient(#673ab7, #673ab766); */
  background-image: linear-gradient(#2f66f6, #673ab766);
  border-radius: 50%;
  display: flex;
  height: 300px;
  justify-content: center;
  padding: 10px;
  width: 300px;
}

.hero-image-wrapper img {
  border-radius: 50%;
  height: 100%;
  width: 100%;
}

@media (max-width: 1000px) {
  .hero-content {
    flex-direction: column;
  }
  .right-img {
    width: 100%;
    order: -1;
    padding-bottom: 48px;
  }
  .left-content {
    width: 100%;
  }
}

/* About Me Section */

.about-me {
  display: flex;
  padding-top: 120px;
}

.about-img-column {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 112px;
}

.about-img-column img {
  max-width: 100%;
  height: auto;
}

.about-text-column {
  width: 50%;
  padding-left: 1.5rem;
}

@media (max-width: 1000px) {
  .about-me {
    flex-direction: column;
    padding-top: 50px;
  }

  .about-img-column {
    width: 100%;
    margin-top: 24px;
  }

  .about-text-column {
    width: 100%;
    padding-top: 50px;
    padding-left: 0;
  }
}

/*
=============== 
Skills
===============
*/
.section-skills {
  padding-top: 120px;
}

@media screen and (min-width: 768px) {
  .skills-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    -webkit-column-gap: 2rem;
    -moz-column-gap: 2rem;
    column-gap: 2rem;
  }
}

.skills h3 {
  margin: 1.5rem 0;
  color: var(--clr-primary-1);
}
.skill {
  margin-bottom: 1.25rem;
}
.skill p {
  font-size: 16px;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  color: var(--clr-primary-1);
}
.skill-container {
  background: #c1d1fc;
  height: 1rem;
  width: 100%;
  border-radius: var(--radius);
  position: relative;
}
.skill-value {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to right, #2f66f6, #673ead);
  height: 100%;
  width: 70%;
  border-radius: var(--radius);
}

.value-60 {
  width: 60%;
}
.value-65 {
  width: 65%;
}
.value-70 {
  width: 70%;
}
.value-75 {
  width: 75%;
}
.value-80 {
  width: 80%;
}

.value-85 {
  width: 85%;
}

.value-90 {
  width: 90%;
}

.value-95 {
  width: 95%;
}

.skill-text {
  position: absolute;
  top: -2rem;
  left: 70%;
  -webkit-transform: translateX(-70%);
  transform: translateX(-70%);
}

.skill-text-60 {
  left: 60%;
}
.skill-text-65 {
  left: 65%;
}
.skill-text-70 {
  left: 70%;
}
.skill-text-75 {
  left: 75%;
}
.skill-text-80 {
  left: 80%;
}

.skill-text-80 {
  left: 85%;
}

.skill-text-90 {
  left: 90%;
}

.skill-text-95 {
  left: 95%;
}

/* Portfolio projects section */

.projects-section {
  margin-top: 120px;
}

.projects-container {
  display: grid;
  /* flex-wrap: wrap; */
  grid-template-columns: 25% 25% 25% 25%;
  justify-content: center;
}

.projects-section img {
  width: 100%;
  height: auto;
}

.project-wrapper {
  /* width: 25%; */
  padding: 0 0.5rem;
}

.project-wrapper a {
  color: #000;
}

.projects-section .project-card {
  border-radius: 10px;
  box-shadow: 0 0 10px #e0e0e0;
  cursor: pointer;
  margin-bottom: 20px;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.projects-section .project-card:hover {
  -webkit-transform: scale(1.07);
  transform: scale(1.07);
}

.projects-section .project-image-wrapper {
  height: 150px;
}

.projects-section .project-detail {
  padding: 20px;
}

.projects-section .project-detail {
  height: 150px;
  overflow: hidden;
}

.projects-section .project-description {
  color: gray;
  margin-bottom: 0;
  font-size: 14px;
}

.projects-section .project-techs {
  display: flex;
  border-top: 2px solid #f1f1f1;
  padding-top: 20px;
}
.projects-section .project-techs {
  padding: 20px;
}

.projects-section img.project-tech {
  cursor: pointer;
  height: 25px;
  margin-right: 10px;
  width: 25px;
}

.img-thumbnail {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.25rem;
}

/* Contact Me */

.contact-section {
  margin-top: 120px;
  margin-bottom: 120px;
}

.contact-section h2 {
  text-align: center;
}
.contact-section .contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-section .contact-card {
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 0 10px #f5f5f5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding: 50px;
  text-align: center;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.contact-section .contact-card-detail .contact-heading {
  font-size: large;
  font-weight: 700;
}

.contact-section .contact-card-detail {
  margin-top: 30px;
}

.contact-section .contact-card-detail p {
  margin-bottom: 1rem;
}

.contact-section .contact-card:hover {
  background-color: #673ab766;
  -webkit-transform: scale(1.07);
  transform: scale(1.07);
  transition-duration: 0.2s;
}

.contact-section .contacts img {
  width: 64px;
}

.contact-section a {
  color: #000;
}

/* Responsiveness */

@media (max-width: 1124px) {
  .left-content h1 {
    font-size: 40px;
  }

  .left-content .my-title {
    font-size: 30px;
  }

  .projects-section .project-image-wrapper {
    height: 110px;
  }

  h3 {
    font-size: 16px;
  }
}

/* projects responsive */
@media (max-width: 1000px) {
  .projects-container {
    grid-template-columns: 40% 40%;
  }

  .projects-section .project-image-wrapper {
    height: 168px;
  }

  .skill p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .skills-wrapper {
    padding-top: 120px;
  }
  .sticky .header-wrapper {
    padding: 0;
  }
  .projects-container {
    grid-template-columns: 70%;
  }

  .projects-section .project-image-wrapper {
    height: 230px;
  }

  .projects-section .project-detail {
    height: 102px;
  }

  .hero-content-wrapper {
    padding-bottom: 50px;
  }
}

@media (max-width: 440px) {
  .projects-container {
    grid-template-columns: 90%;
  }

  .projects-section .project-image-wrapper {
    height: 180px;
  }
  .hero-image-wrapper {
    height: 250px;
    width: 250px;
  }
  .left-content h1 {
    font-size: 30px;
  }
  .wave {
    display: block;
    text-align: center;
    padding: 0.5rem 0;
  }

  .left-content .my-title {
    font-size: 22px;
  }
  .lead {
    font-size: 16px;
  }

  .section-heading {
    font-size: 28px;
  }

  .right-img {
    padding-bottom: 36px;
  }

  .contact-section .contact-card {
    width: 100%;
  }
}
