:root {
  --primary-gradient: linear-gradient(135deg, #0061ff, #60efff);
  --dark-overlay: rgba(0, 0, 0, 0.6);
  --light-overlay: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(0, 97, 255, 0.3), rgba(96, 239, 255, 0.3)),
    url('img/hero-bg.webp') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 2s ease-in-out;
  overflow: hidden;
}

/* Efecto de partículas minimalista para el fondo */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, var(--light-overlay) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--light-overlay) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: subtleMove 20s infinite alternate;
}

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

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

/* Efecto de scroll parallax mejorado */
.about, .services, .contact {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* Degradado sutil al hacer scroll */
section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9));
  z-index: 1;
}

section {
  transition: all 0.7s ease-in-out;
  transform: translateY(0);
  opacity: 1;
  position: relative;
}

/* Tarjetas con efecto vidrio (glassmorphism) */
.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.2);
}

/* Botón con efecto de luz */
.btn {
  background: var(--primary-gradient);
  color: white;
  padding: 12px 28px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 106, 255, 0.3);
}

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

/* Barra de navegación con efecto de transparencia dinámica */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  transition: all 0.4s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

/* Footer con efecto de onda sutil */
.footer {
  background: linear-gradient(to top, #111, #222);
  color: #ccc;
  padding: 3rem 1rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23111' opacity='.25'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%23111' opacity='.5'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23111'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

/* Texto animado mejorado */
.typed-container {
  text-align: center;
  margin: 2rem 0;
}

.typed-heading {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: black;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.typed-text-element {
  display: inline-block;
  min-height: 1.2em;
  position: relative;
}

.typed-text-element::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.typed-text-element.active::after {
  transform: scaleX(1);
}

.typed-cursor {
  display: inline-block;
  margin-left: 2px;
  width: 3px;
  height: 1.1em;
  background-color: white;
  vertical-align: text-bottom;
  animation: typed-blink 0.7s infinite;
}

@keyframes typed-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 768px) {
  .typed-heading {
    font-size: 1.8rem;
  }
  
  .hero::before {
    background-size: 30px 30px;
  }
}