* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Libre Baskerville, sans-serif";
}
body {
  height: 100%;
  width: 100%;
  background-image: url(images/background.jpg);
  color: #bb6d3d;
  background-attachment: fixed;
}

h1 {
  font-family: "Rozha One", serif;
}
h6 {
  font-family: "Libre Baskerville", serif;
}
p {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
}
a {
  text-decoration: none;
}
img {
  width: 100%;
}
.container {
  width: 90%;
  max-width: 120rem;
  height: 100%;
  margin: 0 auto;
  position: relative;
}
.section-heading {
  text-align: center;
  margin-top: 10rem;
}
.section-heading h1 {
  font-size: 3.5rem;
  color: #bb6d3d;
  opacity: 0.4;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 1rem;
}
.section-heading h1::before,
.section-heading h1::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #eccebd;
}
.section-heading h1::before {
  width: 10rem;
  height: 3px;
  border-radius: 0.8rem;
}
.section-heading h1::after {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 100%;
  bottom: -1rem;
}
.section-heading h6 {
  font-size: 1.6rem;
  font-weight: 100;
}
header {
  width: 100%;
  height: 100vh;
}
.top-nav {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: -100vh;
  z-index: 50;
  background-color: #f0eae2;
  border-bottom-right-radius: 100%;
  border-bottom-left-radius: 100%;
  transition: all 650ms cubic-bezier(1, 0, 0, 1);
}
.nav-list {
  list-style: none;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
li {
  margin: 0.2rem;
}

.nav-footer {
  list-style: none;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.2rem;
}
.nav-footer i {
  font-size: 1.5rem;
  padding: 1rem;
  color: #bb6d3d;
}
.nav-link {
  font-size: 1.5rem;
  padding: 1rem;
  color: #bb6d3d;
  font-family: "Libre Baskerville", serif;
}

.nav-link:hover,
.nav-link:focus {
  background: #d78276;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.top-nav.open {
  top: 0;
  border-radius: initial;
}
.menu-toggler {
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 5rem;
  height: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 300;
  transition: transform 650ms ease-out;
}
.menu-toggler.open {
  transform: rotate(-45deg);
}

.bar {
  background-color: #002e60;
  width: 100%;
  height: 4px;
  border-radius: 0.8rem;
}
.bar.half {
  width: 65%;
}
.bar.start {
  transform-origin: right;
  transition: transform 650ms cubic-bezier(0.54, -0.81, 0.57, 0.057);
}
.open .bar.start {
  transform: rotate(-450deg) translateX(0.1rem);
}
.bar.end {
  align-self: flex-end;
  transform-origin: left;
  transition: transform 650ms cubic-bezier(0.54, -0.81, 0.57, 0.057);
}
.open .bar.end {
  transform: rotate(-450deg) translateX(-0.1rem);
}
.landing-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 1;
  background-color: #f0eae2;
  height: 60vh;
}
.landing-text h1 {
  font-size: 8rem;
  font-family: "Rozha One", serif;
  background-color: #002e60;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 1rem;
  user-select: none;
}
.landing-text h6 {
  font-size: 2rem;
  font-weight: 100;
}
.profile-img,
.about-img {
  flex: 1;
  margin-right: 3rem;
}

.about-detail {
  flex: 1;
}
.about {
  background-color: #faf6f1;
  height: 47vh;
}
.about-img {
  /* height: 12rem;
  width: 12rem; */
  /* flex: 1; */
  /* margin-right: 5rem; */
}
.about .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-heading {
  text-align: center;
  text-transform: uppercase;
  line-height: 0;
  margin-bottom: 6rem;
}
.about-heading h1 {
  font-size: 8rem;
  opacity: 0.5;
}
.about-heading h6 {
  font-size: 1rem;
  font-weight: 100;
}
.social-media {
  margin-top: 3rem;
}
.social-media i {
  font-size: 2rem;
  color: #bb6d3d;
  transition: color 650ms;
  cursor: pointer;
}
.fa-github-square:hover {
  color: #e5ccc9;
}
.fa-twitter-square:hover {
  color: #eccebd;
}
.fa-linkedin-square:hover {
  color: #ebc2af;
}
.my-skills {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.3rem;
  text-align: center;
}
.skills {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.skills h1 {
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 2rem -2px 2rem 0;
}
.icon-container {
  width: 7rem;
  height: 7rem;
  border: 2px solid;
  background-color: #fdd9d0;
  margin-bottom: 2rem;
  display: flex;
  transform: rotate(45deg);
}
.icon-container img {
  margin: auto;
  transform: rotate(-45deg);
  opacity: 0.6;
}
.portfolio-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  margin-top: 3rem;
}
.portfolio-item:last-child {
  margin-bottom: 0;
}
.portfolio-description {
  flex: 1;
  background-color: #edc7b7;
}
.portfolio-description h6 {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 100;
  opacity: 0.4;
}
.margin-right {
  margin-right: 3rem;
}
.portfolio-description h1 {
  font-size: 2rem;
  font-weight: 200;
  margin: 1rem 0;
}
.portfolio-description .cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  color: #d78276;
  transition: 600ms;
}
.portfolio-description .cta:hover {
  color: #002e60;
}
.timeline ul {
  border-left: 8px solid #042e56;
  border-radius: 0.8rem;
  background-color: rgba(0, 0, 0, 0.09);

  margin: 0 auto;
  position: relative;
  padding: 5rem;
  list-style: none;
  text-align: left;
  width: 70%;
}
.timeline h1 {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 200;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.timeline .date {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  position: relative;
  border-bottom: 1px solid rgb(219, 120, 120);
  margin-left: -1rem;
}
.timeline .date:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}
.timeline .date::before,
.timeline .date::after {
  position: absolute;
  display: block;
  top: 50%;
  transform: translateY(-50%);
}
.timeline .date::before {
  content: attr(data-date);
  left: -16rem;
  text-align: right;
  min-width: 10.5rem;
  font-size: 1.3rem;
}
.timeline .date::after {
  content: "";
  box-shadow: 0 0 0 4px #ed7270;
  border-radius: 100%;
  left: -4.6rem;
  height: 1rem;
  width: 1rem;
  background-color: rgba(204, 189, 189, 1);
}
.contact {
  background-color: #e7cfc3;
}
form {
  width: 70%;
  margin: 0 auto;
}
form label {
  font-size: 1rem;
}
input,
select,
textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 3px;
  border: none;
  outline-color: #ed7270;
}
input[type="submit"] {
  background-color: #bb6d3d;
  color: #eee;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 600ms;
  text-transform: uppercase;
  width: 100%;
}

input[type="submit"]:hover {
  color: #d78276;
  background-color: #eccebd;
}

.copyright {
  width: 100%;
  text-align: center;
  background-color: #bfc1ac;
  padding: 2rem 0;
  position: relative;
}
.copyright p {
  font-size: 1.3rem;
}
.up {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #eee;
  top: -2rem;
  right: 3.3rem;
  border-radius: 100%;
  display: flex;
  animation: pulse 2s infinite;
}
.up i {
  color: #d78276;
  font-size: 2rem;
  margin: auto;
}

.skills {
  background-color: #bfc1ac;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(4, 46, 86, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(4, 46, 86, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(4, 46, 86, 0);
  }
}
@media screen and (max-width: 768px) {
  .landing-text h1 {
    font-size: 4rem;
  }
  .landing-text h6 {
    font-size: 1rem;
  }
  .landing-text {
    height: 26vh;
  }
  .about {
    height: 50vh;
  }
  .about-heading h1 {
    font-size: 4.5rem;
  }
  .nav-list {
    flex-direction: column;
  }
  p {
    font-size: 0.8rem;
  }
  .nav-link {
    font-size: 1.2rem;
  }
  .portfolio-item {
    flex-direction: column;
  }
  .profile-img {
    margin: 0 0 2rem 0;
    order: 1;
  }
  .portfolio-description {
    margin: 0;
    order: 2;
  }
  .timeline p {
    font-size: 1rem;
  }
  .timeline .date::before {
    font-size: 0.8rem;
  }
  .form {
    width: 100%;
  }
}
