/* Custom Styles for Rustic Roost Cafe */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d74068, #f59e0b);
    border-radius: 4px;
}

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

/* Hero Fade Animations */
@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade {
    animation: heroFade 0.8s ease-out forwards;
    opacity: 0;
}

/* Floating Card Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

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

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

.float-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.float-card-2 {
    animation: float2 3.5s ease-in-out infinite;
}

.float-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

.float-card-4 {
    animation: float4 3s ease-in-out infinite;
}

/* Scroll Line Animation */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 48px; }
    50% { opacity: 1; height: 56px; }
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* Reveal Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.reveal-up {
    opacity: 0;
    animation: revealUp 0.8s ease-out forwards;
}

.reveal-left {
    opacity: 0;
    animation: revealLeft 0.8s ease-out forwards;
}

.reveal-right {
    opacity: 0;
    animation: revealRight 0.8s ease-out forwards;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-fade,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        animation: none;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.5s ease-in-out;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Image Hover Effects */
.rounded-2xl overflow-hidden {
    position: relative;
}

.rounded-2xl overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(67, 7, 24, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* Glassmorphism Cards */
.bg-dark-700\/50 {
    background: rgba(26, 26, 32, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Border Gradient Effect */
.border-gradient {
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(215, 64, 104, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Focus Styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Button Hover Glow */
button:hover {
    box-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.3);
}

/* Selection Color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fce7eb;
}
