:root {
    --bg-dark: #0f0f11;
    --bg-card: #1a1a1f;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b8;
    --accent: #2aa4f8;
    --accent-alt: #1ce0ea;
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(42, 164, 248, 0.03) 0%, rgba(42, 164, 248, 0) 20%),
                radial-gradient(circle at 90% 80%, rgba(28, 234, 51, 0.03) 0%, rgba(28, 234, 51, 0) 20%);
    z-index: -1;
  }

  /* Header Styles */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
  }

  .memoji-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    transition: var(--transition);
  }

  .memoji-container:hover {
    transform: scale(1.05);
    border-color: var(--accent);
  }

  .memoji {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-text {
    display: flex;
    flex-direction: column;
  }

  .header-text h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
  }

  .header-text .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
  }

  nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
  }

  nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
  }

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

  nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
  }

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

  /* Blog Hero */
  .blog-hero {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
  }

  .blog-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .blog-hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
  }

  .blog-hero .tagline {
    height: 34px;
    font-style: italic;
    color: var(--text-primary);
  }

  /* Blog Content */
  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
  }

  .post-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .post-list-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
  }

  .post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .post-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
  }

  .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(42, 164, 248, 0.2);
  }

  /* Make entire post card clickable */
  .post-card-link {
      text-decoration: none;
      color: inherit;
      display: block;
      flex-grow: 1;
  }

  .post-card-link .read-more {
      pointer-events: none; /* Prevents the button from interfering with card click */
  }

  /* Adjust cursor for better UX */
  .post-card {
      cursor: pointer;
  }

  .post-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
  }

  .post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
  }

  .post-date {
    margin-right: 1rem;
  }

  .post-category {
    background: rgba(42, 164, 248, 0.15);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-weight: 500;
  }

  .post-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
  }

  .post-card:hover .post-title {
    color: var(--accent);
  }

  .post-preview {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
  }

  .read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 141, 234, 0.15);
    color: var(--accent-alt);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(28, 162, 234, 0.3);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    width: fit-content;
  }

  .read-more:hover {
    background: rgba(28, 148, 234, 0.25);
    color: white;
    transform: translateY(-3px);
  }

  .read-more i {
    margin-left: 0.7rem;
    transition: var(--transition);
  }

  .read-more:hover i {
    transform: translateX(3px);
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: var(--transition);
  }

  .footer-logo:hover {
    opacity: 1;
  }

  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    header {
      flex-direction: column;
      gap: 1.5rem;
      padding: 1.5rem;
    }
    
    .logo-container {
      flex-direction: column;
      text-align: center;
    }
    
    .blog-hero h1 {
      font-size: 2.5rem;
    }
    
    nav ul {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .container {
      padding: 0 1.5rem 3rem;
    }
    
    .post-title {
      font-size: 1.6rem;
    }
  }

  @media (max-width: 480px) {
    .memoji-container {
      width: 50px;
      height: 50px;
    }
    
    .header-text h1 {
      font-size: 1.2rem;
    }
    
    .blog-hero h1 {
      font-size: 2rem;
    }
    
    .post-title {
      font-size: 1.4rem;
    }
  }