html {
  overflow-x: hidden;
}

body {
  margin: 0;
  text-align: center;
  overflow-x: hidden;
}

h1 {
  margin: 0;
}

/******************************************** NAV **************************************************/
nav {
  background: #e1701a;
  padding: 3rem 10rem 0;
  font-family: 'Montserrat', sans-serif;
}

nav a {
  text-decoration: none;
  color: antiquewhite;
  margin: 0 2rem;
  transition: 0.2s;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 0.5rem 1rem;
}

nav a:hover {
  color: #e1701a;
  background-color: antiquewhite;
}

@media (max-width: 769px) {
  nav a {
    margin: 0 1rem;
  }
}

@media (max-width: 500px) {
  nav {
    padding: 3rem 2rem 0;
  }
}

@media (max-width: 413px) {
  nav {
    padding: 3rem 0 0;
  }

  nav a {
    margin: 0 0;
  }
}

@media (max-width: 321px) {
  nav a {
    font-size: 13px !important;
  }
}

/******************************************** INTRO SECTION **************************************************/
#intro-section {
  min-height: 100vh;
  background: #e1701a;
  padding: 10rem 10rem 0;
}

:root {
  --typewriterSpeed: 4s;
}

.intro-div {
  display: grid;
  place-content: center;
  text-align: center;
}

.title {
  font-size: 3rem;
  position: relative;
  font-family: 'Source Code Pro', monospace;
  color: antiquewhite;
}

.title::before, .title::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.title::before {
  background: #e1701a;
  animation: typewriter var(--typewriterSpeed) steps(23) 2s forwards;
}

.title::after {
  width: 5px;
  background: antiquewhite;
  animation: typewriter var(--typewriterSpeed) steps(23) 2s forwards, blink 750ms steps(23) infinite;
}

.subtitle {
  color: antiquewhite;
  margin-top: 7rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(3rem);
  animation: fadeInUp 2s ease calc(var(--typewriterSpeed) + 2.5s) forwards;
}

#intro-section i {
  color: antiquewhite;
  margin-top: 7rem;
  opacity: 0;
  transform: translateY(-3rem);
  animation: fadeInUp 2s ease calc(var(--typewriterSpeed) + 3.8s) forwards, upDown 1.5s ease 4s infinite;
  position: relative;
}

#intro-section a {
  color: antiquewhite;
  display: inline;
}

#intro-section a:hover {
  color: antiquewhite;
}

@keyframes typewriter {
  to {
    left: 100%;
  }
}

@keyframes blink {
  to {
    background: transparent;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes upDown {
  0% {
    top: 0px;
    bottom: 0px
  }

  50% {
    top: 20px;
    bottom: 0px
  }

  100% {
    top: 0px;
    bottom: 20px
  }
}

@media (max-width: 769px) {
  #intro-section {
    padding: 10rem 10rem 5rem;
  }

  .title {
    font-size: 2.5rem;
    line-height: 2;
  }

  .title::before, .title::after {
    position: static;
    content: "";
  }

  .title::before {
    animation: none;
  }

  .title::after {
    animation: none;
  }

  .subtitle {
    font-size: 1.5rem;
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }

  #intro-section i {
    opacity: 1;
    transform: translateY(0);
    animation: upDown 1.5s ease 0s infinite;
  }
}

@media (max-width: 500px) {
  #intro-section {
    padding: 10rem 5rem 5rem;
  }
}

@media (max-width: 394px) {
  #intro-section {
    padding: 5rem 1rem 5rem;
  }
}

/******************************************** EXTENDED INTRO SECTION **************************************************/
#ex-intro-section {
  background: antiquewhite;
  min-height: 100vh;
  padding: 0 10rem;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
}

.specialization {
  color: #e1701a;
  font-size: 3rem;
  line-height: 2;
  margin-bottom: 8rem;
}

.icon {
  display: flex;
  align-items: center;
}

.icon img {
  width: 30%;
  margin: 0 auto;
  transition: 0.3s;
}

.icon img:hover {
  transform: scale(1.1);
}

.pc-icon img {
  width: 40%;
}

@media (max-width: 1281px) {
  #ex-intro-section {
    padding: 5rem;
  }
}

@media (max-width: 1025px) {
  .icon img {
    width: 50%;
  }

  .pc-icon img {
    width: 60%;
  }
}

@media (max-width: 769px) {
  .specialization {
    font-size: 2.5rem;
  }
}

@media (max-width: 500px) {
  .icon img {
    width: 70%;
  }

  .pc-icon img {
    width: 80%;
  }

  .pc-icon {
    margin-bottom: 5rem;
  }

  .specialization {
    margin-bottom: 4rem;
  }
}

@media (max-width: 413px) {
  #ex-intro-section {
    padding: 5rem 1rem;
  }

  .specialization {
    font-size: 2rem;
  }
}

/******************************************** MY PROJECTS SECTION **************************************************/
#my-projects {
  background: #378dc8;
  min-height: 100vh;
  padding: 0 10rem;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  color: antiquewhite;
}

#my-projects div {
  text-align: center;
  margin: auto;
}

#my-projects h1 {
  font-size: 3rem;
  margin: 10rem 0;
}

#my-projects hr {
  position: relative;
  border-bottom: 5px white solid;
  opacity: 0.7;
}

@media (max-width: 1281px) {
  #my-projects {
    padding: 5rem;
  }
}

@media (max-width: 1020px) {
  #my-projects hr {
    display: none;
  }
}

@media (max-width: 413px) {
  #my-projects {
    padding: 5rem 1rem;
  }

  #my-projects h1 {
    font-size: 2rem;
  }
}

/************************************************ PROJECTS SECTION *************************************************/
#projects {
  background: #e1701a;
  min-height: 100vh;
  padding: 8rem 15rem;
  font-family: 'Montserrat', sans-serif;
  color: antiquewhite;
}

#projects h1 {
  margin-bottom: 2rem;
  font-size: 3rem;
  margin-top: 10rem;
}

#projects img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12), 0 16px 16px rgba(0, 0, 0, 0.12);
}

.h1-top {
  margin-top: 0 !important;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.outer {
  position: relative;
}

.inner {
  background: antiquewhite;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  width: 0;
  height: 100%;
  transition: .5s ease;
  border-radius: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12), 0 16px 16px rgba(0, 0, 0, 0.12);
}

.right-slide {
  position: absolute;
  bottom: 0;
  left: 100%;
  right: 0;
  background: antiquewhite;
  overflow: hidden;
  width: 0;
  height: 100%;
  transition: .5s ease;
  border-radius: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12), 0 16px 16px rgba(0, 0, 0, 0.12);
}

.outer:hover .inner {
  width: 100%;
}

.outer:hover .right-slide {
  width: 100%;
  left: 0;
}

.text {
  white-space: nowrap;
  color: #e1701a;
  font-size: 20px;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

#projects button {
  font-size: 1rem;
  background-color: #e1701a;
  margin-top: 5rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: 0.2s;
}

#projects a {
  color: antiquewhite;
  text-decoration: none;
}

#projects button:focus {
  box-shadow: none;
}

@media (max-width: 1281px) {
  #projects {
    padding: 8rem 10rem;
  }
}

@media (max-width: 1025px) {
  #projects {
    padding: 8rem 7rem;
  }

  .wch {
    content: url(images/wch-md.jpg);
  }

  .ids {
    content: url(images/ids-md.jpg);
  }

  .ws {
    content: url(images/ws-md.jpg);
  }

  .sg {
    content: url(images/sg-md.jpg);
  }
}

@media (max-width: 769px) {
  #projects h1 {
    font-size: 2.5rem;
  }

  .left, .right {
    text-align: center;
  }
}

@media (max-width: 500px) {
  #projects {
    padding: 5rem 0;
  }

  .wch {
    content: url(images/wch-sm.jpg);
  }

  .ids {
    content: url(images/ids-sm.jpg);
  }

  .ws {
    content: url(images/ws-sm.jpg);
  }

  .sg {
    content: url(images/sg-sm.jpg);
  }

  #projects h1 {
    font-size: 2rem;
  }

  #projects img {
    border-radius: 0;
  }

  .inner, .right-slide {
    border-radius: 0 !important;
  }
}

@media (max-width: 413px) {
  #projects button {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 321px) {
  #projects h1 {
    font-size: 1.5rem;
  }
}

/******************************************** MY SKILLS SECTION **************************************************/
#my-skills {
  background: #378dc8;
  min-height: 100vh;
  padding: 0 10rem;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  color: antiquewhite;
}

#my-skills div {
  text-align: center;
  margin: auto;
}

#my-skills h1 {
  font-size: 3rem;
  margin: 10rem 0;
}

#my-skills hr {
  position: relative;
  border-bottom: 5px white solid;
  opacity: 0.7;
}

@media (max-width: 1281px) {
  #my-skills {
    padding: 5rem;
  }
}

@media (max-width: 1020px) {
  #my-skills hr {
    display: none;
  }
}

@media (max-width: 413px) {
  #my-skills h1 {
    font-size: 2rem;
  }
}

/******************************************** SKILLS SECTION **************************************************/
#skills {
  background: antiquewhite;
  min-height: 100vh;
  padding: 8rem 10rem;
  font-family: 'Montserrat', sans-serif;
}

#skills h1 {
  color: #e1701a;
  margin-bottom: 3rem;
  border-bottom: 4px #e1701a solid;
  padding-bottom: 1rem;
  font-weight: bold;
}

#skills .frontend {
  text-align: left;
}

#skills .backend {
  text-align: right;
}

#skills li {
  background: antiquewhite;
  border-left: none;
  border-right: none;
  font-size: 1.8rem;
  transition: 0.2s;
}

#skills li:hover {
  background: black;
  color: antiquewhite;
}

#skills .frontend-list {
  text-align: left;
  margin-bottom: 10rem;
}

#skills .frontend-list li:hover {
  transform: translateX(30px);
}

#skills .backend-list {
  text-align: right;
}

#skills .backend-list li:hover {
  transform: translateX(-30px);
}

#skills .first {
  border-top: none !important;
}

#skills .last {
  border-bottom: none !important;
}

#skills .fa-star {
  color: gold;
}

@media (max-width: 769px) {
  #skills {
    padding: 8rem 7rem;
  }
}

@media (max-width: 500px) {
  #skills {
    padding: 8rem 3rem;
  }

  #skills li {
    font-size: 1.5rem;
  }
}

@media (max-width: 413px) {
  #skills {
    padding: 8rem 1rem;
  }
}

/******************************************** CONTACT SECTION **************************************************/
#contact {
  background: #e1701a;
  min-height: 100vh;
  padding: 8rem 10rem 2rem;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  color: antiquewhite;
}

#contact div {
  margin-left: auto;
  margin-right: auto;
}

#contact h1 {
  font-size: 3rem;
}

#contact h3 {
  margin: 7rem auto;
}

#contact button {
  background: antiquewhite;
  color: #e1701a;
  font-weight: bold;
  transition: 0.5s;
  width: 10rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12), 0 16px 16px rgba(0, 0, 0, 0.12);
}

#contact button:focus {
  box-shadow: none !important;
}

.social-bar {
  margin-top: 8rem;
}

#contact a {
  margin-left: 1rem;
  margin-right: 1rem;
  color: antiquewhite;
}

@media (max-width: 769px) {
  #contact h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 500px) {
  #contact {
    padding: 8rem 3rem 2rem;
  }
}

@media (max-width: 321px) {
  #contact {
    padding: 8rem 1rem 2rem;
  }
}

/******************************************** SCROLL TO TOP BUTTON *******************************************/
#scrollToTop {
  color: #e1701a;
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 99;
  background: antiquewhite;
  border: 2px #e1701a solid;
  transition: 0.2s;
  display: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12), 0 16px 16px rgba(0, 0, 0, 0.12);
}

#scrollToTop:focus {
  box-shadow: none !important;
}

#scrollToTop:hover {
  transform: scale(1.05);
}

@media (max-width: 500px) {
  #scrollToTop {
    bottom: 5px;
    right: 5px;
    transform: scale(0.8);
  }

  #scrollToTop:focus {
    transform: scale(0.8);
  }
}

@media (max-width: 394px) {
  #scrollToTop {
    transform: scale(0.5);
  }

  #scrollToTop:focus {
    transform: scale(0.5);
  }
}
