/* =========================================
   RJ3INFO - Główny Arkusz Stylów
   ========================================= */

/* --- Zmienne CSS --- */
:root {
    --bg-color: #12161a; /* Głęboki grafit */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #D96B25; /* Pomarańczowy akcent */
    --card-bg: rgba(25, 30, 36, 0.7); 
    --card-border: rgba(217, 107, 37, 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(18, 22, 26, 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;
    transition: color 0.3s ease, text-shadow 0.3s ease; 
}

.logo span {
    color: var(--accent-color);
    transition: color 0.3s ease, text-shadow 0.3s ease; 
}

.logo:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(217, 107, 37, 0.8);
}

.logo:hover span {
    color: var(--accent-color); 
    text-shadow: 0 0 12px rgba(217, 107, 37, 0.8);
}

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(217, 107, 37, 0.6);
}

/* --- Układ sekcji --- */
main {
    position: relative; /* Niezbędne do absolutnego pozycjonowania IP na stronie Pomoc */
    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);
}

/* --- Split Hero (Strona Główna z Grafiką) --- */
.split-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    max-width: 1000px !important;
    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%;
}

.hero-text {
    flex: 1.2;
}

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

.hero-text p {
    font-size: 18px;
    margin-bottom: 40px;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic .logo-video {
    width: 100%;
    max-width: 450px; /* Zwiększyłem nieco limit, by logo 3D było wyraźne */
    height: auto;
    border-radius: 10px; /* Delikatne zaokrąglenie krawędzi wideo */
    /* Usuwamy drop-shadow jeśli wideo ma już własne cieniowanie w renderze */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

/* --- 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;
}

/* --- Typografia (Justowanie i Kolory Tekstu) --- */
.policy-card p, .offer-card p, .hero-text p {
    text-align: justify;
    color: var(--text-muted);
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- Elementy Akcji (Przyciski i Linki) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #12161a; 
    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(217, 107, 37, 0.4), inset 0 0 10px rgba(217, 107, 37, 0.1);
    border-color: var(--accent-color);
}

.action-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
}

.action-link:hover {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(217, 107, 37, 0.8);
}

/* --- Ikony Material Symbols --- */
.material-symbols-outlined {
    color: var(--accent-color);
    line-height: 1; 
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.icon-large {
    font-size: 48px !important;
    margin-bottom: 15px;
    display: block;
}

.icon-list {
    font-size: 26px !important;
    flex-shrink: 0;
    margin-top: 2px; 
}

.icon-contact {
    font-size: 28px !important;
    flex-shrink: 0;
}

/* --- 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);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(217, 107, 37, 0.2), 
                inset 0 0 15px rgba(217, 107, 37, 0.05);
    border-color: rgba(217, 107, 37, 0.8);
}

/* --- Efekty i układ dla listy w zakładce Oferta --- */
.content-card ul {
    list-style: none;
    padding-left: 0;
}

.content-card ul li {
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    margin-left: -15px; 
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-muted);
}

.content-card ul li:hover {
    background: rgba(217, 107, 37, 0.05); 
    transform: translateX(10px); 
    box-shadow: -3px 0 0 var(--accent-color);
}

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

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 30px;
}

.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(217, 107, 37, 0.8);
}

/* --- Adres IP na stronie Pomoc --- */
.ip-display {
    position: absolute;
    bottom: 25px; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #8F969F;
    letter-spacing: 0.5px;
    animation: fadeIn 1s ease-in-out forwards;
}

.ip-display span {
    font-weight: 600;
    color: #8F969F;
}

/* --- Stopka --- */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(18, 22, 26, 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(217, 107, 37, 0.8);
}

/* --- Animacje --- */
@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); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.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) {
    header { 
        padding: 15px; 
        flex-direction: column; 
        gap: 10px; 
    }
    
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; 
    }
    
    nav a { 
        margin: 0; 
        font-size: 15px;
    }

    main { 
        padding-top: 140px; 
        padding-bottom: 40px;
    }

    .split-hero { 
        flex-direction: column; 
        text-align: center; 
        gap: 20px;
        padding: 30px 20px;
    }
    
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 32px; }
    .hero-graphic svg { max-width: 250px; margin-top: 20px; }

    .section-title { font-size: 28px; margin-bottom: 35px; }
    .contact-info p { font-size: 16px; }

    .content-card { padding: 30px 20px; }
    .service-card { padding: 30px 20px; }
    
    /* Wyłączenie justowania na telefonach */
    .policy-card p, .offer-card p, .hero-text p {
        text-align: left; 
    }
}

@media (max-width: 480px) {
    .hero-text 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; 
        gap: 5px; 
        margin-bottom: 25px;
        text-align: center;
    }
}