/* Page Load Fade In */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.4); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Apply animations */
.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.card {
  animation: fadeInUp 0.6s ease-out both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.widget {
  animation: fadeIn 0.5s ease-out both;
}

.widget:nth-child(1) { animation-delay: 0.3s; }
.widget:nth-child(2) { animation-delay: 0.5s; }
.widget:nth-child(3) { animation-delay: 0.7s; }

/* Section headers */
.featured-articles h2,
.latest-articles h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
}

.featured-articles h2::after,
.latest-articles h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Article list styling */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.list-item {
  padding: var(--spacing-lg);
}

.list-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.list-item h3 a {
  color: #fff;
}

.list-item h3 a:hover {
  color: var(--color-primary);
}

.list-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    top: 0.75rem;
    width: calc(100% - 1rem);
    padding: 0.5rem 1rem;
    border-radius: 20px;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
  
  .main-nav a {
    font-size: 0.85rem;
  }
  
  .search-form {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    gap: 0.5rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
}
