/**
 * Common CSS for Service Industry Templates
 * Wspólne style CSS dla szablonów branż usługowych
 * Modernizacja zgodnie z UX 2025/2026
 */

/* ============================================
   DESIGN TOKENS - System Designu
   ============================================ */

:root {
    /* === Transitions & Animations === */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition: var(--transition-base);
    
    /* === Spacing System (4px base) === */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* Legacy support */
    --spacing-sm: var(--space-4);
    --spacing-md: var(--space-8);
    --spacing-lg: var(--space-12);
    
    /* === Border Radius System === */
    --radius-xs: 0.25rem;   /* 4px */
    --radius-sm: 0.5rem;    /* 8px */
    --radius-md: 0.75rem;   /* 12px */
    --radius-lg: 1rem;      /* 16px */
    --radius-xl: 1.5rem;    /* 24px */
    --radius-2xl: 2rem;     /* 32px */
    --radius-full: 9999px;
    
    /* Legacy support */
    --border-radius: var(--radius-lg);
    
    /* === Shadow System (Elevation Levels) === */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --shadow-colored: 0 10px 30px rgba(var(--primary-color-rgb, 255, 0, 110), 0.3);
    
    /* === Typography System === */
    /* Fluid typography using clamp() */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);      /* 12-14px */
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);        /* 14-16px */
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);      /* 16-18px */
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);       /* 18-20px */
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);        /* 20-24px */
    --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);         /* 24-30px */
    --font-size-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);    /* 30-36px */
    --font-size-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3rem);         /* 36-48px */
    --font-size-5xl: clamp(3rem, 2.4rem + 3vw, 4rem);                /* 48-64px */
    
    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Letter spacing */
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;
    
    /* Font weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Text rendering */
    --text-rendering: optimizeLegibility;
    
    /* === Advanced Typography Variables === */
    --font-display: swap;
    --font-optical-sizing: auto;
    --heading-font-family: var(--font-family-display, 'Poppins', system-ui, sans-serif);
    --body-font-family: var(--font-family-base, 'Inter', system-ui, sans-serif);
    
    /* === Color System (Base) === */
    /* Primary colors will be overridden in each template */
    --primary-color: #ff006e;
    --primary-color-rgb: 255, 0, 110;
    --primary-color-dark: #cc0058;
    --primary-color-light: #ff3399;
    
    /* Neutral colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* === Breakpoints === */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1440px;
    
    /* === Container Max Widths === */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;
    
    /* === Z-Index Scale === */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-skip-link: 10000;
    
    /* === Aspect Ratios === */
    --aspect-square: 1 / 1;
    --aspect-video: 16 / 9;
    --aspect-photo: 4 / 3;
    --aspect-portrait: 3 / 4;
    --aspect-ultrawide: 21 / 9;
}

/* ============================================
   BASE TYPOGRAPHY & TEXT RENDERING
   ============================================ */

html {
    text-rendering: var(--text-rendering);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global scale reduction to 90% - applied to body */
body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--color-gray-900);
    transform: scale(0.9);
    transform-origin: top center;
    width: 111.11%; /* Compensate for scale to maintain full width */
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

/* Typography scale */
h1, .h1 {
    font-size: var(--font-size-5xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-black);
    letter-spacing: var(--letter-spacing-tight);
}

h2, .h2 {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
}

h3, .h3 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-snug);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-normal);
}

h4, .h4 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-snug);
    font-weight: var(--font-weight-semibold);
}

h5, .h5 {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-semibold);
}

h6, .h6 {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-medium);
}

p, .text-base {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.text-sm {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
}

/* ============================================
   ACCESSIBILITY - Skip Links & Focus States
   ============================================ */

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    background: var(--primary-color, #ff006e);
    color: var(--color-white);
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    z-index: var(--z-skip-link);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    transition: top var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.skip-link:focus {
    top: var(--space-4);
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color, #ff006e);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-color, #ff006e);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 255, 0, 110), 0.2);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color, #ff006e);
    outline-offset: 2px;
    border-color: var(--primary-color, #ff006e);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 255, 0, 110), 0.1);
}

/* Remove default focus for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Field Error Messages */
.field-error {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ============================================
   CONTAINER QUERIES SUPPORT
   ============================================ */

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-lg);
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: var(--container-2xl);
    }
}

/* Container queries for components */
@container (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   SMOOTH TRANSITIONS & PERFORMANCE
   ============================================ */

/* Optimized transitions - only for transform and opacity */
* {
    transition-property: transform, opacity, box-shadow, border-color, background-color, color;
    transition-duration: var(--transition-base);
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance optimization - use will-change sparingly */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.will-change-scroll {
    will-change: scroll-position;
}

/* Print Styles */
@media print {
    nav,
    .hamburger,
    footer,
    .cta-button,
    form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ============================================
   REDUCED MOTION & ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Keep essential transitions for usability */
    button:focus-visible,
    a:focus-visible,
    input:focus-visible {
        transition-duration: 150ms !important;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    .fade-in {
        animation: fadeIn 0.6s ease-out;
    }
    
    .slide-up {
        animation: slideUp 0.6s ease-out;
    }
    
    .scale-in {
        animation: scaleIn 0.4s ease-out;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Newsletter Section */
#newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#newsletter input[type="email"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.25);
}

/* Honeypot field (anti-spam) */
input[aria-hidden="true"] {
    display: none !important;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.dark-mode-toggle:hover,
.dark-mode-toggle:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    outline: 2px solid white;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        bottom: 4rem;
        right: 1rem;
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        font-size: 1.5rem;
    }
}

/* Dark Mode Styles */
html[data-theme="dark"],
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

html[data-theme="dark"] .card,
body.dark-mode .card {
    background: #2a2a2a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .form-group select,
body.dark-mode .form-group label,
body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] nav,
body.dark-mode nav {
    background: rgba(0, 0, 0, 0.95);
}

html[data-theme="dark"] .section-light,
body.dark-mode .section-light {
    background: #2a2a2a;
    color: #e0e0e0;
}

html[data-theme="dark"] .section-title,
body.dark-mode .section-title {
    color: var(--primary-color, #ff006e);
}

html[data-theme="dark"] .blog-card,
body.dark-mode .blog-card {
    background: #2a2a2a;
    color: #e0e0e0;
}

html[data-theme="dark"] .testimonial,
body.dark-mode .testimonial {
    background: #2a2a2a;
    color: #e0e0e0;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.1);
    color: currentColor;
}

.share-button:hover,
.share-button:focus {
    transform: scale(1.1);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.share-button[data-share="facebook"]:hover {
    background: #1877f2;
    color: white;
}

.share-button[data-share="twitter"]:hover {
    background: #1da1f2;
    color: white;
}

.share-button[data-share="linkedin"]:hover {
    background: #0077b5;
    color: white;
}

.share-button[data-share="whatsapp"]:hover {
    background: #25d366;
    color: white;
}

.share-button[data-share="email"]:hover {
    background: #666;
    color: white;
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    nav,
    .mobile-menu-button,
    .mobile-menu,
    .hamburger,
    .cta-button,
    .cta-secondary,
    .back-to-top,
    .live-chat-widget,
    .dark-mode-toggle,
    .share-buttons,
    footer,
    #offline-banner {
        display: none !important;
    }
    
    /* Cookie banner should be visible in print for legal reasons */
    #cookie-consent {
        display: block !important;
        position: static !important;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .scroll-progress,
    .breadcrumbs,
    .search-bar {
        display: none !important;
    }

    @page {
        margin: 2cm;
    }
}

/* Newsletter Responsive */
@media (max-width: 768px) {
    #newsletter form {
        flex-direction: column;
    }
    
    #newsletter input[type="email"] {
        width: 100%;
        min-width: 100% !important;
    }
    
    #newsletter button {
        width: 100%;
    }
    
    #newsletter h2 {
        font-size: 2rem !important;
    }
    
    #newsletter p {
        font-size: 1rem !important;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color, #ff006e);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    outline: 2px solid white;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.testimonial-nav-btn.active {
    background: currentColor;
    transform: scale(1.2);
}

.testimonial-nav-btn:hover,
.testimonial-nav-btn:focus {
    transform: scale(1.3);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.testimonial-prev,
.testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.testimonial-prev {
    left: 1rem;
}

.testimonial-next {
    right: 1rem;
}

.testimonial-prev:hover,
.testimonial-next:hover,
.testimonial-prev:focus,
.testimonial-next:focus {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    outline: 2px solid white;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .testimonial-prev {
        left: 0.5rem;
    }
    
    .testimonial-next {
        right: 0.5rem;
    }
}

/* Blog Preview */
.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark, #333);
}

.blog-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-link {
    color: var(--primary-color, #ff006e);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.blog-card-link:hover,
.blog-card-link:focus {
    gap: 1rem;
    outline: 2px solid var(--primary-color, #ff006e);
    outline-offset: 2px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

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

    .breadcrumbs {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .search-bar {
        max-width: 100%;
        margin: 0.5rem 0;
    }
}

/* Live Chat Widget Placeholder */
.live-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary-color, #ff006e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s;
    border: none;
}

.live-chat-widget:hover,
.live-chat-widget:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    outline: 2px solid white;
    outline-offset: 2px;
}

.live-chat-widget::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border: 2px solid white;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@media (max-width: 768px) {
    .live-chat-widget {
        bottom: 1rem;
        right: 1rem;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

/* ============================================
   ENHANCED HOVER EFFECTS & MICRO-INTERACTIONS
   ============================================ */

/* Card hover effects with performance optimization */
.class-card,
.service-card,
.menu-item,
.trainer-card,
.team-member,
.pricing-card,
.blog-card {
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                opacity var(--transition-base);
}

.class-card:hover,
.service-card:hover,
.menu-item:hover,
.trainer-card:hover,
.team-member:hover,
.pricing-card:hover,
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Button ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Press state for buttons */
button:active,
.cta-button:active,
.cta-secondary:active {
    transform: scale(0.98);
}

/* Image Optimization */
img {
    image-rendering: -webkit-optimize-contrast; /* Safari, Edge */
    image-rendering: crisp-edges; /* Standard */
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[loading="lazy"].loaded {
    background: none;
    animation: none;
}

/* Image error handling */
img[onerror] {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

img[onerror]::after {
    content: 'Obraz niedostępny';
    color: #999;
    font-size: 0.875rem;
}

/* ============================================
   GLASSMORPHISM & MODERN EFFECTS
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color, #ff006e), var(--primary-color-light, #ff3399));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CONTENT VISIBILITY FOR PERFORMANCE
   ============================================ */

.section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.section:not(.visible) {
    content-visibility: auto;
}

/* ============================================
   TOUCH TARGETS - Minimum 44x44px
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    button,
    .cta-button,
    .cta-secondary,
    a[role="button"],
    .nav-links a,
    .share-button,
    .testimonial-nav-btn {
        min-height: 44px;
        min-width: 44px;
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-button,
    .cta-secondary,
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ============================================
   ENHANCED WOW EFFECTS - 2025/2026 Trends
   ============================================ */

/* Parallax scrolling effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse glow effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--primary-color-rgb, 255, 0, 110), 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(var(--primary-color-rgb, 255, 0, 110), 0.8);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Gradient animation background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background: linear-gradient(-45deg, var(--primary-color), var(--primary-color-light), var(--primary-color-dark), var(--primary-color));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Shimmer effect for cards */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* 3D card tilt effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

/* Magnetic button effect */
.magnetic-button {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-button:hover {
    transform: scale(1.05);
}

/* Text reveal animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: textReveal 0.8s ease-out forwards;
}

/* Stagger animation for lists */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism enhanced */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Neumorphism effect */
.neumorphic {
    background: var(--light-bg, #f5f5f5);
    box-shadow: 
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
    border-radius: var(--radius-xl);
}

/* Hover lift effect with shadow */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glitch effect for special elements */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

.glitch-effect {
    animation: glitch 0.3s infinite;
}

/* Smooth scale on hover */
.scale-on-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Border gradient animation */
@keyframes borderRotate {
    0% {
        border-image-source: linear-gradient(0deg, var(--primary-color), var(--primary-color-light));
    }
    100% {
        border-image-source: linear-gradient(360deg, var(--primary-color), var(--primary-color-light));
    }
}

.border-gradient-animated {
    border: 3px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--primary-color-light)) 1;
    animation: borderRotate 3s linear infinite;
}

/* ============================================
   ADVANCED WOW EFFECTS - Premium 2025/2026
   ============================================ */

/* Particle background effect */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-50px) translateX(25px); }
    100% { transform: translateY(0) translateX(0); }
}

/* Aurora gradient background */
.aurora-bg {
    background: linear-gradient(
        45deg,
        rgba(var(--primary-color-rgb), 0.1),
        rgba(147, 51, 234, 0.1),
        rgba(59, 130, 246, 0.1),
        rgba(16, 185, 129, 0.1)
    );
    background-size: 400% 400%;
    animation: auroraShift 15s ease infinite;
}

@keyframes auroraShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* Typewriter effect */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--primary-color); }
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: 
        typewriter 3s steps(40, end) forwards,
        blink 0.75s step-end infinite;
}

/* Morphing blob shapes */
@keyframes morphBlob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 40% 60% 60% 40% / 40% 40% 60% 50%;
    }
    75% {
        border-radius: 60% 40% 30% 70% / 40% 60% 30% 60%;
    }
}

.blob-shape {
    animation: morphBlob 8s ease-in-out infinite;
}

/* Neon glow effect */
.neon-glow {
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color);
}

.neon-box {
    box-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        inset 0 0 10px rgba(var(--primary-color-rgb), 0.2);
}

/* Gradient border with animation */
.gradient-border {
    position: relative;
    background: var(--light-bg, #fff);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--primary-color-light), 
        #ec4899, 
        #3b82f6, 
        var(--primary-color));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 5s ease infinite;
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Zoom on scroll */
.zoom-on-scroll {
    transform: scale(0.9);
    transition: transform 0.6s ease;
}

.zoom-on-scroll.zoomed {
    transform: scale(1);
}

/* Slide in from sides */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Bounce entrance */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Flip card effect */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(200, 200, 200, 0.2) 25%,
        rgba(200, 200, 200, 0.4) 50%,
        rgba(200, 200, 200, 0.2) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Progress bar animation */
.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
    border-radius: var(--radius-full);
    transition: width 1s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

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

/* Circular progress */
.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
}

.circular-progress svg {
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.circular-progress .bg {
    stroke: rgba(0, 0, 0, 0.1);
}

.circular-progress .progress {
    stroke: var(--primary-color);
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease;
}

/* Counter animation */
.counter-value {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image reveal effect */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-reveal.revealed::after {
    transform: scaleX(0);
}

.image-reveal img {
    transform: scale(1.2);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1) 0.2s;
}

.image-reveal.revealed img {
    transform: scale(1);
}

/* Cursor follower (for JavaScript) */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
    z-index: 99999;
    mix-blend-mode: difference;
}

.cursor-follower.hover {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-color-rgb), 0.1);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

.scroll-indicator-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(6px); }
}

/* Keyboard Shortcuts Modal */
.keyboard-shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.shortcuts-modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .shortcuts-modal-content,
body.dark-mode .shortcuts-modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

.shortcuts-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

html[data-theme="dark"] .shortcuts-modal-header,
body.dark-mode .shortcuts-modal-header {
    border-bottom-color: #444;
}

.shortcuts-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.shortcuts-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.shortcuts-modal-close:hover,
.shortcuts-modal-close:focus {
    background: #f3f4f6;
    color: #1f2937;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

html[data-theme="dark"] .shortcuts-modal-close:hover,
body.dark-mode .shortcuts-modal-close:hover {
    background: #444;
    color: white;
}

.shortcuts-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.shortcut-item:hover {
    background: #f3f4f6;
}

html[data-theme="dark"] .shortcut-item:hover,
body.dark-mode .shortcut-item:hover {
    background: #444;
}

.shortcut-item kbd {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 2.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .shortcut-item kbd,
body.dark-mode .shortcut-item kbd {
    background: #444;
    border-color: #555;
    color: white;
}

.shortcut-item span {
    flex: 1;
}

/* Video Optimization */
video[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

video[data-src].loaded {
    opacity: 1;
}

iframe[loading="lazy"] {
    background: #f0f0f0;
}

/* ============================================
   ADVANCED MICRO-INTERACTIONS
   ============================================ */

/* Button press feedback */
.btn-feedback {
    position: relative;
    overflow: hidden;
}

.btn-feedback::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-feedback:active::before {
    width: 300px;
    height: 300px;
}

/* Link underline animation */
.link-animated {
    position: relative;
    text-decoration: none;
}

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

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

/* Card focus ring */
.card-focusable:focus-visible {
    outline: none;
    box-shadow: 
        0 0 0 3px var(--color-white, #fff),
        0 0 0 6px var(--primary-color);
}

/* Input focus effects */
.input-enhanced {
    position: relative;
}

.input-enhanced input:focus,
.input-enhanced textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

/* Checkbox custom style */
.checkbox-custom {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-custom:checked {
    background: var(--primary-color);
}

.checkbox-custom:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* Radio button custom style */
.radio-custom {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.radio-custom:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
    background: var(--primary-color);
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--color-gray-900, #1a1a1a);
    color: white;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-gray-900, #1a1a1a);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

.tooltip:hover::after {
    transform: translateX(-50%) translateY(-12px);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-secondary {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

/* Notification dot */
.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Avatar styles */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -12px;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* Divider with text */
.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-gray-500, #6b7280);
    font-size: var(--font-size-sm);
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-gray-200, #e5e7eb);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Frosted glass card */
.frosted-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Smooth shadow on scroll */
.shadow-on-scroll {
    transition: box-shadow 0.3s ease;
}

.shadow-on-scroll.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Section Navigation - Fixed dots navigation */
.section-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Allow clicks to pass through container */
}

.section-nav .section-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #ff006e);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    outline: none;
    pointer-events: auto; /* Enable clicks on dots */
}

.section-nav .section-dot:hover,
.section-nav .section-dot:focus {
    transform: scale(1.3);
    background: var(--primary-color, #ff006e);
    outline: 2px solid var(--primary-color, #ff006e);
    outline-offset: 2px;
}

.section-nav .section-dot[aria-label*="aktywna"],
.section-nav .section-dot.active {
    background: var(--primary-color, #ff006e);
}

/* Hide section nav on mobile and tablet */
@media (max-width: 1023px) {
    .section-nav {
        display: none !important;
    }
}

/* Show section nav only on large screens */
@media (min-width: 1024px) {
    .section-nav {
        display: flex;
    }
}

/* ============================================
   COOKIE CONSENT BANNER - RODO/GDPR Compliant
   ============================================ */

#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001; /* Higher than chatbot (1000) and floating button (998) */
    background: rgba(0, 0, 0, 0.98);
    color: white;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

#cookie-consent.cookie-banner-visible {
    transform: translateY(0);
    opacity: 1;
}

#cookie-consent.cookie-banner-hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

.cookie-banner-text strong {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

.cookie-banner-text a {
    color: inherit;
    text-decoration: underline;
    font-weight: var(--font-weight-semibold);
    transition: opacity var(--transition-fast);
}

.cookie-banner-text a:hover,
.cookie-banner-text a:focus {
    opacity: 0.8;
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

.cookie-banner-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    min-height: 44px; /* Accessibility: minimum touch target */
    min-width: 120px;
    white-space: nowrap;
    outline: none;
}

.cookie-btn:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

.cookie-btn-accept {
    background: #4caf50;
    color: white;
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

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

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-decline:hover,
.cookie-btn-decline:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

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

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings:hover,
.cookie-btn-settings:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
    }

    .cookie-banner-text {
        min-width: 100%;
        margin-bottom: var(--space-3);
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    #cookie-consent {
        max-height: 100vh;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #cookie-consent {
        background: #000;
        border-top: 3px solid white;
    }

    .cookie-btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #cookie-consent {
        transition: none;
    }

    .cookie-btn {
        transition: none;
    }

    .cookie-btn:hover,
    .cookie-btn:focus {
        transform: none;
    }
}

/* ============================================
   COOKIE SETTINGS PANEL
   ============================================ */

.cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002; /* Higher than cookie banner */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-settings-panel.cookie-settings-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-settings-content {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-settings-panel.cookie-settings-visible .cookie-settings-content {
    transform: translateY(0) scale(1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 10;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: white;
}

.cookie-settings-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    padding: 0;
}

.cookie-settings-close:hover,
.cookie-settings-close:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: 2px solid white;
    outline-offset: 2px;
}

.cookie-settings-body {
    padding: var(--space-6);
}

.cookie-settings-intro {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: white;
}

.cookie-category-description {
    margin: 0 0 var(--space-2) 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.cookie-category-count {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
    border-radius: 34px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-base);
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #4caf50;
}

.cookie-toggle input:focus + .cookie-toggle-slider {
    outline: 3px solid white;
    outline-offset: 2px;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(28px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-settings-footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: #1a1a1a;
}

.cookie-btn-primary {
    background: #4caf50;
    color: white;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
    background: #45a049;
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.cookie-btn-accept-all {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.cookie-btn-accept-all:hover,
.cookie-btn-accept-all:focus {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .cookie-settings-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .cookie-settings-header {
        padding: var(--space-4);
    }

    .cookie-settings-header h2 {
        font-size: var(--font-size-xl);
    }

    .cookie-settings-body {
        padding: var(--space-4);
    }

    .cookie-category-header {
        flex-direction: column;
        gap: var(--space-3);
    }

    .cookie-toggle {
        align-self: flex-start;
    }

    .cookie-settings-footer {
        flex-direction: column;
        padding: var(--space-4);
    }

    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cookie-settings-content {
        border: 2px solid white;
    }

    .cookie-category {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-settings-panel,
    .cookie-settings-content,
    .cookie-toggle-slider {
        transition: none;
    }
}

