@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;800&display=swap');

:root {
    --bg-base: #020202;
    --text-main: #ffffff;
    --text-muted: #8a8a93;
    --accent: #7c3aed; 
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Animacje Tła */
.ambient-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.ambient-orb {
    position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.6;
    animation: drift 20s infinite ease-in-out alternate;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -10%; left: -10%; animation-duration: 25s; }
.orb-2 { width: 500px; height: 500px; background: #1e1b4b; bottom: -20%; right: -10%; animation-delay: -5s; animation-duration: 30s; }
.orb-3 { width: 400px; height: 400px; background: #be185d; top: 40%; left: 40%; filter: blur(160px); opacity: 0.3; animation-delay: -10s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, 15vh) scale(1.2); }
    66% { transform: translate(-5vw, 20vh) scale(0.9); }
    100% { transform: translate(15vw, -10vh) scale(1.3); }
}

/* Szkło */
.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 32px rgba(0,0,0,0.4);
    border-radius: 24px; transition: transform 0.4s ease, border-color 0.4s ease;
}

/* Nawigacja */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(2, 2, 2, 0.4); backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border); z-index: 100; transition: all 0.3s ease;
}
.mobile-nav-controls { display: none; align-items: center; gap: 15px; z-index: 101; }
.hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; cursor: pointer; }
.hamburger span { display: block; width: 100%; height: 2px; background-color: var(--text-main); border-radius: 2px; transition: all 0.3s ease; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-light); }

@media (max-width: 992px) {
    .mobile-nav-controls { display: flex; }
    .mobile-cta { padding: 10px 20px; font-size: 0.75rem; }
    .desktop-cta { display: none; }
    .nav-links {
        position: fixed; top: 0; left: 100%; width: 100vw; height: 100vh;
        background: rgba(2, 2, 2, 0.95); backdrop-filter: blur(24px);
        flex-direction: column; justify-content: center; align-items: center; gap: 40px;
        transition: left 0.5s ease; z-index: 100;
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* Animacje Reveal */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* Przycisk Premium */
.btn-premium {
    position: relative; display: inline-flex; justify-content: center; align-items: center;
    padding: 18px 45px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 50px; color: var(--text-main); text-decoration: none; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem; overflow: hidden;
    transition: all 0.4s ease; z-index: 1; cursor: pointer;
}
.btn-premium::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: -1;
}
.btn-premium:hover::before { left: 0; }
.btn-premium:hover { box-shadow: 0 10px 40px var(--accent-glow); transform: translateY(-3px); border-color: transparent; }

/* Skalowanie Typografii (Ostre dla Mobile) */
.heading-huge { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -1.5px; }
.heading-large { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.5px; }

/* Formularze */
.form-input {
    width: 100%; padding: 18px 24px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 12px; color: #fff; font-family: 'Poppins', sans-serif; font-size: 1rem; outline: none; transition: all 0.3s ease;
}
.form-input:focus { border-color: var(--accent-light); background: rgba(255,255,255,0.06); }

/* --- BEZAWARYJNE ZGODY RODO W FORMULARZACH (Czysty HTML/CSS) --- */
.checkbox-group { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 15px; }
.custom-checkbox { margin-top: 4px; width: 22px; height: 22px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.checkbox-label { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; user-select: none; flex-grow: 1; }
.checkbox-label a { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; transition: color 0.3s; }
.checkbox-label a:hover { color: var(--accent-light); }

/* Tag <details> ukrywający długie teksty prawne */
.legal-details { margin-top: 8px; }
.legal-details summary { 
    display: inline-block; color: var(--accent-light); font-size: 0.75rem; text-transform: uppercase; 
    letter-spacing: 1px; cursor: pointer; font-weight: 600; transition: color 0.3s; 
    list-style: none; outline: none; user-select: none;
}
.legal-details summary::-webkit-details-marker { display: none; }
.legal-details summary:hover { color: #fff; }
.legal-details[open] summary { margin-bottom: 12px; }

.legal-hidden-text {
    padding: 15px; background: rgba(0, 0, 0, 0.4); border-left: 2px solid var(--accent);
    border-radius: 0 8px 8px 0; font-size: 0.8rem; color: #94a3b8; line-height: 1.6;
    animation: fadeInDrop 0.3s ease forwards;
}

@keyframes fadeInDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Siatka Funkcji */
.feature-card { transition: all 0.4s ease; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.feature-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.neon-icon { width: 50px; height: 50px; background: rgba(124, 58, 237, 0.05); border-radius: 12px; margin-bottom: 25px; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(124, 58, 237, 0.2); transition: all 0.4s ease;}
.neon-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--text-muted); stroke-width: 2; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.feature-card:hover .neon-icon { background: rgba(124, 58, 237, 0.15); border-color: var(--accent); }
.feature-card:hover .neon-icon svg { stroke: #ffffff; filter: drop-shadow(0 0 8px var(--accent-light)) drop-shadow(0 0 15px var(--accent)); transform: scale(1.1); }

/* MarTech Stack Logos (Zewnętrzne SVG/IMG) */
.tech-stack-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; margin-top: 50px; }
.tech-logo {
    display: flex; justify-content: center; align-items: center; width: 120px; height: 60px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 12px; transition: all 0.3s ease; cursor: default;
}
.tech-logo img, .tech-logo svg { max-width: 70%; max-height: 50%; transition: all 0.4s ease; filter: grayscale(100%) opacity(0.5); }
.tech-logo:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); transform: translateY(-5px); }
.tech-logo:hover img, .tech-logo:hover svg { filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px var(--accent-light)) drop-shadow(0 0 20px var(--accent)); }

/* Animacja Spawania */
.weld-text { display: inline-block; }
.weld-letter { display: inline-block; opacity: 0; color: transparent; -webkit-text-stroke: 0px transparent; white-space: pre; }
.reveal.active .weld-letter { animation: weldSpark 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

@keyframes weldSpark {
    0% { opacity: 0; color: transparent; -webkit-text-stroke: 0px transparent; text-shadow: none; }
    15% { opacity: 1; color: #ffffff; -webkit-text-stroke: 2px #ffffff; text-shadow: 0 0 20px #ffffff, 0 0 40px var(--accent-light), 0 0 80px var(--accent); transform: scale(1.05); }
    40% { color: transparent; -webkit-text-stroke: 1px var(--accent-light); text-shadow: 0 0 15px var(--accent-light); transform: scale(1); }
    100% { opacity: 1; color: transparent; -webkit-text-stroke: 1px var(--text-main); text-shadow: none; }
}

/* --- STYLIZACJA DROPDOWNÓW (SELECT/OPTION) --- */
select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237c3aed'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 50px;
}

/* To naprawia białe tło w Chrome/Edge/Safari */
select.form-input option {
    background-color: #0a0a0c; /* Głęboka czerń panelu */
    color: #fff;
    padding: 15px;
    border: none;
}

/* Usuwamy systemowy zarys w Firefoxie */
select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #fff;
}


/* Kontener zdjęcia na liście i we wpisie */
.img-glass-container {
    position: relative;
    width: 100%;
    height: 220px; /* Wysokość na liście */
    overflow: hidden;
    background: #0f172a;
}

/* Obrazek - automatyczne skalowanie i wypełnienie */
.img-glass-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Sztosowe dopasowanie: skaluje i tnie do wymiaru */
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Efekt szkła (Warstwa przesłaniająca) */
.img-glass-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px); /* Tu regulujesz moc zamglenia */
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
}

/* Efekt po najechaniu - szkło się odsuwa, obrazek lekko rośnie */
.glass-panel:hover .img-glass-container::after {
    transform: translateX(101%); /* Odsuwanie szkła w prawo */
}

.glass-panel:hover .img-glass-container img {
    transform: scale(1.05); /* Delikatny zoom zdjęcia */
}

/* Wersja dla pojedynczego wpisu (większa grafika) */
.post-hero-img {
    height: 450px !important;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

/* --- ELEVATOR NAVIGATION --- */
.elevator-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.nav-dot:hover {
    background: var(--accent-light);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow), 0 0 5px #fff;
    transform: scale(1.4);
}

/* Tooltip dla kropek */
.nav-dot::after {
    content: attr(title);
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #000;
    color: var(--accent-light);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.nav-dot:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- AKORDEON USŁUG (DETAILS) --- */
.service-accordion {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-accordion:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1); }

.service-summary {
    padding: 25px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.service-summary::-webkit-details-marker { display: none; }

.service-summary .icon {
    color: var(--accent-light);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.service-accordion[open] .service-summary .icon {
    transform: rotate(45deg);
}

.service-content {
    padding: 0 30px 30px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.service-content li { margin-bottom: 8px; }
.service-content li::marker { color: var(--accent); }

/* KONTENER AVATARA */
.avatar-video-container {
    position: relative;
    width: 120px; /* Zwiększyłem lekko, żeby video było wyraźne */
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* SZKLANE ZASŁONY (SHUTTERS) */
.shutter {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.shutter-top {
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0); /* Domyślnie zamknięte */
}

.shutter-bottom {
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0); /* Domyślnie zamknięte */
}

/* EFEKT ROZSUWANIA PO REVEALU */
.avatar-video-container.active .shutter-top {
    transform: translateY(-100%);
}

.avatar-video-container.active .shutter-bottom {
    transform: translateY(100%);
}

/* POŚWIATA DOOKOŁA */
.avatar-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.5);
    pointer-events: none;
    z-index: 3;
}