@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;600&display=swap');

* {
 font-family: 'Josefin Sans', sans-serif;
}

html {
 scroll-behavior: smooth;
 overflow-x: hidden;
}

:root {
 --main-color: #05B0FF;
 --main-color-dark: #05B0FF4D;
}

::-webkit-scrollbar {
 width: 0px;
}

/* GENERAL */

.start_content, .skills {
 width: 100vw;
 height: 100vh;
}

/* PRE-LOADER */

.loader_container {
 width: 100%;
 height: 100vh;
 background-color: #000000;
 position: fixed;
 display: flex;
 align-items: center;
 justify-content: center;
 z-index: 2;
}

.lds-ripple {
 display: inline-block;
 position: relative;
 width: 80px;
 height: 80px;
}

.lds-ripple div {
 position: absolute;
 border: 4px solid #FFFFFF;
 opacity: 1;
 border-radius: 50%;
 animation: lds-ripple 1s cubic-bezier(0, .2, .8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
 animation-delay: -.5s;
}

@keyframes lds-ripple {
 0% {
  top: 36px;
  left: 36px;
  width: 0;
  height: 0;
  opacity: 0;
 }
 4.9% {
  top: 36px;
  left: 36px;
  width: 0;
  height: 0;
  opacity: 0;
 }
 5% {
  top: 36px;
  left: 36px;
  width: 0;
  height: 0;
  opacity: 1;
 }
 100% {
  top: 0px;
  left: 0px;
  width: 72px;
  height: 72px;
  opacity: 0;
 }
}

/* BACKGROUND */

#particles-js {
 width: 100%;
 height: 100vh;
 position: fixed;
 background: #000000;
 z-index: -1;
}

/* NAVBAR */

nav .nav-link {
 text-decoration: none;
 color: #FFFFFF;
 transition: .5s;
}

nav .nav-link:hover {
 transform: scale(1.1);
 color: var(--main-color);
}

/* GREETING */

.second_title {
 color: var(--main-color);;
}

.start_content,  .content {
 position: relative;
 width: 100%;
 height: 100vh;
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.content {
 margin-top: -200px;
}

.machine {
 position: relative;
 display: block;
 white-space: nowrap;
 border-right: 4px solid;
 width: 23.5ch;
 overflow: hidden;
 animation: typing 2s steps(23), blink .5s infinite step-end alternate;
}

@keyframes typing {
 from {
  width: 0
 }
}

@keyframes blink {
 50% {
  border-color: transparent;
 }
}

.dev_photo {
 margin-left: 35px;
}

.cv, input[type="submit"] {
 padding: 8px 16px;
 background: var(--main-color);;
 border: none;
 border-radius: 10px;
 box-shadow: 0 0 0 3px var(--main-color-dark);
 transition: .5s;
}

.cv:hover {
 transform: scale(1.1);
}

.experience {
 margin-top: -180px;
}

/* TIMELINE */

.timeline {
 position: relative;
 margin: 50px auto;
 padding: 40px 0;
 width: 1000px;
 box-sizing: border-box;
}

.timeline:before {
 content: '';
 position: absolute;
 left: 50%;
 width: 2px;
 height: 100%;
 background-color: #FFFFFF;
}

.timeline ul {
 margin: 0;
 padding: 0;
}

.timeline ul li {
 list-style: none;
 position:relative;
 width: 50%;
 padding: 20px 40px;
 box-sizing: border-box;
}

.timeline ul li:nth-child(odd) {
 float: left;
 text-align: right;
 clear: both;
}

.timeline ul li:nth-child(even) {
 float: right;
 text-align: left;
 clear: both;
}

.timeline .content {
 padding-bottom: 20px;
}

.timeline ul li:nth-child(odd):before {
 content: '';
 position: absolute;
 top: 24px;
 right: -6px;
 width: 10px;
 height: 10px;
 background-color: var(--main-color);;
 border-radius: 2px;
 border-radius: 50%;
 box-shadow: 0 0 0 3px var(--main-color-dark);
}

.timeline ul li:nth-child(even):before {
 content: '';
 position: absolute;
 top: 24px;
 right: 98.9%;
 width: 10px;
 height: 10px;
 background-color: var(--main-color);
 border-radius: 2px;
 border-radius: 50%;
 box-shadow: 0 0 0 3px var(--main-color-dark);
}

.timeline ul li h3 {
 margin: 0;
 padding: 0;
 font-weight: 600;
 color: var(--main-color);
}

.timeline ul li p {
 margin: 10px 0 0;
 padding: 0;
}

.timeline ul li:nth-child(odd) .time {
 position: absolute;
 top: 0;
 right: -215px;
 margin: 0;
 padding: 8px 16px;
 background: var(--main-color);
 border-radius: 10px;
 box-shadow: 0 0 0 3px var(--main-color-dark);
}

.timeline ul li:nth-child(even) .time {
 position: absolute;
 top: 0;
 left: -200px;
 margin: 0;
 padding: 8px 16px;
 background: rgba(5, 176, 255, 1);
 border-radius: 10px;
 box-shadow: 0 0 0 3px var(--main-color-dark);
}

.timeline ul li .time h6 {
 margin: 0;
 padding: 0;
 font-size: 14px;
}

/* SKILL CARDS */

#skills .card {
 height: 100%;
 border-radius: 20px;
 background-color: rgba(33, 37, 41, 0.5);
}

#skills img {
 width: 55px;
 height: 50px;
 transition: .5s;
}

#skills img:hover {
 cursor: pointer;
 transform: scale(1.1);
}

#skills h6 {
 font-size: 13px;
}

/* CARD TEMPLATE */

.card_container .card {
 display: inline;
 margin: 15px 15px 15px 20px;
 border-radius: 20px;
 transition: .5s;
}

.card_container .card img {
 width: 132px;
 height: 132px;
 cursor: pointer;
}

/* PROJECTS */

#projects {
 margin-top: -70px;
}

.container {
 width: 100%;
 padding: 20px;
 display: flex;
 justify-content: center;
 flex-wrap: wrap;
 cursor: default;
}

.container .col {
 width: 326px;
}

.container .col:nth-child(2), .col:nth-child(3), .col:nth-child(4) {
 margin-left: 5px;
}

.container .col .cv {
 margin-left: -10px;
}

.container .card {
 border-radius: 20px;
 width: 300px;
 background-color: rgba(33, 37, 41, 0.5);
}

.container img {
 cursor: pointer;
}

.card-title, .card-text {
 cursor: text;
}

#projects .cv {
 text-decoration: none;
 color: #FFFFFF;
}

#projects img {
 border-radius: 20px;
}

#projects .cv:hover, .contact_form input[type="submit"]:hover {
 background-color: #000000;
 color: #FFFFFF;
 box-shadow: 0 0 0 3px #505A5F;
}

/* CONTACT */

.contact_container {
 width: 95%;
 max-width: 960px;
 background-color: rgba(33, 37, 41, 0.5);
 display: grid;
 margin: 30px;
 transform: translateX(15%);
 grid-template-columns: repeat(2, 1fr);
 gap: 1.5rem;
 box-shadow: 0 0 1rem hsla(0 0 0 / 16%);
 border-radius: 20px;
 overflow: hidden;
}

.form_container {
 padding: 20px;
}

.form_container h3 {
 font-size: 1.2rem;
 font-weight: 600;
 margin-bottom: 1rem;
}

.contact_form {
 display: grid;
 row-gap: 1rem;
}

.contact_form input[type="text"], input[type="email"], textarea {
 width: 100%;
 border: none;
 outline: none;
 background: #3A3F44;
 color: #FFFFFF;
 padding: 10px;
 font-size: .9rem;
 border-radius: .4rem;
}

.contact_form textarea {
 height: 200px;
 resize: none;
}

.map iframe {
 width: 100%;
 height: 100%;
}

/* FOOTER */

p.author {
 display: flex;
 justify-content: center;
 font-variant: JIS04;
 gap: 7px;
 color: #FFFFFF;
}

p.author a {
 text-decoration: none;
 font-weight: 500;
 color: #FFFFFF;
 margin-top: -2px;
}

/* MEDIA QUERY 1400px */

@media (max-width: 1400px) {
 nav {
  text-align: center;
 }
 
 .start_content {
  height: 35vh;
 }

 .start {
  width: 100%;
 }
 
 .content {
  margin-top: -300px;
 }

 .title {
  text-align: center;
 }

 .machine {
  margin-left: 35.6%;
  font-size: 17px;
 }

 .photo {
  width: 0px;
  visibility: hidden;
 }

 .experience {
  margin-top: -280px;
 }

 .timeline {
  width: 100%;
 }

 .dev_photo {
  margin-left: -10px;
  margin-top: -20px;
  margin-bottom: 15px;
 }

 .content .information {
  width: 100%;
  margin-top: 20px;
  padding: 0 8px 0 8px;
 }

 .information h5 {
  text-align: center;
 }

 .information .cv {
  margin-left: -30px;
 }

 .timeline {
  width: 100%;
 }

 .container .col:nth-child(3), .col:nth-child(4) {
  margin-top: 30px;
 }
 
 .container .row-2 .col:nth-child(1) {
  margin-left: -7px;
 }

 .container .row-2 .col:nth-child(2) {
  margin-left: 20px;
 }

 #skills .card {
  margin-top: 20px;
 }

 #skills .col:nth-child(4) {
  margin-top: 0 !important;
 }

 #projects {
  margin-top: -80px;
 }

 #projects .row-2 .col {
  margin-top: 10px;
 }

 .container .col {
  width: auto;
 }

 .contact_container {
  width: 90%;
  margin: 30px;
  transform: translateX(2.5%);
 }

 footer {
  margin-top: 500px;
 }
}

/* MEDIA QUERY 1000px */

@media (max-width: 1000px) {
 .timeline {
  width: 100%;
 }
}

/* MEDIA QUERY 767px */

@media (max-width: 767px) {
 #particles-js {
  height: 110%; 
 }

 nav {
  text-align: center;
 }
 
 .start_content {
  width: 100%;
  margin-top: -35px;
 }

 .title {
  width: 18ch;
  margin-left: 10px;
 }

 .machine {
  font-size: 16px;
  width: 24ch;
 }

 .photo {
  width: 0px;
  visibility: hidden;
 }

 .content {
  display: inline;
 }

 .dev_photo {
  margin-left: 70px;
  margin-top: -30px;

 }

 .content .information {
  width: 100%;
  margin-top: 20px;
  padding: 0 8px 0 8px;
 }

 .information h5 {
  width: 100vw;
  text-align: center;
  margin-left: -8px;
 }

 .information .cv {
  margin-left: 117px;
  width: 150px;
  height: 35px;
 }

 .experience {
  margin-top: 80px;
 }

 .timeline {
  width: 100%;
 }
 .timeline ul li:nth-child(even):before {
  right: 96.7%;
 }

 .timeline ul li:nth-child(odd) .time {
  right: -200px;
 }

 .timeline ul li:nth-child(even) .time {
  left: -180px;
 }

 #skills .card {
  height: auto;
  margin-top: 20px;
 }

 #projects {
  margin-top: -20px;
 }

 .container .col {
  margin-top: 32px;
 }

 #projects .row-2 .col:nth-child(2) {
  margin-top: 28px;
 }

 .container .col .cv {
  margin-left: -45px;
 }

 .contact_container {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1%;
 }

 .map iframe {
  height: 400px;
 }
}

/* MEDIA QUERY 500px */

@media (max-width: 500px) {
 .machine {
  margin-left: 11.5%;
 }

 #skills .card {
  height: auto;
  margin-top: 20px;
 }

 #skills .card-body {
  width: 100%;
 }

 #projects .container {
  margin-top: -50px;
 }

 #projects .col {
  margin-left: 32px;
 }

 .container .row {
  margin-top: -20px;
 }

 .row-2 {
  width: 130%;
 }

 .contact_container {
  margin-left: 12px;
 }
}

@media (max-width: 400px) {
 #projects .col {
  margin-left: 22px;
 }

 .contact_container {
  margin-left: 11px;
 }
}