:root {
    --bg-dark: #0b0e14;
    --bg-card: #151b26;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent: #d946ef;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(217, 70, 239, 0.05), transparent 40%);
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 35px;
    max-width: 750px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 600;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

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

/* Blog Grid Styles */
.blog {
    padding: 100px 0 140px;
}

.section-header {
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-body h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-body h3 a:hover {
    color: var(--primary);
}

.blog-body p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-top: auto;
}

/* Individual Post Content Styles */
.blog-post-content {
    max-width: 800px;
    margin: 160px auto 120px;
    padding: 0 20px;
}

.blog-post-content h2 {
    font-size: 2.5rem;
    margin: 60px 0 30px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-post-content h3 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary);
}

.blog-post-content p {
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.9;
}

.blog-post-content img {
    width: 100%;
    border-radius: 24px;
    margin: 50px 0;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 40px;
    padding-left: 10px;
}

.blog-post-content li {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.15rem;
    position: relative;
    padding-left: 35px;
    list-style: none;
}

.blog-post-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 100px 0 50px;
    background: #080a0f;
}

.footer-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 80px; 
}

.footer-brand p { 
    color: var(--text-muted); 
    margin-top: 20px; 
    max-width: 400px; 
    font-size: 1.1rem;
}

.social-links { display: flex; gap: 20px; }
.social-links a { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.03); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-muted); 
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-links a:hover { 
    background: var(--primary); 
    color: white; 
    transform: translateY(-5px); 
    border-color: var(--primary);
}

.copyright { 
    text-align: center; 
    color: #475569; 
    font-size: 0.95rem; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 40px; 
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.8rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex;
        position: fixed; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: var(--bg-card);
        flex-direction: column; 
        padding: 50px 20px; 
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }
    .mobile-toggle { display: block; font-size: 1.5rem; cursor: pointer; }
    .footer-container { flex-direction: column; gap: 50px; align-items: center; text-align: center; }
    .footer-brand p { margin-left: auto; margin-right: auto; }
}