/* Плавний перехід по якорях */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* ФОНОВІ КУЛЬКИ */
.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.ball {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: move 25s infinite alternate linear;
}

.ball:nth-child(1) { background: #ff00ff; left: 5%; top: 10%; }
.ball:nth-child(2) { background: #00f2ff; right: 5%; top: 40%; }
.ball:nth-child(3) { background: #ff00ff; left: 40%; bottom: 10%; }

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(200px, 300px); }
}

/* МЕНЮ */
nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    border-bottom: 2px solid #333;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.neon-button {
    text-decoration: none;
    color: #00f2ff;
    padding: 10px 20px;
    border: 2px solid #00f2ff;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.4s;
    box-shadow: 0 0 5px #00f2ff;
}

.neon-button:hover {
    background: #00f2ff;
    color: #000;
    box-shadow: 0 0 20px #00f2ff;
    transform: translateY(-3px);
}

/* ЗАГОЛОВКИ ТА ПРАВКИ ВЧИТЕЛЬКИ */
.main-header {
    text-align: center;
    padding: 180px 20px 80px;
}

.neon-title {
    font-size: clamp(3.5rem, 12vw, 6rem); /* Трохи збільшено */
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    margin: 0;
    text-transform: uppercase;
}

/* Новий стиль підзаголовка (порада вчительки) */
.main-subtitle {
    font-size: 1.5rem; /* Збільшений шрифт */
    color: #ffffff;    /* Світлий колір, щоб не губився */
    max-width: 850px;
    margin: 25px auto 10px;
    font-weight: 300;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Неонова смужка "Графіті" (порада вчительки) */
.graffiti-line {
    width: 250px;
    height: 8px;
    background: #00f2ff;
    margin: 20px auto;
    border-radius: 40% 60% 40% 60%; /* Трохи нерівна форма */
    filter: blur(3px); /* Розмиття */
    box-shadow: 
        0 0 15px #00f2ff,
        0 0 35px #00f2ff,
        0 0 60px rgba(0, 242, 255, 0.6);
    opacity: 0.8;
}

section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(15, 15, 15, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.neon-text {
    color: #00f2ff;
    text-shadow: 0 0 10px #00f2ff;
    border-left: 5px solid #ff00ff;
    padding-left: 20px;
    margin-bottom: 25px;
}

.neon-text-alt {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    border-right: 5px solid #00f2ff;
    padding-right: 20px;
    text-align: right;
    margin-bottom: 25px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.fact-item {
    background: #111;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #222;
}

.fact-item h3 { color: #ff00ff; margin-top: 0; }

/* ГАЛЕРЕЯ ТА МОДАЛКА */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.photo-item {
    height: 180px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #333;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.photo-item:hover {
    border-color: #00f2ff;
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.4);
    transform: translateY(-15px) scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    border: 2px solid #00f2ff;
    box-shadow: 0 0 30px #00f2ff;
    animation: zoomIn 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 30px; right: 40px;
    color: #00f2ff;
    font-size: 60px;
    cursor: pointer;
    text-shadow: 0 0 10px #00f2ff;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

footer {
    text-align: center;
    padding: 50px;
    color: #444;
}