/* ===== БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

body {
    background: linear-gradient(135deg, rgba(129, 65, 180, 1) 33%, rgba(145, 79, 166, 1) 44%, rgba(196, 63, 156, 1) 55%, rgba(217, 65, 68, 1) 73%, rgba(189, 99, 43, 1) 90%, rgba(163, 103, 20, 1) 100%);
    background-size: 300% 300%;
    animation: gradientMove 12s ease-in-out infinite;
    color: white;
    line-height: 1.6;
    padding: 20px;
}

/* Анимация градиента */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== GLASS UI КАРТОЧКИ ===== */
section, header, footer {
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* ===== HEADER TITLE ===== */
.resume-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1.5px;
}

/* ===== HERO BLOCK ===== */

.hero {
    padding: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-photo img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 32px;
}

.name {
    font-size: 40px;
    font-weight: 700;
}

.position {
    font-size: 34px;
    opacity: 0.9;
}

/* ===== СЕКЦИИ ===== */

h2 {
    font-size: 30px;
    margin-bottom: 12px;
    font-weight: 700;
}

h3 {
    font-size: 30px;
    margin-top: 15px;
}

p {
    margin-bottom: 12px;
    font-size: 20px;
}

ul {
    margin-left: 20px;
    margin-top: 10px;
}

ul li {
    margin-bottom: 8px;
    font-size: 20px;
}

/* ===== КОНТАКТЫ ===== */

.contacts ul li a {
    color: #fff;
    text-decoration: underline;
    transition: 0.3s;
    font-size: 20px;
}

.contacts ul li a:hover {
    text-shadow: 0 0 8px #fff;
}

/* ===== FOOTER ===== */

footer p {
    text-align: center;
    opacity: 0.8;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-photo img {
        width: 250px;
        height: 330px;
    }

    .name {
        font-size: 26px;
    }

    .position {
        font-size: 18px;
    }
}

/* Кнопка переключения темы */
.theme-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    z-index: 999;
}

.theme-btn:hover {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* === Тёмная тема === */
body.dark-theme {
    background: linear-gradient(135deg, #1a1c2d, #0e0f1a, #000000);
    color: #fff;
}

body.dark-theme section,
body.dark-theme header,
body.dark-theme footer {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(12px);
}

body.dark-theme .theme-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
