/* Rezonator Theme - Midnight Studio (purple + gold) */

.rezonator-page {
    --accent: #7c5cff;
    --accent-hover: #9678ff;
    --accent-glow: rgba(124, 92, 255, 0.3);
    --bg-primary: #0e0f14;
    --bg-secondary: #12131a;
    --bg-tertiary: #181a22;
    --bg-card: #12131a;
    --border: #23252f;
    --border-light: #30323e;
    --gradient-primary: linear-gradient(135deg, #7c5cff 0%, #ffce4a 100%);
}

/* Animated EQ-bar background */
.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.eq-bars {
    display: flex;
    align-items: flex-end;
    gap: clamp(0.8rem, 3vw, 2.5rem);
    width: 90%;
    height: 55%;
    opacity: 0.25;
}

.eq-bars span {
    flex: 1;
    background: linear-gradient(to top, rgba(124, 92, 255, 0.7), rgba(124, 92, 255, 0.05));
    border-radius: 4px 4px 0 0;
    animation: eqBounce 2.4s ease-in-out infinite;
}

.eq-bars span:nth-child(1)  { height: 35%; animation-delay: 0s; }
.eq-bars span:nth-child(2)  { height: 60%; animation-delay: 0.15s; }
.eq-bars span:nth-child(3)  { height: 45%; animation-delay: 0.3s; }
.eq-bars span:nth-child(4)  { height: 80%; animation-delay: 0.45s; }
.eq-bars span:nth-child(5)  { height: 55%; animation-delay: 0.6s; }
.eq-bars span:nth-child(6)  { height: 90%; animation-delay: 0.75s; }
.eq-bars span:nth-child(7)  { height: 50%; animation-delay: 0.9s; }
.eq-bars span:nth-child(8)  { height: 75%; animation-delay: 1.05s; }
.eq-bars span:nth-child(9)  { height: 40%; animation-delay: 1.2s; }
.eq-bars span:nth-child(10) { height: 65%; animation-delay: 1.35s; }
.eq-bars span:nth-child(11) { height: 85%; animation-delay: 1.5s; }
.eq-bars span:nth-child(12) { height: 30%; animation-delay: 1.65s; }

/* Gold highlight on a couple of bars, like the secondary theme color */
.eq-bars span:nth-child(4),
.eq-bars span:nth-child(9) {
    background: linear-gradient(to top, rgba(255, 206, 74, 0.6), rgba(255, 206, 74, 0.04));
}

@keyframes eqBounce {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* Hero Styling */
.rezonator-hero {
    background:
        radial-gradient(ellipse at 30% 25%, rgba(124, 92, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(255, 206, 74, 0.06) 0%, transparent 50%),
        #0e0f14;
}

.rezonator-hero .hero-overlay {
    background: linear-gradient(to bottom,
        rgba(14, 15, 20, 0.1) 0%,
        rgba(14, 15, 20, 0.85) 100%);
    z-index: 1;
}

.rezonator-hero .container {
    z-index: 2;
}

.rezonator-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(2.5rem, 8vw, 5rem) !important;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #9678ff 0%, #7c5cff 55%, #ffce4a 130%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 25px rgba(124, 92, 255, 0.45));
}

/* Override tech stack tags */
.rezonator-page .project-tech-stack span {
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: #b3a1ff;
}

/* Override section titles */
.rezonator-page .section-title {
    font-family: 'Poppins', sans-serif;
}

.rezonator-page .section-title::after {
    background: #7c5cff;
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.5);
}

/* Architecture cards */
.rezonator-page .arch-card {
    background: rgba(18, 19, 26, 0.85);
    border: 1px solid rgba(124, 92, 255, 0.2);
    backdrop-filter: blur(10px);
}

.rezonator-page .arch-card:hover {
    border-color: #7c5cff;
    box-shadow:
        0 0 20px rgba(124, 92, 255, 0.18),
        inset 0 0 20px rgba(124, 92, 255, 0.04);
}

.rezonator-page .arch-card h3 {
    color: #b3a1ff;
    font-family: 'Poppins', sans-serif;
}

/* Code preview */
.rezonator-page .code-preview {
    border: 1px solid rgba(124, 92, 255, 0.3);
    background: rgba(12, 13, 18, 0.95);
    box-shadow:
        0 0 20px rgba(124, 92, 255, 0.1),
        inset 0 0 30px rgba(124, 92, 255, 0.03);
}

.rezonator-page .code-preview code {
    color: #b3a1ff;
}

/* Badges */
.rezonator-page .badge {
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: #b3a1ff;
}

/* Story stats - gold accents like the secondary color */
.rezonator-page .story-stat-number {
    background: linear-gradient(135deg, #ffce4a 0%, #7c5cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 206, 74, 0.3));
}

/* Gallery Carousel */
.gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.carousel-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 0;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
}

.slide-img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(124, 92, 255, 0.35);
    background: #0c0d12;
    box-shadow: 0 0 30px rgba(124, 92, 255, 0.1);
}

.slide-caption {
    font-family: 'Poppins', sans-serif;
    color: #b3a1ff;
    font-size: 1rem;
    margin-top: 16px;
    text-align: center;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: #b3a1ff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    border-color: #7c5cff;
    background: rgba(124, 92, 255, 0.12);
    box-shadow: 0 0 15px rgba(124, 92, 255, 0.25);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #7c5cff;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: #7c5cff;
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
}

@media (max-width: 768px) {
    .gallery-carousel {
        gap: 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Alt background */
.rezonator-page .alt-bg {
    background: #12131a;
}

/* Footer */
.rezonator-page .back-link:hover {
    color: #9678ff;
    text-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
}

/* Scroll hint */
.rezonator-page .scroll-hint span {
    color: rgba(150, 120, 255, 0.6);
    letter-spacing: 0.2em;
}

.rezonator-page .scroll-arrow {
    border-color: rgba(150, 120, 255, 0.6);
}

@media (max-width: 768px) {
    .rezonator-title {
        letter-spacing: 0.08em;
    }
}
