/* ==========================================================================
   SIMPLE ELEGANT GLASS THEME - LIGHT GREEN & CREAM WHITE
   Clean override of all existing styles
   ========================================================================== */

/* FORCE CACHE REFRESH */
/* Version: 4.0.{{ site.time | date: '%s' }} */

/* Import clean fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* FORCE LIGHT THEME - OVERRIDE ALL DARK MODE */
* {
  color-scheme: light !important;
}

:root {
  /* Simple Colors */
  --primary-color: #16a34a !important;
  --primary-dark: #15803d !important;
  --primary-light: #22c55e !important;
  --text-primary: #1f2937 !important;
  --text-secondary: #4b5563 !important;
  --text-muted: #6b7280 !important;
  --bg-primary: #fffef7 !important;
  --bg-secondary: #fefce8 !important;
  --border-color: rgba(22, 163, 74, 0.2) !important;
  --shadow-sm: 0 2px 8px rgba(22, 163, 74, 0.1) !important;
  --shadow-md: 0 4px 16px rgba(22, 163, 74, 0.1) !important;
  --shadow-lg: 0 8px 32px rgba(22, 163, 74, 0.15) !important;
}

/* FORCE OVERRIDE BODY */
body {
  background: linear-gradient(135deg, #fffef7 0%, #fefce8 50%, #ecfdf5 100%) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.7 !important;
  min-height: 100vh !important;
}

/* FORCE OVERRIDE NAVIGATION */
.masthead {
  background: rgba(255, 254, 247, 0.9) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border-bottom: 1px solid rgba(22, 163, 74, 0.2) !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.1) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  padding: 1rem 0 !important;
}
  
  /* Border Radius System */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Animation & Timing */
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.4s;
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================================================== 
   ELEGANT GLASS LAYOUT & TYPOGRAPHY
   ========================================================================== */

/* Premium body styling with enhanced breathing room */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8;  /* Increased from 1.7 for better readability */
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  letter-spacing: -0.01em;
  padding: var(--space-lg) 0;  /* Added vertical padding for breathing room */
}

/* Premium typography hierarchy with enhanced spacing */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;  /* Slightly increased for better readability */
  color: var(--text-primary);
  margin-bottom: var(--space-xl);  /* Increased bottom margin */
  margin-top: var(--space-lg);     /* Added top margin for separation */
  letter-spacing: -0.02em;
}

h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2xl);  /* Extra spacing for main headings */
}

h2 { 
  font-size: clamp(2rem, 4vw, 3rem); 
  font-weight: 600;
  margin-bottom: var(--space-xl);
  margin-top: var(--space-2xl);    /* More separation between sections */
}

h3 { 
  font-size: clamp(1.5rem, 3vw, 2rem); 
  font-weight: 600;
  margin-bottom: var(--space-lg);
  margin-top: var(--space-xl);
}

h4 { 
  font-size: clamp(1.25rem, 2.5vw, 1.5rem); 
  font-weight: 500;
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

/* Premium paragraph styling with enhanced breathing room */
p {
  font-size: 1.125rem;
  line-height: 1.9;  /* Increased from 1.8 for better readability */
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);  /* Increased spacing between paragraphs */
  max-width: 70ch;  /* Optimal reading width */
}

/* Premium link styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

a:hover {
  color: var(--primary-dark);
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--gradient-primary);
  transition: width var(--duration-normal) var(--ease-out);
}

a:hover::after {
  width: 100%;
}

/* ========================================================================== 
   ELEGANT GLASS NAVIGATION
   ========================================================================== */

/* Clean navigation with glass effect */
.masthead {
  background: rgba(255, 254, 247, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-glass);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-title,
.site-title a {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.site-title:hover,
.site-title a:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.visible-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.visible-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(22, 163, 74, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(22, 163, 74, 0.15);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.visible-links a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.masthead__inner-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.greedy-nav {
  background: transparent;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .visible-links {
    gap: var(--space-xs);
    justify-content: center;
    width: 100%;
    margin-top: var(--space-md);
  }
  
  .visible-links a {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
  }
  
  .masthead__inner-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
/* ========================================================================== 
   ELEGANT GLASS SIDEBAR
   ========================================================================== */

.sidebar {
  background: var(--gradient-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-right: 1px solid var(--border-light);
  box-shadow: var(--shadow-glass);
  border-radius: 0 20px 20px 0;
  overflow: hidden;
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

/* Clean profile avatar */
.author__avatar {
  background: var(--gradient-primary);
  padding: 4px;
  box-shadow: var(--shadow-lg);
  margin: var(--space-xl) auto;
  width: fit-content;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.author__avatar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.author__avatar img {
  border-radius: 50%;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.author__avatar:hover img {
  transform: scale(1.03);
}

/* Clean author content */
.author__content {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.4);
  margin: var(--space-lg);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.author__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 3px rgba(22, 163, 74, 0.1);
}

.author__bio {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* Clean social links */
.author__urls {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.author__urls a {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.author__urls a:hover {
  color: white;
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.author__urls a i {
  margin-right: var(--space-sm);
  font-size: 1.1em;
  width: 18px;
  text-align: center;
}

/* ========================================================================== 
   ELEGANT GLASS CONTENT LAYOUTS
   ========================================================================== */

/* Main content with glass effect */
.page__content {
  background: var(--gradient-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: var(--space-2xl);
  margin: var(--space-xl);
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.page__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

/* Clean cards */
.card,
.list__item,
.archive__item {
  background: var(--gradient-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.card:hover,
.list__item:hover,
.archive__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* Clean headings */
.archive__item-title,
.list__item h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  margin-top: 0;
  color: var(--primary-color);
  line-height: 1.3;
}

.archive__item-title a,
.list__item h2 a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.archive__item-title a:hover,
.list__item h2 a:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Clean text and meta */
.archive__item-excerpt,
.list__item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.page__meta,
.archive__item-teaser-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

/* Simple tables */
table {
  background: var(--gradient-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  width: 100%;
  margin: var(--space-lg) 0;
}

table th {
  background: var(--primary-color);
  color: white;
  padding: var(--space-md);
  font-weight: 600;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

table tr:hover {
  background: rgba(22, 163, 74, 0.05);
}

/* ========================================================================== 
   MAIN CONTENT ENHANCEMENTS
   ========================================================================== */

.page {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin: var(--spacing-lg);
  overflow: hidden;
}

.page__inner-wrap {
  padding: var(--spacing-2xl);
}

/* Enhanced page title */
.page__title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.page__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

/* Enhanced content styling */
.page__content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.page__content p {
  margin-bottom: var(--spacing-lg);
  text-align: justify;
}

.page__content p:first-child {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 4px solid var(--primary-color);
  padding-left: var(--spacing-md);
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

/* Enhanced lists */
.page__content ul {
  padding-left: 0;
  list-style: none;
}

.page__content ul li {
  position: relative;
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.page__content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

/* ========================================================================== 
   NEWS SECTION ENHANCEMENT
   ========================================================================== */

.news-section {
  margin-top: var(--spacing-2xl);
}

#news {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: flex;
  align-items: center;
}

#news::before {
  content: '📰';
  margin-right: var(--spacing-sm);
  font-size: 1.5rem;
}

#news::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-2);
  border-radius: var(--radius-full);
}

/* News list styling */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
}

.news-item {
  display: flex;
  align-items: flex-start;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-xl);  /* Increased padding for breathing room */
  margin-bottom: var(--space-xl);  /* Increased spacing between items */
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.news-item::before {
  content: none !important;
  padding-left: 0 !important;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-dark);
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-icon {
  font-size: 1.5rem;
  margin-right: var(--space-lg);  /* Increased spacing */
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  color: white;
  font-weight: bold;
}

.news-content {
  flex: 1;
}

.news-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;  /* Increased line height for better readability */
  font-size: 1.1rem;  /* Slightly larger text */
}

/* Override the global ul li styles for news items */
.news-list .news-item {
  padding-left: var(--spacing-md) !important;
}

/* ========================================================================== 
   PUBLICATIONS PAGE ENHANCEMENTS
   ========================================================================== */

.archive h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.archive h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

.archive ol {
  list-style: none;
  counter-reset: publication-counter;
  padding: 0;
}

.archive ol li {
  counter-increment: publication-counter;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.3s ease;
  border-left: 5px solid var(--primary-color);
}

.archive ol li::before {
  content: counter(publication-counter);
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background: var(--gradient-accent);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.archive ol li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary-dark);
}

.archive ol li strong {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: var(--spacing-sm);
  margin-left: 50px;
}

.archive ol li p,
.archive ol li br + text {
  margin-left: 50px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================================== 
   CARDS AND SECTIONS ENHANCEMENTS
   ========================================================================== */

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  margin-bottom: var(--spacing-lg);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: var(--spacing-xs) 0 0 0;
}

/* ========================================================================== 
   RESEARCH INTERESTS SECTION
   ========================================================================== */

.research-interests {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.research-interests::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.research-interests p:first-child {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.research-interests ul {
  margin: 0;
  padding-left: 0;
}

.research-interests ul li {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-left: 3px solid var(--primary-color);
}

.research-interests ul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-dark);
}

.research-interests ul li::before {
  content: '🔬';
  margin-right: var(--spacing-sm);
}

/* ========================================================================== 
   RESPONSIVE ENHANCEMENTS
   ========================================================================== */

@media (max-width: 768px) {
  .page__inner-wrap {
    padding: var(--spacing-lg);
  }
  
  .page__title {
    font-size: 2rem;
  }
  
  .author__name {
    font-size: 1.3rem;
  }
  
  .page {
    margin: var(--spacing-sm);
    border-radius: var(--radius-md);
  }
  
  .sidebar {
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

/* ========================================================================== 
   PREMIUM ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Sophisticated page load animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

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

/* Premium page animations */
.page {
  animation: fadeInUp 0.8s var(--ease-bounce) both;
}

.sidebar {
  animation: slideInFromLeft 0.8s var(--ease-out) both;
}

.author__avatar {
  animation: scaleIn 1s var(--ease-bounce) 0.3s both;
}

.author__avatar:hover {
  animation: floatAnimation 2s ease-in-out infinite;
}

/* Staggered content animations */
.list__item,
.archive__item {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

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

/* Button hover animations */
.btn,
.author__urls a,
.page__taxonomy .btn {
  position: relative;
  overflow: hidden;
}

.btn::before,
.author__urls a::before,
.page__taxonomy .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: left var(--duration-normal) var(--ease-out);
}

.btn:hover::before,
.author__urls a:hover::before,
.page__taxonomy .btn:hover::before {
  left: 100%;
}

/* Card shimmer effect on hover */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.card:hover::after {
  left: 100%;
}

/* Navigation link animations */
.visible-links a {
  position: relative;
  overflow: hidden;
}

.visible-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--duration-normal) var(--ease-out);
  transform: translateX(-50%);
}

.visible-links a:hover::after {
  width: 100%;
}

/* Scroll-triggered animations */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state animations */
.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: inherit;
}

/* Interactive element states */
.interactive {
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.interactive:active {
  transform: translateY(0);
  transition-duration: var(--duration-fast);
}

/* Text animations */
.animated-text {
  background: linear-gradient(270deg, 
    var(--accent-color), 
    var(--primary-color), 
    var(--accent-color), 
    var(--primary-color)
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 3s ease infinite;
}

/* Parallax effect for hero sections */
.parallax-hero {
  transform: translateZ(0);
  will-change: transform;
}

/* Enhanced focus states with animations */
*:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

/* Smooth transitions for all interactive elements */
* {
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

/* Page transition effects */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all var(--duration-normal) var(--ease-out);
}

/* Mobile-optimized animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Performance optimization */
.card,
.list__item,
.archive__item,
.author__avatar {
  will-change: transform;
}

.card:hover,
.list__item:hover,
.archive__item:hover {
  will-change: auto;
}

/* ========================================================================== 
   ADDITIONAL POLISH
   ========================================================================== */

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

/* Selection styling */
::selection {
  background: rgba(102, 126, 234, 0.2);
  color: var(--text-primary);
}

/* Focus states */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Code styling */
code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-tertiary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

/* Enhanced link styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
