/* Стили для раздела фаершоу - ТЕМНАЯ ВЕРСИЯ С АНИМАЦИЯМИ */

:root {
    --fire-primary: #ff4500;
    --fire-secondary: #ff6347;
    --fire-orange: #ff8c00;
    --fire-yellow: #ffa500;
    --dark-bg: #1a1a2e;
    --dark-card: #2a2a3e;
    --dark-lighter: #3a3a4e;
}

/* ============================================
   ПОЛУТЕМНЫЙ СТИЛЬ ДЛЯ ФАЕРШОУ (НЕ ЧЕРНЫЙ!)
   ============================================ */
body {
    background: linear-gradient(180deg, #1a1a2e 0%, #252538 100%);
    color: #d0d0e0;
}

/* Контейнер */
.container {
    position: relative;
}

/* ============================================
   ЗВЕЗДНОЕ НЕБО НА ФОНЕ
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 70% 20%, white, transparent);
    background-size: 200% 200%;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 90px 180px, 200px 130px;
    animation: twinkleStars 5s ease-in-out infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkleStars {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* Движущиеся звезды */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: shootingStar 3s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-300px) translateY(300px);
        opacity: 0;
    }
}

/* ============================================
   БАННЕР С ОГНЕННЫМИ ЭФФЕКТАМИ
   ============================================ */
.fireshow-banner {
    background: linear-gradient(135deg,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(26, 10, 5, 0.95) 50%,
        rgba(40, 20, 10, 0.95) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--fire-primary);
}

.fireshow-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 69, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 140, 0, 0.2) 0%, transparent 50%);
    animation: fireGlow 8s ease-in-out infinite;
}

@keyframes fireGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Огненные эмодзи в баннере */
.fireshow-banner::after {
    content: '🔥✨💫🔥✨';
    position: absolute;
    font-size: 6rem;
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 2rem;
    animation: flameRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes flameRotate {
    from { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
    to { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.hero-content h1 {
    color: white;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 69, 0, 0.6),
        0 0 50px rgba(255, 140, 0, 0.4);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* ============================================
   CTA СЕКЦИЯ ФАЕРШОУ
   ============================================ */
.fireshow-cta {
    background: linear-gradient(135deg,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(26, 10, 5, 0.95) 50%,
        rgba(40, 20, 10, 0.95) 100%);
    position: relative;
    border-top: 3px solid var(--fire-primary);
    border-bottom: 3px solid var(--fire-primary);
}

.fireshow-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.2) 0%, transparent 70%);
    animation: firePulse 3s ease-in-out infinite;
}

@keyframes firePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.fireshow-cta h2 {
    color: white;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 69, 0, 0.6);
}

.fireshow-cta p {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================ */
.section-title {
    color: white;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 69, 0, 0.5);
    position: relative;
}

.section-title::after {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--fire-primary) 20%,
        var(--fire-orange) 50%,
        var(--fire-primary) 80%,
        transparent 100%);
}

/* ============================================
   ПОРТФОЛИО - ТЕМНАЯ ВЕРСИЯ
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.portfolio-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 69, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 69, 0, 0.2);
}

/* Огненная рамка при наведении */
.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 69, 0, 0.3) 0%,
        rgba(255, 140, 0, 0.2) 50%,
        rgba(255, 69, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* Языки пламени в углах */
.portfolio-card::after {
    content: '🔥';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    animation: flameFlicker 2s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes flameFlicker {
    0%, 100% {
        transform: scale(1) rotate(-5deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 69, 0, 0.4);
    border-color: var(--fire-primary);
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover::after {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: var(--dark-card);
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--fire-primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.portfolio-date {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   ПРОГРАММЫ - ТЕМНАЯ ВЕРСИЯ
   ============================================ */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.program-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 69, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 69, 0, 0.2);
}

/* Множественные языки пламени */
.program-card::after {
    content: '🔥';
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    animation: smallFlame 1.5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes smallFlame {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-3px) scale(1.05);
        opacity: 1;
    }
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 69, 0, 0.4);
    border-color: var(--fire-primary);
}

.program-card:hover::after {
    opacity: 1;
}

.program-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image {
    transform: scale(1.1);
}

.program-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg,
        rgba(255, 69, 0, 0.2) 0%,
        rgba(255, 140, 0, 0.2) 100%);
    animation: fireGradient 3s ease-in-out infinite;
}

@keyframes fireGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.program-info {
    padding: 1.5rem;
    background: var(--dark-card);
}

.program-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.program-info p {
    color: #ccc;
}

.program-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.program-meta span {
    background: linear-gradient(135deg,
        var(--fire-primary),
        var(--fire-secondary));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.program-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fire-primary);
    transition: transform 0.3s ease;
    text-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

.program-card:hover .program-price {
    transform: scale(1.15);
    animation: flamePulse 1s ease-in-out infinite;
}

@keyframes flamePulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 69, 0, 0.9);
    }
}

/* ============================================
   ФОРМА ЗАКАЗА - ТЕМНАЯ ВЕРСИЯ
   ============================================ */
.order-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.2);
    position: relative;
    z-index: 1;
}

.order-form-container h2 {
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--dark-lighter);
    animation: slideInUp 0.6s ease;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--fire-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.program-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.program-option {
    border: 3px solid var(--dark-lighter);
    border-radius: 15px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--dark-lighter);
}

.program-option:hover {
    border-color: var(--fire-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}

.program-option.selected {
    border-color: var(--fire-primary);
    background: linear-gradient(135deg,
        rgba(255, 69, 0, 0.2),
        rgba(255, 140, 0, 0.2));
    box-shadow: 0 0 0 2px var(--dark-card), 0 0 0 5px var(--fire-primary);
}

.program-option h4 {
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
}

.program-option p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.program-option p:last-child {
    color: var(--fire-primary);
    font-weight: 600;
}

/* Темные инпуты */
.form-control {
    background: var(--dark-lighter);
    border: 2px solid rgba(255, 69, 0, 0.3);
    color: white;
}

.form-control:focus {
    background: var(--dark-card);
    border-color: var(--fire-primary);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.form-control::placeholder {
    color: #777;
}

/* ============================================
   FEATURE CARDS - ТЕМНАЯ ВЕРСИЯ
   ============================================ */
.feature-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 69, 0, 0.1);
    position: relative;
}

.feature-card::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.feature-card:hover {
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 69, 0, 0.3);
    border-color: var(--fire-primary);
}

.feature-icon {
    color: var(--fire-primary);
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.feature-card h3 {
    color: white;
}

.feature-card p {
    color: #ccc;
}

/* ============================================
   FOOTER - ТЕМНАЯ ВЕРСИЯ
   ============================================ */
.footer {
    background: var(--dark-card);
    border-top: 2px solid var(--fire-primary);
    color: #ccc;
}

.footer h3 {
    color: white;
}

.footer a {
    color: #999;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--fire-primary);
}

/* ============================================
   NAVBAR - ТЕМНАЯ ВЕРСИЯ
   ============================================ */
.navbar {
    background: var(--dark-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 69, 0, 0.3);
}

.navbar-logo {
    color: white;
}

.navbar-menu a {
    color: #ccc;
}

.navbar-menu a:hover {
    color: var(--fire-primary);
}

/* ============================================
   КНОПКИ ФАЕРШОУ
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--fire-primary), var(--fire-secondary));
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: fireButtonGlow 2s ease-in-out infinite;
}

@keyframes fireButtonGlow {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: translate(10%, 10%);
        opacity: 1;
    }
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8);
    animation: fireBtnPulse 0.3s ease;
}

@keyframes fireBtnPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--fire-primary);
    color: var(--fire-primary);
}

.btn-secondary:hover {
    background: var(--fire-primary);
    color: white;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ
   ============================================ */
#imageModal .modal-content {
    background: var(--dark-card);
    border: 2px solid var(--fire-primary);
}

#imageModal img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 69, 0, 0.3);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 768px) {
    .portfolio-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .order-form-container {
        padding: 1.5rem;
    }

    .program-selector {
        grid-template-columns: 1fr;
    }

    .program-image,
    .portfolio-image {
        height: 200px;
    }

    .fireshow-banner::after {
        font-size: 3rem;
        letter-spacing: 1rem;
    }

    /* Упрощаем анимации на мобильных */
    .portfolio-card:hover,
    .program-card:hover {
        transform: none;
    }
}