/* ─────────────────────────────────────────────
   1. ОБЩИЕ СБРОСЫ И НАСТРОЙКИ
───────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d0d0d;
    color: white;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   2. CANVAS-ФОН
───────────────────────────────────────────── */
canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ─────────────────────────────────────────────
   3. НАВИГАЦИЯ
───────────────────────────────────────────── */
header nav {
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    transition: transform 0.3s ease-in-out;
}

header nav.nav-hidden {
    transform: translateY(-100%);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00ffae;
}

/* ─────────────────────────────────────────────
   4. ОСНОВНОЙ КОНТЕНТ
───────────────────────────────────────────── */
main {
    position: relative;
    z-index: 1;
    padding-top: 5rem;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.4);
}

/* ─────────────────────────────────────────────
   5. СЕКЦИЯ HOME
───────────────────────────────────────────── */
.content.center {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────
   6. ОБЩИЕ СЕКЦИИ (Projects, About, Skills, Contact)
───────────────────────────────────────────── */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────
   7. ПЛАГИНЫ / ПРОЕКТЫ
───────────────────────────────────────────── */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 300px;
    transition: transform 0.3s, background 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────
   8. КНОПКА КОНТАКТА
───────────────────────────────────────────── */
.contact-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #00ffae;
    color: black;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.contact-button:hover {
    background: #00c98d;
}

/* ─────────────────────────────────────────────
   9. SKILLS
───────────────────────────────────────────── */
.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 200px;
    transition: background 0.3s;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: #00ffae;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    margin-bottom: 0.5rem;
}
