/* ========================================
   Site Header
   ======================================== */

.site-header {
  background: linear-gradient(135deg,
    var(--primary-600) 0%,
    var(--primary-700) 50%,
    var(--accent-purple) 100%
  );
  color: var(--text-inverse);
  padding: var(--space-8) 0;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Animated gradient background overlay */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.3) 0%,
    rgba(168, 85, 247, 0.2) 25%,
    rgba(236, 72, 153, 0.2) 50%,
    rgba(168, 85, 247, 0.2) 75%,
    rgba(99, 102, 241, 0.3) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
}

/* Decorative animated particles */
.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 25%),
    radial-gradient(circle at 70% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 35%);
  opacity: 0.7;
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
}

/* Gradient shift animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Particle float animation */
@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(10px, -10px) scale(1.05);
  }
  50% {
    transform: translate(-5px, -20px) scale(0.98);
  }
  75% {
    transform: translate(-10px, -10px) scale(1.02);
  }
}

.site-header .container {
  position: relative;
  z-index: var(--z-10);
}

.site-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-tight);
  color: var(--text-inverse);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.15);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f0f9ff 25%,
    #e0f2fe 50%,
    #bae6fd 75%,
    #7dd3fc 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  position: relative;
  display: inline-block;
  animation: titleShimmer 8s ease-in-out infinite;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (background-clip: text) {
  .site-title {
    color: var(--text-inverse);
    background: none;
    -webkit-text-fill-color: unset;
    text-fill-color: unset;
  }
}

/* Text-split specific styles to prevent blurry gradient effect */
.site-title.text-split,
.site-title.text-split .char {
  /* Disable background-clip gradient for split text */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  text-fill-color: unset;
  /* Use solid white color with enhanced shadow instead */
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 255, 255, 0.3);
}

/* Shimmer animation for the title */
@keyframes titleShimmer {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: brightness(1.1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
  }
}

.site-description {
  font-size: var(--text-base);
  color: var(--text-inverse);
  opacity: 0.95;
  font-weight: var(--font-light);
  letter-spacing: var(--tracking-wide);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    padding: var(--space-6) 0;
  }

  .site-title {
    font-size: var(--text-3xl);
  }

  .site-description {
    font-size: var(--text-sm);
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: var(--space-5) 0;
  }

  .site-title {
    font-size: var(--text-2xl);
    letter-spacing: var(--tracking-normal);
  }

  .site-description {
    font-size: var(--text-xs);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .site-header::before,
  .site-header::after {
    animation: none;
  }

  .site-title {
    animation: none;
  }
}
