/* Base Styles */
:root {
    --tech-blue-400: #38bdf8;
    --tech-blue-500: #0ea5e9;
    --tech-blue-600: #0284c7;
    --tech-blue-700: #0369a1;
    --tech-blue-900: #0c4a6e;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
      "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: white;
    background: linear-gradient(to bottom, var(--slate-950), var(--slate-900));
    min-height: 100vh;
  }
  
  .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Typography */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: bold;
    line-height: 1.2;
  }
  
  .section-title {
    font-size: 1.875rem;
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .subsection-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--tech-blue-400);
  }
  
  p {
    margin-bottom: 1rem;
    color: var(--slate-300);
  }
  
  /* Layout */
  .two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .three-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .underline {
    text-decoration: underline;
    }
  
  @media (min-width: 768px) {
    .two-columns {
      grid-template-columns: 1fr 1fr;
    }
  
    .three-columns {
      grid-template-columns: 1fr 1fr 1fr;
    }
  }
  
  /* Header */
  header {
    padding: 1.5rem 0;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--tech-blue-400);
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
  }
  
  .icon-button {
    color: var(--tech-blue-400);
    transition: color 0.3s;
  }
  
  .icon-button:hover {
    color: var(--tech-blue-300);
  }
  
  /* Hero Section */
  .hero {
    padding: 5rem 0;
    text-align: center;
  }
  
  .profile-image {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--tech-blue-500);
  }
  
  .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .name {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .location {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--slate-300);
  }
  
  .location i {
    margin-right: 0.5rem;
    color: var(--tech-blue-400);
  }
  
  .title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--tech-blue-400);
  }
  
  .bio {
    max-width: 42rem;
    margin: 0 auto 2rem;
  }
  
  .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  /* Buttons */
  .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
  }
  
  .button.primary {
    background-color: var(--tech-blue-600);
    color: white;
  }
  
  .button.primary:hover {
    background-color: var(--tech-blue-700);
  }
  
  .button.outline {
    border: 1px solid var(--tech-blue-600);
    color: var(--tech-blue-400);
  }
  
  .button.outline:hover {
    background-color: rgba(8, 145, 178, 0.1);
  }
  
  /* Sections */
  section {
    padding: 5rem 0;
  }
  
  .skills,
  .projects {
    background-color: rgba(15, 23, 42, 0.5);
  }
  
  /* Focus Section */
  .focus {
    background-color: rgba(15, 23, 42, 0.35);
  }
  
  .focus-list {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.25rem;
  }
 
  .focus-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: start;
    column-gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--slate-700);
  }
 
  .focus-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
 
  .focus-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--tech-blue-400);
  }
 
  @media (min-width: 768px) {
    .focus-list {
      gap: 1.5rem;
    }
  }
  
  /* Cards */
  .card {
    background-color: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: 0.5rem;
    padding: 1.5rem;
  }
  
  /* Badges */
  .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background-color: var(--tech-blue-600);
    color: white;
  }
  
  .badge.outline {
    background-color: transparent;
    border: 1px solid var(--tech-blue-500);
    color: var(--tech-blue-400);
  }
  
  /* Timeline */
  .timeline {
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
  }
  
  .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background-color: var(--tech-blue-500);
  }
  
  .timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
  }
  
  .timeline-marker {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background-color: var(--tech-blue-500);
    border-radius: 50%;
    left: -0.5rem;
    top: 0.25rem;
  }
  
  .job-title {
    color: var(--slate-400);
    margin-bottom: 0.5rem;
  }
  
  /* Project Cards */
  .project-card {
    background-color: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Aggiunge una transizione dolce */

  }

  .project-card:hover {
    /* Puoi aggiungere uno stile al passaggio del mouse, se necessario */
    opacity: 0.8; /* Ad esempio, rendere leggermente trasparente al passaggio del mouse */
    transform: translateY(-10px); /* Muove leggermente verso l'alto */
  }
  
  .project-image {
    height: 12rem;
    background-color: var(--slate-700);
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--tech-blue-400);
  }
  
  /* Contact Cards */
  .contact-cards {
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--slate-800);
    border-radius: 0.5rem;
  }
  
  .icon-container {
    background-color: rgba(14, 165, 233, 0.2);
    padding: 0.75rem;
    border-radius: 50%;
    color: var(--tech-blue-400);
  }
  
  /* Footer */
  footer {
    background-color: var(--slate-950);
    padding: 2rem 0;
    text-align: center;
    color: var(--slate-400);
    margin-top: auto;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .section-title {
      font-size: 1.5rem;
      margin-bottom: 2rem;
    }
  
    .name {
      font-size: 2.25rem;
    }
  
    .title {
      font-size: 1.25rem;
    }
  
    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }
  
    .button {
      width: 100%;
      text-align: center;
    }

  }
  