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

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #2563eb;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-light: rgba(59, 130, 246, 0.1);
    --shadow-medium: rgba(59, 130, 246, 0.15);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 13px;
}

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

nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.nav-item:hover::before,
.nav-item.active::before {
    left: 0;
}

.blog-section {
    padding: 30px 0 80px 0;
    min-height: calc(100vh - 200px);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced from 400px */
    gap: 20px; /* Reduced from 32px */
    margin-top: 40px; /* Reduced from 60px */
}

.blog-post {
    background: var(--bg-card);
    padding: 20px; /* Reduced from 40px */
    border-radius: 12px; /* Reduced from 20px */
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px; /* Reduced from 4px */
    background: var(--gradient-primary);
}

.blog-post:hover {
    transform: translateY(-4px); /* Reduced from -8px */
    box-shadow: 0 15px 30px var(--shadow-medium); /* Reduced shadow */
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 20px */
    margin-bottom: 16px; /* Reduced from 24px */
    flex-wrap: wrap;
}

.post-date {
    color: var(--text-muted);
    font-size: 12px; /* Reduced from 13px */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
}

.post-category {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px; /* Reduced from 6px 16px */
    border-radius: 50px;
    font-size: 10px; /* Reduced from 11px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.post-title {
    font-size: 16px; /* Slightly increased for readability */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px; /* Reduced from 16px */
    line-height: 1.3;
}

.post-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6; /* Reduced from 1.8 */
    margin-bottom: 16px; /* Reduced from 24px */
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Reduced from 8px */
    margin-bottom: 16px; /* Reduced from 24px */
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 3px 8px; /* Reduced from 4px 12px */
    border-radius: 50px;
    font-size: 9px; /* Reduced from 10px */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.reading-time {
    color: var(--text-muted);
    font-size: 10px; /* Reduced from 11px */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
}

.icon {
    width: 14px; /* Reduced from 16px */
    height: 14px; /* Reduced from 16px */
    fill: currentColor;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .blog-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px; /* Reduced from 24px */
    }

    .blog-post {
        padding: 16px; /* Reduced from 24px */
    }

    .nav-container {
        gap: 4px;
    }

    .nav-item {
        padding: 10px 16px;
        font-size: 13px;
    }
}

html {
    scroll-behavior: smooth;
}