:root {
    --primary: #2563eb;
    --secondary: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particles background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateX(0);
}

.close-menu {
    align-self: flex-end;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.mobile-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
}

.mobile-social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.mobile-sub-footer {
    margin-top: auto;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sub-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Blog Page */
.blog-page {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 5%;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 10%;
}

.blog-header h1 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.post-content {
    padding: 1.8rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.post-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.8rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 1.1rem;
    color: var(--dark);
}

.author-details p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 3rem;
}

.page-numbers, .next-page {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.next-page {
    width: auto;
    padding: 0 1.2rem;
}

.page-numbers:hover, .next-page:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.page-numbers.current {
    background: var(--primary);
    color: white;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 5rem 2rem;
    margin: 5rem 0;
    border-radius: 16px;
    text-align: center;
    color: white;
}

.newsletter-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: var(--dark);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-about h3::after, .footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-about p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-details p, .contact-details a {
    color: #cbd5e1;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary);
}

.sub-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

.sub-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .blog-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header {
        padding: 0;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .post-image {
        height: 220px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .post-content h2 {
        font-size: 1.4rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}