@keyframes fade-in {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: none;}
}
.animate-fade-in {
  animation: fade-in 1s cubic-bezier(.4,0,.2,1) both;
}
.animate-fade-in.delay-200 { animation-delay: 0.2s; }
.animate-fade-in.delay-400 { animation-delay: 0.4s; }

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-60px);}
  to { opacity: 1; transform: none;}
}
.animate-slide-in-left {
  animation: slide-in-left 1s cubic-bezier(.4,0,.2,1) both;
}
.animate-slide-in-left.delay-200 { animation-delay: 0.2s; }

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(60px);}
  to { opacity: 1; transform: none;}
}
.animate-slide-in-right {
  animation: slide-in-right 1s cubic-bezier(.4,0,.2,1) both;
}
.animate-slide-in-right.delay-200 { animation-delay: 0.2s; }

@keyframes fade-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-bg-fade {
  animation: fade-bg 2s cubic-bezier(.4,0,.2,1) both;
} 

:root {
  --primary-color: #00FF99; /* Vibrant green for text and button */
  --secondary-color: #111313; /* Darker background color */
  --tertiary-color: #1A1A1A; /* Slightly lighter background for blocks */
  --dark-accent-bg: #54dba317; /* Darker accent background for specific blocks */
  --accent-color: #00C6FF; /* Blue for button glow */
}

.svg-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  filter: blur(5px);
}

.svg-background svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  animation: scrollSvg 60s linear infinite;
  min-width: 200%; /* Ensure enough width for seamless scrolling */
}

@keyframes scrollSvg {
  0% {
    left: 0;
  }
  100% {
    left: -100%;
  }
}
/* Главная круглая большая иконка для слайдов */
.icon-bg-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #14532d 0%, #183c2e 60%, #0a2233 100%);
  box-shadow: 0 8px 32px rgba(6,182,212,0.18), 0 2px 0 rgba(34,197,94,0.12) inset;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* opacity и transform только для анимации, не по умолчанию */
  position: relative;
  overflow: hidden;
}
.icon-bg-hero.animate-in {
  opacity: 1;
  transform: scale(1);
}
.icon-bg-hero::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.8s;
  z-index: 1;
}
.icon-bg-hero:hover::before {
  left: 100%;
}
.icon-bg-hero:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(0,0,0,0.2), 0 8px 32px rgba(6,182,212,0.18), 0 2px 0 rgba(34,197,94,0.12) inset;
  opacity: 1;
}
.icon-bg-hero .material-icons {
  font-size: 3.2rem;
  color: #22c55e;
  filter: drop-shadow(0 4px 16px #22c55e44);
  z-index: 2;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
}
.icon-bg-hero:hover .material-icons {
  color: #06b6d4;
  text-shadow: 0 0 30px rgba(6,182,212,0.6);
  z-index: 3;
}
@media (max-width: 768px) {
  .icon-bg-hero {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
  .icon-bg-hero .material-icons {
    font-size: 2rem;
  }
}

.slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  box-sizing: border-box;
  margin: 0 auto;
}
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #000;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 110%);
  border-radius: 0.5rem;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
  border: none;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 198, 255, 0.6);
}

.btn-glow:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 198, 255, 0.3);
}

/* Pseudo-element for the glow effect */
.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    var(--primary-color) 0%,
    var(--accent-color) 20%,
    transparent 50%,
    var(--accent-color) 80%,
    var(--primary-color) 100%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Specific styles for the header button */

.task-item-glow {
  transition: all 0.3s ease;
}

.task-item-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 198, 255, 0.6);
}
.header-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem; /* text-sm */
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 110%);
  box-shadow: 0 2px 10px rgba(0, 198, 255, 0.3);
}

.header-btn:hover {
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.5);
}

.header-btn::before {
  background: conic-gradient(
    from 0deg at 50% 50%,
    var(--primary-color) 0%,
    var(--secondary-color) 20%,
    transparent 50%,
    var(--secondary-color) 80%,
    var(--primary-color) 100%
  );
}

/* Pulse glow animation for hero button */
.pulse-glow {
  animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 198, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0);
  }
}

/* General gradient text */
.gradient-text {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: var(--tertiary-color);
  margin: 0 auto;
}

.feature-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--tertiary-color);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 198, 255, 0.5);
}

.feature-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}

.icon-glow {
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(6,182,212,0.2));
  border-radius: 15px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  opacity: 0.8;
}
.icon-glow.hero-icon {
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.icon-glow::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.8s;
}
.icon-glow:hover::before {
  left: 100%;
}
.icon-glow:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 0 20px rgba(0,0,0,0.2),
    0 4px 12px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.15);
  opacity: 1;
}
.icon-glow.hero-icon:hover {
  box-shadow: 
    0 0 15px rgba(0,0,0,0.15),
    0 2px 8px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.material-icons {
  font-size: 2.5rem;
  color: #22c55e;
  text-shadow: 0 0 20px rgba(34,197,94,0.5);
  transition: all 0.3s ease;
}
.icon-glow:hover .material-icons {
  color: #06b6d4;
  text-shadow: 0 0 30px rgba(6,182,212,0.6);
}
.mouse-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 198, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

