/* ===========================================
   VERCAM HOMEPAGE - Modern CSS
   =========================================== */

/* CSS Custom Properties */
:root {
  --vercam-primary: #43e97b;
  --vercam-secondary: #198754;
  --vercam-accent: #00b4d8;
  --vercam-dark: #0d6efd;
  --text-primary: #222;
  --text-secondary: #666;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --shadow-light: rgba(67, 233, 123, 0.07);
  --shadow-medium: rgba(67, 233, 123, 0.15);
  --shadow-strong: rgba(67, 233, 123, 0.25);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===========================================
   SERVICE CARDS
   =========================================== */

.card {
  border-radius: const(--border-radius-xl);
  box-shadow: 0 8px 32px const(--shadow-medium), 0 2px 12px const(--shadow-light);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: all const(--transition-normal);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(67, 233, 123, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67, 233, 123, 0.05), transparent);
  transition: left const(--transition-slow);
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  box-shadow: 0 16px 64px const(--shadow-strong);
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.95);
}

.card i, .card svg {
  font-size: 3rem !important;
  margin-bottom: 1.5rem;
  color: const(--vercam-secondary);
  transition: const(--transition-normal);
}

.card:hover i, .card:hover svg {
  transform: scale(1.1);
  color: const(--vercam-primary);
}

.card h3, .card h4 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: const(--text-primary);
  font-weight: 600;
  text-align: center;
}

.card p {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
  color: const(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

/* ===========================================
   WEB3 BADGE
   =========================================== */

.badge-web3 {
  display: inline-block;
  background: linear-gradient(135deg, const(--vercam-primary) 0%, const(--vercam-secondary) 100%);
  color: const(--bg-white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.625rem 1.5rem;
  border-radius: const(--border-radius-xl);
  box-shadow: 0 4px 16px const(--shadow-medium);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  animation: badgePulse 2.5s infinite, fadeInBadge 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 1;
  position: relative;
  overflow: hidden;
}

.badge-web3::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.badge-web3:hover::before {
  left: 100%;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.3);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(67, 233, 123, 0.3);
  }
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===========================================
   ADVANTAGES SECTION
   =========================================== */

.section-vantaggi {
  min-height: 480px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px const(--shadow-light);
  border-radius: const(--border-radius-xl);
  margin: 2rem 0;
}

/* ===========================================
   MOBILE RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
  .section-servizi .container,
  .section-vantaggi .container {
    padding: 0 1.25rem;
    min-height: 400px;
  }

  .section-servizi .row,
  .section-vantaggi .row {
    flex-direction: column !important;
    gap: 2.5rem;
  }

  .card {
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    border-radius: const(--border-radius-xl);
    box-shadow: 0 8px 25px const(--shadow-medium);
  }

  .card i, .card svg {
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem;
  }

  .card h3, .card h4 {
    font-size: 1.625rem;
    margin-bottom: 1.25rem;
  }

  .card p {
    font-size: 1.125rem;
    line-height: 1.7;
  }

  .section-vantaggi {
    min-height: 420px;
    box-shadow: none;
    margin: 1rem 0;
  }

  .hero-section h1 {
    font-size: 2.75rem;
    line-height: 1.2;
  }

  .hero-section .lead {
    font-size: 1.25rem;
    line-height: 1.6;
  }

  .badge-web3 {
    font-size: 1.0625rem;
    padding: 0.75rem 1.75rem;
  }
}
