/* ===== БАЗОВЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --bg: #000;
    --text: #fff;
    --text-light: #aaa;
    --accent: #fff;
    --border: #333;
}
.light-theme {
    --bg: #fff;
    --text: #000;
    --text-light: #666;
    --accent: #000;
    --border: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    padding: 0;
}
/* 
body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='white'/%3E%3Canimate attributeName='r' values='2;3;2' dur='2s' repeatCount='indefinite'/%3E%3C/svg%3E"), default;
}
    
body.light-theme {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3Canimate attributeName='r' values='2;3;2' dur='2s' repeatCount='indefinite'/%3E%3C/svg%3E"), default;
} */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
    position: relative;
}

/* Кнопка темы */
.theme-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 2.6rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    font-weight: normal;
    position: relative;
}
h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-light);
}

.italic {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.disclaimer {
    font-size: 12px;
}

.bio {
    max-width: 600px;
    margin: 0 auto 2rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: normal;
    position: relative;
    padding-bottom: 6px;
}

/* ===== НАВЫКИ ===== */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.skill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.35rem 0.9rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-family: monospace;
    transition: transform 0.2s;
}
.skill:hover {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* ===== ПРОЕКТЫ ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.3rem;
}
.project-card {
    border: 1px solid var(--border);
    padding: 1.1rem;
    transition: all 0.2s;
}
.project-card:hover {
    background: var(--text);
    color: var(--bg);
    animation: shake 0.5s ease-in-out;
}
.project-card a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}
.project-card p {
    font-size: 0.88rem;
    margin-top: 0.5rem;
    color: var(--text-light);
}
.project-card:hover p {
    color: var(--bg);
}

/* ===== ССЫЛКИ ===== */
.links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}
.links a {
    color: var(--text);
    text-decoration: underline;
}
.links a:hover {
    animation: shake 0.3s ease-in-out;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===== АНИМАЦИЯ ДРОЖАНИЯ ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }

    .projects-grid { grid-template-columns: 1fr; }

    .theme-toggle {
        top: -36px;
        right: 0;
    }
}


/* ===== ФОРМА ===== */
.contact-form {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 1rem;
}
label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}
input, textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}
textarea {
    min-height: 100px;
    resize: vertical;
}
button {
    background: var(--bg);
    color: var(--text);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}
button:hover {
    opacity: 0.9;
}

.reviews-slider {
    position: relative;
    max-width: 700px;
    margin: 1.5rem auto 0;
    overflow: hidden;
    padding: 0 40px;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.review-slide {
    min-width: 100%;
    padding: 1.5rem;
    align-content: center;
}

.review-author {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.slider-btn:hover {
    background: var(--text);
    color: var(--bg);
}

@media (max-width: 600px) {
    .reviews-slider {
        padding: 0 30px;
    }
}
