:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #a8eb12; 
    --gradient: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    --nav-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    --bg-color: #080a08;
    --text-color: #f0f5f0;
    --nav-bg: rgba(8, 10, 8, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* === ФОН (ЧІТКИЙ ТА СТАТИЧНИЙ) === */
#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Розмиття прибрано, масштаб повернуто до норми */
    filter: none;
    transform: none;
    transition: background-image 1.2s ease-in-out;
}

.bg-special::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    opacity: 0.5; /* Затемнення/освітлення для читабельності тексту */
    transition: background 0.4s ease;
}

/* === НАВІГАЦІЯ === */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 8%; height: 80px; position: fixed; top: 0; left: 0; width: 100%;
    background: var(--nav-bg); backdrop-filter: blur(15px);
    z-index: 1000; border-bottom: 1px solid rgba(128,128,128,0.1);
}

.logo { font-weight: 800; font-size: 1.6rem; text-decoration: none; color: var(--text-color); transition: 0.3s; }
.logo:hover { transform: scale(1.05); }
.logo span { color: var(--accent-color); display: inline-block; animation: pulse 2s infinite; }

.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; opacity: 0.7; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--accent-color); }

.nav-controls { display: flex; align-items: center; gap: 15px; }
.nav-controls button {
    background: rgba(128, 128, 128, 0.1); border: none; padding: 8px 15px;
    border-radius: 12px; color: var(--text-color); font-weight: 700; cursor: pointer; transition: 0.3s;
}
.nav-controls button:hover { transform: scale(1.1); background: var(--accent-color); color: #000; }

/* === HEADER === */
header {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 8% 60px;
    position: relative; z-index: 10;
}
.header-content { text-align: center; max-width: 800px; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); margin-bottom: 1rem; font-weight: 800; line-height: 1.1; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.socials { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2rem; }
.social-link {
    width: 50px; height: 50px; border-radius: 15px; background: rgba(128,128,128,0.1);
    color: var(--text-color); display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: 0.4s;
}
.social-link:hover { transform: translateY(-5px); background: var(--accent-color); color: #000; }

/* === ГАЛЕРЕЯ === */
.gallery-section { padding: 5rem 8%; position: relative; z-index: 5; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.item { border-radius: 25px; overflow: hidden; aspect-ratio: 1/1; background: rgba(128,128,128,0.05); }
.item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; cursor: pointer; }
.item:hover img { transform: scale(1.1); }

/* МОБІЛЬНЕ МЕНЮ */
@media (max-width: 768px) {
    .menu-toggle { display: block; font-size: 1.5rem; cursor: pointer; color: var(--text-color); }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 80px; left: 0; width: 100%; background: var(--nav-bg);
        padding: 2rem 0; text-align: center;
    }
    .nav-links.active { display: flex; }
    header { padding-top: 140px; }
}

#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000; display: none;
    align-items: center; justify-content: center; backdrop-filter: blur(10px);
}
#lightbox img { max-width: 90%; max-height: 80vh; border-radius: 15px; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
