@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Sen:wght@400..800&display=swap");

@font-face {
  font-family: "CooperHewitt";
  src: url("CooperHewitt-Book.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-drag: none;
}

.prevent-select {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  background-image: linear-gradient(to right, #081b29, #0a2a3d);
  overflow-x: hidden;
  font-family: "Open Sans";
  border: 2px solid rgb(114, 98, 68);
  margin: 15px;
  margin-top: 20px;
}

html {
  scroll-behavior: smooth;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  gap: 150px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  color: white;
  max-width: 1000px;
}

.contact-text h1 {
  font-size: 6em;
  font-weight: 600;
  color: rgb(254, 254, 254);
  animation: wipeRight 2s forwards;
  margin-left: -2px;
}

.contact-text h2 {
  font-size: 3em;
  font-weight: 400;
  color: #4aaeff;
  margin-bottom: 0.6em;
  opacity: 0;
  animation: wipeRight 2s forwards;
  animation-delay: 0.5s;
}

.contact-text p {
  font-family: "Montserrat";
  font-size: 1.2em;
  color: #ffffffea;
  line-height: 1.9em;
  opacity: 0;
  animation: wipeRight 2s forwards;
  animation-delay: 0.9s;
}

.contact-text p:nth-last-child(2) {
  margin-bottom: 1.5em;
  opacity: 0;
  animation: wipeRight 2s forwards;
  animation-delay: 0.7s;
}

.know-more {
  display: flex;
  margin-top: 2em;
  justify-content: space-around;
  align-items: center;
  gap: 50px;
  opacity: 0;
  max-width: fit-content;
  animation: reveal 1s forwards;
  animation-delay: 1.4s;
}

.know-more a {
  font-family: "Montserrat";
  font-size: 1.5em;
  color: #ffb64a;
  text-decoration: none;
  padding: 0.5em 1em;
  border: 2px solid #ffb64a;
  border-radius: 5px;
  transition: 0.5s;
  animation: inflate 2s ease-in-out;
  animation-delay: 1.8s;
}

@keyframes inflate {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

.know-more a:hover {
  background-color: #ffb64a;
  color: #081b29;
}

@keyframes reveal {
  100% {
    opacity: 1;
  }
}

@keyframes wipeRight {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.contact-img {
  position: relative;
  margin-top: -2em;
  transform: translateY(50px);
  z-index: 3;
}

.contact-img img {
  display: block;
  z-index: 2;
  margin-right: -40px;
  border-radius: 10px;
  transition: opacity 0.3s ease-in-out;
}

.contact-img .img-backdrop {
  position: absolute;
  top: -8px;
  left: -15px;
  z-index: 10;
  border-radius: 10px;
  box-shadow: 4px 4px 8px #2b2424;
  transition: opacity 0.4s ease-in-out;
}

.contact-img:hover img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.contact-img:hover .campfire {
  opacity: 1;
}

.campfire {
  position: absolute;
  top: 0;
  width: 500px;
  height: 600px;
  z-index: 0;
  opacity: 0;
  transform: translate(-15.5%, -35%);
}

.blinking {
  content: "";
  width: 117%;
  height: 0.23em;
  display: inline-block;
  margin-top: 1em;
  margin-left: -12px;
  animation: blinking 3s infinite;
}

.socials {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-top: 1em;
  padding-left: 2em;
  color: white;
}

svg {
  color: white;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  transition: ease-in-out 0.3s;
}

svg:hover {
  transition: ease-in-out 0.3s;
  transform: translateY(10.5px);
}

.tooltip-container {
  position: relative;
}

.tooltip-text {
  font-family: "Open Sans";
  width: 140px;
  background-color: none;
  border: rgb(247, 247, 247) 1px solid;
  color: rgb(255, 255, 255);
  text-align: center;
  border-radius: 5px;
  position: absolute;
  bottom: -170%;
  left: 50%;
  padding: 0.4em;
  margin-left: -70px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.linkedin:hover {
  color: rgb(122, 255, 255);
}

.linkedin-tooltip {
  border: rgb(122, 255, 255) 1px solid;
}

.facebook:hover {
  color: rgb(57, 161, 230);
}

.facebook-tooltip {
  border: rgb(57, 161, 230) 1px solid;
}

.github:hover {
  color: rgb(205, 125, 245);
}

.github-tooltip {
  border: rgb(205, 125, 245) 1px solid;
}

.contact-details {
  color: rgb(192, 180, 162);
  line-height: 32px;
  margin: 1.2em 0 -1em 0;
  opacity: 0;
  animation: wipeRight 1.7s forwards;
  animation-delay: 2.1s;
}

.combined {
  box-shadow: 0px 4px 4px #00000030, 0px 12px 12px #00000015;
}


@media (max-width: 768px) {

  html,
  body {
    height: 100%;

  }

  section {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .contact-img {
    grid-row: 1;
  }

  .contact-img {
    position: relative;
    margin: 0 auto;
    width: fit-content;
  }

  .contact-img img {
    display: block;
    z-index: 2;
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
    width: 200px;
    height: auto;
    margin: 0 auto;
    margin-right: -20px;
  }

  .contact-img .img-backdrop {
    position: absolute;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 4px 4px 8px #2b2424;
    transition: opacity 0.4s ease-in-out;
    width: 200px;
    height: auto;
    left: 50%;
    transform: translateX(-50%);

  }

  .campfire{

    opacity: 0;

  }

  .contact-text,
  .know-more,
  .contact-details {
    grid-row: auto;
    text-align: center;
  }

  .socials {
    justify-content: space-evenly;
    margin: 0.5em 0 3em 0;
  }


  .contact-text {
    font-size: 1em;
    padding: 1em;
  }

  .contact-text h1 {
    font-size: 2.8em;
  }

  .contact-text h2 {
    font-size: 1.1em;
    margin-bottom: 0.6em;

  }

  .contact-text p:nth-last-child(2) {
    margin-bottom: 1.5em;
    font-size: 0.9em;
  }

  .contact-text p {

    font-size: 1.1em;
  }

  .know-more a {
    transform: translate(55%, 0);
  }

  .contact-details {
    font-size: 0.9em;

  }

  footer {
   transform: translate(0, 400%);
   margin: 3em 0 2em 0;
  }

}
