/* ═══════════════════════════════════════════════════
   CNP BLOGS - Premium 3D Design System v2
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── Design Tokens ─── */
:root {
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Light Palette */
    --bg-primary: #f8faff;
    --bg-secondary: #eef2fb;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(15, 23, 42, 0.03);

    /* Accent Colors */
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-cyan: #0891b2;
    --accent-pink: #db2777;
    --accent-green: #059669;
    --accent-orange: #ea580c;

    /* Category Colors */
    --cat-blue: #2563eb;
    --cat-purple: #7c3aed;
    --cat-orange: #ea580c;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    --gradient-glow: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    --gradient-hero: linear-gradient(160deg, #eff6ff 0%, #f5f3ff 40%, #fdf4ff 100%);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders */
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);

    /* Shadows */
    --shadow-card: 0 8px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow-blue: 0 0 60px rgba(37, 99, 235, 0.14);
    --shadow-glow-purple: 0 0 60px rgba(124, 58, 237, 0.14);
    --shadow-glow-orange: 0 0 60px rgba(234, 88, 12, 0.14);

    /* Layout */
    --section-padding: 7rem 2rem;
    --container-max: 1300px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;

    /* Easing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out);
}

img {
    max-width: 100%;
    display: block;
}

/* ─── Canvases ─── */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* ─── Navigation ─── */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    transition: all 0.4s var(--ease-out);
}

#main-nav.scrolled {
    padding: 0.75rem 2rem;
    background: rgba(248, 250, 255, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.07);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.logo-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.4);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-out);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out);
    border-radius: 2px;
    display: block;
}

.mobile-menu-btn.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 255, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.mobile-link:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

/* ─── Gradient Text ─── */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(96, 165, 250, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem 4rem;
    z-index: 2;
    overflow: hidden;
}

/* Ambient orbs */
.hero-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -200px;
    background: radial-gradient(circle, #bfdbfe, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    top: 20%;
    right: -100px;
    background: radial-gradient(circle, #ddd6fe, transparent 70%);
    animation-delay: -3s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    bottom: -50px;
    left: 40%;
    background: radial-gradient(circle, #a5f3fc, transparent 70%);
    animation-delay: -6s;
}

@keyframes orbFloat {

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

    50% {
        transform: translateY(-40px) scale(1.05);
    }
}

/* Hero layout */
.hero-layout {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 3;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    animation: fadeInLeft 1s var(--ease-out) 0.2s both;
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1.2rem;
    border: 1px solid rgba(8, 145, 178, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    background: rgba(8, 145, 178, 0.06);
    animation: pulse 3s ease-in-out infinite;
    letter-spacing: 0.05em;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.1);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(8, 145, 178, 0.12);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
    display: inline;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

/* Hero 3D panel */
.hero-3d-wrap {
    flex: 0 0 480px;
    height: 520px;
    position: relative;
    animation: fadeInRight 1s var(--ease-out) 0.4s both;
}

#hero-3d-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

#hero-3d-container canvas {
    border-radius: var(--radius-xl);
}

/* Decorative rings */
.model-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
    animation: ringRotate 12s linear infinite;
}

.model-ring-1 {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-color: rgba(96, 165, 250, 0.12);
    animation-duration: 18s;
}

.model-ring-2 {
    width: 125%;
    height: 125%;
    top: -12.5%;
    left: -12.5%;
    border-color: rgba(167, 139, 250, 0.08);
    animation-duration: 26s;
    animation-direction: reverse;
}

.model-ring-3 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-color: rgba(34, 211, 238, 0.05);
    animation-duration: 36s;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.model-label {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    z-index: 5;
}

.model-label-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 1s var(--ease-out) 1.5s both;
    z-index: 5;
    pointer-events: none;
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(15, 23, 42, 0.2);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 3px;
    height: 7px;
    background: var(--accent-blue);
    border-radius: 3px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

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

    50% {
        transform: translateY(8px);
        opacity: 0.3;
    }
}

/* ═══════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CATEGORIES
═══════════════════════════════════════════ */
.categories-section {
    position: relative;
    z-index: 2;
    padding: var(--section-padding);
    max-width: var(--container-max);
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 1200px;
}

.category-card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.5s var(--ease-out);
    position: relative;
    display: block;
    text-decoration: none;
    min-width: 0;
}

.category-card-3d.featured-cat {
    transform: translateY(-16px);
}

.card-3d-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out);
    border-radius: var(--radius-lg);
}

.card-face {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.category-card-3d:hover .card-face {
    border-color: var(--border-hover);
}

/* Glow orb inside card */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 0;
}

.category-card-3d:nth-child(1) .card-glow {
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 55%);
}

.category-card-3d:nth-child(2) .card-glow {
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 55%);
}

.category-card-3d:nth-child(3) .card-glow {
    background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 55%);
}

.category-card-3d:hover .card-glow {
    opacity: 1;
}

/* Hover glow shadow */
.category-card-3d:nth-child(1):hover .card-face {
    box-shadow: var(--shadow-glow-blue);
}

.category-card-3d:nth-child(2):hover .card-face {
    box-shadow: var(--shadow-glow-purple);
}

.category-card-3d:nth-child(3):hover .card-face {
    box-shadow: var(--shadow-glow-orange);
}

/* Mini 3D scene canvas inside card */
.card-scene-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.4s;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    pointer-events: none;
}

.card-scene-canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

.category-card-3d:hover .card-scene-canvas {
    opacity: 1;
}

.card-content {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    z-index: 2;
    margin-top: 160px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.4s var(--ease-spring);
}

.card-icon svg {
    width: 34px;
    height: 34px;
}

.cat-blue {
    color: var(--accent-blue);
    background: rgba(96, 165, 250, 0.12);
}

.cat-purple {
    color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.12);
}

.cat-orange {
    color: var(--accent-orange);
    background: rgba(251, 146, 60, 0.12);
}

.category-card-3d:hover .card-icon {
    transform: scale(1.1) rotate(-6deg);
}

.featured-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 100px;
    color: var(--accent-purple);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

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

.post-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.card-btn {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    border: 1px solid;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.02em;
}

.cat-btn-blue {
    color: var(--accent-blue);
    border-color: rgba(96, 165, 250, 0.3);
}

.cat-btn-blue:hover {
    background: rgba(96, 165, 250, 0.12);
    border-color: var(--accent-blue);
}

.cat-btn-purple {
    color: var(--accent-purple);
    border-color: rgba(167, 139, 250, 0.3);
}

.cat-btn-purple:hover {
    background: rgba(167, 139, 250, 0.12);
    border-color: var(--accent-purple);
}

.cat-btn-orange {
    color: var(--accent-orange);
    border-color: rgba(251, 146, 60, 0.3);
}

.cat-btn-orange:hover {
    background: rgba(251, 146, 60, 0.12);
    border-color: var(--accent-orange);
}

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

.tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease-out);
}

.category-card-3d:hover .tag {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   POSTS SECTION
═══════════════════════════════════════════ */
.posts-section {
    position: relative;
    z-index: 2;
    padding: var(--section-padding);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.filter-tab {
    padding: 0.55rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    transition: all 0.35s var(--ease-out);
    letter-spacing: 0.02em;
}

.filter-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
    background: var(--bg-glass);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

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

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    position: relative;
    display: flex;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.post-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

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

.post-accent {
    width: 4px;
    flex-shrink: 0;
    background: var(--gradient-primary);
}

.accent-blue {
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
}

.accent-purple {
    background: linear-gradient(180deg, #7c3aed, #a78bfa);
}

.accent-orange {
    background: linear-gradient(180deg, #ea580c, #fb923c);
}

.post-inner {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.cat-blue-text {
    color: var(--accent-blue);
}

.cat-purple-text {
    color: var(--accent-purple);
}

.cat-orange-text {
    color: var(--accent-orange);
}

.post-inner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.7rem;
    letter-spacing: -0.01em;
    transition: color 0.3s var(--ease-out);
}

.post-card:hover h3 {
    color: var(--accent-blue);
}

.post-inner p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.author-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.av-blue {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.av-purple {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.av-orange {
    background: linear-gradient(135deg, #ea580c, #fb923c);
}

.author-name-text {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.post-date {
    font-size: 0.73rem;
    color: var(--text-muted);
    display: block;
}

.read-time {
    font-size: 0.73rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════ */
.newsletter-section {
    position: relative;
    z-index: 2;
    margin: 0 2rem 5rem;
    max-width: calc(var(--container-max) - 4rem);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fdf4ff 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
}

.newsletter-3d-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.newsletter-inner {
    position: relative;
    z-index: 2;
    padding: 5rem 2rem;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.nl-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: nlFloat 3s ease-in-out infinite;
}

@keyframes nlFloat {

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

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

.newsletter-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.newsletter-inner p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--border-hover);
    background: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s var(--ease-out);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.03);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nl-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand {
    flex: 0 0 280px;
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 3rem;
    justify-content: flex-end;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 140px;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease-out);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Hero keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-3d-wrap {
        width: 100%;
        max-width: 420px;
        height: 380px;
        flex: none;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-card-3d.featured-cat {
        transform: none;
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 5rem 1.25rem;
    }

    .nav-links,
    .nav-cta-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card-3d.featured-cat {
        grid-column: span 1;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-brand {
        flex: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .newsletter-form input {
        border-radius: var(--radius-md);
    }

    .newsletter-form .btn {
        border-radius: var(--radius-md);
    }
}