/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* =========================
   ZMIENNE KOLORÓW
========================= */
:root {
    --bg: #f4f6f9;
    --text: #1e293b;
    --card: #ffffff;
    --accent: #1e3a8a;
}

body.dark {
    --bg: #0f172a;
    --text: #e5e7eb;
    --card: #1e293b;
    --accent: #60a5fa;
}

/* =========================
   BODY
========================= */
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 80vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 40px 20px;

    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;

    overflow: hidden;
}

/* wszystko nad tłem */
.hero > * {
    position: relative;
    z-index: 1;
}

/* =========================
   ANIMOWANE TŁO (FINAL)
========================= */
.network-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;

    z-index: 0;
    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,0.06) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255,255,255,0.06) 50%,
            rgba(255,255,255,0.06) 75%,
            transparent 75%,
            transparent
        );

    background-size: 120px 120px;
    animation: networkMove 20s linear infinite;
}

@keyframes networkMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(240px);
    }
}

/* DARK MODE – TŁO */
body.dark .network-bg {
    display: none;
}

/* =========================
   PRZYCISKI W HERO
========================= */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;

    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

.lang-switch {
    position: absolute;
    top: 20px;
    left: 20px;

    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
}

.lang-switch:hover {
    opacity: 1;
}

/* =========================
   LOGO
========================= */
.logo {
    max-width: 140px;
    margin-bottom: 10px;
}

/* =========================
   ANIMACJA SVG (NETWORK)
========================= */
.network-anim {
    margin: 20px 0 10px;
    width: 320px;
    max-width: 90%;
    display: block;
}

.network-anim circle {
    fill: rgba(255,255,255,0.85);
    animation: pulse 2s infinite ease-in-out;
}

.network-anim line {
    stroke: rgba(255,255,255,0.6);
    stroke-width: 2.5;
    stroke-dasharray: 5 8;
    animation: flow 2.5s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes flow {
    to { stroke-dashoffset: -20; }
}

/* DARK MODE – SVG */
body.dark .network-anim circle {
    fill: #93c5fd;
}

body.dark .network-anim line {
    stroke: #60a5fa;
}

/* =========================
   TEKST HERO
========================= */
.hero h1 {
    font-size: 2.6rem;
    margin-top: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* =========================
   SEKCJE
========================= */
section {
    max-width: 1000px;
    margin: 70px auto;
    padding: 0 20px;
}

h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* =========================
   SERVICES
========================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.service {
    background: var(--card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.service img {
    width: 48px;
    margin-bottom: 15px;
}

/* =========================
   TECHNOLOGIE
========================= */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-grid span {
    background: var(--card);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-grid span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* =========================
   CONTACT
========================= */
.contact {
    text-align: center;
}

.contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* =========================
   BUTTON
========================= */
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 36px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 25px;
    margin-top: 80px;
}

/* =========================
   RESPONSYWNOŚĆ
========================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1.05rem;
    }
}

.privacy {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.privacy h1 {
    margin-bottom: 30px;
}

.privacy p {
    margin-bottom: 15px;
}

