body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background:  #fafafa;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Canvas z siatką w tle */
#network-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* =========================
   HERO SECTION
   ========================= */

.hero {
    position: relative;
    height: 50vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tło zdjęcia szkoły */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.27;
    filter: brightness(0.55) blur(2px);
    transform: scale(1.1);
    animation: bgflow 20s ease-in-out infinite alternate;
}

/* Delikatne „rozpływanie” tła w dół */
@keyframes bgflow {
    0% { transform: scale(1.1) translateY(0px); }
    100% { transform: scale(1.15) translateY(35px); }
}

/* Treść w środku hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeDown 1.8s ease forwards;
    opacity: 0;
}

/* Powolne pojawianie się tytułu od góry z rozmyciem */
@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-25px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Logo szkoły */
.school-logo {
    width: 160px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: 0.3s ease;
}

.school-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Futurystyczny tytuł */
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #22aaff;
    text-shadow: 0 0 12px rgba(0,150,255,0.8);
    margin: 10px 0;
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    opacity: 0.85;
    color: #bdeaff;
    margin-top: 5px;
}

/* =========================
   GALERIA
   ========================= */

   .gallery-title {
    text-align: center;
    margin-top: 80px;
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    color: #22aaff;
    text-shadow:
        0 0 10px rgba(0,170,255,0.8),
        0 0 30px rgba(0,200,255,0.6);
}

.gallery-subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 19px;
    color: #bdeaff;
}

.gallery {
    max-width: 1350px;
    margin: 70px auto 90px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 40px;
    padding: 0 30px;
}

/* Kafelek zdjęcia */
.photo {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    border: 1px solid rgba(0,180,255,0.22);
    background: #0c0f16;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

/* Neonowy efekt na hover */
.photo:hover {
    box-shadow: 0 0 26px rgba(0,190,255,0.55);
    border-color: rgba(0,220,255,0.7);
}

.photo:hover img {
    transform: scale(1.18);
}

/* Opis zdjęcia na hover */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 18px;
    transition: opacity 0.4s;
}

.photo:hover .overlay {
    opacity: 1;
}

.overlay span {
    font-size: 20px;
    font-weight: 600;
    color: #18c5ff;
}

/* =========================
   MODAL
   ========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(0,0,0,0.92);

    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img {
    max-width: 90vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 85vh;
}

.modal-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #22aaff;
    text-shadow:
        0 0 8px rgba(0, 170, 255, 0.8),
        0 0 18px rgba(0, 200, 255, 0.6),
        0 0 36px rgba(0, 220, 255, 0.4);
}

.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 42px;
    cursor: pointer;
    z-index: 20;
}

.close:hover {
    color: #7ebeff;
}

/* ===== MAŁA, SUBTELNA STOPKA ===== */

.site-footer {
    margin-top: 60px;
    padding: 12px 16px;
    background: transparent;
}

.footer-content {
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-size: 12px;
    color: #7fbfe6;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.footer-watermark img {
    height: 40px;
    opacity: 0.22;
    filter: grayscale(100%) drop-shadow(0 0 4px rgba(0,170,255,0.4));
}

@media (max-width: 600px) {
    .footer-content {
        justify-content: center;
        gap: 12px;
    }
}