:root {
    /* Color Palette (Light Mode) */
    --bg-color: #f8fafc;
    --text-color: #334155;
    --heading-color: #0f172a;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(226, 232, 240, 0.8);

    /* Layout */
    --max-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--heading-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--spacing-xl);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 14px rgba(88, 166, 255, 0.3);
}

.btn-primary:hover {
    background: #2563eb;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--heading-color);
    border-color: var(--text-color);
}

/* Background Shapes Setup */
.store-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(88, 166, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeUp 0.8s ease forwards;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: -10%;
    right: -5%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    animation-delay: -5s;
}

/* General Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
    color: #8b949e;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
}

/* Cards List - Horizontal Layout */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 0;
}

.card-image-box {
    flex: 0 0 450px;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: stretch;
    padding: 2rem;
    overflow: hidden;
}

.card-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s ease;
}

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

.card-content-box {
    flex: 1;
    min-width: 250px;
    padding: 2.5rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.card-content-box p {
    color: var(--text-color);
}

.card-anim-box {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(37, 99, 235, 0.03);
    border-left: 1px solid var(--glass-border);
    min-height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.card:hover {
    transform: translateX(5px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.anim-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. Printer Animation */
.anim-printer {
    position: relative;
    width: 60px;
    height: 50px;
}

.printer-top {
    position: absolute;
    bottom: 20px;
    left: 10px;
    width: 40px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 5px 5px 0 0;
    z-index: 2;
}

.printer-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 20px;
    background-color: #3b82f6;
    border-radius: 8px;
    z-index: 3;
}

.printer-paper-in {
    position: absolute;
    bottom: 30px;
    left: 15px;
    width: 30px;
    height: 20px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    z-index: 1;
}

.printer-paper-out {
    position: absolute;
    bottom: -15px;
    left: 15px;
    width: 30px;
    height: 0;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: none;
    z-index: 2;
    overflow: hidden;
    animation: printOut 3s infinite ease-in-out;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.paper-line {
    height: 2px;
    background-color: #94a3b8;
    margin: 4px;
    border-radius: 1px;
}

.paper-line.short {
    width: 60%;
}

@keyframes printOut {
    0% {
        height: 0;
        bottom: 0;
    }

    50% {
        height: 25px;
        bottom: -25px;
    }

    80% {
        height: 25px;
        bottom: -25px;
        opacity: 1;
    }

    90% {
        height: 25px;
        bottom: -40px;
        opacity: 0;
    }

    100% {
        height: 0;
        bottom: 0;
        opacity: 0;
    }
}

/* 2. 3D Printer Animation */
.anim-3d-printer {
    position: relative;
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-top: 10px;
}

.printer-3d-base {
    position: absolute;
    bottom: -6px;
    left: -10px;
    width: 74px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 4px;
}

.printer-3d-gantry {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #60a5fa;
    animation: moveGantry 4s infinite linear;
}

.printer-3d-head {
    position: absolute;
    bottom: 4px;
    left: 10px;
    width: 12px;
    height: 12px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    animation: moveHead 2s infinite ease-in-out alternate, moveHeadZ 4s infinite linear;
}

.printer-3d-model {
    position: absolute;
    bottom: 2px;
    left: 20px;
    width: 20px;
    height: 0;
    background: linear-gradient(to top, #8b5cf6, #c4b5fd);
    animation: print3DModel 4s infinite linear;
    border-radius: 2px 2px 0 0;
}

@keyframes moveGantry {
    0% {
        bottom: 2px;
        opacity: 1;
    }

    80% {
        bottom: 37px;
        opacity: 1;
    }

    90% {
        bottom: 37px;
        opacity: 0;
    }

    100% {
        bottom: 2px;
        opacity: 0;
    }
}

@keyframes moveHead {
    0% {
        left: 5px;
    }

    100% {
        left: 35px;
    }
}

@keyframes moveHeadZ {
    0% {
        bottom: 4px;
        opacity: 1;
    }

    80% {
        bottom: 39px;
        opacity: 1;
    }

    90% {
        bottom: 39px;
        opacity: 0;
    }

    100% {
        bottom: 4px;
        opacity: 0;
    }
}

@keyframes print3DModel {
    0% {
        height: 0;
        opacity: 1;
    }

    80% {
        height: 35px;
        opacity: 1;
    }

    90% {
        height: 35px;
        opacity: 0;
    }

    100% {
        height: 0;
        opacity: 0;
    }
}

/* 3. Office Supplies Animation */
.anim-office-supplies {
    position: relative;
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.supply {
    position: absolute;
    top: -30px;
    animation: fallSupply 4s infinite linear;
}

/* Clip */
.supply-clip {
    width: 6px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    border-bottom: none;
    left: 10px;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.supply-clip::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 14px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.supply-clip2 {
    width: 6px;
    height: 20px;
    border: 2px solid #60a5fa;
    border-radius: 10px;
    border-bottom: none;
    left: 45px;
    animation-delay: 2.1s;
    transform: rotate(-30deg);
}

.supply-clip2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 14px;
    border: 2px solid #60a5fa;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* Envelope */
.supply-envelope {
    width: 20px;
    height: 14px;
    background-color: #e2e8f0;
    border: 1px solid #94a3b8;
    border-radius: 2px;
    left: 25px;
    animation-delay: 0.8s;
    transform: rotate(-10deg);
}

.supply-envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 9px 0 9px;
    border-color: #94a3b8 transparent transparent transparent;
}

/* Binder */
.supply-binder {
    width: 14px;
    height: 20px;
    background-color: #3b82f6;
    border-radius: 2px 0 0 2px;
    left: 5px;
    animation-delay: 1.6s;
    transform: rotate(25deg);
    border-left: 3px solid #1e3a8a;
}

.supply-binder::after {
    content: '';
    position: absolute;
    top: 4px;
    left: -2px;
    width: 2px;
    height: 12px;
    background-color: #cbd5e1;
    border-radius: 1px;
}

/* Stapler */
.supply-stapler {
    width: 18px;
    height: 8px;
    background-color: #475569;
    border-radius: 2px 4px 0 2px;
    left: 35px;
    animation-delay: 2.8s;
    transform: rotate(-15deg);
}

.supply-stapler::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18px;
    height: 3px;
    background-color: #1e293b;
    border-radius: 2px;
}

.supply-stapler::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 2px;
    width: 10px;
    height: 4px;
    background-color: #94a3b8;
    border-radius: 2px 4px 0 0;
    transform: rotate(-10deg);
    transform-origin: left bottom;
}

@keyframes fallSupply {
    0% {
        top: -30px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        top: 70px;
        opacity: 1;
    }

    100% {
        top: 80px;
        opacity: 0;
    }
}

/* usunięto starą galerię photo-grid dla uporządkowania CSS */

/* Contact */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--glass-border);
    margin-top: var(--spacing-lg);
}

.footer-content {
    text-align: center;
    color: #8b949e;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 1rem 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.5rem var(--spacing-md);
    }

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

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

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

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

    .hero-actions {
        flex-direction: column;
    }

    /* Karty asortymentu – widok mobilny */
    .card-horizontal {
        flex-direction: column;
    }

    .card-image-box {
        flex: none;
        width: 100%;
        min-height: 260px;
        height: 260px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
    }

    .card-content-box {
        width: 100%;
        padding: 1.5rem;
    }

    .card-anim-box {
        flex: none;
        width: 100%;
        min-height: 140px;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        justify-content: center;
        align-items: center;
        background: rgba(37, 99, 235, 0.04);
    }

    .anim-container {
        justify-content: center;
        align-items: center;
    }
}