/* Enhanced Base Styles */
:root {
  /* Modern Color Palette */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  
  /* Dark Theme Colors */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #60a5fa;
  
  /* Border & Shadow */
  --border: #334155;
  --border-light: #475569;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Enhanced background with subtle patterns */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Enhanced Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 4vw;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

header:hover::before {
  opacity: 1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header-left h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  font-weight: 800;
  transition: all var(--transition);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.header-left h1:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-left h1::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--transition);
}

.header-left h1:hover::after {
  width: 100%;
}

  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

header h1 {
  margin: 0.5rem 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-align: center;
}

nav {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

nav a {
  margin: 0.5rem 1rem;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 4px;
  font-size: 0.95rem;
}

nav a:hover, nav a:focus {
  color: #4da6ff;
  background: rgba(77, 166, 255, 0.1);
  outline: none;
}

.back-btn {
  background: #404040;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #555;
  transition: all 0.2s;
}

.back-btn:hover {
  background: #4da6ff;
  color: #1a1a1a;
  border-color: #4da6ff;
}

nav a:hover {
  color: #0077ff;
}

/* Main Content */
main {
  padding: 1.5rem 4vw;
  width: 100%;
  box-sizing: border-box;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1rem;
  justify-content: center;
  perspective: 1000px;
  max-width: 1400px;
  margin: 0 auto;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 100%;
  min-height: 180px;
  margin: 0;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  transform-style: preserve-3d;
  will-change: transform;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border-radius: inherit;
}

.post-card:hover::before {
  opacity: 1;
}

.post-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(77, 166, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  background: var(--bg-hover);
  z-index: 1;
  transform: translateY(-4px) scale(1.02);
}

.post-card:hover h2 {
  color: var(--primary);
}

.post-card:hover p {
  color: var(--text-secondary);
}

/* Reduce hover effect on touch devices */
@media (hover: none) {
  .post-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .post-card:active {
    transform: scale(0.99);
    background: #333;
  }
}

.post-card:hover::after {
  opacity: 1;
}

.post-title {
  font-size: 1.2rem;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition);
  letter-spacing: -0.025em;
}

.post-card:hover .post-title {
  color: var(--primary);
  transform: translateX(2px);
}

.post-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text-secondary);
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 0.75rem;
  margin-top: var(--space-md);
  color: var(--text-muted);
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: wrap;
}

.post-meta span {
  background: rgba(99, 102, 241, 0.1);
  padding: var(--space-xs) var(--space-xs);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all var(--transition);
}

.post-card:hover .post-meta span {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: var(--text-accent);
}

/* Tablet and small desktop */
@media (min-width: 600px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .post-card {
    min-height: 220px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .post-card {
    min-height: 240px;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .post-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile optimizations */
@media (max-width: 599px) {
  .post-card {
    padding: 1.25rem;
    min-height: 160px;
    border-radius: 10px;
  }

  .post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .post-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .post-meta {
    margin-top: 0.75rem;
    font-size: 0.85rem;
  }
}

  .post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    color: #4da6ff;
    border-color: #4da6ff;
  }

  .post-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
  }

  .post-title a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
  }

  .post-title a:hover {
    color: #4da6ff;
  }

  .post-meta {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
  }

  .post-content {
    padding: 1rem;
    flex-grow: 1;
  }

  .social-share {
    max-width: 700px;
    margin: 1rem auto 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
  }

  .share-btn {
    background: #404040;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    color: #e0e0e0;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
  }

  .share-btn:hover {
    background: #4da6ff;
    color: #1a1a1a;
  }

  .modern-back-btn {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #e0e0e0;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    gap: 0.5rem;
    display: inline-flex;
    align-items: center;
  }

  .modern-back-btn:hover {
    background: linear-gradient(90deg, #4da6ff 0%, #0077ff 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(77,166,255,0.18);
  }

  /* Responsive Design */
  @media (min-width: 768px) {
    header {
      flex-direction: row;
      padding: 1rem 6vw;
    }

    header h1 {
      margin: 0;
      font-size: 2rem;
      text-align: left;
    }

    nav {
      width: auto;
      justify-content: flex-end;
    }

    nav a {
      margin-left: 1.5rem;
    }

    .post-card {
      min-height: 200px;
    }

    .search-container {
      width: 200px;
    }
  }

  @media (max-width: 767px) {
    .header-content {
      flex-direction: column;
      gap: 1rem;
      align-items: center;
    }

    .header-right {
      width: 100%;
      justify-content: center;
    }

    .search-container {
      width: 280px;
    }

    #searchInput {
      padding: 0.6rem 0.8rem 0.6rem 2.2rem;
      font-size: 0.85rem;
    }

    .search-container::before {
      left: 0.8rem;
      font-size: 0.9rem;
    }

    .search-results {
      left: -10px;
      right: -10px;
    }
  }

  @media (max-width: 480px) {
    .header-content {
      flex-direction: column;
      gap: 1rem;
      align-items: center;
    }

    .search-container {
      width: 250px;
    }

    .header-left h1 {
      font-size: 1.6rem;
    }
  }

  @media (min-width: 1024px) {
    .post-grid {
      grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
  }

  @media (min-width: 1280px) {
    .post-grid {
      grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
  }

  @media (min-width: 1600px) {
    .post-grid {
      grid-template-columns: repeat(4, minmax(300px, 1fr));
    }
  }

  /* Touch target sizes for mobile */
  @media (max-width: 480px) {
    body {
      font-size: 15px;
    }

    header, main {
      padding: 0.75rem 3vw;
    }

    .post-card {
      padding: 1rem;
      min-height: 160px;
    }

    h2 {
      font-size: 1.4rem;
      margin: 0.5rem 0;
    }

    .post-meta {
      font-size: 0.85rem;
    }
  }

  /* High DPI devices */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
      -webkit-font-smoothing: antialiased;
    }
  }

  /* Print styles */
  @media print {
    body {
      background: #fff;
      color: #000;
      font-size: 12pt;
    }

    .post-card {
      break-inside: avoid;
      page-break-inside: avoid;
      border: 1px solid #ddd;
    }
  }

  /* Modern UI Animations and Effects */
  .post-card {
    animation: cardFadeIn 0.6s ease forwards;
    animation-delay: var(--card-delay, 0s);
    opacity: 0;
    transform: translateY(30px) perspective(1000px) rotateX(0) rotateY(0);
  }

  @keyframes cardFadeIn {
    to {
      opacity: 1;
      transform: translateY(0) perspective(1000px) rotateX(0) rotateY(0);
    }
  }

  /* Enhanced hover effects */
  .post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(77, 166, 255, 0.1),
      transparent 40%
    );
    border-radius: inherit;
    opacity: var(--after-opacity, 0);
    transition: opacity 0.5s;
    pointer-events: none;
  }

  /* Smooth transitions for all interactive elements */
  * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Exclude transform from global transitions to allow tilt effect */
  .post-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.1s ease-out;
  }

  /* Ensure tilt effect has priority */
  .post-card[style*="transform"] {
    transform: var(--tilt-transform) !important;
    transition: transform 0.1s ease-out !important;
  }

  /* Tilt effect specific styles */
  .post-card.tilt-active {
    transform-style: preserve-3d !important;
    will-change: transform !important;
  }

  /* Mobile-specific styles - disable tilt effects */
  @media (max-width: 768px) {
    .post-card {
      transform-style: flat !important;
      will-change: auto !important;
      /* Optimize for mobile performance */
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }
    
    .post-card:hover {
      transform: none !important;
    }
    
    /* Simple mobile touch feedback */
    .post-card:active {
      transform: scale(0.98) !important;
      transition: transform 0.2s ease !important;
    }
    
    /* Disable complex animations on mobile for better performance */
    .post-card::after {
      display: none !important;
    }
    
    /* Optimize transitions for mobile */
    .post-card {
      transition: all 0.2s ease !important;
    }
  }

  /* Tablet styles - enable tilt but with reduced intensity */
  @media (min-width: 769px) and (max-width: 1024px) {
    .post-card {
      transform-style: preserve-3d;
      will-change: transform;
    }
    
    /* Reduce tilt intensity on tablets for better performance */
    .post-card.tilt-active {
      transform: perspective(800px) rotateX(var(--tilt-rotate-x, 0deg)) rotateY(var(--tilt-rotate-y, 0deg)) scale3d(1.01, 1.01, 1.01) !important;
    }
  }

  /* Desktop styles - full tilt effect */
  @media (min-width: 1025px) {
    .post-card {
      transform-style: preserve-3d;
      will-change: transform;
    }
    
    /* Full tilt effect on desktop */
    .post-card.tilt-active {
      transform: perspective(1000px) rotateX(var(--tilt-rotate-x, 0deg)) rotateY(var(--tilt-rotate-y, 0deg)) scale3d(1.02, 1.02, 1.02) !important;
    }
  }

  /* Ensure tilt only works on larger screens */
  @media (min-width: 769px) {
    .post-card {
      transform-style: preserve-3d;
      will-change: transform;
    }
  }

/* Enhanced Newsletter link styles */
.newsletter-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  margin-left: var(--space-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: fit-content;
}

.newsletter-link::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(--transition-slow);
}

.newsletter-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-color: rgba(255, 255, 255, 0.2);
}

.newsletter-link:hover::before {
  left: 100%;
}

.newsletter-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  transform: translateY(-1px) scale(1.02);
}

  /* Mobile responsiveness for newsletter link */
  @media (max-width: 768px) {
    .newsletter-link {
      font-size: 0.8rem;
      padding: 0.4rem 1rem;
      margin-left: 0.5rem;
      min-width: fit-content;
    }
  }

  @media (max-width: 480px) {
    .header-right {
      flex-direction: column;
      gap: 0.5rem;
      align-items: center;
    }
    
    .newsletter-link {
      margin-left: 0;
      margin-top: 0.5rem;
      padding: 0.4rem 1rem;
      min-width: fit-content;
    }
  }

  /* Header parallax styling */
  header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform, opacity;
  }

  /* Text reveal animation */
  .char-reveal {
    display: inline-block;
    opacity: 0;
    animation: charReveal 0.6s ease forwards;
  }

  @keyframes charReveal {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Keyboard navigation styles */
  .search-result-item.keyboard-selected {
    background: rgba(77, 166, 255, 0.15) !important;
    border-left: 3px solid #4da6ff !important;
    padding-left: calc(1rem - 3px) !important;
    transform: translateX(2px);
  }

  /* Voice search styles */
  .search-container.voice-active::before {
    animation: voicePulse 1s ease-in-out infinite;
  }

  @keyframes voicePulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); }
  }

/* Enhanced Search Container Styles */
.search-container {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: visible;
  cursor: text;
}

.search-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.search-container:focus-within::before {
  opacity: 1;
}

.search-container::before {
  content: '🔍';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--transition);
  z-index: 1;
  pointer-events: none;
}

.search-container:focus-within::before {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.search-container:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.search-container:hover {
  border-color: var(--border-light);
  cursor: text;
}

#searchInput {
  width: 100%;
  padding: var(--space-md) var(--space-lg) var(--space-md) 3rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  position: relative;
  z-index: 2;
  font-family: inherit;
  cursor: text;
  box-sizing: border-box;
}

#searchInput::placeholder {
  color: var(--text-muted);
  transition: all var(--transition);
}

#searchInput:focus::placeholder {
  color: var(--text-secondary);
  transform: translateX(px);
}


/* Enhanced Search Results Styling */
#searchResults {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  max-height: 50vh;
  overflow-y: auto;
  display: none;
  min-height: 50px;
  color: var(--text-primary);
  width: min(400px, 90vw);
  min-width: 350px;
}

/* Search results visibility handled by JavaScript */

.search-result-item {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: resultItemIn 0.4s ease forwards;
  animation-delay: calc(var(--result-index, 0) * 0.05s);
  opacity: 0;
  transform: translateY(10px);
}

.search-result-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: transform var(--transition);
}

.search-result-item:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: translateX(8px);
  border-color: var(--primary);
}

.search-result-item:hover::before {
  transform: scaleY(1);
}

.search-result-item:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.search-result-item:first-child {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

  /* Enhanced loading animations */
  @keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  @keyframes searchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
  }

  @keyframes searchResultsIn {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes resultItemIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* Pulse error animation for empty search */
  .pulse-error {
    animation: pulseError 0.6s ease;
  }

  @keyframes pulseError {
    0%, 100% { 
      box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
      border-color: transparent;
    }
    50% { 
      box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
      border-color: #ff6b6b;
    }
  }

  /* Share Modal Styles */
  .share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
  }

  .share-modal-content {
    background: #2d2d2d;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    border: 1px solid #404040;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
  }

  .share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #404040;
  }

  .share-modal-header h3 {
    margin: 0;
    color: #f0f0f0;
    font-size: 1.2rem;
  }

  .close-share-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .close-share-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
  }

  .share-options {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #333;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .share-option:hover {
    background: #4da6ff;
    color: #1a1a1a;
    border-color: #4da6ff;
    transform: translateY(-2px);
  }

  .share-option svg {
    flex-shrink: 0;
  }

  /* Ripple Effect */
  @keyframes ripple {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 0;
    }
  }

  /* Modal Animations */
  @keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes modalSlideIn {
    from {
      transform: translateY(-20px) scale(0.95);
      opacity: 0;
    }
    to {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }

  /* Notification Animations */
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideOutRight {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  /* Enhanced page transitions */
  .page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pageTransitionOut 0.5s ease-in-out forwards;
  }

  @keyframes pageTransitionOut {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }

  /* Enhanced background patterns */
  .bg-patterns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
  }

  .pattern-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(77, 166, 255, 0.02), rgba(77, 166, 255, 0.04));
    animation: floatPattern 20s ease-in-out infinite;
  }

  .pattern-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
  }

  .pattern-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: -7s;
  }

  .pattern-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
  }

  @keyframes floatPattern {
    0%, 100% {
      transform: translate(0, 0) rotate(0deg);
    }
    25% {
      transform: translate(20px, -30px) rotate(90deg);
    }
    50% {
      transform: translate(-10px, -20px) rotate(180deg);
    }
    75% {
      transform: translate(-20px, 10px) rotate(270deg);
    }
  }

  /* Cursor trail styles */
  .cursor-trail {
    opacity: 0;
    animation: trailFade 0.5s ease-out;
  }

  @keyframes trailFade {
    0% {
      opacity: 1;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(0.3);
    }
  }

  /* Loading animation */
  body.loading {
    overflow: hidden;
  }

  body.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    z-index: 9999;
    animation: loadingFade 0.5s ease 2s forwards;
  }

  @keyframes loadingFade {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }

  /* Enhanced scroll animations */
  .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  /* Improved tilt effects */
  .post-card {
    transform-style: preserve-3d;
    will-change: transform;
  }

  .post-card .post-content {
    transform: translateZ(20px);
  }

  /* Enhanced mobile responsiveness */
  @media (max-width: 768px) {
    .pattern-circle {
      display: none;
    }

    .cursor-trail {
      display: none;
    }
  }

.post-content-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl);
  padding-top: var(--space-2xl);
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

               .back-button-container {
       position: relative;
       display: inline-block;
     }

.back-button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left var(--transition-slow);
}

.back-button:hover::before {
  left: 100%;
}

.back-button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(-4px) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

   .back-button svg {
     transition: transform 0.2s ease;
   }

   .back-button:hover svg {
     transform: translateX(-2px);
   }



.post-info {
  position: sticky;
  top: 7rem;
  height: fit-content;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.post-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.post-info:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.post-info:hover::before {
  opacity: 1;
}

  .post-info h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    line-height: 1.3;
    color: #f0f0f0;
    font-weight: 600;
  }

  .post-meta {
    font-size: 0.9rem;
    color: #a0a0a0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #404040;
    margin-bottom: 1.5rem;
  }

  .post-meta > div {
    margin-bottom: 0.5rem;
  }

  .post-date {
    color: #4da6ff;
    font-weight: 500;
  }

  .post-author {
    color: #b0b0b0;
  }

  .post-reading-time {
    color: #888;
    font-size: 0.85rem;
  }

  .post-tags {
    margin-bottom: 1.5rem;
  }

  .tag {
    display: inline-block;
    background: rgba(77, 166, 255, 0.1);
    color: #4da6ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    border: 1px solid rgba(77, 166, 255, 0.3);
    transition: all 0.2s ease;
  }

  .tag:hover {
    background: rgba(77, 166, 255, 0.2);
    transform: translateY(-1px);
  }

     .post-actions {
     display: flex;
     gap: 0.8rem;
     align-items: center;
   }

  .post-actions button {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #404040;
    border-radius: 8px;
    background: #333;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
  }

  .post-actions button:hover {
    background: #4da6ff;
    color: #1a1a1a;
    border-color: #4da6ff;
  }

.post-body {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  line-height: 1.8;
  font-size: 1.1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition);
}

.post-body:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--border-light);
}

.post-body h3 {
  color: var(--text-primary);
  font-size: 1.6rem;
  margin: var(--space-2xl) 0 var(--space-lg) 0;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  position: relative;
}

.post-body h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
}

.post-body p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: var(--space-lg);
  margin: var(--space-2xl) 0;
  font-style: italic;
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  padding: var(--space-lg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.7;
}

.post-body blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-lg);
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: serif;
}

  /* Responsive adjustments */
  @media (max-width: 1024px) {
    .post-content-container {
      grid-template-columns: 280px 1fr;
      gap: 2rem;
      padding: 1.5rem;
    }

    .post-info {
      padding: 1.5rem;
    }

    .post-body {
      padding: 2rem;
    }
  }

     @media (max-width: 768px) {
     .post-content-container {
       grid-template-columns: 1fr;
       gap: 1.5rem;
       padding: 1rem;
     }

           .back-button-container {
        position: relative;
        display: inline-block;
      }



     .post-info {
       position: relative;
       top: 0;
       order: 1;
       margin-bottom: 1.5rem;
     }

     .post-body {
       order: 2;
       padding: 1.5rem;
       font-size: 1rem;
     }

     .post-info h2 {
       font-size: 1.5rem;
     }
   }

  .social-share {
      max-width: 700px;
      margin: 1rem auto 0 auto;
      display: flex;
      gap: 1rem;
      justify-content: flex-end;
  }

.share-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.share-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left var(--transition-slow);
}

.share-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.share-btn:hover::before {
  left: 100%;
}

  .modern-back-btn {
      font-size: 1.1rem;
      font-weight: 600;
      padding: 0.7rem 1.5rem;
      border-radius: 999px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.18);
      background: linear-gradient(90deg, #232526 0%, #414345 100%);
      color: #e0e0e0;
      border: none;
      outline: none;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, box-shadow 0.2s;
      gap: 0.5rem;
      display: inline-flex;
      align-items: center;
  }

.modern-back-btn:hover {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Enhanced Modern UI Components */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: all var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Enhanced focus states */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

/* Enhanced selection */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

/* Floating particle animation */
@keyframes floatAway {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px) scale(0.5);
  }
}

/* Typing animation for search */
.typing {
  animation: typingPulse 0.5s ease-in-out;
}

@keyframes typingPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Modern Footer Styles */
.modern-footer {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #e8e8e8;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(135deg, #4da6ff, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: #b0b0b0;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #4da6ff;
  text-decoration: none;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(77, 166, 255, 0.2);
  border-color: #4da6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(77, 166, 255, 0.3);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.95rem;
  position: relative;
}

.footer-links li a:hover {
  color: #4da6ff;
  transform: translateX(4px);
}

.footer-links li a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4da6ff, #00d4aa);
  transition: width var(--transition);
}

.footer-links li a:hover::before {
  width: 8px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #b0b0b0;
  font-size: 0.95rem;
}

.contact-item a {
  color: #ede7e7;
  text-decoration: none;
}

.contact-item svg {
  color: #4da6ff;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-bottom-links a:hover {
  color: #4da6ff;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 1rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom-links {
    gap: 1.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 1.5rem 1rem 1rem;
  }
  
  .footer-brand {
    font-size: 1.3rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
  }
}

/* Legal Pages Styles */
.legal-page {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.legal-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding: 0 2rem;
}

.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.legal-section h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  position: relative;
}

.legal-section li::marker {
  color: var(--primary);
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
}

/* Legal page responsive design */
@media (max-width: 768px) {
  .legal-container {
    margin: 1rem;
    padding: 0 1rem;
  }
  
  .legal-container h1 {
    font-size: 2rem;
  }
  
  .legal-section {
    padding: 0 1rem;
  }
  
  .legal-section h2 {
    font-size: 1.2rem;
  }
}