:root {
    --bg-color-dark: #121212;
    --bg-color-light: #f0f0f0;
    --text-color: #f0f0f0;
    --glass-blur: 10px;
    --glass-bg-dark: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-color: #f0f0f0;
    --secondary-color: #1c1c1c;
    --accent-glow: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg-color-dark);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-image: radial-gradient(circle at top left, #333 0%, #111 50%, #000 100%);
    background-attachment: fixed;
}

.glass-card {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
}

.animated-text {
    color: var(--primary-color);
}

.glow-text {
    text-shadow: 0 0 8px var(--accent-glow), 0 0 20px rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin-top: 20px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin-left: 10px;
}

.logo-png {
    width: 40px;
    height: 40px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s; /* Добавлено text-shadow для плавности */
}

/* ИЗМЕНЕНИЕ: Свечение для навигационных ссылок */
nav a:hover {
    color: var(--accent-glow);
    text-shadow: 0 0 5px var(--accent-glow), 0 0 10px rgba(255, 255, 255, 0.5); 
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#hero {
    text-align: left;
    padding: 80px 40px;
    margin-top: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 50%;
}

.hero-image {
    flex: 1;
    max-width: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

/* ИЗМЕНЕНИЕ: Свечение для кнопок */
.button:hover {
    background-color: #ccc;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6), 0 5px 15px rgba(255, 255, 255, 0.4); 
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.work-item {
    text-align: center;
    overflow: hidden;
    padding: 10px;
}

.work-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s; /* Добавлено box-shadow для плавности */
}

/* ИЗМЕНЕНИЕ: Свечение для изображений галереи */
.work-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.5);
}

.work-item p {
    font-weight: bold;
    font-size: 1.1rem;
}

#contact {
    text-align: center;
}

.contact-info {
    max-width: 600px;
}

.contact-info p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.contact-button {
    width: 45%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

.contact-button i {
    margin-right: 10px;
}

.telegram-button {
    background-color: #0088cc;
    color: var(--text-color);
}

/* ИЗМЕНЕНИЕ: Свечение для кнопки Telegram */
.telegram-button:hover {
    background-color: #007bb6;
    box-shadow: 0 0 15px 3px var(--accent-glow), 0 5px 15px rgba(255, 255, 255, 0.3); 
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    opacity: 0.7;
    margin-top: 40px;
}

.social-icons {
    margin-left: auto; 
    padding-left: 15px;
}

.telegram-header-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: color 0.3s, text-shadow 0.3s;
}

/* ИЗМЕНЕНИЕ: Свечение для иконки Telegram в хедере */
.telegram-header-icon:hover {
    color: var(--accent-glow);
    text-shadow: 0 0 12px var(--accent-glow), 0 0 25px rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    
    header {
        flex-direction: row; 
        justify-content: space-between;
        flex-wrap: wrap; 
        margin: 10px auto;
        padding: 10px;
        position: static;
    }
    
    .logo {
        justify-content: flex-start;
        width: auto;
    }

    .social-icons {
        order: 2; 
        margin-left: auto;
        padding-left: 0;
    }

    nav {
        order: 3; 
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.9rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }

    #hero {
        padding: 40px 20px;
        text-align: center;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text {
        min-width: 100%;
    }

    .hero-image {
        max-width: 100%;
        order: -1;
    }

    #hero h2 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-button {
        width: 80%;
    }
}

/* ===== Анимация секции Hero (оставлена без изменений) ===== */
#hero {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.5s ease-out forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    opacity: 0;
    transform: translateX(-40px);
    animation: textSlideIn 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes textSlideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.hero-image {
    opacity: 0;
    transform: translateX(40px);
    animation: imageSlideIn 1.5s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.animated-text {
    position: relative;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 8px rgba(255,255,255,0.4), 0 0 16px rgba(255,255,255,0.3);
    }
    to {
        text-shadow: 0 0 14px rgba(255,255,255,0.8), 0 0 28px rgba(255,255,255,0.6);
    }
}