/* Магическая цирковая цветовая палитра */
:root {
    --magic-purple: #4A0E78;
    --magic-blue: #0E3784;
    --magic-gold: #FFC700;
    --magic-red: #BF0813;
    --magic-black: #070707;
    --magic-dark: #151515;
    --magic-light: #F8E7FF;
    --magic-accent: #ED2329;
}

/* Основные элементы */
body {
    background: linear-gradient(135deg, var(--magic-black) 0%, var(--magic-purple) 100%);
    color: var(--magic-light);
    font-family: "Montserrat", serif;
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--magic-gold);
    text-shadow: 0 0 10px rgba(255, 199, 0, 0.6);
}

h1 {
    font-size: 96px;
    letter-spacing: 2px;
    text-align: center;
}

/* Навигация */
.navbar {
    background: rgba(7, 7, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--magic-gold);
}

.navbar a {
    color: var(--magic-light);
    letter-spacing: 1px;
}

.navbar a:hover {
    color: var(--magic-gold);
    opacity: 1;
}

.navbar-container .hamburger-lines .line {
    background: var(--magic-gold);
}

/* Секции контента */
section {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

section::before {
    content: "";
    background: radial-gradient(circle at center, rgba(74, 14, 120, 0.3) 0%, rgba(7, 7, 7, 0) 70%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Карточки с артистами/представлениями */
.casino-wrapper {
    background: rgba(28, 28, 28, 0.6);
    box-shadow: 0 0 20px rgba(74, 14, 120, 0.5);
}

.casino-item {
    background: rgba(28, 28, 28, 0.8);
    border: 1px solid var(--magic-gold);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 199, 0, 0.3);
    border-color: var(--magic-gold);
}

.casino-item h4 {
    color: var(--magic-gold);
    font-size: 24px;
}

.casino-item p {
    color: var(--magic-light);
    font-style: italic;
}

/* Кнопки */
.btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-red {
    background: var(--magic-red);
    color: var(--magic-light);
}

.btn-white {
    background: var(--magic-light);
    color: var(--magic-black);
    border: 2px solid var(--magic-gold);
}

.btn-blue {
    background: var(--magic-blue);
    color: var(--magic-light);
}

.btn-green {
    background: #4E9800;
    color: var(--magic-light);
}

.btn-light-red {
    background: var(--magic-accent);
    color: var(--magic-light);
}

/* Футер */
footer {
    background: rgba(7, 7, 7, 0.9);
    border: 1px solid var(--magic-gold);
    border-radius: 10px;
}

.logo-info {
    border-bottom: 1px solid rgba(255, 199, 0, 0.3);
}

.footer-info {
    color: var(--magic-gold);
}

.footer-age {
    background: var(--magic-dark);
    border-top: 1px solid rgba(255, 199, 0, 0.3);
}

.footer-links a {
    color: var(--magic-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--magic-gold);
    text-decoration: none;
}

/* Модальное окно (возрастное ограничение) */
.modal-overlay {
    backdrop-filter: blur(5px);
}

.modal {
    background: linear-gradient(135deg, var(--magic-dark) 0%, var(--magic-purple) 100%);
    border: 2px solid var(--magic-gold);
    color: var(--magic-light);
    box-shadow: 0 0 30px rgba(255, 199, 0, 0.5);
}

.modal .age-circle {
    background-color: var(--magic-red);
    border: 2px solid var(--magic-gold);
}

.modal h2 {
    color: var(--magic-gold);
}

.modal button {
    background-color: var(--magic-gold);
    color: var(--magic-black);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal button:hover {
    background-color: var(--magic-light);
    transform: scale(1.05);
}

/* Эффекты наведения и анимации */
.casino img {
    transition: transform 0.5s ease;
}

.casino-item:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Адаптивные стили уже есть в исходном CSS */

/* Магическая цирковая цветовая палитра */
:root {
    --magic-purple: #4A0E78;
    --magic-blue: #0E3784;
    --magic-gold: #FFC700;
    --magic-red: #BF0813;
    --magic-black: #070707;
    --magic-dark: #151515;
    --magic-light: #F8E7FF;
    --magic-accent: #ED2329;
}

/* Основные элементы */
body {
    background: linear-gradient(135deg, var(--magic-black) 0%, var(--magic-purple) 100%);
    color: var(--magic-light);
    font-family: "Montserrat", serif;
    position: relative;
    overflow-x: hidden;
}

/* Эффект падающих звезд */
@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100vh) rotate(45deg);
        opacity: 0;
    }
}

body::after {
    content: "";
    position: fixed;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--magic-gold), transparent);
    top: -100px;
    left: -100px;
    z-index: -3;
    pointer-events: none;
    box-shadow: 0 0 10px 1px var(--magic-gold);
    opacity: 0.7;
    animation: shootingStar 7s ease-in infinite;
    animation-delay: 2s;
}

/* Второй падающая звезда с другой задержкой */
.navbar::before {
    content: "";
    position: fixed;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--magic-gold), transparent);
    top: -50px;
    right: -50px;
    z-index: -3;
    pointer-events: none;
    box-shadow: 0 0 8px 1px var(--magic-gold);
    opacity: 0.5;
    animation: shootingStar 10s ease-in infinite;
    animation-delay: 5s;
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--magic-gold);
    text-shadow: 0 0 10px rgba(255, 199, 0, 0.6);
}

h1 {
    font-size: 96px;
    letter-spacing: 2px;
    text-align: center;
}

/* Навигация */
.navbar {
    background: rgba(7, 7, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--magic-gold);
    position: relative;
    overflow: hidden;
}

.navbar::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            ellipse at center,
            rgba(255, 199, 0, 0.1) 0%,
            transparent 70%
    );
    opacity: 0.5;
    animation: rotateNavMist 30s infinite linear;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateNavMist {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar a {
    color: var(--magic-light);
    letter-spacing: 1px;
    position: relative;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--magic-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar a:hover {
    color: var(--magic-gold);
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 199, 0, 0.5);
}

.navbar a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(
            circle at center,
            rgba(255, 199, 0, 0.15) 0%,
            transparent 70%
    );
    z-index: -1;
    animation: logoGlow 3s infinite alternate;
}

@keyframes logoGlow {
    0% { opacity: 0.3; transform: scale(0.9); }
    100% { opacity: 0.7; transform: scale(1.1); }
}

.navbar-container .hamburger-lines .line {
    background: var(--magic-gold);
    transition: 0.3s ease all;
}

.navbar-container:hover .hamburger-lines .line {
    box-shadow: 0 0 8px rgba(255, 199, 0, 0.8);
}

/* Секции контента */
section {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

section::before {
    content: "";
    background: radial-gradient(circle at center, rgba(74, 14, 120, 0.3) 0%, rgba(7, 7, 7, 0) 70%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Добавляем эффект парящих элементов для секций */
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Эффект волшебной дымки */
section::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center,
    rgba(74, 14, 120, 0.1) 0%,
    rgba(255, 199, 0, 0.05) 25%,
    transparent 70%);
    opacity: 0.5;
    z-index: -1;
    animation: rotateMist 30s infinite linear;
    pointer-events: none;
}

@keyframes rotateMist {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Карточки с артистами/представлениями */
.casino-wrapper {
    background: rgba(28, 28, 28, 0.6);
    box-shadow: 0 0 20px rgba(74, 14, 120, 0.5);
    position: relative;
    z-index: 1;
}

.casino-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
    rgba(255, 199, 0, 0.1) 0%,
    transparent 50%,
    rgba(74, 14, 120, 0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

.casino-item {
    background: rgba(28, 28, 28, 0.8);
    border: 1px solid var(--magic-gold);
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.casino-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle at center,
            rgba(255, 199, 0, 0.15) 0%,
            transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    transform: scale(0.5);
}

.casino-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
            0 10px 20px rgba(255, 199, 0, 0.3),
            0 0 40px rgba(74, 14, 120, 0.3);
    border-color: var(--magic-gold);
}

.casino-item:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: pulseCircle 2s infinite ease-in-out;
}

@keyframes pulseCircle {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

.casino-item h4 {
    color: var(--magic-gold);
    font-size: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.casino-item:hover h4 {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 199, 0, 0.8);
}

.casino-item p {
    color: var(--magic-light);
    font-style: italic;
    position: relative;
    transition: all 0.3s ease;
}

.casino-item:hover p {
    color: rgba(248, 231, 255, 0.9);
}

/* Кнопки */
.btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-red {
    background: var(--magic-red);
    color: var(--magic-light);
}

.btn-white {
    background: var(--magic-light);
    color: var(--magic-black);
    border: 2px solid var(--magic-gold);
}

.btn-blue {
    background: var(--magic-blue);
    color: var(--magic-light);
}

.btn-green {
    background: #4E9800;
    color: var(--magic-light);
}

.btn-light-red {
    background: var(--magic-accent);
    color: var(--magic-light);
}

/* Футер */
footer {
    background: rgba(7, 7, 7, 0.9);
    border: 1px solid var(--magic-gold);
    border-radius: 10px;
}

.logo-info {
    border-bottom: 1px solid rgba(255, 199, 0, 0.3);
}

.footer-info {
    color: var(--magic-gold);
}

.footer-age {
    background: var(--magic-dark);
    border-top: 1px solid rgba(255, 199, 0, 0.3);
}

.footer-links a {
    color: var(--magic-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--magic-gold);
    text-decoration: none;
}

/* Модальное окно (возрастное ограничение) */
.modal-overlay {
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: linear-gradient(135deg, var(--magic-dark) 0%, var(--magic-purple) 100%);
    border: 2px solid var(--magic-gold);
    color: var(--magic-light);
    box-shadow:
            0 0 30px rgba(255, 199, 0, 0.5),
            0 0 60px rgba(74, 14, 120, 0.3);
    animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

@keyframes modalAppear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background: radial-gradient(
            circle at center,
            rgba(255, 199, 0, 0.2) 0%,
            transparent 70%
    );
    opacity: 0.4;
    z-index: -1;
    animation: rotateMagic 10s linear infinite;
}

@keyframes rotateMagic {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal .age-circle {
    background-color: var(--magic-red);
    border: 2px solid var(--magic-gold);
    box-shadow: 0 0 15px rgba(191, 8, 19, 0.6);
    animation: pulseAge 2s infinite alternate;
}

@keyframes pulseAge {
    0% { box-shadow: 0 0 15px rgba(191, 8, 19, 0.6); }
    100% { box-shadow: 0 0 25px rgba(191, 8, 19, 0.9); }
}

.modal h2 {
    color: var(--magic-gold);
    text-shadow: 0 0 10px rgba(255, 199, 0, 0.5);
}

.modal button {
    background: linear-gradient(to right, var(--magic-gold), #FFE566, var(--magic-gold));
    color: var(--magic-black);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modal button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent);
    transition: 0.5s;
    z-index: -1;
}

.modal button:hover {
    background-color: var(--magic-light);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 199, 0, 0.7);
}

.modal button:hover::before {
    left: 100%;
    animation: buttonShine 1.5s infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Эффекты наведения и анимации */
.casino img {
    transition: transform 0.5s ease;
    filter: drop-shadow(0 0 8px rgba(255, 199, 0, 0.6));
}

.casino-item:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 199, 0, 0.8));
}

/* Анимация для заголовков */
@keyframes magicGlow {
    0% { text-shadow: 0 0 10px rgba(255, 199, 0, 0.6); }
    50% { text-shadow: 0 0 20px rgba(255, 199, 0, 0.9), 0 0 30px rgba(74, 14, 120, 0.5); }
    100% { text-shadow: 0 0 10px rgba(255, 199, 0, 0.6); }
}

h1, h2 {
    animation: magicGlow 3s infinite ease-in-out;
}

/* Фоновые частицы (через псевдоэлементы) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(circle at 20% 30%, rgba(255, 199, 0, 0.1) 0%, transparent 5%),
            radial-gradient(circle at 80% 40%, rgba(255, 199, 0, 0.1) 0%, transparent 5%),
            radial-gradient(circle at 40% 80%, rgba(255, 199, 0, 0.1) 0%, transparent 5%),
            radial-gradient(circle at 60% 10%, rgba(255, 199, 0, 0.1) 0%, transparent 5%);
    z-index: -2;
    pointer-events: none;
    animation: floatingStars 20s infinite linear;
}

@keyframes floatingStars {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* CSS-only появление элементов - используем :hover для родительского элемента или другие методы */
.casino:hover .casino-item,
.flex-cont:hover .col,
.flex-cont:hover .col-2,
.flex-cont:hover .col-3 {
    opacity: 1;
    transform: translateY(0);
}

.casino-item, .col, .col-2, .col-3 {
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Волшебный border для элементов */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 199, 0, 0.2), transparent);
    transform: rotate(45deg);
    animation: shiningEffect 3s infinite linear;
    pointer-events: none;
}

@keyframes shiningEffect {
    0% { left: -50%; top: -50%; }
    100% { left: 150%; top: 150%; }
}

/* Эффект мерцания для цирковых элементов */
.casino-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 199, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* Магический эффект для навигации */
.menu-items li {
    position: relative;
}

.menu-items li::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--magic-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.menu-items li:hover::before {
    width: 100%;
    left: 0;
}

/* Эффект кружащихся частиц для footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(circle at 10% 10%, rgba(255, 199, 0, 0.1) 0%, transparent 10%),
            radial-gradient(circle at 90% 10%, rgba(255, 199, 0, 0.1) 0%, transparent 5%),
            radial-gradient(circle at 10% 90%, rgba(255, 199, 0, 0.1) 0%, transparent 5%),
            radial-gradient(circle at 90% 90%, rgba(255, 199, 0, 0.1) 0%, transparent 10%);
    opacity: 0.5;
    z-index: -1;
    animation: magicDust 15s infinite linear;
}

@keyframes magicDust {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Магическая подсветка для важных элементов */
.logo img, .footer-info img {
    filter: drop-shadow(0 0 5px rgba(255, 199, 0, 0.5));
    transition: filter 0.3s ease;
}

.logo img:hover, .footer-info img:hover {
    filter: drop-shadow(0 0 10px rgba(255, 199, 0, 0.8));
}