@font-face {
  font-family: 'HelveticaNeueLTPro';
  src: url('./fonts/HelveticaNeueLTProBdCn.otf') format('opentype');
}


* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Barlow', sans-serif;
  background-color: rgb(248,249,250);
}

.mt-5 {
  margin-top: 50px;
}

#menu_checkbox {
  display: none;
}

label {
  margin: 0 auto;
  display: none;
  width: 30px;
  height: 30px;
  transition: 0.3s ease transform;
  cursor: pointer;
}

label div {
  width: 6px;
  height: 6px;
  background-color: #000;
  margin-left: 0;
  margin-bottom: 6px;
  border-radius: 4px;
  transition: 0.3s ease width, 0.3s ease margin-left, 0.3s ease margin-bottom,
    0.3s ease background-color;
}

label div:first-child {
  width: 22px;
}

label div:nth-child(2) {
  width: 15px;
}

label div:last-child {
  width: 30px;
  margin-bottom: 0;
}

#menu_checkbox:checked + label {
  transform: translateY(-50%) rotateZ(-90deg);
}

#menu_checkbox:checked + label div {
  width: 6px;
  margin-bottom: 3px;
  background-color: #000;
}

.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 20px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.navbar-list {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-list li {
  position: relative;
  list-style: none;
  font-size: 18px;
  cursor: pointer;
}

.navbar-list li:not(:last-child) {
  margin-right: 32px;
}


.navbar-list li::after {
  content: "";
  position: absolute;
  height: 8px;
  width: 8px;
  background-color: rgb(101, 101, 101);
  border-radius: 50%;
  left: 50%;
  bottom: -15px;
  opacity: 0;
  transition: opacity .3s ease;
}

.navbar-list li:hover::after {
  opacity: 1;
  transition: opacity .3s ease;
}

.navbar-logo img {
  width: 200px;
  cursor: pointer;
}

.primary-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid #18181a;
  color: #18181a;
  display: inline-block;
  font-size: 15px;
  line-height: 15px;
  padding: 16px 16px 15px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-family: 'Barlow', sans-serif;

}

.primary-btn span:first-child {
  position: relative;
  transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
  z-index: 10;
}

.primary-btn span:last-child {
  color: white;
  display: block;
  position: absolute;
  bottom: 0;
  transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
  z-index: 100;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translateY(225%) translateX(-50%);
  height: 14px;
  line-height: 13px;
}

.primary-btn:after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  transform-origin: bottom center;
  transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
  transform: skewY(9.3deg) scaleY(0);
  z-index: 50;
}

.primary-btn:hover:after {
  transform-origin: bottom center;
  transform: skewY(9.3deg) scaleY(2);
}

.primary-btn:hover span:last-child {
  transform: translateX(-50%) translateY(-100%);
  opacity: 1;
  transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}

.main {
  position: relative;
  background-image: url('./assets/hero8.jpg');
  cursor: pointer;
  background-position: center;
  background-size: cover;
  filter: grayscale(100%);  
  background-repeat: no-repeat;
  height: calc(100vh - 100px);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  transition: filter 0.5s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main.active {
  filter: none;
}

.hero-text {
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.hero-text img {
  width: 250px;
}

.hero-text-left, .hero-text-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
}

.hero-text-right {
  text-align: left;
}

.quote-main {
  font-family: 'Dancing Script', cursive;
  color: white;
  padding-top: -30px;
  margin-top: -50px;
  text-align: center;
  font-size: 24px;
  position: absolute;
  left: 41%;
  top: 90%;
}

.heading {
  text-align: center;
  text-transform: uppercase;
  padding-bottom: 5px;
  font-size: 32px;
  position: relative;
  padding-top: 30px;
}
.heading:before {
  width: 28px;
  height: 5px;
  display: block;
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  margin-left: -14px;
  background-color: #000;
}
.heading:after {
  width: 100px;
  height: 1px;
  display: block;
  content: "";
  position: relative;
  margin-top: 25px;
  left: 50%;
  margin-left: -50px;
  background-color: #000;
}

.about {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.about-me {
  margin-top: 70px;
  display: flex;
  align-items: center;
}

.about-me .line-left {
  content: "";
  height: .7px;
  width: 35%;
  left: 10%;
  background-color: #000;
  position: absolute;
}

.about-me .line-right {
  content: "";
  height: .7px;
  width: 35%;
  right: 10%;
  background-color: #000;
  position: absolute;
}

.about-text {
  width: 80%;
  padding-top: 40px;
  font-size: 20px;
  text-align: justify;
  line-height: 1.7;
}

.about-text .about-name {
  display: block;
  text-align: center;
  font-size: 32px;
  text-transform: uppercase;
}

.about-text .about-desc {
  display: block;
  text-align: center;
  font-size: 24px;
  margin: 24px 0;
  text-transform: uppercase;
  color: #757575;
}

.about-text .about-desc .about-developer::after {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background-color: #757575;
  margin: 0px 12px;
  position: relative;
  display: inline-block;
  top: -5px;
}

.sign {
  display: block;
  text-align: center;
}

.quote {
  position: relative;
  clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
  height: calc(50vh - 50px);
  margin-top: 150px;
  overflow: hidden;
}

.quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  background-image: url('./assets/hero7.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(5px) grayscale(100%);
  z-index: -1;
  transition: filter 0.3s ease;
}

.quote.hovered::before {
  filter: none;
}

.quote-text {
  font-family: 'Dancing Script', cursive;
  position: absolute;
  color: white;
  font-size: 42px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.quote-img {
  position: relative;
  width: 20px;
}

.quote-img::before {
  content: "";
  height: 1px;
  width: 100px;
  background-color: #fff;
  position: absolute;
  top: 20px;
  left: 70px;
}

.quote-img::after {
  content: "";
  height: 1px;
  width: 100px;
  background-color: #fff;
  position: absolute;
  top: 20px;
  right: 60px;
}

.experience {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.cards-container {
  display: flex;
  gap: 40px;
  width: 80%;
  justify-content: space-between;
  margin-top: 100px;
  flex-wrap: wrap;
}

.card {
  position: relative;
  clip-path: polygon(10% 0, 100% 0, 100% 30%, 100% 85%, 90% 100%, 0 100%, 0% 70%, 0 15%);  
  background-color: #fff;
  height: 300px;
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
}

.clip-path-shadow {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-text {
  text-align: center;
  font-size: 20px;
}

.card-text > span {
  font-size: 32px;
  display: block;
  margin-top: 20px;
}

.connect {
  width: 0;
  background-color: #000;
  height: 1px;
  position: absolute;
  top: 56%;
  transition: width 3s;
  left: 10%;
}

.connect.active {
  width: 80%;
  transition: width 3s;
}

.experience::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background-color: rgb(101, 101, 101);
  left: 35%;
  top: 54.8%;
  z-index: 1;
}

.experience::after {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background-color: rgb(101, 101, 101);
  right: 34.7%;
  top: 54.8%;
}

.experience .primary-btn {
  margin-top: 30px;
  margin-bottom: 30px;
}

.skills {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.skill-cards-container {
  display: flex;
  gap: 40px;
  width: 80%;
  justify-content: space-between;
  margin: 100px 0 50px 0;
  flex-wrap: wrap;
}

.skill-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 300px;
  width: 300px;
  border: 1px solid #18181a;
  gap: 30px;
}

.skill-card div:last-child {
  color: white;
  display: block;
  position: absolute;
  bottom: 0;
  transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
  z-index: 100;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translateY(225%) translateX(-50%);
  height: 14px;
  line-height: 13px;
}

.skill-card:after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  transform-origin: bottom center;
  transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
  transform: skewY(9.3deg) scaleY(0);
  z-index: 50;
}

.skill-card:hover:after {
  transform-origin: bottom center;
  transform: skewY(9.3deg) scaleY(2);
}

.skill-card:hover div:last-child {
  transform: translateX(-50%) translateY(-100%);
  opacity: 1;
  transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}

.skill-title {
  font-size: 24px;
}

.skill-icon:not(:last-child) {
  margin-right: 10px;
}

.skill-subtitle {
  font-size: 13px;
  color: rgba(101, 101, 101);
}

.skill-icon-container {
  width: 100%;
  text-align: center;
}
.contact {
  display: flex;
  padding-bottom: 50px;
  
}
.contact-info {
  width: 50%;
  margin-left: 100px;
}
.contact-info .address {
  font-size: 20px;
}

.contact-info .address>* {
  margin-bottom: 10px;
  margin-top: 10px;
}

.email a {
  /* text-decoration: none; */
  color: black;
}
.socials {
  margin-top: 30px;
}
.socials img {
  cursor: pointer;
}
.contact-heading {
  text-align: left;
  text-transform: uppercase;
  padding-bottom: 5px;
  font-size: 32px;
  position: relative;
  /* padding-top: 30px; */
}
.contact-heading:before {
  width: 28px;
  height: 5px;
  display: block;
  content: "";
  position: absolute;
  top: 100px;
  left: 0;
  background-color: #000;
}
.contact-heading:after {
  width: 50px;
  height: 1px;
  display: block;
  content: "";
  position: relative;
  margin-top: 25px;
  left: 10px;
  background-color: #000;
}
.contact-form {
  width: 50%;
  margin-right: 100px;
}
.form-group {
  margin-bottom: 15px;
}

.form-group.message {
  margin-top: 40px;
}

.form-group.buttons {
  margin-bottom: 0;
  text-align: right;
}

.form-control {
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 1px solid #666;
  font-size: 14px;
  text-transform: uppercase;
  outline: none;
  transition: border-color .2s;
}

.form-control::placeholder {
  color: #666;
}

.form-control:focus {
  border-bottom-color: #ddd;
}

.contact-form textarea {
  min-height: 50px;
  max-height: 500px;
  white-space: pre-wrap;
  word-wrap: break-word;
  resize: vertical;
  overflow: hidden;
  font-family: inherit;
}

.form-button {
  margin-top: 50px;
  background: none;
  border: 1px solid black;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.form-button:hover {
  /* color: #b9134f; */
}

.footer {
  background-color: black;
  color: white;
  padding: 24px;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 2rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.loader.hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loader > * {
  color: black;
}
.loader span {
  display: inline-flex;
}
.loader span:nth-child(2) {
  letter-spacing: -1em;
  overflow: hidden;
  animation: reveal 1500ms cubic-bezier(0.645, 0.045, 0.355, 1) infinite
    alternate;
}
@keyframes reveal {
  0%,
  100% {
    opacity: 0.5;
    letter-spacing: -1em;
  }
  50% {
    opacity: 1;
    letter-spacing: 0em;
  }
}


@media only screen and (max-width: 1247px) {
  .experience::before, .experience::after, .connect {
    display: none;
  }
}

@media only screen and (max-width: 850px) {

  .main {
    height: 900px;
  }

  .navbar {
    flex-direction: column;
    height: 100px; 
    transition: all .5s ease;
  }

  .navbar-list {
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    transition: all .5s ease;
  }

  .navbar-list li {
    margin-right: 0 !important;
    margin-bottom: 32px;
  }

  .navbar .primary-btn {
    visibility: hidden;
    opacity: 0;
    margin-bottom: 20px;
    transition: all .5s ease;
  }
  
  label {
    display: block;
  }

  .logo-ham {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .navbar.active {
    height: 400px;
  }

  .navbar.active .navbar-list {
    opacity: 1;
    visibility: visible;
  }

  .navbar.active .primary-btn {
    visibility: visible;
    opacity: 1;
  }

  .name {
    font-size: 24px;
  }

  .desc {
    font-size: 24px;
  }
  
  .hero-text {
    flex-direction: column;
  }

  .hero-text-left {
    width: 100%;
  }

  .hero-text-right {
    margin-bottom: 170px;
  }

  .about {
    height: 900px;
    margin-top: -150px;
  }

  .about .heading {
    padding-top: 150px;
  }

}

@media only screen and (max-width: 820px) {
  .cards-container {
    justify-content: center;
  }

  .skill-cards-container {
    justify-content: center;
  }
  .about-text .about-desc {
    font-size: 20px;
  }
  .contact {
    flex-direction: column;
  }
  .contact-info {
    margin-left: 50px;
  }
  .contact-form {
    margin: 50px auto 0 auto;
    width: 80%;
  }
}

@media only screen and (max-width: 700px) {
  .about {
    height: 100%;
  }

  .about-text {
    text-align: left;
  }
}

@media only screen and (max-width: 605px) {
  .quote-text {
    font-size: 28px;
  }
}



@media only screen and (max-width: 435px) {
  .quote-text {
    width: 100%;
  }
}

@media only screen and (max-width: 360px) {
  /* .about {
    height: 1200px;
  } */
}