/* style.css */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Animations - General */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 20s linear infinite;
}

.shadow-custom-cyan {
    box-shadow: 0 0 10px cyan;
}

/* --- SPLIT SCREEN MECHANICS --- */
.split-container {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    z-index: 50;
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.split {
    position: absolute;
    width: 50%; /* Domyślnie 50/50 - ZLICOWANE BEZ PRZERWY */
    height: 100%;
    overflow: hidden;
    transition: width 0.8s cubic-bezier(0.86, 0, 0.07, 1);
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

/* --- LEWA STRONA (DRONES) --- */
.split-left {
    left: 0;
    /* Zdjęcie: Osoba trzymająca drona (Mavic) - pasuje do "Instructor" */
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1508614589041-895b88991e3e?q=80&w=2000&auto=format&fit=crop'); 
    background-position: center;
}

/* --- PRAWA STRONA (NETWORK) --- */
.split-right {
    right: 0;
    /* Zdjęcie: Serwerownia / Matrix (Cybersecurity) - wyraźny niebieski akcent */
    background-image: linear-gradient(rgba(11, 17, 32, 0.7), rgba(11, 17, 32, 0.7)), url('https://images.unsplash.com/photo-1544197150-b99a580bbcbf?q=80&w=2000&auto=format&fit=crop');
    background-position: center;
}

/* Nakładka przyciemniająca na tekst (Overlay) */
.split-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* Lekkie przyciemnienie */
    transition: background 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- INTERAKCJA HOVER (Przesuwanie podziału) --- */

/* Gdy myszka wjedzie w kontener, OBIE strony zmniejszają się do 45%... */
.split-container:hover .split {
    width: 45%;
}

/* ...ale TA STRONA, na którą najeżdżasz, rozszerza się do 55% */
.split-container:hover .split:hover {
    width: 55%;
    z-index: 10;
}

/* Po najechaniu rozjaśniamy zdjęcie */
.split:hover .split-overlay {
    background: rgba(0,0,0,0.2);
}

/* --- CONTENT SECTIONS (Ukrywanie split screena po wejściu) --- */
body.mode-network .split-container,
body.mode-drone .split-container {
    transform: translateY(-100%);
}

.content-section {
    position: absolute;
    top: 100%;
    width: 100%;
    min-height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.content-section.active {
    display: block;
    opacity: 1;
    top: 0;
    position: relative;
}