/*
Theme Name: Tomilicz
Theme URI: https://tomilicz.com/
Author: Piotr Tomilicz
Author URI: https://tomilicz.com/
Description: A modern Neo-Brutalism theme for copywriters, ghostwriters, storytellers, and editors. Features an animated handwriting logo, custom torn paper dividers, and floating contact widgets.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomilicz
*/

/* ==========================================================================
   DESIGN SYSTEM - NEO-BRUTALISM (MODERN MULTI-PAGE & ANIMATED)
   ========================================================================== */

:root {
    --bg-color: #fcf8f2;        /* Off-white soft warm background */
    --text-color: #121212;      /* Deep antracite for text & borders */
    --border-color: #121212;
    --card-shadow: #121212;

    /* Section backgrounds */
    --color-hero: #fcf8f2;
    --color-o-mnie: #e8f3f0;
    --color-dlaczego: #faf5e6;
    --color-blog: #faf0f0;
    --color-kontakt: #eff4f8;

    /* Accent colors */
    --primary-red: #ff1103;
    --primary-yellow: #ffb200;
    --primary-blue: #008de0;
    --primary-green: #5dc300;
    --white: #ffffff;
    
    /* Layout */
    --border-width: 3px;
    --border-width-thick: 4px;
    --border-radius: 8px;
    --shadow-offset: 5px;
    --shadow-offset-hover: 8px;
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-signature: 'Caveat', cursive;

    /* Custom Retro Cursors */
    --custom-cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAC4jAAAuIwF4pT92AAAGYmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICA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Qf45wGwJ5wGmf8WANUDkI01rYugiT8NoKQ7oL2g/aB9owBoj4+Pf1SB2GRXCbTAZmk4APPz84vom52dFbjPbDZ/djgcb7oAiaCjQwHIZrNJ9EUikRj3SZK0hj6r1ZrtAnG/E8AR0D1QGdQCbWgF4OZ0Ol8wX6HZbBbS6bRAALaUAA6DvnSi5gCtVgvX9DsClkqlt+jLZDJLGGMymQocwOv1Pkbf9PR0BO/b7fYWzacEEOpWTByAJRMB5KtMDN8S/GXikhqNxie89gogkgAPq9Y1JQCcCJ6YWF3+3eoEWhWgTgImWE2cwa22E8Bms60aDAYRZwLvq9XqCo6fmppa5jHRaDSO4wRBiPYKsEwCIqBdzH8TfYFAIMaT8zgsSLzHYuRbkMcgMPp8Pt+jXgHO7lj3q3y6RVF8BdfKIABQM7TApU7b8DYJqkOVv1NY174AcrncEsm90gkAe/YqD4S1fo9LPAyAYDAYJgBz3TrhSda3fwb7/f74MAAmJyefEYDLaq34Oq0HmL6nAwJIrHnxscfUAHaDnvABRqNxE4ponSe32+0Z8G1AZX9j2/CDXq+vuN3uJI9JJBLYnlupVEooFouvaRvmO0ztMLKAinygy+VKyX1aOByOEYAFLcfxBboU2Fz6AfB4PEmS51rPAMx/lwyu5fP5FE59r8IDa2xsbJvkOKX13/AAKKvhM6ybCqA9WgHQToAqAz4cvy/O9fN3zO046CFoW+OD8ec2zg42xY/SH6z4AIPzpA2VAAAAAElFTkSuQmCC") 12 0, pointer;
}

/* Section Colors */
.bg-hero { background-color: var(--color-hero); }
.bg-o-mnie { background-color: var(--color-o-mnie); }
.bg-dlaczego { background-color: var(--color-dlaczego); }
.bg-blog { background-color: var(--color-blog); }
.bg-kontakt { background-color: var(--color-kontakt); }

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: var(--custom-cursor);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-color);
}

a, button, .btn, [role="button"], select, input[type="submit"], input[type="button"], .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: var(--custom-pointer);
}

p {
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 95px 0;
    position: relative;
}

/* Page Header for subpages */
.page-hero {
    background-color: var(--bg-color);
    padding: 60px 0;
    border-bottom: var(--border-width) solid var(--border-color);
    background-image: radial-gradient(circle at 90% 10%, rgba(0, 141, 224, 0.04) 0%, rgba(0,0,0,0) 70%);
}

.page-hero-title {
    font-size: 3rem;
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
}

/* ==========================================================================
   REALISTIC TORN PAPER SECTION DIVIDERS (SVG + TURBULENCE FILTER)
   ========================================================================== */

.torn-divider {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10;
    pointer-events: none;
    /* Negative margin pulls adjacent sections together so they overlap with the divider */
    margin-top: -24px;
    margin-bottom: -24px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.15));
}

.torn-divider svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible; /* Crucial for displacement filters */
}

/* ==========================================================================
   REUSABLE BRUTALIST COMPONENTS
   ========================================================================== */

/* Buttons - NO UPPERCASE */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    padding: 14px 28px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-color);
    cursor: var(--custom-pointer);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--card-shadow);
    transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0, 0, 0.2, 1), background-color 0.2s ease;
    position: relative;
}

.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-offset-hover) var(--shadow-offset-hover) 0px var(--card-shadow);
}

.btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--card-shadow);
}

.btn-primary {
    background-color: var(--primary-yellow);
}

.btn-primary:hover {
    background-color: #ffbf1f;
}

.btn-secondary {
    background-color: var(--white);
}

.btn-secondary:hover {
    background-color: #f7f1e6;
}

/* Highlighting */
.highlight {
    position: relative;
    display: inline-block;
    padding: 0 4px;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 35%;
    z-index: -1;
}

.highlight.red::after { background-color: var(--primary-red); }
.highlight.yellow::after { background-color: var(--primary-yellow); }
.highlight.blue::after { background-color: var(--primary-blue); }
.highlight.green::after { background-color: var(--primary-green); }

/* Badges */
.hero-badge, .neo-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border: var(--border-width) solid var(--border-color);
    border-radius: 50px;
    background-color: var(--white);
    box-shadow: 3px 3px 0px var(--card-shadow);
    margin-bottom: 20px;
}

.neo-badge {
    margin-bottom: 0;
    background-color: var(--primary-green);
    box-shadow: none;
    transform: rotate(3deg);
    position: absolute;
    bottom: -15px;
    right: 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-sub {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-red);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.75rem;
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */

.top-bar {
    background-color: var(--text-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: var(--border-width) solid var(--border-color);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.socials {
    display: flex;
    gap: 16px;
}

.socials a svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
    transition: fill 0.2s ease, transform 0.2s ease;
}

.socials a:hover svg {
    fill: var(--primary-yellow);
    transform: scale(1.2);
}

.top-bar-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Header */
.main-header {
    background-color: var(--bg-color);
    border-bottom: var(--border-width) solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    transition: padding 0.3s ease;
}

.main-header.scroll-active {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo container styling */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    position: relative;
    padding: 5px 0;
}

/* Logotype Signet - t. with overlapping dot - BOLDER & LARGER t */
.logo-signet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--primary-yellow);
    border: var(--border-width) solid var(--border-color);
    box-shadow: 3px 3px 0px var(--card-shadow);
    position: relative;
    margin-right: 14px;
    transform: rotate(-6deg);
    border-radius: 6px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
    flex-shrink: 0;
}

.logo-signet::before {
    content: 't';
    font-family: var(--font-heading); /* Montserrat - Bold Sans Serif */
    font-weight: 900;
    font-size: 2.6rem; /* Make it much larger */
    color: var(--text-color);
    line-height: 1;
    margin-top: -14px; /* Center alignment for bold Montserrat t */
    margin-left: -2px;
}

.logo-signet::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    background-color: var(--primary-red);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    top: 15px; /* Overlap crossbar */
    right: 6px;
    box-shadow: 1.5px 1.5px 0px rgba(0,0,0,0.15);
}

.logo-link:hover .logo-signet {
    transform: rotate(6deg) scale(1.08);
    background-color: var(--primary-green);
}

/* Signature Vector Logo styling */
.logo-signature-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    transform: rotate(-3deg);
    transition: transform 0.2s ease;
}

.logo-signature-svg {
    display: block;
    overflow: visible;
}

/* Animating paths stroke-by-stroke sequentially */
.sig-path {
    fill: none;
    stroke: var(--text-color);
    stroke-width: 2.4px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sig-path-1 {
    stroke-dasharray: 152;
    stroke-dashoffset: 152;
    animation: drawStroke1 0.8s linear forwards;
    animation-delay: 0s;
}

.sig-path-2 {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    animation: drawStroke2 0.1s linear forwards;
    animation-delay: 0.8s;
}

.sig-path-3 {
    stroke-dasharray: 268;
    stroke-dashoffset: 268;
    animation: drawStroke3 0.9s linear forwards;
    animation-delay: 0.9s;
}

.sig-path-4 {
    fill: none;
    stroke: var(--primary-yellow);
    stroke-width: 5px; /* Slightly thicker wavy line */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 162;
    stroke-dashoffset: 162;
    animation: drawStroke4 0.4s ease-out forwards;
    animation-delay: 1.8s;
    transition: stroke 0.2s ease;
}

.sig-dots {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    animation: drawDots 0.3s linear forwards;
    animation-delay: 2.2s;
}

@keyframes drawStroke1 { to { stroke-dashoffset: 0; } }
@keyframes drawStroke2 { to { stroke-dashoffset: 0; } }
@keyframes drawStroke3 { to { stroke-dashoffset: 0; } }
@keyframes drawStroke4 { to { stroke-dashoffset: 0; } }
@keyframes drawDots { to { stroke-dashoffset: 0; } }

.logo-link:hover .logo-signature-container {
    transform: rotate(-1deg) scale(1.02);
}

.logo-link:hover .sig-path-4 {
    stroke: var(--primary-red);
}

/* Hand-drawn marker highlight */
.highlight-marker {
    position: relative;
    display: inline-block;
    z-index: 1;
    white-space: nowrap;
}

.marker-svg {
    position: absolute !important;
    left: -2% !important;
    bottom: -5% !important;
    width: 104% !important;
    height: 100% !important;
    z-index: 2 !important; /* Render above text with multiply */
    pointer-events: none !important;
    overflow: visible !important;
    mix-blend-mode: multiply !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.marker-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawMarker 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes drawMarker {
    to {
        stroke-dashoffset: 0;
    }
}

/* Nav links - NO UPPERCASE */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

/* Required styling for WordPress generated navigation */
.menu-primary-menu-container {
    display: flex;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-red);
    transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after {
    width: 100%;
}

/* Stylize the last item "Porozmawiajmy" button in WordPress menu */
.nav-links li:last-child a,
.nav-links .menu-item-btn > a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 20px;
    background-color: var(--primary-yellow);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 3px 3px 0px var(--card-shadow);
}

.nav-links li:last-child a::after,
.nav-links .menu-item-btn > a::after {
    display: none !important;
}

.nav-links li:last-child a:hover,
.nav-links .menu-item-btn > a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--card-shadow);
    background-color: #ffbf1f;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: var(--custom-pointer);
    z-index: 10;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-color);
        border-left: var(--border-width) solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        z-index: 9;
        transition: right 0.3s ease;
        box-shadow: -10px 0px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.open {
        right: 0;
    }

    .nav-links li:last-child a,
    .nav-links .menu-item-btn > a {
        display: inline-block;
        text-align: center;
        width: 80%;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(255,178,0,0.03) 0%, rgba(0,0,0,0) 90%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

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

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Typewriter console */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    height: 280px;
    border: var(--border-width-thick) solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 8px 8px 0px var(--card-shadow);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.dot-red { background-color: var(--primary-red); }
.dot-yellow { background-color: var(--primary-yellow); }
.dot-green { background-color: var(--primary-green); }

.hero-text-animation {
    flex-grow: 1;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
}

.typewriter-line::after {
    content: '|';
    animation: blink 0.75s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        order: -1;
    }
}

/* ==========================================================================
   O MNIE SECTION
   ========================================================================== */

.o-mnie-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.o-mnie-image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.o-mnie-img {
    width: 100%;
    display: block;
    border: var(--border-width-thick) solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
    z-index: 2;
    background-color: var(--primary-yellow);
}

.image-offset-bg {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-red);
    border: var(--border-width-thick) solid var(--border-color);
    border-radius: var(--border-radius);
    z-index: 1;
}

.o-mnie-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.o-mnie-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.skill-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: var(--border-width) solid var(--border-color);
    border-radius: 5px;
    background-color: var(--white);
    box-shadow: 2px 2px 0px var(--card-shadow);
}

@media (max-width: 768px) {
    .o-mnie-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   DLACZEGO WARTO (BENEFITS)
   ========================================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.benefit-card {
    border: var(--border-width-thick) solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--card-shadow);
    transition: transform 0.2s cubic-bezier(0, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0, 0, 0.2, 1);
    background-color: var(--white);
}

.benefit-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-offset-hover) var(--shadow-offset-hover) 0px var(--card-shadow);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.benefit-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.benefit-card p {
    color: #444;
    margin-bottom: 0;
}

/* Benefit card hover backgrounds */
.benefit-card.yellow { border-color: var(--border-color); }
.benefit-card.yellow:hover { background-color: #fffef2; }
.benefit-card.red { border-color: var(--border-color); }
.benefit-card.red:hover { background-color: #fff5f5; }
.benefit-card.blue { border-color: var(--border-color); }
.benefit-card.blue:hover { background-color: #f5faff; }
.benefit-card.green { border-color: var(--border-color); }
.benefit-card.green:hover { background-color: #f7fff5; }

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 30px;
    }
}

/* ==========================================================================
   BLOG SECTION & CARDS
   ========================================================================== */

/* Filters */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border: var(--border-width) solid var(--border-color);
    border-radius: 50px;
    background-color: var(--white);
    cursor: var(--custom-pointer);
    transition: all 0.15s ease;
}

.filter-btn:hover {
    background-color: var(--border-color);
    color: var(--white);
}

.filter-btn.active {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.blog-card {
    border: var(--border-width-thick) solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-offset-hover) var(--shadow-offset-hover) 0px var(--card-shadow);
}

.blog-card-image {
    position: relative;
    border-bottom: var(--border-width) solid var(--border-color);
    height: 220px;
    overflow: hidden;
    background-color: #eee;
}

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

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

/* Badges */
.blog-card-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    z-index: 2;
}

.blog-card-tag.red { background-color: var(--primary-red); color: var(--white); }
.blog-card-tag.yellow { background-color: var(--primary-yellow); }
.blog-card-tag.blue { background-color: var(--primary-blue); color: var(--white); }

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

.blog-card-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.blog-card-title a:hover {
    color: var(--primary-red);
}

.blog-card-excerpt {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-color);
}

.read-more-link:hover {
    color: var(--primary-red);
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   KONTAKT SECTION & FORM
   ========================================================================== */

.kontakt-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.kontakt-info h2 {
    font-size: 2.75rem;
    margin-bottom: 24px;
}

.kontakt-info p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 24px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 4px 4px 0px var(--card-shadow);
}

.method-icon {
    font-size: 2rem;
}

.contact-method-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-method-card p a {
    font-weight: 700;
}

.contact-method-card p a:hover {
    color: var(--primary-red);
}

/* Brutalist Form */
.kontakt-form-wrapper {
    background-color: var(--white);
    border: var(--border-width-thick) solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--card-shadow);
}

.brutalist-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border: var(--border-width) solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    transition: outline 0.1s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-yellow);
    background-color: var(--white);
}

/* Checkbox group */
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: var(--custom-pointer);
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: var(--custom-pointer);
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 24px;
    width: 24px;
    background-color: var(--bg-color);
    border: var(--border-width) solid var(--border-color);
    border-radius: 4px;
    margin-right: 12px;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #fff9ed;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-yellow);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--text-color);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Bubble feedback */
.consent-bubble {
    position: absolute;
    left: 200px;
    background-color: var(--primary-green);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 900;
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.85rem;
    box-shadow: 2px 2px 0px var(--card-shadow);
    transform: scale(0) rotate(-5deg);
    transform-origin: left bottom;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 3;
}

.consent-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--border-color);
}

.consent-bubble.show {
    transform: scale(1) rotate(-5deg);
}

/* Submit btn */
.btn-submit {
    width: 100%;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 16px;
}

.btn-submit:hover {
    background-color: #e60e00;
}

.form-status-msg {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-status-msg.success {
    display: block;
    background-color: var(--primary-green);
    border: var(--border-width) solid var(--border-color);
    box-shadow: 3px 3px 0px var(--card-shadow);
}

.form-status-msg.error {
    display: block;
    background-color: var(--primary-red);
    color: var(--white);
    border: var(--border-width) solid var(--border-color);
    box-shadow: 3px 3px 0px var(--card-shadow);
}

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

@media (max-width: 768px) {
    .kontakt-form-wrapper {
        padding: 24px;
    }
    
    .consent-bubble {
        left: auto;
        right: 0;
        top: -35px;
    }
}

/* ==========================================================================
   SINGLE BLOG POST VIEW DETAILS
   ========================================================================== */

.post-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-header-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: var(--border-width-thick) solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 6px 6px 0px var(--card-shadow);
    margin-bottom: 30px;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

.post-full-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.post-body-text {
    font-size: 1.1rem;
    color: #222;
}

.post-body-text p {
    margin-bottom: 24px;
}

.post-body-text blockquote {
    border: var(--border-width) solid var(--border-color);
    border-left: 10px solid var(--primary-yellow);
    background-color: #fffdec;
    padding: 24px;
    margin: 36px 0;
    font-style: italic;
    font-weight: 500;
    box-shadow: 4px 4px 0px var(--card-shadow);
    border-radius: var(--border-radius);
}

.post-navigation-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: var(--border-width) solid var(--border-color);
    padding-top: 30px;
    margin-top: 50px;
}

/* ==========================================================================
   FLOATING CONTACT WIDGET & SCROLL TO TOP
   ========================================================================== */

.floating-contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

/* Floating contact card */
.contact-widget-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    box-shadow: 5px 5px 0px var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    transform: translateY(180px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    max-width: 290px;
}

.contact-widget-card.show {
    transform: translateY(0);
    opacity: 1;
}

.widget-title-bar {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary-red);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 4px;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
}

.widget-item svg {
    width: 16px;
    height: 16px;
    fill: var(--text-color);
}

.widget-item a {
    color: var(--text-color);
}

.widget-item a:hover {
    color: var(--primary-red);
}

/* Scroll top - BEHAVES LIKE SIGNET (ROTATES & TILTS) */
.widget-scroll-top {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--border-color);
    background-color: var(--primary-yellow);
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 900;
    cursor: var(--custom-pointer);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 3px 3px 0px var(--card-shadow);
    opacity: 0;
    transform: scale(0) rotate(6deg); /* Initial tilt */
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, box-shadow 0.2s ease;
}

.widget-scroll-top.show {
    opacity: 1;
    transform: scale(1) rotate(6deg);
}

.widget-scroll-top:hover {
    transform: scale(1.05) translate(-2px, -2px) rotate(-6deg); /* Rotates back on hover */
    box-shadow: 5px 5px 0px var(--card-shadow);
    background-color: var(--primary-red);
    color: var(--white);
}

@media (max-width: 768px) {
    .floating-contact-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .contact-widget-card {
        padding: 12px 16px;
        max-width: 250px;
    }
    
    .widget-item {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 70px 0 60px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 48px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.footer-brand h3 .dot {
    color: var(--primary-red);
}

.footer-brand p {
    color: #aaa;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul a {
    color: #aaa;
}

.footer-links ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    color: #888;
    font-size: 0.9rem;
}

.footer-credits p {
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-credits {
        align-items: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   INTERACTIVE AVATAR WIDGET & LAZY LOADING
   ========================================================================== */

/* Lazy Loading Hidden Posts */
.hidden-post {
    display: none !important;
}

.blog-card.fade-in-down {
    animation: fadeInUpStagger 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

/* Avatar Widget styling */
.avatar-widget {
    position: fixed !important;
    bottom: -260px !important; /* Hidden below screen */
    left: 40px !important;
    width: 140px !important;
    height: 200px !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.avatar-widget.show {
    bottom: -25px !important;
    pointer-events: auto !important;
}

.avatar-img-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: var(--custom-pointer);
}

.avatar-widget img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: bottom center;
    filter: drop-shadow(4px 4px 0px var(--border-color));
}

/* Speech Bubble */
.avatar-speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: scale(0);
    background-color: var(--primary-yellow);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: normal;
    width: max-content;
    max-width: 260px;
    box-shadow: 3px 3px 0px var(--border-color);
    transform-origin: left bottom;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 10px;
    z-index: 10000;
}

.avatar-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 35px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--border-color);
}

.avatar-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 36px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--primary-yellow);
    z-index: 1;
}

.avatar-speech-bubble.show {
    transform: scale(1);
}

/* Animation Classes */

/* 1. Tilt (slow sway) */
.avatar-anim-tilt img {
    animation: avatarTilt 4s ease-in-out infinite;
}

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

/* 2. Jitter/Shake (impatient) */
.avatar-anim-shake img {
    animation: avatarShake 0.5s ease-in-out infinite;
}

@keyframes avatarShake {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    20% { transform: translate(-2px, 0) rotate(-1deg); }
    40% { transform: translate(2px, 0) rotate(1deg); }
    60% { transform: translate(-1px, 0) rotate(-0.5deg); }
    80% { transform: translate(1px, 0) rotate(0.5deg); }
}

/* 3. Bounce (excited / idle) */
.avatar-anim-bounce img {
    animation: avatarBounce 1.5s ease-in-out infinite;
}

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

/* 4. Applause (very high energy bounce + scale) */
.avatar-anim-applause img {
    animation: avatarApplause 0.4s ease-in-out infinite;
}

@keyframes avatarApplause {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.15) translateY(-25px) rotate(3deg); }
}

@media (max-width: 768px) {
    .avatar-widget {
        width: 100px;
        height: 150px;
        left: 20px;
        bottom: -200px !important;
    }
    .avatar-widget.show {
        bottom: -20px !important;
    }
}
