/* Blog Page Specific Styles */

/* Blog Hero */
.blog-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10rem 3rem 6rem;
    overflow: hidden;
    perspective: var(--perspective);
}

.blog-hero-content {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero-content .hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.blog-hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 1;
    opacity: 0.5;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: floatCards 15s ease-in-out infinite;
}

@keyframes floatCards {

    0%,
    100% {
        transform: rotateY(0deg) rotateX(10deg);
    }

    50% {
        transform: rotateY(15deg) rotateX(-5deg);
    }
}

.floating-card {
    position: absolute;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
}

.floating-card.card-1 {
    width: 200px;
    height: 280px;
    top: 10%;
    left: 20%;
    transform: translateZ(50px);
    animation: float1 6s ease-in-out infinite;
}

.floating-card.card-2 {
    width: 180px;
    height: 250px;
    top: 20%;
    left: 45%;
    transform: translateZ(100px);
    animation: float2 7s ease-in-out infinite 0.5s;
}

.floating-card.card-3 {
    width: 160px;
    height: 220px;
    top: 35%;
    left: 15%;
    transform: translateZ(25px);
    animation: float3 8s ease-in-out infinite 1s;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateZ(50px) translateY(0);
    }

    50% {
        transform: translateZ(60px) translateY(-15px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateZ(100px) translateY(0);
    }

    50% {
        transform: translateZ(120px) translateY(-20px);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateZ(25px) translateY(0);
    }

    50% {
        transform: translateZ(35px) translateY(-10px);
    }
}

/* Featured Case Study */
.featured-case-study {
    padding: 6rem 3rem;
    background: linear-gradient(180deg, var(--black), var(--primary-dark));
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.featured-image {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.1));
}

.featured-brand {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.2em;
    z-index: 1;
}

.featured-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulseShape 4s ease-in-out infinite;
}

@keyframes pulseShape {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-content {
    max-width: 600px;
}

.case-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.featured-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Categories Filter */
.blog-categories {
    padding: 3rem;
    background: var(--primary-dark);
    position: sticky;
    top: 80px;
    z-index: 100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.category-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gray-600);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-400);
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.category-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.category-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 5rem 3rem;
    background: linear-gradient(180deg, var(--primary-dark), var(--black));
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    transform-style: preserve-3d;
}

.blog-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-10px) translateZ(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.blog-card.hidden {
    display: none;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    position: relative;
}

.image-placeholder.dark {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
}

.image-placeholder.light {
    background: linear-gradient(135deg, #2d3a4f, #1e2836);
}

.image-placeholder.gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
}

.image-placeholder span {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.2em;
    z-index: 1;
}

.image-placeholder .shape {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: floatShape 6s ease-in-out infinite;
}

.shape.circle {
    border-radius: 50%;
}

.shape.triangle {
    width: 0;
    height: 0;
    border: none;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 255, 255, 0.1);
}

.shape.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
}

.card-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content {
    padding: 1.75rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-date,
.meta-time {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.blog-card:hover .card-title {
    color: var(--accent-blue);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-blue);
    transition: all var(--transition-fast);
}

.read-more svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.read-more:hover {
    color: var(--accent-cyan);
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* Load More */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 3rem;
    background: var(--black);
}

.newsletter-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 1rem 0;
    color: var(--white);
}

.newsletter-text {
    font-size: 1rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--white);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    border-color: var(--accent-blue);
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Nav Active State */
.nav-links a.active {
    color: var(--accent-blue);
}

.nav-links a.active::after {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-hero-visual {
        display: none;
    }
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .featured-image {
        height: 350px;
    }

    .newsletter-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 8rem 1.5rem 4rem;
        min-height: 50vh;
    }

    .blog-categories {
        padding: 2rem 1.5rem;
    }

    .categories-wrapper {
        gap: 0.75rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .featured-case-study,
    .blog-posts,
    .newsletter-section {
        padding: 4rem 1.5rem;
    }
}