/* RESET */

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

/* FINE RESET */

/* STILE GENERALE */

html.sr .load-hidden {
  visibility: hidden;
}

body {
  font-family: "Roboto", sans-serif, Helvetica, Helvetica Neue;
  background-color: #f6f9fc;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

.container {
  padding: 0 40px;
  max-width: 1080px;
  margin: 0 auto;
}

video {
  width: 100%;
  height: auto;
  max-height: 477px;
  z-index: 1;
}

.link {
  font-weight: 500;
  color: #747fe0;
}

/* FINE STILE GENERALE */

/* HEADER */

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 35px 0;
}

.header-nav ul {
  display: flex;
}

.header-nav li {
  margin: 0 45px;
}

.header-nav a {
  position: relative;
  color: #5a5d7a;
  font-size: 19px;
  font-weight: 400;
  transition: 0.1s ease-in-out;
}

.header-nav a:hover {
  color: #7795f8;
}

.header-nav a:hover:after {
  width: 100%;
}

.header-nav a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 0;
  height: 8px;
  background-color: #747fe0;
  content: "";
  transition: width 0.15s;
}

.languages {
  margin: 35px 0;
}

.languages img {
  margin-right: 15px;
  width: 35px;
  height: 35px;
}

.languages img:hover {
  opacity: 0.5;
  cursor: pointer;
}

/* FINE HEADER */

/* WHO AM I */

.name {
  margin-top: 100px;
}

.name h2 {
  display: inline;
}

#myName {
  font-family: Lucida Console, Helvetica, Helvetica Neue;
  color: #747fe0;
  font-size: 72px;
  font-weight: 400;
}

.input {
  -webkit-animation: caret 1s steps(1) infinite;
          animation: caret 1s steps(1) infinite;
}

#name-input {
  background-color: rgba(116, 127, 224, 0.65);
  font-size: 72px;
}

@-webkit-keyframes caret {
  50% {
    background-color: transparent;
  }
}

@keyframes caret {
  50% {
    background-color: transparent;
  }
}

.description {
  margin: 80px 0;
  color: #525f7f;
  font-size: 20px;
  font-weight: 300;
  line-height: 40px;
}

.description a {
  font-weight: 500;
  color: #747fe0;
}

/* terminal div */

.terminal-header {
  height: 28px;
  background-color: #e4e3e5;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
}

[class^=header-button] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 9px;
}

.header-button.red {
  background-color: #f96256;
  border: 1px solid #f65549;
}

.header-button.yellow {
  background-color: #fdbc3d;
  border: 1px solid #ffb524;
}

.header-button.green {
  background-color: #33c948;
  border: 1px solid #2dbb41;
}

.terminal-window {
  background-color: #5a5d7a;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 50px 100px rgba(50, 50, 93, 0.15), 0 15px 35px rgba(50, 50, 93, 0.2), 0 5px 15px rgba(0, 0, 0, 0.12);
  font-family: Consolas, Lucida Console, Helvetica, Helvetica Neue;
  padding: 0 30px;
  padding-bottom: 50px;
}

.statement {
  padding-top: 35px;
}

.statement-input {
  color: white;
  font-weight: 300;
  padding-bottom: 7px;
}

.statement-response {
  color: #e7d184;
}

.statement-response a {
  color: #35feff;
}

#statement-light {
  background-color: rgba(247, 247, 247, 0.65);
  font-size: 16px;
}

/* FINE WHO AM I */

/* SKILLS */

.skills {
  margin: 75px 0 75px 0;
  text-align: center;
}

.skills h2,
.projects h2,
.contacts h2 {
  color: #525f7f;
  font-size: 24px;
  font-weight: 500;
}

.skills h2:after,
.projects h2:after,
.contacts h2:after {
  content: "";
  display: block;
  margin: 0 auto;
  margin-top: 30px;
  border: 4px solid #747fe0;
  width: 50px;
}

.skills-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 75px;
  padding-top: 80px;
  color: #525f7f;
  font-size: 20px;
  box-shadow: 0 50px 100px rgba(50, 50, 93, 0.15), 0 15px 35px rgba(50, 50, 93, 0.2), 0 5px 15px rgba(0, 0, 0, 0.12);
  border-radius: 75px;
}

.skills-icon div {
  width: 33%;
  padding-bottom: 50px;
}

.skills-icon img {
  width: 80px;
}

.skills-icon p {
  padding-top: 10px;
}

#html img {
  width: 200px;
  height: 85px;
}

#js-jquery img {
  height: 80px;
  width: auto;
}

#js-jquery p {
  padding-top: 12px;
}

#php-laravel img {
  width: 165px;
  position: relative;
  top: 12px;
}

#php-laravel p {
  position: relative;
  top: 12px;
}

#mysql img {
  width: 105px;
}

#vuejs img {
  width: 150px;
}

#vuejs p {
  padding-top: 15px;
}

#mysql p {
  position: relative;
  top: 5px;
}

/* FINE SKILLS */

/* PROJECTS */

.projects h2 {
  text-align: center;
  padding-bottom: 50px;
}

.project-card {
  margin-bottom: 80px;
  font-family: Open Sans, Helvetica, Helvetica Neue;
  background-color: white;
  box-shadow: 0 50px 100px rgba(50, 50, 93, 0.15), 0 15px 35px rgba(50, 50, 93, 0.2), 0 5px 15px rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  overflow: hidden;
  color: #525f7f;
}

.video-content {
  position: relative;
  padding: 60px 60px 0px 60px;
  padding-bottom: 0;
  background: linear-gradient(90deg, #DDECFF 50%, #c6c0f1 50%);
}

#filter-top {
  position: absolute;
  top: -3px;
  left: -1px;
  width: 100%;
}

.video {
  display: flex;
  justify-content: center;
}

#filter-bottom {
  position: absolute;
  width: calc(100% - 80px);
  max-width: 1000px;
}

.project-content {
  padding: 50px 40px 40px 40px;
}

.project-content h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 35px;
  font-weight: 500;
  font-size: 28px;
  line-height: 38px;
  text-align: center;
}

.project-content p {
  padding-bottom: 35px;
  line-height: 27px;
}

.project-skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.project-skills span {
  margin-right: 10px;
  margin-bottom: 10px;
  border: 2px solid #92eac0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
}

.project-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.project-links a {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-right: 20px;
}

.live-demo,
.view-source {
  height: 40px;
  line-height: 40px;
  padding: 0 15px;
  letter-spacing: 0.5px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.live-demo {
  background: #747fe0;
  color: white;
}

.live-demo:hover {
  background: #7795f8;
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.live-demo img {
  width: 19px;
  margin-left: 3px;
}

.view-source {
  background: white;
  color: #747fe0;
}

.view-source img {
  width: 20px;
  margin-right: 3px;
}

/* FINE PROJECTS */

/* CONTATTI */

.contacts {
  padding-top: 40px;
}

.contacts h2 {
  text-align: center;
}

.contact-links {
  margin-top: 150px;
  margin-bottom: 200px;
  text-align: center;
}

.contact-links span:not(:last-child):after {
  content: "||";
  color: #525f7f;
  margin: 0 30px;
}

.contact-links a {
  position: relative;
  color: #5a5d7a;
  font-size: 19px;
  font-weight: 400;
  transition: 0.1s ease-in-out;
}

.contact-links a:hover {
  color: #7795f8;
}

.contact-links a:hover:after {
  width: 100%;
}

.contact-links a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 0;
  height: 8px;
  background-color: #747fe0;
  content: "";
  transition: width 0.15s;
}

/* FINE CONTATTI */

/* FOOTER */

footer {
  text-align: center;
  padding-bottom: 50px;
}

footer span {
  font-family: Open Sans, Helvetica, Helvetica Neue;
  color: #525f7f;
  font-size: 13px;
}

/* FINE FOOTER */

/* MEDIA QUERY */

@media screen and (max-width: 920px) {
  .header-nav a {
    font-size: 16px;
  }

  #myName {
    font-size: 56px;
  }

  #name-input {
    font-size: 56px;
  }

  .description {
    margin: 50px 0;
  }
}

@media screen and (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .header-nav {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  video {
    max-height: 398px;
  }

  .languages {
    margin-top: 0;
  }

  .name {
    margin-top: 75px;
  }

  #myName {
    font-size: 42px;
  }

  #name-input {
    font-size: 42px;
  }

  .description p {
    line-height: 30px;
  }

  .skills-icon div {
    width: 50%;
  }

  .project-card {
    margin-bottom: 40px;
  }

  .video-content {
    padding: 10px 10px 0px 10px;
  }

  #filter-bottom {
    width: calc(100% - 40px);
  }

  .project-content {
    padding: 50px 30px 30px 30px;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    margin: 80px 0;
  }

  .contact-links span {
    margin: 20px 0;
  }

  .contact-links span:not(:last-child):after {
    content: "";
    margin: 0;
  }

  .research-areas {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* RESEARCH SECTION */

.research {
  margin: 75px 0 75px 0;
  text-align: center;
}

.research h2 {
  color: #525f7f;
  font-size: 24px;
  font-weight: 500;
}

.research h2:after {
  content: "";
  display: block;
  margin: 0 auto;
  margin-top: 30px;
  border: 4px solid #747fe0;
  width: 50px;
}

.research-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 75px;
  padding-top: 40px;
}

.research-card {
  background-color: white;
  box-shadow: 0 50px 100px rgba(50, 50, 93, 0.15), 0 15px 35px rgba(50, 50, 93, 0.2), 0 5px 15px rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  padding: 30px 25px;
  text-align: center;
  color: #525f7f;
  transition: transform 0.2s ease;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.research-card .card-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.research-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #525f7f;
}

.research-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: white;
  border: 2px solid #92eac0;
  border-radius: 4px;
  font-size: 13px;
  color: #525f7f;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: #92eac0;
  color: white;
  transform: scale(1.05);
}

/* PAPER SECTION */

.paper {
  padding: 50px 0;
}

.paper h2 {
  text-align: center;
  color: #525f7f;
  font-size: 24px;
  font-weight: 500;
  padding-bottom: 50px;
}

.paper h2:after {
  content: "";
  display: block;
  margin: 0 auto;
  margin-top: 30px;
  border: 4px solid #747fe0;
  width: 50px;
}

.paper-card {
  background-color: white;
  box-shadow: 0 50px 100px rgba(50, 50, 93, 0.15), 0 15px 35px rgba(50, 50, 93, 0.2), 0 5px 15px rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  padding: 40px 45px;
  margin: 0 auto;
  max-width: 900px;
  color: #525f7f;
  border-left: 4px solid #747fe0;
}

.paper-label {
  font-size: 12px;
  font-weight: 600;
  color: #747fe0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.paper-title {
  font-size: 24px;
  font-weight: 500;
  color: #525f7f;
  line-height: 1.4;
  margin-bottom: 15px;
}

.paper-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.paper-meta span {
  display: inline-block;
}

.paper-meta .highlight {
  color: #747fe0;
  font-weight: 500;
}

.paper-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* TIMELINE SECTION */

.timeline-section {
  padding: 50px 0;
}

.timeline-section h2 {
  text-align: center;
  color: #525f7f;
  font-size: 24px;
  font-weight: 500;
  padding-bottom: 50px;
}

.timeline-section h2:after {
  content: "";
  display: block;
  margin: 0 auto;
  margin-top: 30px;
  border: 4px solid #747fe0;
  width: 50px;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid #e0e0e0;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  font-size: 14px;
  color: #747fe0;
  font-weight: 500;
  padding-top: 2px;
}

.timeline-content h3 {
  font-size: 16px;
  font-weight: 500;
  color: #525f7f;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

@media screen and (max-width: 575px) {
  .header-nav {
    flex-direction: column;
    align-items: center;
  }

  .header-nav li {
    margin: 0 30px;
  }

  video {
    max-height: 290px;
  }

  #myName {
    font-size: 26px;
  }

  #name-input {
    font-size: 26px;
  }

  .description p {
    font-size: 18px;
  }

  .skills-icon div {
    width: 100%;
    padding-bottom: 50px;
  }
}

@media screen and (max-width: 400px) {
  video {
    max-height: 190px;
  }
}

