/* --- Zmienne CSS --- */
:root {
    --bg-color: #0b1325;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --card-bg: rgba(15, 23, 42, 0.7);
    --card-border: rgba(56, 189, 248, 0.2);
}

/* --- Reset i Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Globalne Klasy Użytkowe --- */
.accent {
    color: var(--accent-color) !important;
}

/* --- Animowane Tło (Canvas) --- */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* --- Nawigacja --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 19, 37, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6); /* Delikatne świecenie */
}

/* --- Układ sekcji --- */
main {
    flex: 1;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    animation: pageEnter 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: center;
}

.section-title span {
    color: var(--accent-color);
}

/* --- Karty i Treść --- */
.content-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 800px;
}

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

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #0b1325;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.1);
    border-color: var(--accent-color);
}

/* --- Siatka (Strefa Pomocy) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    /* Zewnętrzna i wewnętrzna poświata */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(56, 189, 248, 0.2), 
                inset 0 0 15px rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.8);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* --- Efekty dla listy w zakładce Oferta --- */
.content-card ul li {
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    margin-left: -15px; /* Kompensacja wewnętrznego marginesu */
}

.content-card ul li:hover {
    background: rgba(56, 189, 248, 0.05); /* Delikatne niebieskie tło */
    transform: translateX(10px); /* Przesunięcie w prawo */
    box-shadow: -3px 0 0 var(--accent-color); /* Niebieski pasek z lewej strony */
}

/* --- Kontakt --- */
.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 30px;
    /* Usunięto tu przypisany kolor, by odziedziczył podstawowy biały/szary 
       Dzięki temu dodany span .accent pokoloruje tylko "INFO" */
}

.contact-info p {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-info a {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-info a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

/* --- Stopka --- */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(11, 19, 37, 0.95);
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

/* --- Animacje Przejść Między Stronami --- */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.page-exit {
    animation: pageExit 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* --- RWD (Responsywność) --- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Kompaktowy nagłówek z zawijaniem menu */
    header { 
        padding: 15px; 
        flex-direction: column; 
        gap: 10px; 
    }
    
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; /* Równy odstęp zamiast samych lewych marginesów */
    }
    
    nav a { 
        margin: 0; 
        font-size: 15px;
    }

    /* Zwiększony padding, aby treść nie chowała się pod wyższym nagłówkiem */
    main { 
        padding-top: 140px; 
        padding-bottom: 40px;
    }

    /* Dopasowanie rozmiaru czcionek */
    .hero-content h1 { font-size: 32px; }
    .section-title { font-size: 28px; margin-bottom: 35px; }
    .hero-content p, .contact-info p, .content-card p { font-size: 16px; }

    /* Redukcja marginesów wewnętrznych na kartach, by odzyskać przestrzeń na tekst */
    .content-card { 
        padding: 30px 20px; 
    }
    
    .service-card { 
        padding: 30px 20px; 
    }
}

@media (max-width: 480px) {
    /* Poprawki dla bardzo wąskich ekranów (starsze smartfony, iPhone SE) */
    .hero-content h1 { font-size: 28px; }
    header .logo { font-size: 22px; }
    nav a { font-size: 14px; }
    
    .contact-info h3 { font-size: 22px; }
    .contact-info p { 
        flex-direction: column; /* Ikonka i tekst jedno pod drugim dla wygody klikania */
        gap: 5px; 
        margin-bottom: 25px;
        text-align: center;
    }
}