/* Custom Styles for PSU Food Carts */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

/* Gold Gradient Text */
.text-transparent.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #C05640, #D4AF37);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #A04030, #F4D03F);
}

/* Hover Effects */
.group:hover .group-hover\\:translate-x-2 {
    transform: translateX(0.5rem);
}

/* Navbar Transition */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.1);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Image Loading Optimization */
img {
    will-change: transform;
}

/* Selection Color */
::selection {
    background: #D4AF37;
    color: #0a0a0a;
}

::-moz-selection {
    background: #D4AF37;
    color: #0a0a0a;
}
