/* === Global Setup === */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}
body {
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: var(--font-body);
  position: relative;
}

.persistent-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
  z-index: 999;
  background-color: transparent;
  padding: 10px;
  border-radius: 10px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  line-height: 1;
  display: flex;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Light Particles */

.service-hero {
  position: relative;
  background: radial-gradient(ellipse at bottom, #1b0c1d 0%, #0d0d0d 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
  min-height: 100vh;
  width: 100%;
}

.background-lights {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.light {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #9d44ff;
  box-shadow: 0 0 15px 2px rgba(157, 68, 255, 0.6);
  opacity: 0;
  animation-fill-mode: forwards;
  top: 100vh;
  left: 50%;
  transform: translateX(-50%);
}

/* Floating Up Animations */
@keyframes floatUp {
  0% {
    top: 100vh;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    top: 50vh;
    opacity: 0.8;
  }
  75% {
    opacity: 1;
  }
  100% {
    top: -10vh;
    opacity: 0;
  }
}

/* === Individual Floating Timings === */
.x1 {
  animation: floatUp 4s linear infinite;
  transform: scale(1) translateX(-50%);
}
.x2 {
  animation: floatUp 6s linear infinite;
  transform: scale(1.5) translateX(-250px);
}
.x3 {
  animation: floatUp 3.2s linear infinite;
  transform: scale(0.7) translateX(200px);
}
.x4 {
  animation: floatUp 5s linear infinite;
  transform: scale(1.2) translateX(-400px);
}
.x5 {
  animation: floatUp 7.5s linear infinite;
  transform: scale(2.2) translateX(350px);
}
.x6 {
  animation: floatUp 3.5s linear infinite;
  transform: scale(0.9) translateX(-600px);
}
.x7 {
  animation: floatUp 4.8s linear infinite;
  transform: scale(1.7) translateX(450px);
}
.x8 {
  animation: floatUp 5.6s linear infinite;
  transform: scale(1.3) translateX(100px);
}
.x9 {
  animation: floatUp 6.2s linear infinite;
  transform: scale(1) translateX(-150px);
}

/* === Section Titles === */
.container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto 100px;
}

.hero-title {
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 1px;
}

.adv-title {
  font-size: clamp(3.2rem, 5vw, 8rem);
  font-weight: 700;
  color: #ffffff;
  display: inline-block;
}

.highlight-ai {
  color: #9d44ff;
  position: relative;
  display: inline-block;
}

.highlight-ai::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #9d44ff;
  border-radius: 2px;
}

.hero-subline {
  font-size: clamp(2rem, 7vw, 3.6rem);
  color: #f0f0f0;
  font-weight: 600;
  display: block;
  margin-top: 10px;
}

.service-hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-body);
  color: #cccccc;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 900px;
  margin: 20px auto;
}

/* === Entrance Animations === */
.animate-adv {
  opacity: 0;
  transform: scale(0.8);
  animation: fadeScaleIn 0.6s ease-out forwards;
}

.animate-subline {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

.animate-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-button-container {
  margin-top: 40px;
  z-index: 1;
  position: relative;
}

.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 18px 38px;
  background-color: #9d44ff;
  color: #ffffff;
  font-weight: bold;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(157, 68, 255, 0.6);
  animation: buttonPulse 2s infinite;
}

.cta-button:hover {
  background-color: #b36dff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: none;
}

/* Pulse effect */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(157, 68, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(157, 68, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(157, 68, 255, 0);
  }
}

/* === Responsive Typography for Hero === */
@media (max-width: 1200px) {
  .cta-button {
    padding: 16px 32px;
  }
}

@media (max-width: 992px) {
  .cta-button {
    padding: 14px 28px;
  }
}

@media (max-width: 768px) {
  .cta-button {
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .cta-button {
    padding: 10px 20px;
  }
  .cta-button,
  .cta-secondary-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
}

/* Circle */
.circle-ripple-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  justify-content: flex-end;
  align-items: flex-end;
}

.circle {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
  border-radius: 50%;
  background: #9d44ff;
  animation: ripple 15s infinite ease-in-out;
  box-shadow: 0 0 1px 0 #9d44ff;
  top: 90%;
  left: 0%;
  transform: translate(-50%, -50%);
}

.small {
  width: 200px;
  height: 200px;
}
.medium {
  width: 400px;
  height: 400px;
}
.large {
  width: 600px;
  height: 600px;
}
.xlarge {
  width: 800px;
  height: 800px;
}
.xxlarge {
  width: 1000px;
  height: 1000px;
}

.shade1 {
  opacity: 0.15;
}
.shade2 {
  opacity: 0.08;
}
.shade3 {
  opacity: 0.05;
}
.shade4 {
  opacity: 0.04;
}
.shade5 {
  opacity: 0.03;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* === Section Title & Subtitle === */

.section-title {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  color: #ffffff;
  text-align: left;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.2rem;
  font-family: var(--font-body);
  color: #cccccc;
  text-align: left;
  margin-left: 10px;
  margin-bottom: 60px;
}
.section-title::after {
  display: none;
}

/* === Service Items Container === */
.service-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* === Service Card Base === */
.service-card {
  display: flex;
  background-color: #141414;
  padding: 20px 25px;
  padding-top: 10px;
  max-width: 800px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(157, 68, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-card.hidden-card {
  opacity: 0;
  transform: translateX(0);
}

.service-card.left {
  margin-left: 0;
  margin-right: auto;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}

.service-card.right {
  margin-right: 0;
  margin-left: auto;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-start;
}

.card-content {
  max-width: 800px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #9d44ff;
  margin-top: 10px;
  margin-bottom: -10px;
}

.card-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: -5px;
}

.card-text {
  font-family: var(--font-body);
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.6;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-60px);
  animation: fadeLeft 0.8s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  animation: fadeRight 0.8s ease-out forwards;
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .service-card {
    flex-direction: column !important;
    padding: 25px;
  }

  .card-content {
    max-width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .card-subtitle {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.95rem;
  }
}

/* === Free Highlight Section === */
.highlight-section {
  background: linear-gradient(to top, rgba(157, 68, 255, 0.06), transparent 50%),
    linear-gradient(to bottom, rgba(157, 68, 255, 0.06), transparent 50%);
  padding: 80px 0;
  text-align: center;
}

.highlight-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
  margin-bottom: 30px;
}

.highlight-text {
  font-family: var(--font-body);
  max-width: 800px;
  margin: 0 auto 80px;
  color: #cccccc;
  font-size: 1.2rem;
  line-height: 1.6;
}

.cta-secondary-button {
  display: inline-block;
  padding: 16px 38px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  font-family: var(--font-body);
  background: transparent;
  color: #b36dff;
  border: 2px solid #9d44ff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px 10px rgba(157, 68, 255, 0.2);
  margin-bottom: -30px;
}

/* Hover effect */
.cta-secondary-button:hover {
  background-color: rgba(157, 68, 255, 0.1);
  color: #ffffff;
  border-color: #b36dff;
  box-shadow: 0 0 10px rgba(157, 68, 255, 0.3);
  transform: translateY(-2px);
}

/* Inizialmente nascoste */
.hidden-highlight {
  opacity: 0;
  transform: translateY(20px);
}

/* Animazione visibile */
.fade-up-visible {
  animation: fadeUpHighlight 0.8s ease-out forwards;
}

@keyframes fadeUpHighlight {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .highlight-section {
    padding: 60px 20px;
  }

  .highlight-title {
    line-height: 1.3;
  }

  .highlight-text {
    font-size: 1rem;
    margin-bottom: 50px;
  }

  .cta-secondary-button {
    padding: 14px 28px;
    margin-bottom: 0;
  }
}

/* === How It Works Section === */
.timeline {
  position: relative;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  width: 2px;
  height: 100%;
  background: rgba(157, 68, 255, 0.3);
  z-index: 0;
}

.timeline-item {
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  margin-bottom: 60px;
  padding-left: 30px;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: -22px;
  width: 44px;
  height: 44px;
  background: #141414;
  border: 2px solid #9d44ff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 600;
  color: #9d44ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  z-index: 1;
}

.timeline-content {
  background-color: #141414;
  border-radius: 12px;
  padding: 20px 25px;
  border: 1px solid rgba(157, 68, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  color: #cccccc;
}

.timeline-icon:hover,
.timeline-content:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(157, 68, 255, 0.1);
  cursor: default;
}

.how-title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
  margin-top: 5px;
  margin-bottom: 70px;
  text-align: left;
}

.how-box-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #9d44ff;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.how-box-text {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.6;
  font-family: var(--font-body);
}

/* Mobile */
@media (max-width: 768px) {
  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    margin-bottom: 40px;
    padding-left: 20px;
  }

  .timeline-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    left: -18px;
  }

  .how-title {
    text-align: center;
  }
}

.timeline-item.animate {
  animation: fadeUpTimeline 0.8s ease-out forwards;
}

@keyframes fadeUpTimeline {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item:nth-child(1).animate {
  animation-delay: 0s;
}
.timeline-item:nth-child(2).animate {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(3).animate {
  animation-delay: 0.4s;
}

/* === Future Vision === */

.future-vision {
  padding: 100px 0;
}

.vision-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
  max-width: 1300px;
  width: 95%;
  margin: 0 auto;
  padding: 0 40px;
}

.vision-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  margin-bottom: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  max-width: 1000px;
  word-break: keep-all;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.vision-quote-box {
  background: rgba(157, 68, 255, 0.05);
  padding: 25px 35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #9d44ff;
  border-radius: 16px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.5rem;
  color: #dddddd;
  max-width: 800px;
  line-height: 1.6;
  box-shadow: 0 10 25px rgba(157, 68, 255, 0.12);
  transition: all 0.3s ease;
}
.vision-quote-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(157, 68, 255, 0.2);
  background: rgba(157, 68, 255, 0.08);
}

.vision-text-block {
  margin-top: 10px;
  max-width: 1150px;
  width: 100%;
  text-align: left;
  font-size: 1.3rem;
  line-height: 1.8;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 35px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  color: #dddddd;
}

.vision-text-block p {
  margin-bottom: 25px;
}

.vision-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vision-block-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
  font-family: var(--font-heading);
  text-align: left;
}

.vision-list li {
  background-color: rgba(255, 255, 255, 0.04);
  padding: 16px 20px 16px 50px;
  border-radius: 10px;
  border: 1px solid rgba(157, 68, 255, 0.15);
  position: relative;
  font-size: 1.15rem;
  color: #dddddd;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  line-height: 1.6;
}

.vision-list li strong {
  color: #9d44ff;
  font-weight: 700;
}

.vision-list li:hover {
  box-shadow: 0 0 20px rgba(157, 68, 255, 0.1);
  transform: translateY(-2px);
}

.vision-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #9d44ff;
  font-size: 1.1rem;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 768px) {
  .vision-title {
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .vision-quote-box {
    font-size: 1.2rem;
    padding: 20px;
  }

  .vision-text-block {
    font-size: 1rem;
    text-align: center;
  }

  .vision-list li {
    padding-left: 0;
  }

  .vision-list li::before {
    display: none;
  }

  .vision-block-heading {
    font-size: 1.2;
  }
}

/* === Footer === */

footer .container {
  margin-bottom: 0 !important;
}

@media (max-width: 600px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-content {
    padding: 16px;
  }
}
