/**
 * CSS dla Nowa Percepcja - WERSJA 2 (Ostrzejsza / Tech / Animowana)
 * Zmniejszone zaokrąglenia, ostrzejszy technologiczny styl.
 */

:root {
    --bg-base: #05060A;
    --bg-surface: #0E111A;
    --bg-surface-glass: rgba(14, 17, 26, 0.6);
    --bg-surface-glass-hover: rgba(14, 17, 26, 0.85);
    --bg-darker: #020305;

    --primary: #00FFCC;
    --primary-glow: rgba(0, 255, 204, 0.4);
    --secondary: #4A3BFF;
    --secondary-glow: rgba(74, 59, 255, 0.4);

    --text-primary: #f0f2f5;
    --text-secondary: #8B94A6;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: var(--primary);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    --transition: all 0.25s cubic-bezier(0.1, 0.7, 0.1, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.z-1 {
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-darker {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--bg-base);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1), inset 0 0 10px rgba(0, 255, 204, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 255, 204, 0.1);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4), inset 0 0 15px rgba(0, 255, 204, 0.3);
    border-color: #fff;
}

.btn-primary:hover::before {
    width: 100%;
    background: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 204, 0.05);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.glass-panel,
.box-glass {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.glass-panel:hover,
.box-glass:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-surface-glass-hover);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(5, 6, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-image.small {
    height: 32px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:not(.badge-link):hover::after,
.nav-link:not(.badge-link).active::after {
    width: 100%;
}

.badge-link {
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.badge-link:hover {
    border-color: var(--primary);
    box-shadow: inset 0 0 10px rgba(0, 255, 204, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary);
    left: 0;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 100%;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 100%;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--bg-base);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 1px solid var(--text-secondary);
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--primary);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollSharp 1.5s infinite;
}

@keyframes scrollSharp {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
        height: 6px;
    }

    50% {
        height: 12px;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
        height: 2px;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    color: var(--primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-list li:hover .feature-icon {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.feature-list h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

/* Animowana Kostka Danych (Data Cube) */
.cube-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: cubeFloat 6s ease-in-out infinite;
}

.cube {
    width: 140px;
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(0, 255, 204, 0.05);
    border: 2px solid rgba(0, 255, 204, 0.5);
    box-shadow: inset 0 0 30px rgba(0, 255, 204, 0.2), 0 0 10px rgba(0, 255, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dodajemy technologiczną siatkę na ściankach */
.cube-face::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 204, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.cube-face.front {
    transform: rotateY(0deg) translateZ(70px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(70px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(70px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(70px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(70px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(70px);
}

/* Jądro 3D w środku kostki */
.cube-core {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: pulseCubeCore 3s infinite alternate ease-in-out;
}

/* Sferyczne powłoki tworzące kulę */
.sphere-slice {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px var(--primary), inset 0 0 15px var(--primary);
    transition: all 0.5s ease;
}

.sphere-slice.s1 {
    transform: rotateY(0deg) rotateX(45deg);
}

.sphere-slice.s2 {
    transform: rotateY(30deg) rotateX(45deg);
}

.sphere-slice.s3 {
    transform: rotateY(60deg) rotateX(45deg);
}

.sphere-slice.s4 {
    transform: rotateY(90deg) rotateX(45deg);
}

.sphere-slice.s5 {
    transform: rotateY(120deg) rotateX(45deg);
}

.sphere-slice.s6 {
    transform: rotateY(150deg) rotateX(45deg);
}

/* Świetlna aura wokół jądra */
.cube-core::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateZ(0);
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowCubePulse 4s infinite alternate;
}

/* Efekty hover - sześcian rośnie i rozkłada się promieniście */
.cube-container:hover .cube-face {
    background: rgba(0, 255, 204, 0.1);
    border-color: rgba(0, 255, 204, 0.8);
    box-shadow: inset 0 0 40px rgba(0, 255, 204, 0.4), 0 0 20px rgba(0, 255, 204, 0.3);
}

.cube-container:hover .cube-face.front {
    transform: rotateY(0deg) translateZ(110px);
}

.cube-container:hover .cube-face.right {
    transform: rotateY(90deg) translateZ(110px);
}

.cube-container:hover .cube-face.back {
    transform: rotateY(180deg) translateZ(110px);
}

.cube-container:hover .cube-face.left {
    transform: rotateY(-90deg) translateZ(110px);
}

.cube-container:hover .cube-face.top {
    transform: rotateX(90deg) translateZ(110px);
}

.cube-container:hover .cube-face.bottom {
    transform: rotateX(-90deg) translateZ(110px);
}

.cube-container:hover .cube-core {
    transform: scale(1.3);
}

.cube-container:hover .sphere-slice {
    background: rgba(0, 255, 204, 0.3);
    border-color: #fff;
    box-shadow: 0 0 20px var(--primary), inset 0 0 20px #fff;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(0deg);
    }
}

@keyframes cubeFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulseCubeCore {
    0% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes glowCubePulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-surface-glass-hover);
}

.service-card:hover::after {
    width: 100%;
}

.card-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Sekcja Produkty */
.products {
    background: var(--bg-base);
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.product-item {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3rem;
    transition: var(--transition);
}

.product-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-surface-glass-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.product-item.reverse {
    flex-direction: column-reverse;
    /* For mobile keep stack order right */
}

@media (min-width: 900px) {
    .product-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 4rem;
    }

    .product-item.reverse {
        flex-direction: row-reverse;
    }

    .product-visual,
    .product-info {
        flex: 1;
    }
}

.product-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.product-info {
    width: 100%;
}

.product-title {
    font-size: 2.2rem;
    margin: 1rem 0;
    font-weight: 700;
}

.product-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.product-features li svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Obrazy Produktów */
.product-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* .product-item:hover .product-image {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 255, 204, 0.15);
    border-color: rgba(0, 255, 204, 0.3);
}

.product-item.reverse:hover .product-image {
    box-shadow: 0 20px 45px rgba(74, 59, 255, 0.15);
    border-color: rgba(74, 59, 255, 0.3);
} */

.product-item.reverse .product-features li svg {
    color: var(--secondary);
}

/* Projekty */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(0, 255, 204, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.1, 0.7, 0.1, 1);
    filter: grayscale(40%) contrast(1.1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 17, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 2rem;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.tech-marquee {
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.05);
}

.tech-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.tech-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    cursor: default;
    transition: var(--transition);
}

.tech-item:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.method-label {
    color: var(--text-secondary);
}

.method-value {
    color: var(--primary);
    font-weight: 500;
}

.contact-form {
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group,
.cf-field {
    margin-bottom: 1.5rem;
}

.form-group label,
.cf-field label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cf-field span {
    text-transform: none;
}


input,
textarea,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 1px var(--border-focus);
    background: rgba(0, 0, 0, 0.6);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B94A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Niestandardowy Checkbox */
.checkbox-group,
.cf-field {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.cf-check-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    user-select: none;
}

input[type="checkbox"].styled-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    margin-right: 12px;
    margin-top: 2px;
    padding: 0;
    transition: var(--transition);
    flex-shrink: 0;
}

input[type="checkbox"].styled-checkbox:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

input[type="checkbox"].styled-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

.cf-check-label a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}

.cf-check-label a:hover {
    text-decoration-color: var(--primary);
}

.cf-check-label span.cf-req {
    color: var(--primary);
    margin-left: 2px;
}


.page-header {
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    padding: 160px 0 80px;
}

.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

.breadcrumbs .current {
    color: var(--primary);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(40%) contrast(1.1);
}

.image-overlay-tech {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 255, 204, 0.1), transparent);
    mix-blend-mode: overlay;
}

.main-column h2 {
    margin-top: 2rem;
}

.main-column h3 {
    margin-top: 2.5rem;
}

.tech-steps {
    margin: 2rem 0;
    display: grid;
    gap: 1.5rem;
}

.tech-step {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: relative;
}

.step-num {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--bg-base);
    color: var(--primary);
    padding: 0 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.tech-step h4 {
    margin-bottom: 0.5rem;
}

.tech-step p {
    margin: 0;
    font-size: 0.95rem;
}

blockquote {
    border-left: 2px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 3rem 0;
    background: var(--bg-surface);
    font-style: italic;
    color: var(--text-primary);
    position: relative;
}

.sidebar-widget {
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 0.5rem;
}

.widget-list a {
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-list a::after {
    content: '→';
    opacity: 0;
    transition: var(--transition);
}

.widget-list a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.widget-list a:hover::after {
    opacity: 1;
}

.promo-widget {
    background: rgba(0, 255, 204, 0.05);
    border-color: rgba(0, 255, 204, 0.2);
}

.footer {
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards cubic-bezier(0.1, 0.7, 0.1, 1);
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2rem));
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.reveal.right {
    transform: translateX(30px);
}

.reveal.left {
    transform: translateX(-30px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0);
}

@media (max-width: 992px) {

    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding-bottom: 60px;
        /* Zabezpieczenie przed zachodzeniem scroll-indicatora na przyciski przy małym ekranie */
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* LIGHT MODE VARIABLES & THEME TOGGLE */
:root[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.7);
    --bg-surface-glass-hover: rgba(255, 255, 255, 0.9);
    --bg-darker: #f1f5f9;

    --primary: #00876B;
    /* Ciemniejszy cyjan do białego tła */
    --primary-glow: rgba(0, 135, 107, 0.2);
    --secondary: #2B1ACC;
    --secondary-glow: rgba(43, 26, 204, 0.2);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: rgba(15, 23, 42, 0.1);
    --border-focus: var(--primary);
}

/* Theme Toggle Button Styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 135, 107, 0.05);
    color: var(--primary);
}

.theme-toggle-btn svg {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.4s ease;
}

.theme-toggle-btn .sun-icon {
    opacity: 0;
    transform: translateY(20px);
}

.theme-toggle-btn .moon-icon {
    opacity: 1;
    transform: translateY(0);
}

:root[data-theme="light"] .theme-toggle-btn .sun-icon {
    opacity: 1;
    transform: translateY(0);
}

:root[data-theme="light"] .theme-toggle-btn .moon-icon {
    opacity: 0;
    transform: translateY(-20px);
}

/* Specjalne fixy dla jasnego powleczenia */
:root[data-theme="light"] .hero-canvas {
    opacity: 1;
    /* Bardziej wyrazisty canvas na jasnym */
}

:root[data-theme="light"] .grid-overlay {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

:root[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .badge {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 135, 107, 0.3);
}

/* Specjalne fixy dla jasnego powleczenia Kostki */
:root[data-theme="light"] .cube-face {
    border-color: rgba(0, 135, 107, 0.5);
    background: rgba(0, 135, 107, 0.05);
    box-shadow: inset 0 0 30px rgba(0, 135, 107, 0.1), 0 0 10px rgba(0, 135, 107, 0.1);
}

:root[data-theme="light"] .cube-face::before {
    background-image:
        linear-gradient(rgba(0, 135, 107, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 135, 107, 0.2) 1px, transparent 1px);
}

:root[data-theme="light"] .cube-core::after {
    background: radial-gradient(circle, rgba(0, 135, 107, 0.4) 0%, transparent 70%);
}

/* Fix dla sfery i plasterków w wersji jasnej */
:root[data-theme="light"] .sphere-slice {
    background: rgba(0, 135, 107, 0.1);
    border-color: rgba(0, 135, 107, 0.8);
    box-shadow: 0 0 15px rgba(0, 135, 107, 0.4), inset 0 0 10px rgba(0, 135, 107, 0.3);
}

:root[data-theme="light"] .cube-container:hover .cube-face {
    background: rgba(0, 135, 107, 0.15);
    border-color: rgba(0, 135, 107, 0.8);
    box-shadow: inset 0 0 40px rgba(0, 135, 107, 0.3), 0 0 20px rgba(0, 135, 107, 0.2);
}

:root[data-theme="light"] .cube-container:hover .sphere-slice {
    background: rgba(0, 135, 107, 0.3);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 135, 107, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Fix dla Produktów w Light Mode */
:root[data-theme="light"] .product-item {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .product-item:hover {
    border-color: rgba(0, 135, 107, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .product-image {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .product-item:hover .product-image {
    box-shadow: 0 20px 45px rgba(0, 135, 107, 0.15);
}

:root[data-theme="light"] .product-item.reverse:hover .product-image {
    box-shadow: 0 20px 45px rgba(43, 26, 204, 0.15);
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select {
    background: rgba(255, 255, 255, 0.8);
}

/* Light Mode Checkbox Overrides */
:root[data-theme="light"] input[type="checkbox"].styled-checkbox {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] input[type="checkbox"].styled-checkbox:hover {
    border-color: var(--primary);
}

:root[data-theme="light"] input[type="checkbox"].styled-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.g-recaptcha div:first-child{
    margin: auto;
}