@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

@keyframes pan-image {  
  0% {
    background-position: 36% 42%;
    background-size: 130%;
  }
  
  20% {
    background-position: 30% 35%;
    background-size: 130%;
  }
  
  20.0001% { /* -- View 2 -- */
    background-position: 30% 35%;
    background-size: 130%;
  }
  
  40% {
    background-position: 49% 28%;
    background-size: 130%;
  }
  
  40.0001% { /* -- View 3 -- */
    background-position: 49% 28%;
    background-size: 130%;
  }
  
  60% {
    background-position: 30% 33%;
    background-size: 130%;
  }
  
  60.0001% { /* -- View 4 -- */
    background-position: 30% 33%;
    background-size: 130%;
  }
  
  80% {
    background-position: 15% 28%;
    background-size: 110%;
  }
  
  80.0001% { /* -- View 5 -- */
    background-position: 15% 28%;
    background-size: 110%;
  }
  
  100% {
    background-position: 36% 42%;
    background-size: 110%;
  }
}

body {
  background-color: #333;
  background: url(./img/bg-all.svg);
  background-size: cover;
  font-family: 'Open Sans', sans-serif;
  font-family: 'Montserrat', sans-serif;
  color: #a4f644;
  margin: 0;
  animation: pan-image 90s ease-in-out infinite;
}

p {
  font-weight: 400;
}

::-webkit-scrollbar {
  width: 8px;
  background-color: #333;
}

::-webkit-scrollbar-thumb {
  background-color: #444;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a4f644;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9;
}

#loading {
  font-size: 2vw;
  font-weight: 600;
}

.loading-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2vw;
}

.loading-circle {
  width: 5vw;
  height: 5vw;
  border: 0.4vw solid #a4f644;
  border-top-color: #333;
  border-radius: 50%;
  animation: loadingAnimation 1.5s linear infinite;
}

@keyframes loadingAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dot-animation {
  0% {
    opacity: 0.3;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

#d1 {
  animation: dot-animation 1s infinite;
}

#d2 {
  animation: dot-animation 1s infinite;
  animation-delay: 0.3s;
}

#d3 {
  animation: dot-animation 1s infinite;
  animation-delay: 0.6s;
}

#home {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

#my-projects {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

a {
  text-decoration: none;
  color: #a4f644;
  padding: 0.4167vw;
  margin: 0 0.4167vw;
}

a:hover {
  border-bottom: #a4f644 solid 0.2083vw;
}

.selected {
  border-bottom: #a4f644 solid 0.2083vw;
}

nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.67vw 0;
  margin: 0 9vw;
  padding-bottom: 0;
  font-size: 1.5vw;
  position: fixed;
  width: 82vw;
  height: 4vw;
  z-index: 6;
  background: #333;
  box-shadow: 0 1.25vw 1.67vw 0.83vw #333;
}

.home-btn {
  margin: 0;
  padding: 0;
  padding-bottom: 0.4167vw;
}

footer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  position: relative;
  bottom: 0;
  padding: 0;
  margin-top: 2.083vw;
  border-top: #a4f644 dashed 0.2083vw;
  z-index: 4;
  background: rgba(51, 51, 51, 0.4);
}

footer .footer-container {
  background: #333;
  padding: 0.75vw 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

footer .footer-container a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.83vw;
  font-size: 0.83vw;
  background: #333;
}

footer .footer-container a:hover {
  border-bottom: none;
}

footer .footer-container a img {
  height: 1.75vw;
}

section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6.25vw;
  margin-top: 9.58vw;
}

.home-section img {
  width: 20vw;
  border-bottom: #a4f644 solid 0.2083vw; 
}

.home-section .welcome-text {
  width: 35vw;
}

h2 {
  font-size: 3.25vw;
  font-weight: 800;
  background: rgba(51, 51, 51, 0.9);
  width: fit-content;
}

.home-section p {
  font-size: 1.25vw;
  font-weight: 500;
  background: rgba(51, 51, 51, 0.9);
}

#tech-stack {
  align-self: center;
}

#tech-stack h3 {
  text-align: center;
  font-size: 2vw;
  background: rgba(51, 51, 51, 0.9);
}

#tech-stack .img-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 25vw;
}

#tech-stack .img-container img {
  height: 4.5vw;
}

/* About Me */

.about-me-section {
  text-align: justify;
  flex-direction: column;
  gap: 0;
  margin-top: 12.83vw;
}

.sider {
  display: flex;
  margin: 0 9.375vw;
  width: 81.25vw;
}

.left-side, 
.right-side {
  display: flex;
  flex-direction: column;
  width: 40.5vw;
}

.left-side {
  align-items: flex-end;
}

.right-side {
  align-items: flex-start;
}

.about-me-section .group,
.about-me-section .group-last {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-me-section .group-bl {
  height: 5vw;
}


.about-me-section .group .container-l,
.about-me-section .group .container-r {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  margin: 1.25vw 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.left-side .container-r,
.right-side .container-l {
  opacity: 0;
  transition: none;
}

.about-me-section .group:first-of-type .container-l {
  margin-top: 4.25vw;
}

.about-me-section .group .container-l:last-child {
  margin-bottom: 4.25vw;
}

.left-side .container-r {
  margin: 0;
}

.right-side .container-l {
  margin: 0;
  margin-top: 4.25vw;
}

.text-container-l,
.text-container-r {
  width: 30.25vw;
  border: #a4f644 dotted 0.2083vw;
  padding: 1vw 2vw;
  background: rgba(51, 51, 51, 0.7);
}

.text-container-l {
  margin-right: 0;
}
.text-container-r {
  margin-left: 0;
}

.text-container-l h3,
.text-container-r h3 {
  text-align: left;
  font-size: 1.6vw;
  margin: 1vw 0;
}

.text-container-l p,
.text-container-r p {
  font-size: 1.4vw;
}

.blank-container {
  border-bottom: #a4f644 dotted 0.2083vw;
  width: 6.25vw;
  height: 2vw;
}

.text-container {
  align-self: center;
  margin-bottom: 4.25vw;
  width: 30vw;
  border: #a4f644 dotted 0.2083vw;
  padding: 1vw 2vw;
  z-index: 5;
  background-color:rgba(51, 51, 51, 0.4);
  opacity: 1;
  transition: opacity 0.5s ease;
}

#hw-container {
  margin: 0;
}

.about-me-section .group .text-container h3,
.about-me-section .group-last .text-container h3 {
  text-align: center;
  font-size: 1.6vw;
  margin: 1vw 0;
}

.about-me-section .group .text-container p,
.about-me-section .group-last .text-container p {
font-size: 1.4vw;
}

.about-me-section .group .text-container .img-container,
.about-me-section .group-last .text-container .img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5vw;
  margin: 0.83vw;
  margin-top: 1.67vw;
}

.about-me-section .group .text-container .img-container img,
.about-me-section .group-last .text-container .img-container img {
  height: 5vw;
}

.line {
  width: 0.2vw;
  background: url("./img/bg.svg");
  background-size: contain;
}

/* My Projects */

.my-projects-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2vw;
  margin: 0 9.375vw;
}

.my-projects-section .container .greetings {
  width: 40%;
}

.my-projects-section .container .greetings h3 {
  font-size: 1.6vw;
}

.my-projects-section .container .greetings p {
  text-align: justify;
  font-size: 1.2vw;
}

.projects-container {
  width: 60%;
  max-height: 31.5vw;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2.5vw;
}

.projects-container .project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75vw;
}

.projects-container .project:first-child {
  padding-top: 1vw;
}

.projects-container .project:last-child {
  padding-bottom: 1vw;
}

.project #azdaja-link,
.project #golobe-link,
.project #todoro-link {
  height: 7.95vw;
  width: 14.151vw;
  background: #a4f644;
  background-size: cover;
  margin: 0;
  padding: 0;
}
.project #azdaja-link {
  background: url('./img/slide/azdaja.png');
  background-size: cover;
}
.project #golobe-link {
  background: url('./img/slide/golobe-home.png');
  background-size: cover;
}
.project #todoro-link {
  background: url('./img/slide/todoro-home.png');
  background-size: cover;
}

.project #azdaja-link:hover,
.project #golobe-link:hover,
.project #todoro-link:hover {
  border: none;
}

.project .text-group {
  min-height: 8vw;
  max-height: fit-content;
  width: 30vw;
}

.project .text-group a {
  height: fit-content;
  width: fit-content;
  padding: 0;
  margin: 0;
}

.project .text-group h4 {
  margin-top: 0;
  font-size: 1.25vw;
  margin-bottom: 1.25vw;
}

.project .text-group a h4:hover {
  text-decoration: underline;
}

.project .text-group p {
  text-align: justify;
  margin: 0;
  font-size: 1.1vw;
}

#less-1,
#less-2,
#less-3 {
  display: none;
  cursor: pointer;
  text-decoration: underline;
  line-height: inherit;
}

#txt-1,
#txt-2,
#txt-3 {
  display: none;
  line-height: inherit;
}

#more-1,
#more-2,
#more-3 {
  cursor: pointer;
  text-decoration: underline;
  line-height: inherit;
}

#at-me {
  margin: 0 12vw;
  font-size: 1.2vw;
}

#at-me p {
  margin: 0;
}

#at-me a {
  margin: 0;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}

#at-me a:hover {
  border-bottom: none;
}

/* Contact & Hire */

.contact-section {
  margin: 12vw 15vw;
  margin-bottom: 0;
  align-self: center;
  height: fit-content;
}

.contact-container,
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1vw;
  align-items: flex-start;
  width: 35vw;
  height: 32vw;
}

.contact-container h4,
.form-container h4 {
  margin: 0;
  margin-bottom: 1.5vw;
  font-size: 1.5vw;
  font-weight: 600;
}

.contact-container .group {
  display: grid;
  grid-template-columns: 3vw auto;
  gap: 0.5vw;
  align-items: center;
  
}

.contact-container .group img {
  height: 2vw;
}

.contact-container .group a {
  margin: 0;
  padding: 0;
  font-size: 1.3vw;
  border-bottom: transparent solid 0.2083vw;
}

.contact-container .group a:hover {
  border-bottom: #a4f644 solid 0.2083vw;
}

#download {
  display: flex;
  align-items: center;
}

#download h5 {
  margin: 0;
  margin-right: 1.25vw;
  font-size: 1.4vw;
  font-weight: 500;
}

#download a {
  margin: 0;
  padding: 0;
}

#download a:hover {
  border-bottom: none;
}

#download h5 a:hover {
  border-bottom: #a4f644 solid 0.2083vw;
}

#download img {
  height: 2.5vw;
}

.form-container form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: inherit;
  gap: 0.85vw;
  height: fit-content;
}

.form-container form input,
.form-container form textarea {
  appearance: none;
  margin: 0;
  padding: 0.3vw 0.1vw;
  outline: none;
  box-shadow: none;
  background: transparent;
  background-color: rgba(51, 51, 51, 0.4);
  border: none;
  border-bottom: #a4f644 solid 0.3vw;
  width: inherit;
  color: #a4f644;
  font-size: 1.3vw;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
  font-family: 'Montserrat', sans-serif;
  height: 1.6vw;
  transition: all ease 300ms;
}


input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #a4f644;
  -webkit-box-shadow: none;
  transition: background-color 50000s ease-in-out 0s;
} 

.form-container form textarea {
  height: 8vw;
  border: #a4f644 solid 0.3vw;
  transition: all ease 300ms;
}


.form-container form input::placeholder,
.form-container form textarea::placeholder {
  color: #a4f644;
  transition: all ease 300ms;
}

.form-container form button[type="submit"] {
  border: none;
  margin: 0;
  margin-top: 1vw;
  font-size: 1.4vw;
  font-weight: 600;
  padding: 0.8vw 1.6vw;
  background: #a4f644;
  color: #333;
  width: fit-content;
  align-self: center;
  justify-self: center;
  height: fit-content;
  cursor: pointer;
  border-radius: 0.1vw;
  border: #a4f644 solid 0.3vw;
  transition: all ease 300ms;
}

.form-container form button[type="submit"]:hover {
  background: transparent;
  color: #a4f644;
}

.form-container form label {
  font-size: 1.3vw;
  margin: 0;
  padding: 0 0.1vw;
  visibility: hidden;
}

/* Success */

#success {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#success .container {
  border: #a4f644 dotted 0.2083vw;
  padding: 3vw;
  background: rgba(51, 51, 51, 0.7);
}

#success .container h4 {
  margin-top: 0;
  font-size: 2vw;
}

#success .container p {
  font-size: 1.6vw;
}

#success .container a {
  margin: 0;
  font-size: 1.6vw;
  align-items: center;
  align-content: center;
}