@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,600;1,300;1,600&display=swap");
html {
  height: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.4;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

a {
  text-decoration: none;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /* color: #ffffff; */
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 1rem 0;
}

/* Utilities */

/* navbar */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--overlay-color);
  padding: 0 20px;
  position: fixed;
  width: 100%;
  height: 60px;
  top: 0;
  z-index: 3;
  transition: 0.5s;
  opacity: 0;
  animation: navbar 2s forwards 0.6s;
}

/* keyframe navabr */
@keyframes navbar {
  to {
    opacity: 1;
  }
}

.navbar.top {
  background: transparent;
}

.navbar ul {
  list-style: none;
  display: flex;
}

.navbar ul li a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.25rem;
  padding: 10px 20px;
  margin: 0px 5px;
  color: #fff;
  transition: color 0.5s ease;
}

.navbar ul li a:hover,
.navbar ul li a.current {
  color: var(--hover-color);
}

.navbar ul li:last-child a {
  padding-right: 0px;
  margin-right: 0px;
}

/* navbar logo */
.navbar .logo {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.25rem;
}

.navbar .logo span {
  background: #fff;
  color: var(--primary-color);
  padding: 3px;
}

/* hero */
#hero {
  height: 100vh;
  background: url(../img/showcase-1.jpeg) no-repeat center center/cover;
  position: relative;
}

/* hero content */
#hero .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  color: #fff;
  margin: 0 150px;
}

#hero .content h1 {
  font-size: 3.5rem;
  line-height: 7.5rem;
  margin-bottom: 35px;
}

#hero .content h1::after {
  content: "";
  width: 100%;
  height: 2px;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 5px;
}

#hero .content p {
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 20px;
}

#hero .content .inner-content {
  width: 100%;
  z-index: 2;
  transform: translateX(-50px);
  animation: inner 3s forwards 0.2s;
  opacity: 0;
}

/* keyframe */
@keyframes inner {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#hero .content .inner-content > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

#hero::after {
  content: "";
  top: 0;
  left: 0;
  background: var(--overlay-color);
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}

#home > div {
  height: 100vh;
}

/* About */

#about {
  transition: all 1s ease;
}

#about h2 {
  margin-bottom: 25px;
}
#about p {
  margin-bottom: 20px;
  line-height: 1.8rem;
  letter-spacing: 0.07rem;
  font-size: 1.2rem;
}

#about .skills {
  display: flex;
  align-items: center;
  height: 60px;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

#about .skills h3 {
  margin: 0px;
}

#about p > span {
  color: var(--hover-color);
}

.about-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Resume */

#resume {
  height: auto;
  animation: resume 2s forwards;
  opacity: 0;
}

@keyframes resume {
  to {
    opacity: 2;
  }
}

#resume .resume-content {
  padding: 0px 30px 20px 30px;
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-content img {
  height: 1000px;
  max-width: 1050px;
  /* height: 700px;
  max-width: 900px; */
  box-shadow: -1px 0px 10px #000000;
  border-radius: 4px;
  cursor: pointer;
}

.resume-content a {
  margin: 10px;
  margin-top: 0px;
  align-self: flex-start;
}

/* contact */
#contact {
  padding-top: 90px;
  animation: contact 2s forwards;
  opacity: 0;
}

@keyframes contact {
  to {
    opacity: 2;
  }
}

#contact h2 {
  margin-bottom: 20px;
  transform: translateX(-50px);
  animation: contactH1 3s forwards 0.2s;
  opacity: 0;
}

/* keyframe */
@keyframes contactH1 {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#contact .container {
  max-width: 1110px;
  margin: auto;
  padding: 20px;
}

#contact .container > form {
  display: flex;
  flex-direction: column;
}

#contact .container > form > input,
#contact .container > form > textarea {
  margin-top: 22px;
  width: 100%;
  padding: 10px 15px;
  background: var(--secondary-color);
  border: none;
  border-radius: 3px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08rem;
}

#contact .container > form > textarea {
  letter-spacing: 0.01;
}

#contact .container > form > input::placeholder,
#contact .container > form > textarea::placeholder {
  color: rgba(207, 201, 201, 0.7);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1rem;
  font-weight: 600;
}

#contact .container > form > input:focus,
#contact .container > form > textarea:focus {
  outline: 2px var(--active-color) solid;
}

#contact .container > form > .recapcha {
  margin-top: 20px;
}

#contact .container > form > .submit-buttons {
  margin-top: 30px;
  /* margin-bottom: 50px; */
}

#contact .container > form > .submit-buttons > button {
  margin-right: 10px;
  margin-bottom: 10px;
  font-family: "Source Sans Pro", sans-serif;
}

#contact .container > form > .submit-buttons > button:last-child {
  background: transparent;
  cursor: pointer;
}

#contact .container > form > .submit-buttons > button:first-child {
  padding: 10px 25px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.25rem;
  border: none;
  color: var(--primary-colors);
  text-transform: uppercase;
  border: 2px #fff solid;
  cursor: pointer;
  transition: background 0.6s ease;
}

#contact .container > form > .submit-buttons > button:first-child:hover {
  background: var(--hover-color);
}

/* contact information */
.contact-info {
  border-top: 1px #555 solid;
}

.contact-info .container {
  margin: auto;
  padding: 0px 20px;
  display: flex;
  flex-direction: row;
}

.contact-info .container > div {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  background: transparent;
  padding: 50px 0px;
  color: #fff;
}

.contact-info .container > div > i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-info .container > div > a,
.contact-info .container > div > p {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  transition: color 0.6s ease;
}

.contact-info .container > div > a:hover {
  color: var(--hover-color);
}

/* Footer */
.footer {
  height: 25vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0 50px;
  overflow: hidden;
  margin-top: auto;
}

.footer .social {
  margin: 5px 0px;
}

.footer .social > a {
  display: inline-block;
  font-size: 1.3rem;
  padding: 4.6px 10px;
  color: #fff;
  background-color: #fff;
  border-radius: 50%;
  margin-right: 15px;
  margin-bottom: 15px;
  transition: background 0.5s ease;
}
.footer .social > a:hover {
  background: var(--hover-color);
}

.footer .social > a .fab {
  color: var(--secondary-color);
}

.footer .my-info {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.98rem;
  padding-bottom: 5px;
}

.footer .my-info .copyrights {
  color: #f4f4ff33;
  margin-right: 10px;
}

.footer .my-info .email > span {
  color: #f4f4ff33;
}
.footer .my-info .email > a {
  cursor: pointer;
  color: #fff;
  transition: color 0.6s ease;
}
.footer .my-info .email > a:hover {
  color: var(--hover-color);
}

/* Media queries */

@media (max-width: 979px) {
  #hero .content {
    margin: 0px 100px;
  }
}

@media (max-width: 950px) {
  #hero .content {
    margin: 0px 50px;
  }

  #hero .content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 904px) {
  #hero .content p {
    margin-bottom: 20px;
  }

  .footer .social > a {
    font-size: 1rem;
    padding: 4.6px 8px;
  }

  .footer .my-info {
    font-size: 0.9rem;
  }
}
@media (max-width: 886px) {
  .resume-content img {
    height: 800px;
    max-width: 900px;
  }
}

@media (max-width: 728px) {
  .resume-content img {
    height: 600px;
    max-width: 700px;
  }
  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 70px;
  }

  .navbar .logo {
    margin-top: 8px;
  }

  #hero .content h1 {
    font-size: 2rem;
    line-height: 4.5rem;
  }

  #hero .content p {
    margin-bottom: 20px;
  }

  .navbar ul li a {
    color: #fff;
    padding: 5px 10px;
    margin: 0 0px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.25rem;
    transition: color 0.7s ease;
  }

  #about .inner {
    margin: 0 60px;
  }
}

@media (max-width: 665px) {
  .resume-content img {
    height: 550px;
    max-width: 600px;
  }

  .contact-info .container {
    flex-wrap: wrap;
  }
  .contact-info .container > div:last-child {
    border-top: 1px solid #555;
  }
}

@media (max-width: 665px) {
  .disable {
    display: none;
  }
}

@media (max-width: 511px) {
  #resume .resume-content {
    flex-wrap: wrap-reverse;
  }
  .resume-content img {
    height: 600px;
    max-width: 700px;
  }
}
@media (max-width: 412px) {
  #about .skills {
    margin-bottom: 70px;
  }
}

@media (max-width: 457px) {
  #hero .content {
    margin: 0px 20px;
  }
  #hero .content h1 {
    font-size: 1.55rem;
    line-height: 3.5rem;
    margin-bottom: 20px;
  }

  #hero .content p {
    margin-right: 0px;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    padding-top: 10px;
  }
  .navbar {
    padding: 0px 10px;
  }

  .navbar .logo {
    font-size: 0.7rem;
  }

  .navbar ul li a {
    color: #fff;
    padding: 2px 5px;
    margin: 0 0px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: color 0.7s ease;
  }
  .btn {
    padding: 9px 20px;
    font-size: 0.7;
  }

  #about .inner {
    margin: 0 30px;
  }

  .footer {
    padding: 0 20px;
  }
}

@media (max-width: 481px) {
  #about .inner {
    margin: 0 26px;
  }
}

@media (max-width: 367px) {
  #resume .resume-content img {
    height: 450px;
    width: 270px;
  }
}

@media (max-width: 304px) {
  #hero .content {
    margin: 0px 15px;
  }
  #hero .content > h1 {
    font-size: 1rem;
    line-height: 3.5rem;
  }

  #hero .content p {
    margin-right: 0px;
    font-size: 0.6rem;
    line-height: 1.8;
    padding-top: 5px;
  }
  .navbar {
    padding: 0px 10px;
  }

  .navbar .logo {
    font-size: 0.7rem;
  }

  .navbar ul li a {
    color: #fff;
    padding: 2px 5px;
    margin: 0 0px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: color 0.7s ease;
  }
  #about .inner {
    padding: 0 10px;
  }
  .footer {
    padding: 0 10px;
  }
}
