/* landing_page.css */

/* ============================================ */
/* NAVIGATION BUTTONS */
/* ============================================ */
.nav-btn {
  padding: 1rem 1.5rem;
  font-weight: bold;
  border-radius: 9999px;
  transition: all 0.5s;
  background: linear-gradient(to right, #9333ea, #2563eb, #06b6d4);
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
}

.nav-btn-cta {
  padding: 0.5rem 1.25rem;
  font-weight: bold;
  border-radius: 9999px;
  transition: all 0.5s;
  color: white;
  background: linear-gradient(to right, #ec4899, #9333ea, #3b82f6);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.nav-btn-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.8);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero-content {
  height: 95vh;
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: top;
}

.hero-content-left {
  flex: 1;
}

.hero-text {
  min-width: 150px;
}

.hero-buttons .nav-btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================ */
/* STATS */
/* ============================================ */
.my-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

/* ============================================ */
/* FEATURES */
/* ============================================ */
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.feature-icon {
  flex: 0 0 100px;
  margin: auto;
}

.feature-image {
  max-height: 250px;
  max-width: 250px;
  border-radius: 30%;
}

.feature-text {
  flex: 1;
  text-align: justify;
  min-width: 300px;
  margin: 0 20px;
}

/* ============================================ */
/* TEAM SECTION */
/* ============================================ */
.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

/* ============================================ */
/* PROGRESS BAR */
/* ============================================ */
.my-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 40px 0;
    width: 100%;
    padding-bottom: 70px; /* Spazio per le etichette */
}

/* linea grigia di fondo */
.my-stepper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
    border-radius: 2px;
}

/* linea di progresso animata */
.progress-line {
    position: absolute;
    top: 25px;
    left: 25px;
    height: 4px;
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
    z-index: 2;
    width: 0%;
    transition: width 0.8s ease;
    border-radius: 2px;
}

.my-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    flex: 0 0 auto; /* Non crescere né ridursi - mantiene solo la larghezza del cerchio */
}

.my-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    transition: all 0.5s ease;
}

/* step attivi e completati */
.my-step-circle.active,
.my-step-circle.completed {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.4);
}

/* etichette - posizionamento assoluto per centratura perfetta */
.my-step-label {
    position: absolute;
    top: 65px; /* Sotto il cerchio */
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #999;
    font-weight: 500;
    text-align: center;
    transition: color 0.5s ease;
    white-space: nowrap; /* Evita che il testo vada a capo */
    min-width: 120px; /* Larghezza minima per testi corti */
}

.my-step.active .my-step-label,
.my-step.completed .my-step-label {
    color: #8e2de2;
    font-weight: bold;
}

/* layout verticale (responsive) */
@media (max-width: 600px) {
    .my-stepper {
        flex-direction: column;
        align-items: flex-start;
        margin: 20px 0;
        padding-bottom: 0;
    }

    .my-stepper::before {
        top: 0;
        bottom: 0;
        left: 25px;
        right: auto;
        width: 4px;
        height: auto;
    }

    .progress-line {
        top: 0;
        left: 25px;
        width: 4px !important;
        height: 0%;
        transition: height 0.8s ease;
    }

    .my-step {
        flex-direction: row;
        align-items: center;
        width: 100%;
        margin-bottom: 30px;
    }

    .my-step:last-child {
        margin-bottom: 0;
    }

    .my-step-label {
        position: static;
        transform: none;
        margin-top: 0;
        margin-left: 20px;
        text-align: left;
        white-space: normal;
        min-width: auto;
    }
}

/* ============================================ */
/* CHAT MESSAGES */
/* ============================================ */
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
}

.message {
  max-width: 70%;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  animation: fadeIn 0.5s;
}

.sender {
  background-color: #9370db; /* Medium Purple */
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.receiver {
  background-color: #d8bfd8; /* Thistle */
  color: #3b0764; /* Indaco */
  align-self: flex-start;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.particles-bg {
    background: linear-gradient(170deg, #3b0764 30%, #712da4);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media only screen and (max-width: 700px) {
  .hero-container {
    height: 1300px;
  }
}

/* ============================================ */
/* SMOOTH SCROLL */
/* ============================================ */
html {
  scroll-behavior: smooth;
}