/* ==================== */
/* POOP ZOOMIES - Fun Cat-Themed CSS */
/* ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fun Cat-Friendly Color Palette - Warm & Playful */
    --color-bg: #FFF8F0;  /* Warm cream */
    --color-bg-alt: #FFE4D6;  /* Soft peachy */
    --color-surface: #FFFFFF;
    --color-text: #3D2E2E;  /* Warm dark brown */
    --color-text-muted: #8B7355;
    --color-accent: #FF8A5B;  /* Playful orange */
    --color-accent-dark: #EA5234;
    --color-secondary: #FEB85C;  /* Sunny yellow */
    --color-tertiary: #9575CD;  /* Soft purple */
    --color-paw: #FFB4A2;  /* Soft pink */
    --color-border: #E8D4C1;
    --color-shadow: rgba(61, 46, 46, 0.1);

    /* Category Colors */
    --color-category-health: #FF6B6B;
    --color-category-nutrition: #51CF66;
    --color-category-stem: #9775FA;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Typography - Playful & Friendly */
    --font-sans: 'Comic Sans MS', 'Quicksand', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Fredoka One', 'Quicksand', 'Nunito', sans-serif;

    /* Border Radius - Everything is Round! */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 50px;
}

/* ==================== */
/* Animations           */
/* ==================== */

@keyframes zoomies {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-15px) rotate(-10deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(15px) rotate(10deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pawPrint {
    0% {
        opacity: 0;
        transform: scale(0) rotate(var(--paw-rotation, 0deg));
    }
    50% {
        opacity: 0.6;
        transform: scale(1) rotate(var(--paw-rotation, 0deg));
    }
    100% {
        opacity: 0;
        transform: scale(1.2) rotate(var(--paw-rotation, 0deg));
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes purr {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==================== */
/* Base Styles          */
/* ==================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Decorative paw prints in background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--color-paw) 2px, transparent 2px),
        radial-gradient(circle at 80% 60%, var(--color-paw) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, var(--color-paw) 2px, transparent 2px);
    background-size: 400px 400px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* ==================== */
/* Navigation - Playful */
/* ==================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--space-lg);
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--color-accent);
    box-shadow: 0 4px 20px var(--color-shadow);
    z-index: 1000;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo:hover {
    transform: scale(1.05);
    animation: wiggle 0.5s ease;
}

.nav-logo::before {
    content: '🐾';
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow);
}

/* ==================== */
/* Hero Section - FUN!  */
/* ==================== */

.hero {
    min-height: 60vh; /* Reduced from 100vh - articles visible without scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-md); /* Reduced bottom padding */
    position: relative;
    padding-top: calc(100px + var(--space-lg)); /* Account for fixed nav */
    overflow: hidden;
}

/* Animated cat in hero */
.hero::before {
    content: '🐱';
    position: absolute;
    font-size: 120px;
    top: 20%;
    right: 10%;
    opacity: 0.2;
    animation: zoomies 3s infinite ease-in-out;
}

.hero::after {
    content: '😺';
    position: absolute;
    font-size: 100px;
    bottom: 20%;
    left: 8%;
    opacity: 0.2;
    animation: float 4s infinite ease-in-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    text-shadow: 3px 3px 0 var(--color-secondary);
    animation: fadeIn 1s ease; /* Removed bounce animation */
    position: relative;
    z-index: 1;
}

/* Only animate hero h1 on non-home pages */
.blog-page .hero h1,
.about-page .hero h1 {
    animation: fadeIn 1s ease, bounce 2s infinite 1s;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-text);
    max-width: 700px;
    margin-bottom: var(--space-lg);
    animation: fadeIn 1s ease 0.3s both;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    font-style: italic;
    animation: fadeIn 1s ease 0.6s both;
}

/* ==================== */
/* Paw Print Trail      */
/* ==================== */

.paw-trail {
    padding: var(--space-sm) var(--space-md); /* Reduced top/bottom padding */
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: var(--space-lg); /* Add space before Articles section */
    position: relative;
    min-height: 120px; /* Reduced min-height */
}

.paw-trail-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

.paw-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeIn 0.5s ease both;
    position: relative;
}

/* Scatter paw prints across the page like a cat walked through */
.paw-link[data-index="0"] {
    transform: rotate(-5deg) translateY(-10px);
    animation-delay: 0.1s;
}

.paw-link[data-index="1"] {
    transform: rotate(3deg) translateY(5px);
    animation-delay: 0.2s;
}

.paw-link[data-index="2"] {
    transform: rotate(-2deg) translateY(-5px);
    animation-delay: 0.3s;
}

.paw-link[data-index="3"] {
    transform: rotate(4deg) translateY(8px);
    animation-delay: 0.4s;
}

.paw-link[data-index="4"] {
    transform: rotate(-3deg) translateY(-3px);
    animation-delay: 0.5s;
}

.paw-link:hover {
    transform: translateY(-5px) scale(1.05) rotate(0deg) !important;
    box-shadow: 0 8px 25px var(--color-shadow);
    border-color: var(--color-accent);
    background: linear-gradient(135deg, var(--color-surface), var(--color-bg-alt));
}

.paw-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.paw-link:hover .paw-icon {
    opacity: 1;
    animation: wiggle 0.5s ease;
}

.paw-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .paw-trail {
        min-height: auto;
        padding: var(--space-md);
    }

    .paw-trail-container {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .paw-link {
        width: 100%;
        max-width: 400px;
    }

    /* Remove rotation on mobile for readability */
    .paw-link[data-index="0"],
    .paw-link[data-index="1"],
    .paw-link[data-index="2"],
    .paw-link[data-index="3"],
    .paw-link[data-index="4"] {
        transform: none;
    }
}

/* ==================== */
/* Sections             */
/* ==================== */

.articles-section {
    margin-top: 0; /* Remove gap - articles closer to paw trail */
    padding-top: 0; /* No padding at top */
    padding-bottom: var(--space-lg); /* Reduced from var(--space-xl) */
}

.articles-section h2 {
    margin-top: 0; /* No top margin on Articles heading */
}

/* Category Filter Buttons */
.category-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0 var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--color-shadow);
    border-color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(255, 138, 91, 0.3);
}

.filter-btn:active {
    transform: translateY(0);
}

section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease;
}

/* First section after nav needs extra top padding */
main > section:first-child:not(.hero) {
    padding-top: calc(100px + var(--space-xl));
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '🐾';
    display: block;
    text-align: center;
    font-size: 2rem;
    margin-top: 0.5rem;
    animation: wiggle 2s infinite;
}

/* ==================== */
/* Article Cards - CUTE!*/
/* ==================== */

.projects, .articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.project-card, .article-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--color-shadow);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    cursor: pointer;
}

.project-card::before, .article-card::before {
    content: '🐾';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.project-card:hover, .article-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 15px 50px var(--color-shadow);
    border-color: var(--color-accent);
}

.project-card:hover::before, .article-card:hover::before {
    opacity: 0.3;
    animation: wiggle 0.5s ease;
}

.project-image, .article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image,
.article-card:hover .article-image {
    transform: scale(1.1);
}

.project-info, .article-info {
    padding: var(--space-md);
}

.project-category, .article-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-health {
    background: var(--color-category-health);
    color: white;
}

.category-nutrition {
    background: var(--color-category-nutrition);
    color: white;
}

.category-stem-cell {
    background: var(--color-category-stem);
    color: white;
}

.project-title, .article-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.project-description, .article-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.project-link, .article-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    transition: all 0.3s ease;
}

.project-link:hover, .article-link:hover {
    background: var(--color-accent-dark);
    transform: scale(1.05);
    box-shadow: 0 5px 20px var(--color-shadow);
}

/* ==================== */
/* Blog Post Styles     */
/* ==================== */

/* Wrapper to handle spacing from fixed nav */
.blog-post-wrapper {
    /* Account for fixed nav height + extra spacing */
    padding-top: 120px; /* Fixed nav height + buffer */
    padding-bottom: var(--space-xl);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    min-height: 100vh;
}

.blog-post {
    max-width: 900px; /* Wider for better reading experience */
    margin: 0 auto;
    padding: 3rem; /* More generous padding */
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px var(--color-shadow);
}

/* Featured image container */
.post-featured-image {
    margin: 2rem 0;
    width: 100%;
}

.post-featured-image .featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px var(--color-shadow);
}

@media (max-width: 768px) {
    .blog-post-wrapper {
        padding-top: 100px; /* Less spacing on mobile */
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

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

    .post-content {
        font-size: 16px; /* Slightly smaller on mobile but still readable */
    }
}

@media (max-width: 480px) {
    .blog-post-wrapper {
        padding-top: 90px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .blog-post {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-md);
    }
}

.post-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.post-meta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.post-meta .category {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.9rem;
}

.post-meta .date {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    line-height: 1.3; /* Better spacing for readability */
    max-width: 80%; /* Prevent overly long titles */
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .post-header h1 {
        max-width: 100%;
    }
}

.post-intro {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.post-content {
    /* Optimal readability - 2025 best practices */
    line-height: 1.6; /* 160% for optimal readability */
    color: var(--color-text);
    font-size: 18px; /* Larger than 16px minimum for comfort */
    max-width: 75ch; /* Optimal line length (45-75 characters) */
    margin: 0 auto;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem; /* 30px */
    color: var(--color-accent);
    margin: 3rem 0 1.5rem; /* More white space for scanning */
    text-align: left;
    line-height: 1.3;
    font-weight: 700;
}

.post-content h2::after {
    display: none;
}

.post-content h3 {
    font-size: 1.5rem; /* 24px */
    color: var(--color-text);
    margin: 2.5rem 0 1rem; /* Generous spacing */
    font-weight: 700;
    line-height: 1.4;
}

.post-content h4 {
    font-size: 1.25rem; /* 20px */
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.post-content p {
    margin-bottom: 1.5rem; /* Generous spacing between paragraphs */
    max-width: 75ch; /* Optimal line length */
}

.post-content ul, .post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8; /* Extra spacing for lists */
}

.post-content li {
    margin-bottom: 0.75rem; /* More space between list items */
}

/* Strong emphasis on important points */
.post-content strong {
    font-weight: 700;
    color: var(--color-accent-dark);
}

/* Better emphasis styling */
.post-content em {
    font-style: italic;
    color: var(--color-text);
}

/* First paragraph gets special emphasis for SEO */
.post-content > p:first-of-type {
    font-size: 1.2em;
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 500;
}

/* Section dividers with paw prints */
.post-content h2::before {
    content: '🐾 ';
    opacity: 0.6;
    margin-right: 0.5rem;
}

/* Numbered lists stand out more */
.post-content ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.post-content ol > li {
    counter-increment: item;
    position: relative;
    padding-left: 3rem;
}

.post-content ol > li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--color-accent);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Bullet lists get paw prints */
.post-content ul > li {
    position: relative;
    padding-left: 0.5rem;
}

.post-content ul > li::marker {
    content: '🐾 ';
    font-size: 0.8em;
}

.post-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem auto; /* Center images with spacing */
    display: block;
    box-shadow: 0 5px 20px var(--color-shadow);
}

/* Ensure images have breathing room */
.post-content p img {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
}

.post-content a:hover {
    color: var(--color-accent-dark);
}

.post-content blockquote {
    border-left: 5px solid var(--color-accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Table styling for better readability */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.post-content th,
.post-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.post-content th {
    background: var(--color-bg-alt);
    font-weight: 700;
    color: var(--color-accent);
}

.post-content tr:hover {
    background: var(--color-bg);
}

/* Code blocks for technical content */
.post-content code {
    background: var(--color-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}

.post-content pre {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 2rem 0;
    border-left: 4px solid var(--color-accent);
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Horizontal rules for section breaks */
.post-content hr {
    border: none;
    border-top: 3px solid var(--color-border);
    margin: 3rem 0;
    opacity: 0.5;
}

/* Highlight boxes for key takeaways */
.post-content .highlight-box {
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg));
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

/* Better link styling within content */
.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--color-accent-dark);
    text-decoration-thickness: 2px;
}

.post-navigation {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 3px solid var(--color-border);
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--color-accent-dark);
    transform: scale(1.05);
}

/* ==================== */
/* About Section        */
/* ==================== */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.about-main {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px var(--color-shadow);
}

.about-main h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.about-main p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.topics-list {
    list-style: none;
    padding: 0;
}

.topics-list li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border-left: 5px solid var(--color-accent);
    transition: all 0.3s ease;
}

.topics-list li:hover {
    transform: translateX(10px);
    background: var(--color-bg-alt);
}

.topics-list li::before {
    content: '🐾 ';
    margin-right: 0.5rem;
}

.about-sidebar {
    background: var(--color-surface);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px var(--color-shadow);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.about-sidebar h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

/* ==================== */
/* Footer               */
/* ==================== */

footer {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '🐾🐾🐾';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

footer p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.footer-tagline {
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: var(--space-sm);
}

/* ==================== */
/* Blog Index Filter    */
/* ==================== */

.filter-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 3px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-accent);
    color: white;
    transform: scale(1.05);
}

/* ==================== */
/* Responsive Design    */
/* ==================== */

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
    }

    .nav {
        padding: 1rem var(--space-md);
    }

    .nav-logo {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: var(--space-sm);
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .hero {
        padding: var(--space-lg) var(--space-md);
    }

    .hero::before, .hero::after {
        font-size: 60px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        position: static;
    }

    .projects, .articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-logo::before {
        display: none;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}

/* ==================== */
/* Fun Interactive Elements */
/* ==================== */

/* Paw print cursor trail effect */
.paw-print {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    animation: pawPrint 1s ease-out forwards;
    z-index: 9999;
}

/* Playful scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
