/* Custom styles for Talking Donkey Coffeehouse */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #200724;
}
::-webkit-scrollbar-thumb {
    background: #7B2D8B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a869b0;
}

/* Selection color */
::selection {
    background: rgba(245, 197, 24, 0.3);
    color: #f5eef7;
}

/* Base animation setup - content is VISIBLE by default */
.reveal {
    /* Default state: visible, no animation */
    opacity: 1;
    transform: none;
    transition: none;
}

/* Only apply animation styles when JS is enabled AND user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger delays for grid items */
    .reveal:nth-child(1) { transition-delay: 0ms; }
    .reveal:nth-child(2) { transition-delay: 100ms; }
    .reveal:nth-child(3) { transition-delay: 200ms; }
    .reveal:nth-child(4) { transition-delay: 300ms; }
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(32, 7, 36, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 139, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero text gradient */
.hero-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f5eef7 50%, #ffd933 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(245, 197, 24, 0.15);
}

/* Image reveal on hover */
.img-reveal {
    overflow: hidden;
}
.img-reveal img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-reveal:hover img {
    transform: scale(1.05);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Decorative line animation */
.deco-line {
    position: relative;
    overflow: hidden;
}
.deco-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F5C518, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.deco-line:hover::after {
    transform: translateX(0);
}

/* Parallax-like subtle movement for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Print styles */
@media print {
    nav, #hero, .reveal { 
        opacity: 1 !important; 
        transform: none !important; 
    }
    .bg-plum-950 { background: #fff !important; color: #000 !important; }
}
