/* ============================================
   프리미엄 프론트엔드 효과
   ============================================ */

/* 파티클 별 효과 - 검정 배경 */
.hero {
    background: #000000 !important;
}

/* Canvas 파티클 컨테이너 */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 글래스모피즘 효과 강화 */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(139, 92, 246, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* 네온 글로우 효과 */
.neon-glow {
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5))
                drop-shadow(0 0 20px rgba(236, 72, 153, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8))
                drop-shadow(0 0 40px rgba(236, 72, 153, 0.5));
    }
}

/* 마이크로 인터랙션 - 버튼 호버 */
.btn-premium {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:hover::before {
    width: 400px;
    height: 400px;
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

/* 3D 틸트 효과 */
.tilt-effect {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-effect:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

/* 스크롤 애니메이션 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 플로팅 애니메이션 */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 펄스 링 효과 */
.pulse-ring {
    position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring::after {
    animation-delay: 1s;
}

@keyframes pulseRing {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 180%;
        height: 180%;
        opacity: 0;
    }
}

/* 그라데이션 텍스트 애니메이션 */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        #8b5cf6 0%,
        #ec4899 25%,
        #f472b6 50%,
        #ec4899 75%,
        #8b5cf6 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 라인 드로잉 효과 */
.line-draw {
    position: relative;
}

.line-draw::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.line-draw:hover::after {
    width: 100%;
}

/* 카드 호버 효과 */
.card-premium {
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: -1;
}

.card-premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.3),
        0 10px 30px rgba(236, 72, 153, 0.2);
}

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

/* 스파클 효과 */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.sparkle {
    position: relative;
}

.sparkle::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

/* 머티리얼 리플 효과 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* 스무스 스크롤 바 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a0b2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #db2777);
}

/* 로딩 스피너 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 텍스트 쉐이드 효과 */
.text-shadow-premium {
    text-shadow: 
        0 0 10px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 30px rgba(236, 72, 153, 0.2);
}

/* 보더 그라데이션 애니메이션 */
@keyframes borderGradient {
    0%, 100% {
        border-image-source: linear-gradient(135deg, #8b5cf6, #ec4899);
    }
    50% {
        border-image-source: linear-gradient(135deg, #ec4899, #8b5cf6);
    }
}

.border-gradient-animated {
    border: 2px solid;
    border-image-slice: 1;
    animation: borderGradient 3s ease-in-out infinite;
}

/* 페이드 슬라이드 인 */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-slide-in {
    animation: fadeSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 스케일 인 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   신비로운 마법 효과
   ============================================ */

/* 신비로운 빛 입자 */
@keyframes mysticalParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-100px) scale(1);
    }
}

.mystical-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(139, 92, 246, 1), transparent);
    border-radius: 50%;
    animation: mysticalParticle 4s ease-in-out infinite;
    pointer-events: none;
}

/* 마법진 효과 */
@keyframes magicCircle {
    0% {
        transform: rotate(0deg) scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

.magic-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: magicCircle 20s linear infinite;
    pointer-events: none;
}

.magic-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border: 2px solid rgba(236, 72, 153, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* 신비로운 글로우 */
.mystical-glow {
    position: relative;
}

.mystical-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    animation: mysticalPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mysticalPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* 별빛 반짝임 */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.star-twinkle {
    animation: starTwinkle 2s ease-in-out infinite;
}

/* 신비로운 오라 */
.mystical-aura {
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(236, 72, 153, 0.3),
        0 0 60px rgba(244, 114, 182, 0.2),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
}

/* 오로라 효과 */
@keyframes aurora {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.aurora-effect {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.2),
        rgba(236, 72, 153, 0.2),
        rgba(244, 114, 182, 0.2),
        rgba(167, 139, 250, 0.2)
    );
    background-size: 400% 400%;
    animation: aurora 10s ease infinite;
}

/* 마법 트레일 */
@keyframes magicTrail {
    0% {
        transform: translateX(-100%) scaleX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) scaleX(1);
        opacity: 0;
    }
}

.magic-trail {
    position: relative;
    overflow: hidden;
}

.magic-trail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.5),
        transparent
    );
    animation: magicTrail 3s ease-in-out infinite;
}

/* 신비로운 텍스트 */
.mystical-text {
    background: linear-gradient(
        120deg,
        #8b5cf6 0%,
        #ec4899 25%,
        #f472b6 50%,
        #a78bfa 75%,
        #8b5cf6 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mysticalShine 4s linear infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

@keyframes mysticalShine {
    to {
        background-position: 200% center;
    }
}

/* 떠다니는 마법 입자들 */
.floating-particles {
    position: relative;
}

.floating-particles::before,
.floating-particles::after {
    content: '✨';
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatParticle 5s ease-in-out infinite;
}

.floating-particles::before {
    top: -20px;
    left: 20%;
}

.floating-particles::after {
    top: -20px;
    right: 20%;
    animation-delay: 2.5s;
}

@keyframes floatParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-50px) rotate(180deg);
    }
}
