/* Blog Page - Professional Design */

/* Hero Section - Same as other pages */
.blog-hero-section {
    background: 
        radial-gradient(circle at 20% 50%, rgba(42, 193, 174, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Floating Particles */
.blog-floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.blog-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #2BC7B4, #8B5CF6);
    border-radius: 50%;
    animation: blogParticleFloat 15s infinite linear;
    opacity: 0.6;
}

.blog-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.blog-particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.blog-particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.blog-particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 16s; }
.blog-particle:nth-child(5) { left: 60%; animation-delay: 8s; animation-duration: 24s; }
.blog-particle:nth-child(6) { left: 70%; animation-delay: 10s; animation-duration: 14s; }
.blog-particle:nth-child(7) { left: 80%; animation-delay: 12s; animation-duration: 26s; }
.blog-particle:nth-child(8) { left: 90%; animation-delay: 14s; animation-duration: 12s; }

@keyframes blogParticleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes blogCardFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hero Content */
.blog-hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    animation: blogHeroFadeIn 1s ease forwards 0.3s;
}

.blog-hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.blog-badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2BC7B4;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 1.5rem;
    background: rgba(42, 193, 174, 0.1);
    border: 2px solid rgba(42, 193, 174, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.blog-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3rem); /* Reduced header size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    word-wrap: break-word;
}

.blog-hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* Responsive typography */
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: clamp(300px, 90%, 600px); /* Responsive max-width */
    margin-left: auto;
    margin-right: auto;
}

.blog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2BC7B4;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes blogHeroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Categories Section */
.blog-categories-section {
    background: 
        linear-gradient(135deg, #fafbff 0%, #f0f4ff 25%, #ffffff 50%, #f8faff 75%, #fafbff 100%);
    padding: 80px 0;
    position: relative;
}

.categories-wrapper {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.categories-header {
    text-align: center;
    margin-bottom: 2rem;
}

.categories-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.categories-description {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(248, 250, 255, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.1);
    border-radius: 25px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(42, 193, 174, 0.3);
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.category-btn.active .category-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Blog Posts Section */
.blog-posts-section {
    background: #ffffff;
    padding: 80px 0;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.posts-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.posts-count {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Posts Filters */
.posts-filters {
    display: flex;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.blog-category-filter,
.blog-sort-filter {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #374151;
    background-color: #ffffff;
    min-width: 180px;
    transition: all 0.3s ease;
}

.blog-category-filter:focus,
.blog-sort-filter:focus {
    border-color: #2BC7B4;
    box-shadow: 0 0 0 3px rgba(42, 193, 174, 0.1);
    outline: none;
}

.blog-category-filter:hover,
.blog-sort-filter:hover {
    border-color: #2BC7B4;
}

/* Blog Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: rgba(248, 250, 255, 0.8);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.2);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.featured-badge,
.new-badge {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.featured-badge {
    right: 1rem;
    background: rgba(245, 158, 11, 0.9);
}

.new-badge {
    left: 1rem;
    background: rgba(34, 197, 94, 0.9);
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-tag {
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: white;
    padding: clamp(0.2rem, 1vw, 0.25rem) clamp(0.5rem, 2vw, 0.75rem); /* Responsive padding */
    border-radius: clamp(12px, 2vw, 15px); /* Responsive border radius */
    font-size: clamp(0.7rem, 1.5vw, 0.8rem); /* Responsive font size */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Prevent too wide */
}

.read-time {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-title {
    margin-bottom: 1rem;
}

.card-title a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.card-title a:hover {
    color: #2BC7B4;
}

.card-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    overflow: hidden;
}

.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.publish-date {
    color: #64748b;
    font-size: 0.8rem;
}

.card-stats {
    color: #64748b;
    font-size: 0.9rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-action {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(42, 193, 174, 0.3);
    color: white;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* No Posts */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.no-posts-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-posts h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* Pagination */
.blog-pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 0.5rem;
}

.page-item .page-link {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #64748b;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    border-color: transparent;
    color: white;
}

.page-item .page-link:hover {
    border-color: #2BC7B4;
    color: #2BC7B4;
    transform: translateY(-2px);
}

.pagination-info {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 992px) {
    .blog-hero-title { font-size: 3rem; }
    .posts-title { font-size: 2rem; }
    .blog-hero-stats { gap: 2rem; }
    .stat-number { font-size: 2rem; }
    .posts-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .blog-hero-section { padding: 80px 0 60px 0; min-height: 90vh; }
    .blog-hero-title { font-size: 2.5rem; line-height: 1.2; }
    .blog-hero-description { font-size: 1rem; }
    .blog-hero-stats { 
        flex-direction: row; 
        gap: 1.5rem; 
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    .stat-item {
        min-width: 80px;
        text-align: center;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
    .stat-item { 
        display: flex; 
        align-items: center; 
        gap: 1rem; 
    }
    .stat-number { font-size: 1.5rem; }
    .stat-label { margin-top: 0; }
    
    .blog-categories-section, .blog-posts-section { padding: 60px 0; }
    .categories-wrapper { padding: 2rem; }
    .categories-filter { justify-content: flex-start; }
    
    .posts-header { 
        flex-direction: column; 
        gap: 1rem; 
        align-items: flex-start; 
    }
    
    .posts-filters {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .blog-category-filter,
    .blog-sort-filter {
        width: 100%;
        min-width: auto;
    }
    .posts-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    }
    
}

@media (max-width: 576px) {
    .blog-hero-title { font-size: 1.8rem; }
    .posts-title { font-size: 1.5rem; }
    .categories-title { font-size: 1.5rem; }
    .categories-wrapper { padding: 1.5rem; }
    .card-content { padding: 1rem; }
}

/* Blog Final CTA (for blogs.html) */
.blog-final-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    text-align: center;
}

.blog-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-cta-description {
    font-size: clamp(1rem, 2.2vw, 1.2rem); /* Responsive font size */
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-secondary-btn {
    min-width: clamp(180px, 30vw, 220px); /* Responsive min-width */
    font-size: clamp(0.9rem, 1.8vw, 1rem); /* Responsive font size */
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    background: transparent !important;
    border-radius: 25px !important; /* Same as contact page */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--electric-violet));
    transition: left 0.3s ease;
    z-index: -1;
}

.blog-secondary-btn:hover {
    color: var(--white) !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.blog-secondary-btn:hover::before {
    left: 0;
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
    .blog-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .blog-secondary-btn {
        width: 100%;
        max-width: 300px;
    }
}
