/* ==========================================================================
   NORTHSTAR MOBILITY - GLOBAL STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f1115;
    color: #e2e8f0;
}

.accent-color {
    color: #94a3b8;
}

.video-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45; /* PODNIESIONA WIDOCZNOŚĆ (Było 0.25) */
    filter: grayscale(70%) contrast(1.1); /* Lżejszy filtr */
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0f1115 0%, rgba(15, 17, 21, 0.4) 50%, #0f1115 100%); /* Jaśniejszy środek */
    z-index: 1;
}

/* === WIDEO W TLE GŁÓWNYM (HERO) === */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    filter: grayscale(100%);
}
/* === KOREKTA LOGO NORTHSTAR (CYFROWY KAMUFLAŻ TŁA) === */
nav .flex-shrink-0 {
    display: flex;
    align-items: center;
    height: 100%;
}

nav .flex-shrink-0 img {
    height: 55px !important; /* Optymalna, bezpieczna wielkość dla telefonów */
    width: auto !important;
    mix-blend-mode: screen; /* MAGIA: Wycina ciemne tło z pliku JPG, zostawia tylko jasne logo i tekst! */
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important; /* Cofamy poprzednie, psujące skalowanie */
}

/* Powiększenie dla ekranów komputerów (Desktop) */
@media (min-width: 768px) {
    nav .flex-shrink-0 img {
        height: 80px !important; /* Duże, czytelne logo z nazwą na komputerze */
    }
}
/* === SEKCJA GLOBALNA: MAPA TAKTYCZNA I OPINIE === */
.pulse-beacon {
    animation: beacon-pulse 2s infinite;
}
@keyframes beacon-pulse {
    0% { r: 6px; opacity: 1; }
    50% { r: 18px; opacity: 0.3; }
    100% { r: 6px; opacity: 1; }
}

.map-line {
    stroke: #e63946;
    stroke-width: 1.5;
    stroke-dasharray: 4;
    animation: dash-flow 25s linear infinite;
}
@keyframes dash-flow {
    to { stroke-dashoffset: -200; }
}

/* Płynny przewijak opinii (Marquee) */
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-container {
    display: flex;
    width: max-content;
    animation: scroll-marquee 35s linear infinite;
}
.marquee-container:hover {
    animation-play-state: paused;
}

/* === DODATKOWE ANIMACJE RADARU TAKTYCZNEGO === */
@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-scanner {
    transform-origin: 430px 160px; /* Obrót dokładnie wokół punktu Szczecin HQ */
    animation: radar-sweep 8s linear infinite;
}

@keyframes data-pulse {
    0% { offset-distance: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

.data-packet {
    fill: #fff;
    filter: drop-shadow(0 0 6px #e63946);
}
/* === PŁYNNY PASEK OPINII (MARQUEE) I EFEKT LEWITACJI === */
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container {
    display: flex;
    width: max-content;
    animation: scroll-marquee 40s linear infinite; /* Wolny, elegancki ruch */
}

/* Zatrzymuje animację TYLKO na urządzeniach z myszką (komputery) */
@media (hover: hover) {
    .marquee-container:hover {
        animation-play-state: paused; 
    }
}

/* Wygaszanie krawędzi po lewej i prawej stronie */
.mask-edges {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Luksusowy efekt unoszenia grafitowej karty */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-12px); /* Karta unosi się do góry */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15); /* Ciemny cień + delikatna złota poświata */
    border-color: #4b5563; /* Rozjaśnienie ramki */
    z-index: 10;
}

/* === ZEGARY OPERACYJNE (ANALOGOWE) === */
.clock-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.clock {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #14171c;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.clock.gold-theme {
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.clock.standard-theme {
    border: 1px solid #374151;
}

.clock::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    border-radius: 4px;
    z-index: 10;
}

.hour { width: 3px; height: 25px; background: #94a3b8; transform: translateX(-50%); }
.minute { width: 2px; height: 35px; background: #e2e8f0; transform: translateX(-50%); }
.second { width: 1px; height: 42px; background: #e63946; transform: translateX(-50%); }

.center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    z-index: 15;
}

.center-dot.gold { background: #d4af37; }

/* Subtelne złote linie akcentowe */
.gold-accent-border {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
/* === POPRAWKI ZEGARÓW DLA EKRANÓW TELEFONÓW === */
@media (max-width: 640px) {
    .clock-container {
        gap: 1.2rem; /* Zmniejszamy odstępy między zegarami na telefonie */
    }
    
    .clock {
        width: 70px; /* Nieco mniejsze tarcze */
        height: 70px;
    }

    /* Dopasowanie długości wskazówek do mniejszych tarcz */
    .hour { height: 18px; }
    .minute { height: 26px; }
    .second { height: 32px; }
    
    /* Zmniejszenie podpisów pod zegarami */
    .clock-container span {
        font-size: 9px;
        margin-top: 10px;
    }
}

/* === MROCZNY FILTR TAKTYCZNY DLA DARMOWEJ MAPY OSM === */
#c4isr-map .leaflet-layer {
    /* Odwraca kolory, zachowuje odcienie niebieskiego/zielonego i ściemnia całość */
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%) grayscale(80%);
}
/* === PŁYNNE PRZEJŚCIA DASHBOARDU === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}