@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap");

/* Rotte Colori */
:root {
  --dark-clr: #081d2c;
  --second-dark-clr: #112e42;
  --text-clr: #f1f5f9;
  --light-text-clr: #c9d9e8;
  --global-clr: #0fbbff;
  --btn-clr: #ff499e;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

/* HTML & body style */
html {
  overflow-x: hidden;
}

body {
  font-family: "Jost", sans-serif;
  background: var(--dark-clr);
  color: var(--text-clr);
}

/* NAVBAR */
.navbar-brand {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-clr);
}

.navbar-brand span {
  color: var(--global-clr);
}

.navbar ul li a {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-clr);
}

.navbar ul li a:hover,
.navbar ul li a.nav-link.active {
  color: var(--global-clr);
}

/* Stile per trattino menu */
.nav-item {
  margin-right: 20px;
  margin-left: 20px;
}

.nav-link {
  position: relative;
  padding-bottom: 5px;
  transition: 0.3s ease;
}

/* Bandiere Lingua */
.flag-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

.flag-btn img {
  border-radius: 3px;
  transition: transform 0.2s;
}

.flag-btn img:hover {
  transform: scale(1.1);
}

/* Trattino per il link attivo e al passaggio del mouse */
.nav-link:hover::after,
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: var(--global-clr);
}

/* Cv button */
.cv-button {
  background: var(--btn-clr);
  padding: 12px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  text-decoration: none;
  color: white;
}

.cv-button:hover {
  background-color: #0fbbff;
}

/* MAIN */
/* Effetto macchina da scrivere */
.hero-image img {
  filter: drop-shadow(0 0 60px var(--global-clr));
}

.hero-content h2 span {
  color: var(--global-clr);
}

.hero-description {
  font-size: 20px;
}

.cursor {
  display: inline;
}

.cursor.typing::after {
  content: "|";
  color: var(--global-clr); 
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.typed-text,
.cursor {
  display: inline;
  visibility: visible;
}

/* Social Icons */
.social-icons a {
  font-size: 35px;
  background: transparent;
  color: var(--global-clr);
}

.social-icons a:hover {
  color: var(--text-clr);
}

/* Hero Buttons  */
.hero-btn .btn {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-clr);
  background: var(--global-clr);
  border: 2px solid var(--global-clr);
  border-radius: 5px;
}

.btn:hover {
  color: var(--text-clr);
}

/* FOOTER */
/* Stats Section */
.stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 200px;
}

.stats .stat:not(:last-child) {
  border-right: 1px solid var(--light-text-clr);
  padding-right: 5%;
}

.stats .stat h2 {
  font-size: 75px;
  font-weight: 600;
}

.stats .stat span {
  color: var(--light-text-clr);
  font-size: 20px;
}

/* RESPONSIVE */
@media (max-width: 500px) {
  /* Rimuove il trattino per hover e active */
  .nav-link:hover::after,
  .nav-link.active::after {
    content: none;
  }

  .stats .stat:not(:last-child) {
    border-right: none;
    padding-right: none;
  }
}
