/* Winter Frozen Diamond Theme CSS */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;800&display=swap');

body {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    min-height: 100vh;
    font-family: 'Kanit', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* Snowflake Container */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    user-select: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) translateX(var(--drift));
        opacity: 0;
    }
}

/* Frosted Glass Card */
.card-frost {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-frost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    /* transform handled by JS for 3D tilt */
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Sparkle Effect on Cards */
.card-frost::before {
    content: '✨';
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 1.2em;
    opacity: 0;
    animation: sparkleFloat 2s ease-in-out infinite;
    pointer-events: none;
}

.card-frost::after {
    content: '✨';
    position: absolute;
    bottom: 15%;
    right: 15%;
    font-size: 0.8em;
    opacity: 0;
    animation: sparkleFloat 2.5s ease-in-out infinite 0.5s;
    pointer-events: none;
}

@keyframes sparkleFloat {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    50% {
        opacity: 0.9;
        transform: translateY(-10px) scale(1);
    }
}

/* Ice Crystal Button */
.btn-crystal {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 15px rgba(0, 210, 255, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-crystal:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 25px rgba(0, 210, 255, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Shimmer Effect on Button */
.btn-crystal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* Text Styles */
.text-ice-gradient {
    background: linear-gradient(to bottom, #ffffff 0%, #b3e5fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
}

.text-glow-white {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.text-contrast-blue {
    color: #81d4fa;
    font-weight: 500;
}

/* Logo Frost Effect */
.logo-frost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    animation: frostPulse 4s infinite alternate;
}

@keyframes frostPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
        border-color: rgba(255, 255, 255, 0.8);
    }
}

/* --- Entrance Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D Tilt Perspective */
.perspective-container {
    perspective: 1000px;
}

.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}