/* Powerful Gym-Themed Intro Animation CSS */

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.intro-container {
    position: relative;
    text-align: center;
}

/* Main Logo Container */
.logo-container {
    position: relative;
    animation: powerUp 2s ease-out forwards;
    transform-origin: center;
}

/* MK Logo Styling */
.mk-logo {
    position: relative;
    margin-bottom: 10px;
    animation: logoGlow 2s ease-out forwards;
}

.letter-m, .letter-k {
    display: inline-block;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 120px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 5px;
    position: relative;
    text-shadow: 
        0 0 10px var(--primary-gold),
        0 0 20px var(--primary-gold),
        0 0 30px var(--primary-gold),
        0 0 40px var(--primary-gold);
}

.letter-m {
    color: var(--primary-gold);
    animation: letterPowerM 2s ease-out forwards;
}

.letter-k {
    color: var(--white);
    animation: letterPowerK 2s 0.2s ease-out forwards;
    opacity: 0;
}

/* Pilates Text */
.pilates-text {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 8px;
    margin-bottom: 15px;
    animation: textReveal 1.5s 1s ease-out forwards;
    opacity: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Power Text */
.power-text {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-gold);
    letter-spacing: 3px;
    animation: powerTextGlow 2s 1.5s ease-out forwards;
    opacity: 0;
    text-transform: uppercase;
}

/* Energy Rings */
.energy-ring {
    position: absolute;
    border: 3px solid var(--primary-gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: ringExpand 2s 0.5s ease-out forwards;
    box-shadow: 0 0 20px var(--primary-gold);
}

.ring-2 {
    width: 300px;
    height: 300px;
    animation: ringExpand 2s 0.8s ease-out forwards;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.ring-3 {
    width: 400px;
    height: 400px;
    animation: ringExpand 2s 1.1s ease-out forwards;
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

/* Lightning Bolts */
.lightning {
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--secondary-gold), var(--primary-gold));
    border-radius: 2px;
    opacity: 0;
    box-shadow: 0 0 10px var(--primary-gold);
}

.lightning-1 {
    height: 80px;
    top: 20%;
    left: 20%;
    transform: rotate(25deg);
    animation: lightningStrike 0.3s 1.2s ease-out forwards, lightningFade 0.5s 1.5s ease-out forwards;
}

.lightning-2 {
    height: 100px;
    top: 15%;
    right: 25%;
    transform: rotate(-30deg);
    animation: lightningStrike 0.3s 1.4s ease-out forwards, lightningFade 0.5s 1.7s ease-out forwards;
}

.lightning-3 {
    height: 70px;
    bottom: 25%;
    left: 15%;
    transform: rotate(-15deg);
    animation: lightningStrike 0.3s 1.6s ease-out forwards, lightningFade 0.5s 1.9s ease-out forwards;
}

.lightning-4 {
    height: 90px;
    bottom: 20%;
    right: 20%;
    transform: rotate(35deg);
    animation: lightningStrike 0.3s 1.8s ease-out forwards, lightningFade 0.5s 2.1s ease-out forwards;
}

/* Power Particles */
.power-particle {
    position: absolute;
    background: radial-gradient(circle, var(--secondary-gold) 0%, var(--primary-gold) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: particleExplode 2s ease-out forwards;
    box-shadow: 0 0 10px var(--primary-gold);
}

/* Power Waves */
.power-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: waveExpand 1.5s ease-out forwards;
    box-shadow: 0 0 20px var(--primary-gold);
}

/* Skip Intro Button */
.skip-intro {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(44, 44, 44, 0.8);
    color: var(--primary-gold);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-gold);
    backdrop-filter: blur(10px);
    animation: skipButtonFadeIn 1s 2s ease-out forwards;
    opacity: 0;
}

.skip-intro:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-gold);
}

.skip-intro span {
    display: block;
    text-shadow: 0 0 10px currentColor;
}

/* Keyframe Animations */
@keyframes powerUp {
    0% { 
        transform: scale(0.3) rotateY(180deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% { 
        transform: scale(1.1) rotateY(0deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    100% { 
        transform: scale(1) rotateY(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes logoGlow {
    0% { filter: brightness(0.5); }
    50% { filter: brightness(1.5) saturate(1.5); }
    100% { filter: brightness(1.2) saturate(1.2); }
}

@keyframes letterPowerM {
    0% { 
        transform: translateX(-50px) rotateZ(-45deg) scale(0.5);
        opacity: 0;
    }
    60% { 
        transform: translateX(5px) rotateZ(5deg) scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: translateX(0) rotateZ(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes letterPowerK {
    0% { 
        transform: translateX(50px) rotateZ(45deg) scale(0.5);
        opacity: 0;
    }
    60% { 
        transform: translateX(-5px) rotateZ(-5deg) scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: translateX(0) rotateZ(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes textReveal {
    0% { 
        opacity: 0;
        transform: translateY(30px) scale(0.8);
        filter: blur(5px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes powerTextGlow {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1);
        text-shadow: 0 0 20px var(--primary-gold);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 10px var(--primary-gold);
    }
}

@keyframes ringExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

@keyframes lightningStrike {
    0% { 
        opacity: 0;
        transform: scaleY(0);
    }
    50% { 
        opacity: 1;
        transform: scaleY(1.2);
    }
    100% { 
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes lightningFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes particleExplode {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.2);
        opacity: 0;
    }
}

@keyframes waveExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(30);
        opacity: 0;
    }
}

/* Shake effect for extra power */
@keyframes powerShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2px, 2px) rotate(-1deg); }
    50% { transform: translate(2px, -2px) rotate(1deg); }
    75% { transform: translate(-1px, 1px) rotate(-0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes skipButtonFadeIn {
    0% { 
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .letter-m, .letter-k {
        font-size: 80px;
    }
    
    .pilates-text {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .power-text {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .ring-1 { width: 150px; height: 150px; }
    .ring-2 { width: 220px; height: 220px; }
    .ring-3 { width: 300px; height: 300px; }
    
    .lightning {
        width: 3px;
    }
    
    .lightning-1, .lightning-3 { height: 60px; }
    .lightning-2, .lightning-4 { height: 70px; }
    
    .skip-intro {
        bottom: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .letter-m, .letter-k {
        font-size: 60px;
        margin: 0 2px;
    }
    
    .pilates-text {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .power-text {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .ring-1 { width: 120px; height: 120px; }
    .ring-2 { width: 180px; height: 180px; }
    .ring-3 { width: 240px; height: 240px; }
}