/* 
font-family: 'Montserrat', sans-serif;
font-family: 'Ubuntu', sans-serif;
font-family: 'Sacramento', cursive;

color: #eaf7fd; - Alice Blue (skills cards)
color: #5fa6ba; - Shakespeare Blue (h1, footer, form input borders)
*/

/* ==== GENERAL ==== */
/* ================================================================ */
* {
  margin: 0;
  padding: 0;
}

html,
body {
  /* to fix navbar's width > body width  */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #fdfdfd;
  color: #54686e;
  position: relative;
  scroll-behavior: smooth;
}

h1 {
  font-family: "Ubuntu", sans-serif;
  /* font-family: "Sacramento", cursive; */
  font-size: 3rem;
  line-height: 2;
  color: #5fa6ba;
}

h3 {
  font-family: "Ubuntu", sans-serif;
  line-height: 2;
}

h5 {
  font-family: "Ubuntu", sans-serif;
  line-height: 2.3;
}

p {
  line-height: 2;
}

.teal {
  color: #5fa6ba;
}

a.teal:hover {
  color: #5fa6ba;
  opacity: 0.7;
  text-decoration: none;
}

.bold {
  font-weight: 600;
}

@media (max-width: 576px) {
  h1 {
    font-size: 3rem;
  }
  p {
    font-size: 1rem;
  }
}

/* ==== NAVIGATION BAR ==== */
/* ================================================================ */

#main-nav {
  padding: 2rem 8%;
}

.navbar-expand-sm {
  max-width: 100%;
}

.navbar-light .navbar-nav .nav-link {
  font-family: "Ubuntu", sans-serif;
  font-weight: bold;
}

.navbar-light .navbar-nav .nav-link:hover {
  /* color: rgba(0, 0, 0, 0.75); */
  color: #5fa6ba;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
  /* color: rgba(0, 0, 0, 0.75); */
  color: #5fa6ba;
}

.buttonHidden {
  display: none;
}

.navbar-brand {
  font-family: "Sacramento", cursive;
  color: #54686e !important;
  font-weight: bold;
  font-size: 2rem;
}

/* ==== HERO ====  */
#hero {
  background: url("../images/fall-girl.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-text {
  padding: 15% 9%;
}

.hero-text h1 {
  font-family: "Sacramento", cursive;
  /* font-family: "Ubuntu", sans-serif; */
  font-size: 5rem;
  line-height: 1.3;
  color: #54686e;
}

.hero-text h5 {
  max-width: 500px;
  padding-left: 0.3rem;
  color: #54686e;
}

@media (max-width: 768px) {
  .hero-text {
    padding: 25% 9%;
  }
}

@media (max-width: 576px) {
  .hero-text {
    padding: 25% 9%;
  }
  .hero-text h1 {
    max-width: 90%;
    font-size: 3.7rem;
  }
  .hero-text h5 {
    max-width: 90%;
  }
}

/* === Leaves Animation Section === */
/* ================================= */
.leaves {
  width: 60px;
}

.leaves2 {
  width: 70px;
}

@media (max-width: 400px) {
  .leaves {
    width: 40px;
  }
}

.set {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.set div {
  position: absolute;
  display: block;
}

.set div:nth-child(1) {
  top: 10%;
  animation: animate1 15s linear infinite;
  animation-delay: -7s;
}

.set div:nth-child(2) {
  top: 10%;
  animation: animate2 20s linear infinite;
  animation-delay: -5s;
}

.set div:nth-child(3) {
  top: 10%;
  animation: animate3 14s linear infinite;
}

.set div:nth-child(4) {
  top: 10%;
  animation: animate4 17s linear infinite;
  animation-delay: -10s;
}

.set div:nth-child(5) {
  top: 0%;
  animation: animate5 22s linear infinite;
  animation-delay: -7s;
}

.set div:nth-child(6) {
  top: 2%;
  animation: animate6 15s linear infinite;
}

.set div:nth-child(7) {
  top: -10%;
  animation: animate7 16s linear infinite;
  animation-delay: -5s;
}

.set div:nth-child(8) {
  top: 7%;
  animation: animate8 14s linear infinite;
  animation-delay: -8s;
}

.set div:nth-child(9) {
  top: -5%;
  animation: animate9 17s linear infinite;
  animation-delay: -10s;
}

.set div:nth-child(10) {
  top: -10%;
  animation: animate10 22s linear infinite;
}

.set div:nth-child(11) {
  top: 10%;
  animation: animate11 15s linear infinite;
  animation-delay: -7s;
}

.set div:nth-child(12) {
  top: 10%;
  animation: animate12 20s linear infinite;
  animation-delay: -5s;
}

.set div:nth-child(13) {
  top: 10%;
  animation: animate13 14s linear infinite;
}

.set div:nth-child(14) {
  top: 10%;
  animation: animate14 17s linear infinite;
  animation-delay: -10s;
}

.set div:nth-child(15) {
  top: 0%;
  animation: animate15 22s linear infinite;
  animation-delay: -7s;
}

/* Animate1  */
@keyframes animate1 {
  0% {
    opacity: 0.5;
    top: 2%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 65%;
    left: 50%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 100%;
    left: 120%;
    transform: translateX(-20px) rotate(225deg);
  }
}

/* Animate2  */
@keyframes animate2 {
  0% {
    opacity: 0.5;
    top: -5%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 50%;
    left: 60%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 120%;
    left: 120%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate3  */
@keyframes animate3 {
  0% {
    opacity: 0.5;
    top: 0%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 55%;
    left: 60%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 110%;
    left: 110%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate4  */
@keyframes animate4 {
  0% {
    opacity: 0.5;
    top: 10%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 70%;
    left: 70%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 120%;
    left: 120%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate5  */
@keyframes animate5 {
  0% {
    opacity: 0.5;
    top: 5%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 60%;
    left: 55%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 120%;
    left: 120%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate6  */
@keyframes animate6 {
  0% {
    opacity: 0.5;
    top: 2%;
    left: -5%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 60%;
    left: 70%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 110%;
    left: 110%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate7  */
@keyframes animate7 {
  0% {
    opacity: 0.5;
    top: -10%;
    left: 0%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 40%;
    left: 45%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 110%;
    left: 110%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate8  */
@keyframes animate8 {
  0% {
    opacity: 0.5;
    top: 7%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 65%;
    left: 50%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 120%;
    left: 120%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate9  */
@keyframes animate9 {
  0% {
    opacity: 0.5;
    top: -5%;
    left: 7%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 34%;
    left: 50%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 120%;
    left: 120%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate10  */
@keyframes animate10 {
  0% {
    opacity: 0.5;
    top: -10%;
    left: 4%;
    transform: translateX(020px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 70%;
    left: 65%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 100%;
    left: 120%;
    transform: translateX(-20px) rotate(225deg);
  }
}

/* Animate1  */
@keyframes animate11 {
  0% {
    opacity: 0.5;
    top: 2%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 55%;
    left: 60%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 110%;
    left: 110%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate12  */
@keyframes animate12 {
  0% {
    opacity: 0.5;
    top: -5%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 30%;
    left: 40%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 120%;
    left: 120%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate13  */
@keyframes animate13 {
  0% {
    opacity: 0.5;
    top: 0%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 75%;
    left: 65%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 110%;
    left: 110%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate14  */
@keyframes animate14 {
  0% {
    opacity: 0.5;
    top: 10%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 55%;
    left: 60%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 120%;
    left: 120%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* Animate15  */
@keyframes animate15 {
  0% {
    opacity: 0.5;
    top: 5%;
    left: -10%;
    transform: translateX(20px) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateX(-20px) rotate(45deg);
  }
  40% {
    top: 80%;
    left: 65%;
    transform: translateX(-20px) rotate(90deg);
  }
  60% {
    transform: translateX(-20px) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) rotate(180deg);
  }
  100% {
    top: 120%;
    left: 120%;
    /* transform: translateX(-20px) rotate(225deg); */
  }
}

/* ==== ABOUT ==== */
/* ================================================================ */

#about {
  padding: 8%;
  height: auto;
  overflow-x: hidden;
}

/* ==== Hello ==== */

.hello-img {
  width: 10rem;
  border-radius: 50%;
}

.hello-title {
  margin: 2rem 0 0 0;
  color: #5fa6ba;
}

.hello-text {
  max-width: 80%;
  margin: auto;
}

.hello-socmed {
  margin: 2rem 0;
}

.hello-socmed .fab {
  margin: 0 0.5rem;
}

.hello-socmed a .fab {
  color: #54686e;
}

.hello-socmed a .fab:hover {
  color: #5fa6ba;
}

.btn-blue {
  background-color: #5fa6ba;
}

@media (max-width: 576px) {
  .hello-img {
    width: 10rem;
    border-radius: 100%;
  }
  .hello-text {
    max-width: 98%;
  }
}

/* ==== Skills ==== */

.skills-title {
  margin: 8% 0 4%;
  color: #5fa6ba;
}

/* .skills {
  position: relative;
} */

.skills,
.skill-flip-box1,
.skill-flip-box2,
.front,
.back {
  width: 100%;
  height: 500px;
  /* border: 1px solid #5fa6ba; */
}

.skill-icon {
  padding: 1rem 2rem;
  color: #54686e;
}

.skills h5 {
  margin: auto;
  padding: 2rem 2rem 0;
}

.skill-flip-box1,
.skill-flip-box2 {
  margin: 0 auto;
}

#designer,
#developer {
  padding: 0;
}

#web-developer {
  background: url("../images/skill-dev-dgrey.jpg");
  background-position: center;
  background-size: cover;
}

#web-designer {
  background: url("../images/skill-designer-bgrey.jpg");
  background-position: center;
  background-size: cover;
}

.front,
.back {
  margin: auto;
  padding: 2rem;
  position: absolute;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.skills {
  -moz-perspective: 1200px;
  -webkit-perspective: 1200px;
  perspective: 1200px;
}

.skill-flip-box1,
.skill-flip-box2 {
  /* background-color: #eaf7fd; */
  transition: all 0.5s ease-out;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.front {
  background-color: #eaf7fd;
}

.front h3 {
  padding: 5% 2rem 0;
}

.front p,
.back p {
  font-size: 0.9rem;
  padding: 0 2rem 1rem;
  margin: auto;
  line-height: 1.8;
}

.back {
  background-color: #eaf7fd;
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.flipped {
  -webkit-transform: rotateY(-180deg);
  -moz-transform: rotateY(-180deg);
  -ms-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}

.r-wrap {
  position: absolute;
  left: 90%;
  top: 20%;
}

.b-round1,
.s-round1,
.b-round2,
.s-round2 {
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* background-color: #ec7320; */
  background-color: #f06766;
  transition: all 0.2s linear;
}

.b-round1,
.b-round2 {
  opacity: 0;
  /* background-color: #ec7320; */
  background-color: #f06766;
}

.b-round-hover1,
.b-round-hover2 {
  transform: scale(1.37);
  opacity: 0.4;
}

.b-round-back-hover1,
.b-round-back-hover2 {
  /* background-color: #f08f4d; */
  background-color: #f59d9d;
}

.s-round-click1,
.s-round-click2 {
  transform: scale(1.7);
}

.s-round-back1,
.s-round-back2 {
  /* background-color: #c30c3d; */
  /* background-color: #e57224; */
  background-color: #f38585;
}

.s-arrow1,
.s-arrow2 {
  width: 52px;
  height: 52px;
  background-image: url("https://img-fotki.yandex.ru/get/194549/29644339.5/0_d6c60_1d7815f0_orig");
  background-color: transparent;
  transition: all 0.35s linear;
}

.s-arrow-rotate1,
.s-arrow-rotate2 {
  transform: rotate(-180deg);
}

/* ==== #ABOUT responsive display === */

@media (max-width: 992px) {
  #designer,
  #developer {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .col-md-12.skills {
    padding: 0;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  #about {
    padding: 15% 8%;
  }
  .front h3,
  .front p,
  .skills h5,
  .skills p {
    padding: 5% 0.1rem 0;
  }
  .r-wrap {
    left: 93%;
  }
}

/* ==== PROJECTS ====  */
/* ================================================================ */
#projects {
  padding: 8%;
  height: auto;
}

.projects-title {
  margin-bottom: 4%;
  line-height: 2;
}

.projects-box .projects-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  display: none;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background-color: rgba(234, 247, 253, 1);
  color: #6d7577;
  padding: 8%;
}

.projects-box:hover .projects-desc {
  display: block;
  animation: fadein 2s;
}

.projects-img img {
  /* width: auto;
  height: 300px; */
  align-content: center;
}

.project-tags {
  line-height: 1.2;
  font-size: 0.7rem;
}

.desc-text {
  font-size: 0.8rem;
  line-height: 1.5;
}

.btn-custom {
  background-color: #222a2d;
  color: #ffffff;
}

.projects-desc > a:hover {
  background-color: transparent;
  color: #222a2d;
  border: 1px solid #222a2d;
}

@media (max-width: 1200px) {
  .projects-desc h4 {
    font-size: 1rem;
  }
  .project-tags {
    font-size: 0.6rem;
  }
  .desc-text,
  .projects-desc a {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .projects-box .projects-desc {
    padding: 4.3%;
  }
}

/* ==== CONTACT ====  */
/* ================================================================ */
#contact {
  padding: 8%;
  height: auto;
  /* color: #54686e; */
}

#contact h4 {
  margin: 2% 0;
}

.contact-text {
  margin-bottom: 0;
}

.contact-form {
  margin: 3% auto;
  width: 50%;
}

.form-control {
  margin: 3px 0;
  border: 1px solid #5fa6ba;
  border-radius: 0;
  color: #54686e;
  text-align: left;
  background-clip: unset;
  font-size: 0.9rem;
  line-height: 2;
}

.available {
  color: #5fa6ba;
}

input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
}

/* @media (max-width: 768px) {
  .contact-form {
    margin: 3% auto;
    width: 80%;
  }
} */

@media (max-width: 576px) {
  .contact-form {
    margin: 3% auto;
    width: 95%;
  }
}

.btn-outline-custom {
  background-color: transparent;
  border-color: #5fa6ba;
  border-radius: 0;
  color: #54686e;
  margin-top: 5px;
  font-size: 0.9rem;
}

.btn-outline-custom:hover {
  background-color: #5fa6ba;
  color: #ffffff;
}

/* ==== FOOTER ====  */
/* ================================================================ */
#footer {
  padding: 3%;
  height: auto;
  /* background-color: #161b1d; */
  background-color: #5fa6ba;
  color: #fdfdfd;
}

/* Social media  */
.socmed {
  margin: 0 auto 1%;
}

.socmed .fab {
  margin: 0 0.5rem;
}

.socmed a .fab {
  color: #fdfdfd;
}

.socmed a .fab:hover {
  color: #6d7577;
}

.copy {
  padding-bottom: 0;
  margin: 0;
}

@media (max-width: 576px) {
  #footer {
    padding: 5% 1%;
  }
}

/* ==== THANK YOU ====  */
/* =======================================================================  */
#thankyou {
  padding-top: 8%;
  height: 90vh;
  background-color: rgba(95, 166, 186, 0.1);
}

#thankyou img {
  width: 30%;
  display: block;
  margin: 10% auto 0;
}

@media (max-width: 768px) {
  #thankyou {
    height: 90vh;
  }
  #thankyou img {
    width: 35%;
    display: block;
    margin: 15% auto 0;
  }
}

@media (max-width: 576px) {
  #thankyou img {
    width: 50%;
    display: block;
    margin: 20% auto 0;
  }

  #thankyou h5 {
    font-size: 1rem;
    width: 80%;
    display: block;
    margin: 0 auto;
    line-height: 1.7;
  }
}

/* ============== RESUME PAGE ==============  */
/* ========================================= */
#resume {
  padding: 8% 0;
  background-color: rgba(95, 166, 186, 0.1);
}

#resume h3 {
  line-height: 1;
}

#resume h5 {
  line-height: 1.3;
}

#res-contact {
  font-weight: 600;
  line-height: 1.4;
}

.res-list > ul {
  padding: 0 2rem;
}

#res-skills p {
  line-height: 1.5;
}

.edu-courses {
  color: #6d7577;
  font-size: small;
}

@media (max-width: 768px) {
  #resume {
    padding: 15% 5%;
  }
}

@media (max-width: 576px) {
  #resume {
    padding: 20% 3%;
  }
}
