/* Custom Styles for Joy Café */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background-color: #FF6B6B;
    color: #1A1A1A;
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #FF6B6B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF5252;
}

/* Image Reveal Animations */
.reveal-image {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .reveal-image,
    .reveal-card {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button Hover Effects */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Glass Morphism */
.glass {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8A8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Noise Texture Overlay */
.noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar Transition */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* Geometric Shape Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-reverse-animation {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Card Hover Effects */
.reveal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
}

/* Image Hover Zoom */
.reveal-image img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .reveal-image,
    .reveal-card {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-charcoal-900,
    .bg-charcoal-800 {
        background: white !important;
        color: black !important;
    }
}
