/* ========================================
   CHRISTMAS CARD - PROFESSIONAL STYLES
   ======================================== */

/* Perspective Container */
.perspective {
    perspective: 1500px;
}

/* 3D Card */
.card {
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.card.flipped {
    transform: rotateY(180deg);
}

/* Card Faces */
.face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.front {
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
    z-index: 1;
}

/* Glow Text */
.glow-text {
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 200, 100, 0.3),
        0 0 60px rgba(255, 150, 50, 0.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Swing Animation */
@keyframes swing {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}

.animate-swing {
    animation: swing 3s ease-in-out infinite;
    transform-origin: top center;
}

.animate-swing-delayed {
    animation: swing 3s ease-in-out infinite;
    animation-delay: 1.5s;
    transform-origin: top center;
}

/* Twinkle */
@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

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

.animate-twinkle-delayed {
    animation: twinkle 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* Spin Slow */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* Pulse Subtle */
@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-pulse-subtle {
    animation: pulse-subtle 3s ease-in-out infinite;
}

/* Bounce Gentle */
@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-bounce-gentle {
    animation: bounce-gentle 2s ease-in-out infinite;
}

/* ========================================
   SNOW
   ======================================== */

.snowflake {
    position: absolute;
    color: white;
    user-select: none;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* ========================================
   FIREWORKS
   ======================================== */

.firework-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* ========================================
   SCROLLBAR
   ======================================== */

.back ::-webkit-scrollbar {
    width: 6px;
}

.back ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.back ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc2626, #9333ea);
    border-radius: 10px;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@supports (height: 100dvh) {
    body, main {
        min-height: 100dvh;
    }
}

/* Disable animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
