body {
  background-color: rgb(223, 237, 237);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  animation: navbarin 1.5s ease-out;
  align-content: center;
}

@keyframes navbarin {
  from {
    transform: translateY(-70px);
  }
  to {
    transform: translateY(0px);
  }
}

.navbar .container .navbar-brand img {
  background-color: white;
  border-radius: 1rem;
}

.navbar .navbar-nav {
  margin: 0 4rem;
}

/* Hero */
.hero {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100%25' width='100%25'%3E%3Cdefs%3E%3Cpattern id='doodad' width='200' height='200' viewBox='0 0 40 40' patternUnits='userSpaceOnUse' patternTransform='rotate(135)'%3E%3Crect width='100%25' height='100%25' fill='rgba(223, 237, 237,1)'/%3E%3Ccircle cx='0' cy='20' r='1' fill='rgba(66, 118, 117,0.5)'/%3E%3Ccircle cx='40' cy='20' r='1' fill='rgba(66, 118, 117,0.5)'/%3E%3Cpath d='m 19.5 19.5 h1 v1 h-1z' fill='rgba(89, 103, 103,1)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23doodad)' height='200%25' width='200%25'/%3E%3C/svg%3E ");
}

.hero .img {
  margin-left: 7rem;
  margin-right: 5rem;
  width: 270px;
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.5);
  border-radius: 10rem;
  animation: img 1.5s ease-out;
}

@keyframes img {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.hero .intro {
  padding-top: 2rem;
  margin-right: 7rem;
}

.hero .intro .name {
  font-size: 280%;
  font-weight: 500;
  color: rgb(240, 255, 255);
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  background-color: rgba(66, 118, 117, 0.5);
  border-radius: 1rem 5rem 5rem 1rem;
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.5);
  animation: slideIn 1.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(14%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero .intro .desc {
  padding-top: 1rem;
  line-height: 2rem;
  font-weight: 600;
  animation: slideup 1.5s ease-out;
}

@keyframes slideup {
  from {
    transform: translateY(18%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Skill */
.skill {
  padding: 8.5rem 5rem;
  /* background-color: rgba(66, 118, 117, 0.5); */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100%25' width='100%25'%3E%3Cdefs%3E%3Cpattern id='doodad' width='200' height='200' viewBox='0 0 40 40' patternUnits='userSpaceOnUse' patternTransform=''%3E%3Crect width='100%25' height='100%25' fill='rgba(66, 118, 117,0.5)'/%3E%3Ccircle cx='0' cy='20' r='1' fill='rgba(223, 237, 237,1)'/%3E%3Ccircle cx='40' cy='20' r='1' fill='rgba(223, 237, 237,1)'/%3E%3Cpath d='m 19.5 19.5 h1 v1 h-1z' fill='rgba(89, 103, 103,1)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23doodad)' height='200%25' width='200%25'/%3E%3C/svg%3E ");
  box-shadow: 0 0 3rem rgba(66, 118, 117, 0.5);
}

.skill .container .row .col h2 {
  background-color: #ffff;
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.5);
  border-radius: 5rem;
  animation: appear ease-out;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.skill .skill-list {
  margin-top: 3rem;
}

.skill .skill-list .list-group {
  margin-bottom: 1rem;
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.5);
  animation: appear ease-out;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

/* Gallery */
.gallery {
  padding: 8.5rem 5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100%25' width='100%25'%3E%3Cdefs%3E%3Cpattern id='doodad' width='200' height='200' viewBox='0 0 40 40' patternUnits='userSpaceOnUse' patternTransform='rotate(135)'%3E%3Crect width='100%25' height='100%25' fill='rgba(223, 237, 237,1)'/%3E%3Ccircle cx='0' cy='20' r='1' fill='rgba(66, 118, 117,0.5)'/%3E%3Ccircle cx='40' cy='20' r='1' fill='rgba(66, 118, 117,0.5)'/%3E%3Cpath d='m 19.5 19.5 h1 v1 h-1z' fill='rgba(89, 103, 103,1)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23doodad)' height='200%25' width='200%25'/%3E%3C/svg%3E ");
  box-shadow: 0 0 3rem rgba(66, 118, 117, 0.5);
}

.gallery .container .row .col h2 {
  color: rgb(240, 255, 255);
  background-color: rgba(66, 118, 117, 0.5);
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.5);
  text-shadow: 1px 1px 2px rgba(1, 1, 3, 0.5);
  border-radius: 5rem;
  animation: appear ease-out;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.gallery .gallery-list {
  margin-top: 3rem;
}

.gallery .gallery-list .card {
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  animation: appear ease-out;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

#gallery1,
#gallery2,
#gallery3 {
  cursor: pointer;
  transition: 0.3s;
}

#gallery1:hover,
#gallery2:hover,
#gallery3:hover {
  opacity: 0.7;
}

.modal {
  display: none;
  position: fixed;
  z-index: 7000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.modal-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.close {
  position: fixed;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 9999;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Contact */
.contact {
  padding: 7rem 5rem;
  /* background-color: rgba(66, 118, 117, 0.5); */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100%25' width='100%25'%3E%3Cdefs%3E%3Cpattern id='doodad' width='200' height='200' viewBox='0 0 40 40' patternUnits='userSpaceOnUse' patternTransform=''%3E%3Crect width='100%25' height='100%25' fill='rgba(66, 118, 117,0.5)'/%3E%3Ccircle cx='0' cy='20' r='1' fill='rgba(223, 237, 237,1)'/%3E%3Ccircle cx='40' cy='20' r='1' fill='rgba(223, 237, 237,1)'/%3E%3Cpath d='m 19.5 19.5 h1 v1 h-1z' fill='rgba(89, 103, 103,1)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23doodad)' height='200%25' width='200%25'/%3E%3C/svg%3E ");
  box-shadow: 0 0 3rem rgba(66, 118, 117, 0.5);
}

.contact .container .row .col h2 {
  margin-bottom: 3rem;
  background-color: #ffff;
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.5);
  border-radius: 5rem;
  animation: appear ease-out;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.contact .contact-form {
  padding: 2rem 0rem;
  background-color: rgba(255, 255, 255);
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.5);
  border-radius: 1rem;
  animation: appear ease-out;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

.contact .contact-form .form .form-control {
  background-color: rgba(66, 118, 117, 0.5);
}

.form-control::placeholder {
  color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

/* PopUp Alert */
.popup-s,
.popup-f {
  display: none;
  position: fixed;
  z-index: 8000;
  padding-top: 0px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-content: center;
  background-color: rgba(0, 0, 0, 0.1);
}

.popup-content-s,
.popup-content-f {
  display: fixed;
  background-color: rgb(255, 255, 255, 0.8);
  border-radius: 2rem;
  margin: 5rem auto 200rem auto;
  padding: 10px;
  box-shadow: 0px 0px 5px rgba(1, 1, 3, 0.5);
  width: 20%;
  text-align: center;
  align-items: center;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

.popup-content-s img,
.popup-content-f img {
  margin-bottom: 1rem;
}

.popup-s .popup-content-s .closePopUpS,
.popup-f .popup-content-f .closePopUpF {
  margin-top: 2rem;
  font-size: 2rem;
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* Footer */
.footer {
  padding: 1rem;
  text-align: center;
  background-color: rgb(89, 103, 103);
  color: #ffff;
  box-shadow: 0px 0px 20px rgba(1, 1, 3, 0.5);
}

.footer .socials {
  padding: 0 0 0.8rem;
  font-size: 25px;
}

.footer .socials a {
  color: #fff;
  margin: 1rem;
  transition: color 0.3s ease;
}

.footer .socials a:hover {
  color: black;
}

.footer span {
  font-weight: bold;
  color: #ffff;
  text-decoration: none;
}

/* Scroll To Up Btn */
#scrollToTopBtn {
  display: block;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgb(86, 126, 122);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 25px;
  text-align: center;
  transition: opacity 0.3s linear, transform 0.3s ease;
  opacity: 0;
  z-index: 6000;
}

#scrollToTopBtn .STTicon {
  justify-content: center;
  align-items: center;
}

#scrollToTopBtn:hover {
  transform: translateY(-5px);
}

/* Appear Animation */
/* @keyframes appear {
  from {
    opacity: 0;
    transform: translateY(200px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
} */

/* Media Queries */

@media (max-width: 1230px) {
  .hero .intro .name {
    font-size: 199%;
  }
}

@media (max-width: 1199px) {
  .navbar .navbar-nav {
    margin: 0 2rem;
  }
}

@media (max-width: 991px) {
  html {
    font-size: 76%;
  }

  .navbar .container .navbar-brand strong {
    font-size: 1.5rem;
  }

  .navbar .navbar-nav {
    font-size: 1.5rem;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    padding: 0rem 1rem;
    text-align: center;
  }

  .hero .img {
    margin-right: 0rem;
    margin-left: 0rem;
    margin-top: 4rem;
    margin-bottom: 3rem;
    width: 200px;
  }

  @keyframes img {
    from {
      opacity: 0;
      transform: translateY(-100px);
    }
    to {
      opacity: 1;
      transform: translateX(0px);
    }
  }

  .hero .intro {
    margin-right: 0rem;
  }

  .hero .intro .name {
    border-radius: 5rem 5rem 5rem 5rem;
  }

  @keyframes slideIn {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .skill {
    padding: 7rem 2rem 10rem;
  }

  .gallery,
  .contact {
    padding: 7rem 2rem;
  }

  .modal-content {
    width: 90%;
  }

  .skill .container .row .col h2,
  .gallery .container .row .col h2,
  .contact .container .row .col h2 {
    font-size: 240%;
  }

  .skill .skill-list,
  .gallery .gallery-list {
    font-size: 139%;
  }

  .contact .contact-form {
    padding: 1rem 2rem;
  }

  .popup-content-s,
  .popup-content-f {
    width: 35%;
  }
}

@media (max-width: 720px) {
  .hero .img {
    margin-top: 2rem;
  }

  .hero .intro .name {
    text-shadow: 1px 1px 1px rgba(1, 1, 3, 0.5);
  }
}
