/* ========================================
   3Bs Kitchen - Custom Styles (Glossy Edition)
   ======================================== */

/* ---- Animations ---- */

/* Hero badge pulse */
@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }
}

.animate-pulse-badge {
    animation: pulse-badge 2.5s ease-in-out infinite;
}

/* Scroll indicator bounce */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(10px) translateX(-50%);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* Fade in up on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* ---- Glossy Shine Animation ---- */

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(200%) rotate(25deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 160, 23, 0.2), 0 0 40px rgba(212, 160, 23, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 160, 23, 0.4), 0 0 60px rgba(212, 160, 23, 0.2);
    }
}

/* ---- Glassmorphism Cards ---- */

.glass-card {
    background: rgba(255, 250, 245, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 160, 23, 0.15);
    box-shadow:
        0 8px 32px rgba(59, 31, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-card-dark {
    background: rgba(59, 31, 11, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 160, 23, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---- Glossy Buttons ---- */

.btn-glossy {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.btn-glossy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(25deg);
    animation: shine 4s ease-in-out infinite;
}

/* ---- Glossy Price Tags ---- */

.price-glossy {
    background: linear-gradient(135deg, #D4A017 0%, #F5D061 50%, #D4A017 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow:
        0 2px 10px rgba(212, 160, 23, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---- Hero Section ---- */

.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(212, 160, 23, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(212, 160, 23, 0.05) 0%, transparent 50%);
}

#hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#hero .text-brand-gold {
    text-shadow: 0 0 40px rgba(212, 160, 23, 0.5);
}

/* ---- Navigation ---- */

#navbar {
    background: transparent;
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(59, 31, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(212, 160, 23, 0.2);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

/* Hamburger animation */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu open state */
#mobile-menu.open {
    display: block;
    max-height: 400px;
}

/* ---- Glossy Cards ---- */

/* Menu card hover lift with glow */
.group:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(59, 31, 11, 0.15),
        0 0 20px rgba(212, 160, 23, 0.1);
}

/* Card shine effect on hover */
.group {
    position: relative;
    overflow: hidden;
}

.group::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 5;
}

.group:hover::after {
    left: 150%;
}

/* ---- USP Cards Glossy ---- */

#about .rounded-2xl.p-6 {
    background: rgba(255, 250, 245, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, 0.12);
    box-shadow:
        0 4px 20px rgba(59, 31, 11, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#about .rounded-2xl.p-6:hover {
    background: rgba(255, 250, 245, 0.95);
    box-shadow:
        0 10px 40px rgba(59, 31, 11, 0.1),
        0 0 20px rgba(212, 160, 23, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* ---- Timing Cards Glossy ---- */

#how-it-works .rounded-2xl.p-8 {
    background: rgba(255, 250, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 8px 30px rgba(59, 31, 11, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

#how-it-works .rounded-2xl.p-8:hover {
    box-shadow:
        0 12px 40px rgba(59, 31, 11, 0.1),
        0 0 15px rgba(212, 160, 23, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ---- Section Backgrounds with Glossy Depth ---- */

#about {
    background: linear-gradient(180deg, #FDF6EC 0%, #FFF8F0 50%, #FDF6EC 100%);
}

#how-it-works {
    background: linear-gradient(180deg, #FDF6EC 0%, #FFFAF5 50%, #FDF6EC 100%);
}

#menu {
    background: linear-gradient(180deg, #3B1F0B 0%, #2A1508 50%, #3B1F0B 100%);
}

#delivery {
    background: linear-gradient(180deg, #3B1F0B 0%, #1A0F06 50%, #3B1F0B 100%);
}

/* ---- Glossy Hummus Section ---- */

#menu .rounded-2xl:last-child {
    box-shadow:
        0 8px 40px rgba(212, 160, 23, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---- Buttons ---- */

/* Gold outline button fill effect */
a[href="#menu"]:hover {
    box-shadow: inset 0 0 0 50px rgba(212, 160, 23, 1);
}

/* WhatsApp button glow */
a[href*="wa.me"] {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

a[href*="wa.me"]:hover {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 15px rgba(37, 211, 102, 0.3);
}

/* ---- CTA Section Glossy ---- */

section:has(> .relative.max-w-4xl) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ---- Gallery Strip Glossy Overlay ---- */

section[aria-label="Food gallery"] .aspect-square {
    position: relative;
}

section[aria-label="Food gallery"] .aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* ---- Gold Divider Lines ---- */

.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A017, #F5D061, #D4A017, transparent);
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #3B1F0B;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4A017, #F5D061);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F5D061, #D4A017);
}

/* ---- Selection ---- */

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #1A0F06;
}

/* ---- Smooth scroll ---- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ---- Focus styles for accessibility ---- */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Glossy Image Frames ---- */

.menu-img-frame {
    position: relative;
}

.menu-img-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

/* ---- Floating Particles (Decorative) ---- */

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

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

/* ---- Text Gradient Shine ---- */

.text-shine {
    background: linear-gradient(90deg, #D4A017, #F5D061, #D4A017);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ---- Reduce motion for accessibility ---- */

@media (prefers-reduced-motion: reduce) {
    .animate-pulse-badge {
        animation: none;
    }

    .animate-bounce-slow {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn-glossy::before {
        animation: none;
    }

    .price-glossy {
        animation: none;
    }

    .text-shine {
        animation: none;
    }

    .group::after {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---- Utility: Body scroll lock (for mobile menu) ---- */

body.menu-open {
    overflow: hidden;
}

/* ---- Print styles ---- */

@media print {
    #navbar,
    .animate-bounce-slow,
    [class*="fixed"] {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
