@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500&display=swap");

/* COLOURS VARIABLES */
:root {
  --yinmn-blue: #3b5074;
  --cornflower-blue: #6b9ae1;
  --platinum: #ede7e9;
  --orange: #ff9300;
  --snow: #fffafa;
}

h1 {
  font-size: clamp(44px, 3vw, 76px);
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
}
h3 {
  font-size: clamp(22px, 3vw, 24px);
}
p,
ul {
  font-size: clamp(18px, 2vw, 20px);
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1.8;
}

body {
  background-color: var(--yinmn-blue);
  height: 100%;
}

/* Reset some default styles */
body,
h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

h1 {
  color: var(--orange);
}

h2,
h3 {
  color: var(--yinmn-blue);
  padding: 5px 20px;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
}

/* unvisited link */
a:link {
  color: var(--orange);
  text-decoration: none;
}

/* visited link */
a:visited {
  color: var(--orange);
}

/* mouse over link */
a:hover {
  color: var(--snow);
}

/* selected link */
a:active {
  color: var(--snow);
}

nav {
  display: flex;
  justify-content: space-between;
}

.logo {
  height: 10vh;
  width: auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

/* HOME */

#home {
  background-image: url("/assets/images/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

ul {
  list-style-type: none;
}

.bouncing button {
  animation: jumpAnimation 1s infinite; /* 1s duration, infinite repetition */
  background: none;
  color: var(--platinum);
  border: none;
  padding: 10px 20px;
}

.logo-container:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease-in-out;
}

.nav-item {
  color: var(--platinum);
  font-size: 4rem;
  font-weight: bold;
  line-height: 7rem;
}

.nav-item.animation-initial {
  opacity: 1;
  animation: slideInFromLeft 0.5s ease-in-out;
}
.nav-item a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.nav-item a:hover {
  padding-left: 10px;
}
/* 
.comma {
  color: var(--cornflower-blue);
} */

.nav-item.one.home.animation-initial {
  color: var(--orange);
  cursor: pointer;
}

.nav-item.two,
.nav-item.three {
  transition: color 0.3s ease;
  cursor: pointer;
  animation: zoomFade 1.2s cubic-bezier(0.5, 0.6, 0.6, 1);
}

p a {
  background-image: linear-gradient(
    to left,
    var(--orange) 0%,
    var(--orange) 100%
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.3s ease;
}

p a:hover {
  background-size: 100% 100%;
  color: var(--snow);
  padding: 0 5px;
}

/* NAVIGATION MENU*/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  transition: 0.5s;
  z-index: 3;
}

.hamburger-navigation {
  display: none;
}

.sticky {
  background: var(--snow);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 5px;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--orange);
  z-index: 1000;
  transition: width 0.3s ease;
}

.hamburger-navigation a {
  text-decoration: none;
}

.hamburger-navigation a:link {
  color: var(--yinmn-blue);
}

.hamburger-navigation a:visited {
  color: var(--yinmn-blue);
}

.hamburger-navigation a:hover,
.hamburger-navigation a:focus {
  color: var(--platinum);
  border-bottom: 2px solid var(--orange);
  border-top: 2px solid var(--orange);
}

.hamburger-navigation a:active {
  color: var(--platinum);
}

.hamburger-navigation .current {
  border-bottom: 2px solid var(--yinmn-blue);
}

.hamburger-navigation li:nth-child(odd) {
  animation: slideInFromLeft 0.5s ease-in-out;
}

.hamburger-navigation li:nth-child(even) {
  animation: slideInFromRight 0.5s ease-in-out;
}

/* HAMBURGER MENU STYLING */

button.menutoggle {
  background: none;
  border: none;
}

.menutoggle {
  cursor: pointer;
  padding: 20px;
  animation: slideInFromRight 1.2s cubic-bezier(0.5, 0.6, 0.6, 1);
}

.menutoggle i {
  color: var(--snow);
  font-size: 36px;
  animation: fadeIn 0.3s ease-in-out;
}

.menutoggle .fa-solid.fa-x {
  display: none;
}

.menutoggle.open .fa-solid.fa-bars {
  display: none;
  transition: display 0.5s ease-in;
}

.menutoggle.open .fa-solid.fa-x {
  display: inline;
}

.sticky .menutoggle i,
.sticky .menutoggle.open i {
  color: var(--yinmn-blue);
}

.hamburger-navigation.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--snow);
  position: absolute;
  left: 0;
  width: 100%;
  animation: fadeIn 0.3s ease-in-out;
  justify-content: space-around;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 2;
}

.hamburger-navigation.open li {
  font-weight: 500;
}

.hamburger-navigation.open a {
  color: var(--yinmn-blue);
  font-size: 36px;
  text-decoration: none;
}

.copyright {
  color: var(--yinmn-blue);
}
.nav-item.one.projects {
  animation: slideInFromRight 0.5s ease-in-out;
}

.nav-item.two.projects {
  animation: slideInFromLeft 0.5s ease-in-out;
}

section.one.about h1,
section.one.projects-content h1,
section.one.blog-content h1 {
  animation: slideInFromBottom 0.5s ease-in-out;
}

section.one.about p,
section.one.projects-content p,
section.one.blog-content p {
  animation: slideInFromLeft 0.5s ease-in-out;
}

.article-2 h2 {
  text-align: center;
}

section.one.contact {
  animation: fadeIn 1s ease-in-out;
}
.image {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.image.visible {
  opacity: 1;
}

.nav-item.animation {
  animation: slideInFromBottom 0.5s ease-in;
}

.logo {
  animation: slideInFromLeft 1.2s cubic-bezier(0.5, 0.6, 0.6, 1);
}

.menutoggle:hover i.fa-bars,
.menutoggle:focus i.fa-bars {
  animation: rotateIcon 0.3s linear forwards;
}

/* SECTIONS */
section.one {
  min-height: 100%;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section.three {
  min-height: auto;
}

section.one h1,
section.one p {
  padding: 0px 10px;
}

section.one p {
  font-size: 24px;
  color: var(--platinum);
}

section.three {
  opacity: 0;
  padding: 15px;
  padding-bottom: 100px;
  transition: opacity 0.7s ease-in;
}

section.three.visible {
  opacity: 1;
}

section.three h2,
h3 {
  color: var(--orange);
}
section.three p {
  color: var(--snow);
  padding: 10px 20px;
}

.section-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.section-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 30px;
}

/* 404 & THANK-YOU*/

section.one.error {
  animation: fadeIn 0.7s ease-in-out;
}

.thank {
  animation: jumpAnimation 1s infinite;
}

section.one.error h1 {
  background-image: linear-gradient(
    -250deg,
    var(--snow) 0%,
    var(--cornflower-blue) 29%,
    var(--yinmn-blue) 67%,
    var(--orange) 100%
  );
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 2s linear infinite;
}

/* PROJECTs & BLOG*/

/* .no-scrolling {
  overflow: hidden;
} */

.no-overflow {
  overflow-x: hidden;
}

.nav-item.projects {
  line-height: 1;
}

.navigation a {
  text-decoration: none;
}

li.nav-item.one.projects,
li.nav-item.two.projects {
  padding-bottom: 30px;
  padding-top: 30px;
}

.main-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
}

.navigation {
  padding-left: 20px;
}

.bouncing {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  /* cursor: pointer; */
  padding: 30px;
}

.main-content.projects a,
.main-content.blog a {
  color: var(--platinum);
}

.main-content.projects a:hover,
.main-content.projects a:focus,
.main-content.blog a:hover,
.main-content.blog a:focus {
  color: var(--orange);
}

.main-content.blog a {
  font-size: 40px;
}
.subtitle {
  padding-left: 4px;
  padding-right: 4px;
  color: var(--orange);
}

/* ABOUT */

.main-content.about,
.main-content.projects-content,
.main-content.blog-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.two.about img {
  width: 100vw;
  position: relative;
  top: 10px;
  border-radius: 60%;
  height: 100%;
}

/* DIMOS & BUTTERFLY */

section.two.projects-content {
  display: flex;
}

.two.projects-content img {
  width: 100vw;
  height: 80vh;
  object-fit: cover;
  position: relative;
  right: 50px;
}

.section-image {
  position: relative;
}

.image {
  display: block;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: var(--cornflower-blue);
}

.section-image:hover .overlay {
  opacity: 1;
}

.text {
  color: var(--snow);
  font-size: 26px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.butterfly-ul {
  padding: 10px 20px;
  padding-left: 40px;
  list-style-type: disc;
  color: var(--snow);
}

section.three span {
  color: var(--orange);
}

/* ARTICLE 1 & 2 */

.reference {
  font-size: 1.2rem;
}

.references-ul {
  padding-left: 35px;
  list-style-type: disc;
  color: var(--snow);
  font-size: 1rem;
}

.references-ul li span {
  display: flex;
  color: var(--platinum);
  padding-bottom: 10px;
}

/* CONTACT */

.main-content.contact {
  display: flex;
  flex-direction: column;
}

.main-content.contact section.one h1 {
  margin-bottom: 20px;
}

.main-content.contact section.three h2 {
  display: flex;
  justify-content: center;
}

.main-content.contact section.three {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section.one.contact {
  height: 60vh;
}

.socials {
  display: flex;
  justify-content: center;
  z-index: 2;
}
.socials a {
  padding: 5px;
  animation: slideInFromBottomAndFade 1s ease-in-out forwards;
  opacity: 0;
}

.socials a:hover,
.social a:focus {
  color: var(--orange);
  position: relative;
  bottom: 10px;
}

.fa-brands {
  color: white;
}

.socials .fa-brands:hover,
.socials .fa-brands:focus {
  color: var(--orange);
}

.socials a:nth-child(1) {
  animation-delay: 0.3s;
}

.socials a:nth-child(2) {
  animation-delay: 0.6s;
}

.socials a:nth-child(3) {
  animation-delay: 0.9s;
}

.socials a:nth-child(4) {
  animation-delay: 1.2s;
}

.socials a:nth-child(5) {
  animation-delay: 1.5s;
}

section.two.contact {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

section.two.contact.visible {
  opacity: 1;
}

section.two.contact::before,
section.two.contact::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

section.two.contact::before {
  background-image: url("/assets/images/mountain.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

section.two.contact::after {
  background-image: url("/assets/images/background.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

section.two.contact h2,
section.two.contact p {
  position: relative;
  z-index: 2;
  color: var(--snow);
  text-align: center;
  padding: 20px;
}

section.three.contact {
  opacity: 1;
}

section.two.contact h2,
section.two.contact p {
  color: var(--snow);
  padding: 0;
  z-index: 0;
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 1;
}

.form label {
  color: var(--snow);
  font-weight: bold;
}

.form i {
  color: var(--orange);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--snow);
  color: var(--yinmn-blue);
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: var(--orange);
  transition: color 0.4s ease-in;
}

.submit-btn:hover i {
  color: var(--snow);
}

/* KEYFRAMES */

@keyframes zoomFade {
  0% {
    /* Initial styles */
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    /* Final styles */
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIcon {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(90deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

/* Jumping animation using keyframes */
@keyframes jumpAnimation {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(
      -10px
    ); /* Adjust this value to control the jump height */
  }
}

@keyframes slideInFromBottomAndFade {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

/* media query for mobile in landscape mode */
@media only screen and (max-height: 420px) and (orientation: landscape) {
  /* #home,
  .no-scrolling {
    overflow: auto;
  } */

  .logo {
    height: 15vh;
  }

  .nav-item {
    font-size: 3rem;
    line-height: 5rem;
  }
}

@media screen and (min-width: 1024px) {
  .nav-item.one {
    color: var(--orange);
  }
  .nav-item.home a {
    background-image: linear-gradient(
      to left,
      var(--orange) 0%,
      var(--orange) 100%
    );
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.3s ease;
  }

  .nav-item.home a:hover {
    background-size: 100% 100%;
    color: var(--snow);
    padding: 0 5px;
  }

  .two.about img {
    width: 100%;

    border-radius: 60%;
  }

  .form {
    max-width: 80%;
  }

  section.one.contact {
    align-items: center;
  }

  section.three {
    padding: 100px;
  }

  .socials i {
    font-size: 6em;
    transition: font-size 0.4s ease-in;
  }
}

@media screen and (min-width: 1280px) {
  .nav-item.home {
    font-size: 8rem;
    line-height: 10rem;
  }

  section.one.projects-content h1 {
    font-size: 6rem;
  }

  section.one.projects-content p {
    font-size: 2rem;
  }

  section.three p {
    width: 700px;
  }
}
