/* Modern Section Transitions */

/* Base section styles */
section {
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Section transitions */
.section-transition {
  position: absolute;
  width: 100%;
  height: 150px;
  z-index: 1;
  pointer-events: none;
}

.section-transition-top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.section-transition-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}

/* Section animations */
.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.section-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Section divider styles */
.section-divider {
  position: relative;
  height: 100px;
  margin-top: -50px;
  margin-bottom: -50px;
  z-index: 2;
  overflow: hidden;
}

.divider-wave {
  position: absolute;
  width: 100%;
  height: 100px;
  background: var(--bg-primary);
  z-index: 2;
}

.divider-wave-1 {
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill: %233b82f6;'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
  opacity: 0.1;
}

/* Section scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 60px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator::before {
  content: "";
  width: 6px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 3px;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(25px);
    opacity: 0;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .section-divider {
    height: 50px;
    margin-top: -25px;
    margin-bottom: -25px;
  }
  
  .divider-wave {
    height: 50px;
  }
  
  .scroll-indicator {
    width: 30px;
    height: 45px;
    border-width: 1px;
    bottom: 20px;
  }
}

/* Modern focus styles for better accessibility */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
