/*
Theme Name: Wprowadź AI v11
Theme URI: https://wprowadzai.com
Author: Wprowadź AI Team
Author URI: https://wprowadzai.com
Description: Nowoczesny motyw WordPress dla firmy wdrażającej rozwiązania AI (Wersja v11).
Version: 1.0.1
Text Domain: wprowadzai
*/

:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --card-bg: #171717;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

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

body {
    background: radial-gradient(circle at top center, #111827, #000);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Header */
.site-header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Brand Animation */
.brand-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.brand-highlight {
    background: linear-gradient(90deg, #00F0FF, #BD00FF, #00F0FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    font-weight: 900;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.brand-text.large {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 2rem;
}

.hero-brand-anim {
    margin-bottom: 1.5rem;
}

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

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

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

/* Mobile Header Adjustments */
/* Menu Toggle Button (Default Hidden) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Active State (X shape) */
.menu-toggle.active .hamburger-inner {
    background-color: transparent !important;
}

.menu-toggle.active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Tablet & Mobile Styles */
@media (max-width: 992px) {

    /* Expanded to tablet range */
    .site-header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 0;
        /* Let flex/justify handle it */
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
    }

    .main-navigation {
        width: 100%;
        display: none;
        /* Hide menu by default */
        margin-top: 1rem;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
    }

    .main-navigation.toggled {
        display: block;
        /* Show when toggled */
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        width: 100%;
    }

    .main-navigation a {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
    }
}

/* Hero Section - Matching user snippet */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Updated delicate background pattern */
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, white, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 2.5rem;
}

/* Buttons */
.cta-button {
    background: var(--primary-color);
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sections Global */
section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

/* Services & Cards */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

.offer-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.offer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.offer-card p {
    color: #9ca3af;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background: transparent;
    /* Remove solid black to show global bg */
}

.contact-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

/* Mobile Contact Adjustments */
@media (max-width: 992px) {
    .contact-box {
        padding: 2.5rem;
        gap: 2.5rem;
        flex-direction: column;
        align-items: flex-start;
        /* Align everything to the left, not stretch/center */
        text-align: left;
    }

    .contact-text {
        min-width: 0;
        width: 100%;
    }

    .contact-info-list {
        padding: 0;
        margin: 2rem 0;
        width: 100%;
    }

    .contact-info-list li {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-bottom: 2rem;
        /* More space between items */
        width: 100%;
        text-align: left;
    }

    .contact-info-list strong {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 1.1rem;
        /* Slightly larger label */
    }

    .contact-link {
        font-size: 1.1rem;
        /* Larger text for readability */
        overflow-wrap: anywhere;
        word-break: break-word;
        display: block;
        width: 100%;
        line-height: 1.4;
        text-align: left;
    }

    .contact-cta {
        flex: 1;
        width: 100%;
        margin-top: 1rem;
    }
}

.contact-text {
    flex: 1;
    min-width: 300px;
}

.contact-info-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-info-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-list strong {
    color: var(--primary-color);
}

.contact-link {
    color: white;
    font-weight: 500;
}

.contact-cta {
    flex: 0 0 300px;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent */
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 0.9rem;
}

/* --- Animated Robot AI Chat Launcher --- */

#ai-robot-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #4a5568, #000);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow:
        0 0 15px var(--primary-color),
        0 0 30px rgba(59, 130, 246, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: robotFloat 3s ease-in-out infinite;
}

#ai-robot-launcher:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 25px var(--secondary-color),
        0 0 50px rgba(139, 92, 246, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Robot Face/Eyes */
.robot-face {
    position: relative;
    width: 40px;
    height: 25px;
    background: #000;
    border-radius: 6px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.robot-eye {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary-color);
    animation: robotBlink 4s infinite;
}

/* Robot Antenna */
.robot-antenna {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
}

.robot-antenna::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--secondary-color);
    animation: antennaPulse 2s infinite;
}


/* Animations */
@keyframes robotFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes robotBlink {

    0%,
    48%,
    52%,
    100% {
        height: 8px;
    }

    50% {
        height: 1px;
    }
}

@keyframes antennaPulse {
    0% {
        box-shadow: 0 0 5px var(--secondary-color);
    }

    50% {
        box-shadow: 0 0 15px var(--secondary-color), 0 0 25px var(--secondary-color);
    }

    100% {
        box-shadow: 0 0 5px var(--secondary-color);
    }
}

/* --- n8n Chat Theme Overrides (Neon Mode) --- */
:root {
    --chat--color-primary: #3b82f6 !important;
    /* Brand Blue */
    --chat--color-primary-shade-50: #2563eb !important;
    --chat--color-primary-shade-100: #1d4ed8 !important;
    --chat--color-secondary: #000000 !important;
    --chat--color-secondary-shade-50: #000000 !important;
    --chat--color-font: #ffffff !important;
    --chat--color-typing: #3b82f6 !important;
    --chat--header--background: #000000 !important;
    --chat--header--color: #3b82f6 !important;
    --chat--message--bot--background: #1a1f2e !important;
    --chat--message--bot--color: #ffffff !important;
    --chat--message--user--background: #3b82f6 !important;
    --chat--message--user--color: #ffffff !important;
    --chat--input--background: #000000 !important;
    --chat--input--color: #ffffff !important;
    --chat--input--border: 1px solid #3b82f6 !important;
}

/* --- n8n Chat Responsive Container --- */
#n8n-chat-container {
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: 80vh;
}

#n8n-chat-close {
    background: #000;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

#n8n-chat-close:hover {
    background: #3b82f6;
    color: #fff;
}

@media (max-width: 600px) {
    #n8n-chat-container {
        bottom: 100px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        height: 70vh;
    }

    /* Dopasowanie nagłówka na mobile */
    div[class*="n8n-chat-widget-header"] h2,
    header[class*="n8n-chat-widget-header"] h2 {
        font-size: 1.2rem !important;
    }
}

/* Zapobieganie nachodzeniu krzyżyka na tekst nagłówka */
div[class*="n8n-chat-widget-header"],
header[class*="n8n-chat-widget-header"] {
    padding-right: 50px !important;
}

#n8n-chat,
[class*="n8n-chat-widget"],
[class*="message-list"],
[class*="chat-window"] {
    background-color: #0B0F19 !important;
    background: #0B0F19 !important;
    color: #ffffff !important;
}

/* Fix for the white background in the message area */
[class*="message-list-container"] {
    background: #0B0F19 !important;
}

/* Precyzyjne poprawki dla n8n chat input */
.chat-footer,
.chat-input,
.chat-inputs {
    background-color: #000 !important;
}

.chat-inputs {
    display: flex !important;
    flex-direction: row !important;
    /* Wymuszenie układu poziomego */
    align-items: flex-end !important;
    gap: 8px !important;
    padding: 12px !important;
    width: 100% !important;
}

.chat-inputs textarea {
    flex: 1 !important;
    height: auto !important;
    /* Nadpisanie błędu height: 380px */
    min-height: 40px !important;
    max-height: 150px !important;
    background-color: #1a1f2e !important;
    color: #ffffff !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    resize: none !important;
}

.chat-inputs-controls {
    display: flex !important;
    align-items: flex-end !important;
    flex-shrink: 0 !important;
}

.chat-input-send-button {
    width: 40px !important;
    height: 40px !important;
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}

/* --- Modals & Glassmorphism --- */

.clickable-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.more-info {
    display: block;
    margin-top: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.clickable-card:hover .more-info {
    opacity: 1;
    transform: translateX(5px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-window {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--accent-color);
    color: white;
}

.modal-body {
    padding: 3rem;
}

.modal-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .modal-story {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-body {
        padding: 2rem;
    }
}

.modal-image-container img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-text h4 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.modal-text p {
    color: rgba(224, 230, 237, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.modal-effect {
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.modal-effect strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Professional Enhancements --- */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Glow Blob */
#hero-glow-blob {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -55%) scale(1.2);
        opacity: 1;
    }
}

/* Tech Stack */
.tech-stack-section {
    padding: 3rem 0;
    background: rgba(10, 15, 24, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.tech-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.6;
}

.tech-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.tech-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-color);
}

/* FAQ Accordion */
.faq-section {
    padding: 8rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    color: rgba(224, 230, 237, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Custom Cursor */
#custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

#cursor-glow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease-out;
}

@media (max-width: 768px) {

    #custom-cursor,
    #cursor-glow {
        display: none;
    }

    .tech-logos {
        gap: 1.5rem;
    }

    .tech-logo {
        font-size: 1rem;
    }
}

/* --- Version v10 Enhancements --- */
#n8n-chat-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: rgba(10, 15, 24, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000000;
    font-size: 20px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

#n8n-chat-close:hover {
    background: #3b82f6;
    color: white;
    transform: rotate(90deg);
}

.footer-divider {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}