/* ============================================================
   BLOG PAGE STYLES
   ============================================================ */
.blog-hero {
    position: relative;
    padding: 180px 20px 80px;
    background: var(--dark);
    text-align: center;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #0a0f24 0%, #020617 100%);
    overflow: hidden;
    z-index: 1;
    perspective: 1200px;
}

/* Blinking Stars (Static Twinkle) */
.blog-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 15% 20%, #fff, transparent),
        radial-gradient(2px 2px at 35% 45%, #fff, transparent),
        radial-gradient(2px 2px at 55% 15%, #00d2ff, transparent),
        radial-gradient(2px 2px at 75% 65%, #fff, transparent),
        radial-gradient(2px 2px at 85% 25%, #ff00ff, transparent),
        radial-gradient(2px 2px at 10% 80%, #fff, transparent),
        radial-gradient(2px 2px at 95% 85%, #00d2ff, transparent),
        radial-gradient(2px 2px at 45% 80%, #fff, transparent);
    background-size: 100% 100%;
    animation: twinkle 4s ease-in-out infinite alternate;
    z-index: 0;
}

/* Shooting Stars (Meteor Shower) */
.blog-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    box-shadow: 
        500px 300px 0 -1px rgba(0, 210, 255, 0.8),
        1200px -200px 0 -1px rgba(255, 0, 255, 0.8);
    transform-origin: left center;
    animation: meteorShower 8s linear infinite;
    opacity: 0;
    z-index: 0;
}

/* 3D Astrolabe / Core effect */
.hero-gradient-mesh, 
.hero-glass-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    z-index: 1;
}

.hero-gradient-mesh::before,
.hero-gradient-mesh::after,
.hero-glass-overlay::before,
.hero-glass-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.hero-gradient-mesh::before {
    top: -200px; left: -200px; width: 400px; height: 400px;
    border-color: rgba(0, 210, 255, 0.8);
    border-top-color: transparent; border-bottom-color: transparent;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.4), inset 0 0 30px rgba(0, 210, 255, 0.4);
    animation: rotateRing1 8s linear infinite;
}

.hero-gradient-mesh::after {
    top: -300px; left: -300px; width: 600px; height: 600px;
    border-color: rgba(255, 0, 255, 0.5);
    border-left-color: transparent; border-right-color: transparent;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.3), inset 0 0 40px rgba(255, 0, 255, 0.3);
    animation: rotateRing2 12s linear infinite;
}

.hero-glass-overlay::before {
    top: -450px; left: -450px; width: 900px; height: 900px;
    border: 1px dashed rgba(0, 210, 255, 0.4);
    animation: rotateRing3 20s linear infinite;
}

.hero-glass-overlay::after {
    top: -600px; left: -600px; width: 1200px; height: 1200px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.03), transparent 60%);
    border: 1px dotted rgba(255, 0, 255, 0.2);
    animation: rotateRing4 30s linear infinite;
}

/* Floating Particles (Stars) using bottom fade pseudo */
.hero-bottom-fade {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 250px;
    background: linear-gradient(to top, #020617 0%, transparent 100%);
    z-index: 3; pointer-events: none;
}

.hero-bottom-fade::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 200vh;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00d2ff, transparent),
        radial-gradient(2px 2px at 40px 70px, #ff00ff, transparent),
        radial-gradient(2px 2px at 50px 160px, #ffffff, transparent),
        radial-gradient(2px 2px at 90px 40px, #00d2ff, transparent),
        radial-gradient(3px 3px at 130px 80px, #ff00ff, transparent);
    background-repeat: repeat; background-size: 250px 250px;
    animation: starsUp 40s linear infinite; opacity: 0.4; z-index: -1;
}

@keyframes rotateRing1 { 0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); } }
@keyframes rotateRing2 { 0% { transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg); } 100% { transform: rotateX(45deg) rotateY(45deg) rotateZ(-360deg); } }
@keyframes rotateRing3 { 0% { transform: rotateX(75deg) rotateY(-30deg) rotateZ(0deg); } 100% { transform: rotateX(75deg) rotateY(-30deg) rotateZ(360deg); } }
@keyframes rotateRing4 { 0% { transform: rotateX(-60deg) rotateY(60deg) rotateZ(0deg); } 100% { transform: rotateX(-60deg) rotateY(60deg) rotateZ(-360deg); } }
@keyframes starsUp { 0% { transform: translateY(0); } 100% { transform: translateY(250px); } }
@keyframes twinkle { 0% { opacity: 0.1; } 50% { opacity: 0.6; } 100% { opacity: 0.2; } }
@keyframes meteorShower { 0% { transform: rotate(-45deg) translateX(800px); opacity: 0; } 2% { opacity: 1; } 20% { transform: rotate(-45deg) translateX(-2000px); opacity: 0; } 100% { transform: rotate(-45deg) translateX(-2000px); opacity: 0; } }

.blog-hero-title {
    position: relative;
    font-size: 3.5rem;
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-hero-subtitle {
    position: relative;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Category Filters */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    position: relative;
    flex-wrap: wrap;
}

.blog-category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'ComicNeueSansID', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-category-btn.active, .blog-category-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
}

/* Blog Content Layout */
.blog-section {
    padding: 60px 20px 100px;
    position: relative;
    z-index: 2;
    background-image: url('../images/showcase-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 10, 25, 0.65);
    z-index: -1;
}

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

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: rgba(8, 10, 25, 0.4);
    border: 1px solid rgba(138, 43, 226, 0.4); /* Thin purple border */
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(138, 43, 226, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(138, 43, 226, 0.2);
}

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

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

.blog-card-image-wrap {
    overflow: hidden;
    position: relative;
    background: #111; /* Fallback for missing images */
}

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.blog-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.blog-card-readmore {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.blog-card-readmore:hover {
    gap: 8px;
}

@media (max-width: 768px) {
    .blog-hero-title { font-size: 2.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
}
