/* General Styles */
body {
  background: black;
  color: white;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

/* Navbar Styles */
.navbar {
  background-color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
}
.navbar-nav li:first-child a {
  color: #00eaff; /* Change this to your preferred color */
  font-weight: bold; /* Optional: Makes it stand out */
}

.navbar-brand img {
  width: 120px; /* Logo size */
  height: auto;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar-nav li {
  display: inline;
}

.navbar-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

/* Hero Section Styles */
.hero {
  display: flex;
  align-items: center; /* Vertically align items */
  justify-content: space-around; /* Space between content and image */
  padding: 30px 50px; /* Add padding for spacing */
}

.hero-content {
  max-width: 50%; /* Limit content width */
}

.hero-content h1 {
  font-size: 38px;
  margin: 0;
}

.hero-content h3 {
  font-size: 20px;
  margin-top: 10px;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.5;
}

.btn-custom {
  background-color: #00eaff;
  color: white;
  border-radius: 25px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.social-icons {
  margin-top: 25px;
}

.social-icons a {
  color: white;
  font-size: 24px;
  margin: 0 10px;
  text-decoration: none;
}

/* Image Styles */
.profile-picture {
  width: 400px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensure image covers its container */
  width: 300px;
  height: 340px;
  background: linear-gradient(to right, #009688, #3f51b5);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 20px #00eaff;
}
span {
  color: #00eaff;
}
.logo {
  margin-left: 3em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    flex-direction: column; /* Stack content vertically on smaller screens */
    text-align: center; /* Center-align content */
  }

  .hero-content {
    max-width: 100%; /* Allow full width for content */
  }

  .profile-picture {
    width: 300px; /* Reduce size for smaller screens */
    margin-top: 20px; /* Add spacing between content and image */
  }
}
footer {
  background: black;
  color: white;
  text-align: center;
  position: relative;
  padding-top: 50px;
  font-family: Arial, sans-serif;
}

.footer-wave svg {
  width: 100%;
  position: absolute;
  top: -10px;
  left: 0;
}
footer hr {
  width: 60%;
  margin: 20px auto;
  border: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2); /* Light transparent line */
}

.footer-content {
  padding: 40px 20px;
}

.social-icons {
  margin-bottom: 15px;
}

.social-icons a {
  color: white;
  font-size: 24px;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00eaff;
}

.footer-nav {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.footer-nav li {
  margin: 0 15px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #084b51;
}

footer p {
  font-size: 14px;
  opacity: 0.7;
}
/* Add to your existing CSS */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px; /* Reduce padding on mobile */
  }

  .menu-toggle {
    display: block;
  }

  .navbar-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: black;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    gap: 15px;
  }

  .navbar-nav.active {
    left: 0;
  }

  .logo {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .hero-content {
    max-width: 100%;
    order: 2; /* Move content below image on mobile */
  }

  .profile-picture {
    width: 220px; /* Make smaller on mobile */
    height: 250px;
    margin-bottom: 20px;
    order: 1; /* Display image first on mobile */
  }

  .hero-content h1 {
    font-size: 32px; /* Smaller heading on mobile */
  }

  .hero-content h3 {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
  }

  .navbar-brand img {
    width: 100px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .btn-custom {
    padding: 8px 16px;
    font-size: 14px;
  }

  .profile-picture {
    width: 180px;
    height: 200px;
  }
}
@media (max-width: 768px) {
  .social-icons a {
    font-size: 20px;
    margin: 0 8px;
  }

  footer p {
    font-size: 12px;
  }
}
.cv-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.cv-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.cv-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000; /* Assicura che sia sopra tutto il resto */
    justify-content: center;
    align-items: center;
  }
  
  .overlay-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
  }
  
  .cv-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1010; /* Aggiunto un z-index più alto del contenitore */
  }
.social-frame {
  width: 100%;
  height: 100%;
  border: none;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
/* Modifica lo stile del menu mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px; /* Reduce padding on mobile */
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2000; /* Più alto del menu per rimanere visibile */
    cursor: pointer;
  }
  
  /* Cambia l'icona quando il menu è aperto */
  .menu-toggle.active i:before {
    content: "\f00d"; /* Codice Font Awesome per l'icona X */
  }
  
  .menu-toggle.active i {
    color: black; /* L'icona diventa nera quando il menu è aperto */
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    left: -100%;
    flex-direction: column;
    background-color: white; /* Cambiato da nero a bianco */
    width: 100%;
    height: 100vh; /* Occupa tutta l'altezza dello schermo */
    text-align: center;
    transition: 0.3s;
    z-index: 1500; /* Z-index alto per sovrapporsi a tutto */
    display: flex;
    justify-content: center; /* Centra verticalmente */
    align-items: center; /* Centra orizzontalmente */
    padding: 0;
  }

  .navbar-nav.active {
    left: 0;
  }

  .navbar-nav li {
    margin: 20px 0;
    display: block;
  }

  .navbar-nav a {
    color: black; /* Cambiato da bianco a nero */
    font-size: 24px; /* Aumenta la dimensione del testo */
  }
  
  /* Mantieni l'evidenziazione dell'elemento Home, ma in un altro colore per sfondo bianco */
  .navbar-nav li:first-child a {
    color: #009688; /* Colore visibile su sfondo bianco */
    font-weight: bold;
  }

  .logo {
    margin-left: 0;
  }
}
