/* ===== RITUAL ENHANCEMENTS - HOLLOW MODE ===== */

/* ===== HERO RIP TRANSITION ===== */

.hero-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.phoenix-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.phoenix-reveal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Rip Animation - Hollow Mode Only */
body.agoge-mode .ripple-init .hero-text {
    clip-path: polygon(0 0, 0 100%, 0% 100%, 0% 0%);
    animation: heroRip 1.5s ease-in-out forwards;
}

body.agoge-mode .ripple-init .phoenix-reveal {
    opacity: 1;
    transform: scale(1);
    animation: phoenixReveal 1.5s ease-in-out forwards;
}

@keyframes heroRip {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    50% {
        clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%);
    }
}

@keyframes phoenixReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ===== SOUND-LINKED ANIMATIONS ===== */

.pulse-light {
    animation: pulseLight 2s ease-in-out infinite;
}

.flare-surge {
    animation: flareSurge 1.5s ease-in-out infinite;
}

.burst-rhythm {
    animation: burstRhythm 0.8s ease-in-out infinite;
}

@keyframes pulseLight {
    0%, 100% {
        opacity: 0.6;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

@keyframes flareSurge {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    25% {
        opacity: 1;
        transform: scale(1.05);
    }
    75% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

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

/* ===== TEMPLE LIGHT CYCLE ===== */

.temple-dawn {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
    color: #d4af37;
}

.temple-dawn .section-title::before {
    content: "☀️ ";
}

.temple-dusk {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: #d4af37;
}

.temple-dusk .section-title::before {
    content: "🌙 ";
}

.temple-midnight {
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, #2D2D2D 100%);
    color: #D4AF37;
}

.temple-midnight .section-title::before {
    content: "🕯️ ";
}

/* Light cycle transitions */
.temple-section {
    transition: all 1s ease-in-out;
}

/* ===== SACRED GEOMETRY OVERLAY ===== */

.sacred-geometry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.sacred-geometry.active {
    opacity: 0.1;
}

.sacred-geometry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Geometry animations */
.geometry-rotate {
    animation: geometryRotate 60s linear infinite;
}

.geometry-pulse {
    animation: geometryPulse 8s ease-in-out infinite;
}

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

@keyframes geometryPulse {
    0%, 100% {
        opacity: 0.05;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.02);
    }
}

/* ===== PHOENIX SOUND EFFECT ===== */

#phoenix-sfx {
    display: none;
}

/* ===== RITUAL SETTINGS ===== */

.ritual-settings {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    padding: 12px 16px;
    border-radius: 25px;
    border: 2px solid #d4af37;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ritual-settings.visible {
    opacity: 1;
}

.ritual-settings label {
    color: #d4af37;
    font-size: 12px;
    margin-right: 10px;
}

.ritual-settings input[type="checkbox"] {
    margin-right: 5px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .hero-wrap {
        font-size: 0.8em;
    }
    
    .ritual-settings {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .sacred-geometry {
        opacity: 0.05;
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    .ripple-init .hero-text,
    .ripple-init .phoenix-reveal,
    .pulse-light,
    .flare-surge,
    .burst-rhythm,
    .geometry-rotate,
    .geometry-pulse {
        animation: none;
    }
    
    .temple-section {
        transition: none;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

.ritual-enhanced {
    will-change: transform, opacity;
}

.audio-responsive {
    will-change: filter, transform;
}

/* ===== CUSTOM PROPERTIES ===== */

:root {
    --ritual-gold: #d4af37;
    --ritual-gold-light: #f4d03f;
    --ritual-gold-dark: #b8941f;
    --ritual-fire: #ff6b35;
    --ritual-dawn: #FFD580;
    --ritual-dusk: #8A2BE2;
    --ritual-midnight: #0D0D0D;
    --ritual-transition: 0.5s ease-in-out;
} 












