* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    overflow-x: hidden;
}

.blog-bg-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.4), transparent);
    filter: blur(80px);
    animation: floatSphere 20s ease-in-out infinite;
}

.bg-sphere:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.bg-sphere:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(139,92,246,0.3), transparent);
    animation-delay: 5s;
}

.bg-sphere:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 20%;
    background: radial-gradient(circle, rgba(16,185,129,0.2), transparent);
    animation-delay: 10s;
}

@keyframes floatSphere {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.blog-hero-3d {
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
}

.hero-badge-3d {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 14px;
    border: 1px solid rgba(99,102,241,0.3);
    margin-bottom: 30px;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.hero-badge-3d:hover {
    transform: translateZ(40px);
    border-color: #6366f1;
    box-shadow: 0 0 30px rgba(99,102,241,0.3);
}

.hero-title-3d {
    font-size: clamp(40px, 8vw, 70px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text-3d {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #c084fc, #6366f1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Section 3D */
.featured-section-3d {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title-3d {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-3d i {
    color: #f59e0b;
    font-size: 28px;
}

.featured-grid-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.featured-main-3d {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transform-style: preserve-3d;
    transition: all 0.4s ease;
}

.featured-main-3d:hover {
    transform: translateY(-10px) rotateX(3deg);
    border-color: #6366f1;
    box-shadow: 0 30px 50px -20px rgba(99,102,241,0.4);
}

.featured-main-image-3d {
    height: 300px;
    overflow: hidden;
}

.featured-main-image-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-main-3d:hover .featured-main-image-3d img {
    transform: scale(1.05);
}

.featured-main-content-3d {
    padding: 25px;
}

.featured-category-3d {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.featured-main-title-3d {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-main-title-3d a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-main-title-3d a:hover {
    color: #6366f1;
}

.blog-meta-3d {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #94a3b8;
}

.blog-meta-3d span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-excerpt {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-3d {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
}

.read-more-3d:hover {
    gap: 12px;
}

.featured-side-3d {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-side-item-3d {
    display: flex;
    gap: 15px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.featured-side-item-3d:hover {
    transform: translateX(8px);
    border-color: #6366f1;
}

.featured-side-image-3d {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.featured-side-image-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-side-content-3d {
    padding: 12px 12px 12px 0;
    flex: 1;
}

.featured-side-title-3d {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-side-title-3d a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-side-title-3d a:hover {
    color: #6366f1;
}

/* Blog Layout */
.blog-layout-3d {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Filters */
.blog-filters-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-filter-3d {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn-3d {
    padding: 8px 18px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 40px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.category-btn-3d:hover, .category-btn-3d.active {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.sort-filter-3d {
    display: flex;
    gap: 10px;
}

.sort-btn-3d {
    padding: 8px 18px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.sort-btn-3d.active, .sort-btn-3d:hover {
    background: #6366f1;
    color: white;
}

/* Blog Grid */
.blog-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card-3d {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.blog-card-3d:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: #6366f1;
    box-shadow: 0 25px 40px -20px rgba(99,102,241,0.3);
}

.blog-image-3d {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card-3d:hover .blog-image-3d img {
    transform: scale(1.05);
}

.blog-category-3d {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.blog-content-3d {
    padding: 20px;
}

.blog-title-3d {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title-3d a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title-3d a:hover {
    color: #6366f1;
}

.blog-excerpt-3d {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.blog-author-3d {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar-3d {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.author-name-3d {
    font-size: 12px;
    color: #cbd5e1;
}

/* Sidebar */
.blog-sidebar-3d {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card-3d {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.sidebar-card-3d:hover {
    border-color: #6366f1;
    transform: translateY(-3px);
}

.sidebar-title-3d {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6366f1;
    display: inline-block;
}

/* Search Widget */
.search-widget-3d {
    display: flex;
    gap: 10px;
}

.search-input-3d {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    color: #f8fafc;
}

.search-btn-3d {
    padding: 10px 15px;
    background: #6366f1;
    border: none;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn-3d:hover {
    background: #8b5cf6;
    transform: scale(1.02);
}

/* Popular List */
.popular-list-3d {
    list-style: none;
}

.popular-item-3d {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.popular-item-3d:last-child {
    border-bottom: none;
}

.popular-rank-3d {
    width: 28px;
    height: 28px;
    background: rgba(99,102,241,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #6366f1;
}

.popular-title-3d {
    flex: 1;
}

.popular-title-3d a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.popular-title-3d a:hover {
    color: #6366f1;
}

.popular-views-3d {
    font-size: 10px;
    color: #64748b;
    margin-top: 4px;
}

/* Category List */
.category-list-3d {
    list-style: none;
}

.category-item-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-item-3d:last-child {
    border-bottom: none;
}

.category-name-3d {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.category-name-3d:hover {
    color: #6366f1;
}

.category-count-3d {
    color: #64748b;
    font-size: 11px;
}

.tags-cloud-3d {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-3d {
    background: rgba(99,102,241,0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(99,102,241,0.3);
}

.tag-3d:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.newsletter-form-3d {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input-3d {
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    color: #f8fafc;
}

.newsletter-btn-3d {
    padding: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

.pagination-3d {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-link-3d {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.page-link-3d:hover, .page-link-3d.active {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.empty-state-3d {
    text-align: center;
    padding: 60px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.1);
}

.empty-state-3d i {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .blog-layout-3d {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .blog-sidebar-3d {
        position: static;
    }
    .featured-grid-3d {
        grid-template-columns: 1fr;
    }
    .featured-main-image-3d {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .blog-layout-3d {
        padding: 20px;
    }
    .featured-section-3d {
        padding: 20px;
    }
    .featured-side-item-3d {
        flex-direction: column;
    }
    .featured-side-image-3d {
        width: 100%;
        height: 150px;
    }
    .featured-side-content-3d {
        padding: 0 15px 15px 15px;
    }
    .blog-filters-3d {
        flex-direction: column;
        align-items: stretch;
    }
    .category-filter-3d {
        justify-content: center;
    }
    .sort-filter-3d {
        justify-content: center;
    }
    .blog-grid-3d {
        grid-template-columns: 1fr;
    }
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a1a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
}