/* Stili Base */
:root {
  --primary-color: #2D3436;
  --accent-color: #0984E3;
  --gradient-start: #f5f7fa;
  --gradient-end: #e4e8eb;
  --text-color: #2D3436;
  --transition-speed: 0.3s;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  background-image: 
    linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 10px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.cta-primary {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: var(--glass-bg);
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.6s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid var(--glass-border);
  box-shadow: 
    0 8px 32px 0 var(--glass-shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.cta-primary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 12px 40px 0 var(--glass-shadow),
    0 0 0 2px var(--accent-color),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(9, 132, 227, 0.2);
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(9, 132, 227, 0.2),
    transparent
  );
  transition: 0.5s;
}

.cta-primary:hover::before {
  left: 100%;
}

/* Floating Element 3D */
.floating-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  perspective: 1000px;
  width: 300px;
  height: 300px;
  background: white;
  border-radius: 20px;
  box-shadow: 
    0 0 20px rgba(0,0,0,0.1),
    inset 0 0 20px rgba(255,255,255,0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: float3D 8s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-element::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  border-radius: 20px;
}

/* Animazioni */
@keyframes float3D {
  0% {
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translate(-50%, -50%) rotateX(10deg) rotateY(10deg);
  }
  50% {
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
  }
  75% {
    transform: translate(-50%, -50%) rotateX(-10deg) rotateY(-10deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Effetti Mouse Parallax */
.hero {
  cursor: none;
}

.cursor {
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: transform 0.2s ease;
  z-index: 9999;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  background: rgba(9, 132, 227, 0.1);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.2s ease;
  z-index: 9998;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .floating-element {
    width: 200px;
    height: 200px;
  }
}

/* Effetti di Scorrimento */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--accent-color);
  border-radius: 15px;
  opacity: 0.7;
  animation: scrollIndicator 2s infinite;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: scrollDot 2s infinite;
}

@keyframes scrollIndicator {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* Technology Section */
.technology {
  position: relative;
  padding: 120px 0;
  background: var(--primary-color);
  color: white;
  overflow: hidden;
}

.technology::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(9, 132, 227, 0.15) 0%, transparent 50%);
  opacity: 0.5;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.tech-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(9, 132, 227, 0.2);
}

.tech-item:hover::before {
  transform: translateX(100%);
}

.tech-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  position: relative;
}

.tech-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-color);
  filter: drop-shadow(0 0 10px rgba(9, 132, 227, 0.3));
  transition: all 0.3s ease;
}

.tech-item:hover .tech-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(9, 132, 227, 0.5));
}

.tech-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tech-visual {
  position: relative;
  height: 120px;
  margin-top: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.tech-visual .visual-element {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(9, 132, 227, 0.1),
    rgba(108, 92, 231, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-item:hover .visual-element {
  opacity: 1;
}

.tech-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
    repeating-linear-gradient(45deg, transparent 0px, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .tech-item {
    padding: 1.5rem;
  }
  
  .tech-visual {
    height: 100px;
  }
}

/* Applications Section */
.applications {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.applications::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
}

.applications::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0px, transparent 2px, rgba(9, 132, 227, 0.05) 2px, rgba(9, 132, 227, 0.05) 4px);
  opacity: 0.5;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes textureMove {
  0% {
    background-position: 0% 0%, 100% 100%, 0% 0%, 0% 0%, 0% 0%;
  }
  100% {
    background-position: 100% 100%, 0% 0%, 100% 100%, 100% 100%, 100% 100%;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-top: 1rem;
  text-align: center;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.app-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  position: relative;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-color);
  filter: drop-shadow(0 0 10px rgba(9, 132, 227, 0.3));
  transition: all 0.3s ease;
}

.app-card:hover .card-icon svg {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(9, 132, 227, 0.5));
}

.app-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.app-card h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.app-card:hover h3::after {
  width: 100%;
}

.app-card p {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-visual {
  position: relative;
  height: 200px;
  background: linear-gradient(45deg, 
    rgba(9, 132, 227, 0.1),
    rgba(108, 92, 231, 0.1)
  );
  overflow: hidden;
}

.visual-element {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%),
    repeating-linear-gradient(45deg, transparent 0px, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover .visual-element {
  opacity: 1;
  animation: shine 2s infinite;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 132, 227, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.app-card:hover .card-overlay {
  opacity: 1;
}

.overlay-text {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.2s ease;
  will-change: transform, opacity;
}

.app-card:hover .overlay-text {
  transform: translateY(0);
  opacity: 1;
}

.overlay-text:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .card-visual {
    height: 150px;
  }
} 