:root {
  --primary: #4f46e5; /* Indigo 600 */
  --primary-dark: #4338ca; /* Indigo 700 */
  --primary-light: #eef2ff; /* Indigo 50 */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  
  --text-main: var(--slate-800);
  --text-muted: var(--slate-500);
  --bg-main: var(--slate-50);
  --card-bg: #ffffff;
  
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Glassmorphism Nav */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-600);
}

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

.mobile-menu-btn {
  display: none;
  background: var(--slate-100);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--slate-700);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: radial-gradient(circle at top, var(--primary-light), transparent);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom right, var(--slate-900), var(--slate-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  padding: 4rem 0;
}

.article-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-content {
  padding: 1.75rem;
}

.article-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}

.article-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.article-title a {
  color: var(--slate-900);
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Article Page Enhancements */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post .featured-image {
  width: 100%;
  height: 450px; /* Restricting height to avoid 'very large' images */
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 1.5rem;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--slate-700);
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.5rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: var(--slate-900);
  color: var(--slate-100);
  padding: 5rem 0 3rem;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer-section p {
  color: var(--slate-400);
  max-width: 300px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--slate-400);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .blog-post .featured-image {
    height: 300px;
  }
}
