/* Custom styling for Toyota Nakhonphanom Systems Portal */

/* Base font adjustments */
body {
    background-color: #0d0e10;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Glassmorphism utility */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Keyframe animations */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 10px 25px -5px rgba(235, 10, 30, 0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
        box-shadow: 0 20px 35px -5px rgba(235, 10, 30, 0.5);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Micro-interaction classes */
.animate-pulse-slow {
    animation: pulse-slow 3s infinite ease-in-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

/* Custom interactive effects */
.hover-scale {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-scale:hover {
    transform: translateY(-4px) scale(1.02);
}

.hover-scale:active {
    transform: translateY(-1px) scale(0.995);
}

/* Card hover glow accent */
.menu-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(235, 10, 30, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

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