@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;800&display=swap');
/* Глитч-эффект для всего сайта */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255, 0, 0, 0.1) 50%),
        linear-gradient(0deg, transparent 50%, rgba(0, 0, 255, 0.1) 50%);
    background-size: 10px 10px;
    animation: glitch-overlay 0.1s infinite;
}

@keyframes glitch-overlay {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-3px, 1px); }
    80% { transform: translate(1px, -3px); }
    100% { transform: translate(0, 0); }
}

.glitch-overlay-active {
    opacity: 0.1;
    display: block;
}

/* Глитч-эффект для изображений */
.glitch-img-active {
    animation: glitch-img 0.2s infinite;
}

@keyframes glitch-img {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, 2px); }
    100% { transform: translate(0, 0); }
}

@keyframes glitch-overlay {
    0% { transform: translate(1px, -1px); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(-3px, 3px); }
}
/* Глитч-эффекты */
@keyframes glitch-anim-1 {
    0%, 100% { clip-path: polygon(0 0%, 100% 0%, 100% 100%, 0 100%); }
    20% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); }
    40% { clip-path: polygon(0 66%, 100% 66%, 100% 66%, 0 66%); }
    60% { clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); }
    80% { clip-path: polygon(0 70%, 100% 70%, 100% 20%, 0 20%); }
}

@keyframes glitch-anim-2 {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(2px); }
}

@keyframes glitch-anim-3 {
    0%, 100% { transform: translateY(0); }
    20% { transform: translateY(-3px); }
    40% { transform: translateY(2px); }
    60% { transform: translateY(4px); }
    80% { transform: translateY(-2px); }
}

.glitch-effect {
    position: relative;
    display: flex;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0;
    pointer-events: none;
}

.glitch-effect::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-effect::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.glitch-active::before,
.glitch-active::after {
    opacity: 0.8;
    animation: glitch-anim-1 0.3s;
}

.glitch-active {
    animation: glitch-anim-2 0.1s infinite, glitch-anim-3 0.15s infinite;
}

/* Фоновый глитч эффект */
.glitch-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
    opacity: 0.05;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255, 0, 0, 0.1) 50%),
        linear-gradient(0deg, transparent 50%, rgba(0, 0, 255, 0.1) 50%);
    background-size: 10px 10px;
    animation: glitch-anim-2 10s infinite;
}
/* Базовые стили и переменные */
:root {
    --primary-color: #663399;
    --primary-light: #9a67d6;
    --primary-dark: #4b2a7a;
    --text-color: #ffffff;
    --bg-gradient: linear-gradient(
        135deg,
        rgba(81, 41, 122, 0.9) -50%,
        rgba(40, 20, 60, 0.95) 0%,
        rgba(0, 0, 0, 1) 40%,
        rgba(0, 0, 0, 1) 60%,
        rgba(60, 30, 90, 0.95) 150%,
        rgba(102, 51, 153, 0.9) 150%
    );
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(102, 51, 153, 0.4);
    --transition: all 0.3s ease;
}

/* Сброс и базовые стили */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;          /* Добавить */
    flex-direction: column; /* Добавить */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Типография */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Секции */

.section {
    padding: 80px 0;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 3px 3px 5px rgba(102, 51, 153, 0.5);
}

.section__text {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}
.image-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 15px 0 30px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.image-item {
  text-align: center;
}

.section__img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--primary-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Стили для иконок соцсетей */
/* Обновленные стили для кнопок с иконками */
.btn--social {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 25px;
}

.social-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0;
    vertical-align: middle;
    transition: var(--transition);
}

.btn--social:hover .social-icon {
    filter: none;
    transform: scale(1.1);
}

/* Анимация для эмодзи */

.btn--social:hover .social-icon {
    transform: translateY(-2px) rotate(5deg);
}

.btn--social span {
    position: relative;
    transition: transform 0.3s ease;
}

.btn--social:hover span {
    transform: translateX(3px);
}


/* Кнопки */
.btn {
    display: inline-block;
    background: var(--text-color);
    color: #1a1a1a;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn--social {
    margin: 10px;
    background: var(--primary-light);
    color: var(--text-color);
}
/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--primary-color);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav__item a {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav__item:not(.nav__item--active) a:hover {
    color: var(--primary-light);
}

.nav__item--active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
}

.error a {
    color: #ff4d4d;
    font-weight: 700;
}

/* Геройская секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: url('/img/hero-bg.jpg') no-repeat center/cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    text-shadow: 4px 4px 10px var(--primary-color);
    animation: fadeInUp 1s ease;
}

.hero__text {
    font-size: clamp(1rem, 4vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero__btn {
    background: var(--primary-light);
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Кастомный видеоплеер */
.custom-player {
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 51, 153, 0.6);
    background: #000;
}

.custom-player__video {
    width: 100%;
    height: auto;
    display: block;
}

.custom-player__controls {
    padding: 15px;
    background: rgba(40, 20, 60, 0.95);
}

.progress-container {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: var(--primary-light);
    width: 0%;
    transition: width 0.1s linear;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-btn {
    color: var(--text-color);
    font-size: 20px;
    padding: 8px;
    transition: var(--transition);
}

.player-btn:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    cursor: pointer;
}

/* Состояния кнопок */
.play-pause[data-playing="false"]::after {
    content: "▶";
}
.play-pause[data-playing="true"]::after {
    content: "⏸";
}

.social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* Команда */
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.member-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.member-card__image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.member-card__name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Стили для формы */
.modal__title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 15, 45, 0.7);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(154, 103, 214, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Стили для кнопки "Написать" */
#contactBtn {
    background: var(--primary-light);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

#contactBtn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: white;
}


/* Анимация пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(154, 103, 214, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(154, 103, 214, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(154, 103, 214, 0);
    }
}

#contactBtn.pulse {
    animation: pulse 2s infinite;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    display: block;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    display: block;
}

/* Адаптивность формы */
@media (max-width: 768px) {
    .modal__title {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border: none;
    border-radius: 15px;
    padding: 30px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease forwards;
}

.modal[open] {
    display: block;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    line-height: 1;
    padding: 5px 10px;
    background: var(--primary-color);
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
}

.modal__close:hover {
    background: #ff4d4d;
    transform: rotate(90deg);
}

.modal__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal__wrapper {
    display: flex;
    gap: 30px;
}

.modal__image-wrapper {
    flex: 0 0 500px;
    border-radius: 10px;
    overflow: hidden;
    align-self: center;
}

.modal__image {
    width: 100%;
    max-height: 800px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.modal__name {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.modal__race {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.modal__bio {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal__social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Подвал сайта */
.site-footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(102, 51, 153, 0.3);
    padding: 25px 0;
    margin-top: auto;
}

.footer__disclaimer {
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer__credits {
    font-size: 0.9rem;
    text-align: center;
    color: var(--primary-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Анимации */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
        gap: 15px;
    }

    .nav__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 150px;
    }

    .team__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .modal__wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .modal__image-wrapper {
        flex: 1;
        max-width: 100%;
    }
    
    .modal__info {
        justify-content: flex-start;
        padding-top: 20px;
    }

    .modal__content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .team__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .modal {
        padding: 20px;
    }

    .modal__name {
        font-size: 1.5rem;
    }
}