/* ==========================================================================
   Lunch4You - Animations & Creative UI/UX
   ========================================================================== */

/* Smooth scrolling & reduced motion */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ========== KEYFRAMES ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-6px) scale(1.1); }
    60% { transform: translateY(2px) scale(0.98); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(223, 19, 113, 0.3); }
    50% { box-shadow: 0 0 20px 4px rgba(223, 19, 113, 0.15); }
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -8px) scale(1.02); }
    66% { transform: translate(-6px, 6px) scale(0.98); }
}

/* ========== ANIMATE ON SCROLL ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.animate-on-scroll.delay-1 { transition-delay: 0.15s; }
.animate-on-scroll.delay-2 { transition-delay: 0.3s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Index / Mr. Lunch – hyrje scroll më e thellë (pa blur) */
.page-mrlunch .animate-on-scroll {
    transform: translateY(min(92px, 16vh)) scale(0.91);
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-mrlunch .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.page-mrlunch .about-vorteile-parallax.animate-on-scroll {
    transform: translateY(52px) scale(0.97);
}
.page-mrlunch .about-vorteile-parallax.animate-on-scroll.visible {
    transform: translateY(0) scale(1);
}
.page-mrlunch .animate-on-scroll.delay-1 { transition-delay: 0.16s; }
.page-mrlunch .animate-on-scroll.delay-2 { transition-delay: 0.32s; }
.page-mrlunch .animate-on-scroll.delay-3 { transition-delay: 0.48s; }
.page-mrlunch .animate-on-scroll.delay-4 { transition-delay: 0.64s; }
.page-mrlunch .animate-on-scroll.delay-5 { transition-delay: 0.8s; }
.page-mrlunch .animate-on-scroll.delay-6 { transition-delay: 0.96s; }

/* Opsionale: hyrje anash */
.page-mrlunch .animate-on-scroll.animate-from-left {
    transform: translateX(min(-64px, -10vw)) scale(0.94);
}
.page-mrlunch .animate-on-scroll.animate-from-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.page-mrlunch .animate-on-scroll.animate-from-right {
    transform: translateX(min(64px, 10vw)) scale(0.94);
}
.page-mrlunch .animate-on-scroll.animate-from-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* ========== HERO ENHANCEMENTS ========== */
.hero-split h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}
.hero-split .lead {
    animation: fadeInUp 1s ease-out 0.4s both;
}
.hero-split .d-flex {
    animation: fadeInUp 1s ease-out 0.6s both;
}
.hero-split .hero-food-img {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Hero brand – staggered reveal */
.hero-brand .hero-badge { animation: fadeInUp 0.7s ease-out 0.1s both; }
.hero-brand .hero-title { animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero-brand .hero-lead { animation: fadeInUp 0.8s ease-out 0.35s both; }
.hero-brand .hero-cta-wrap { animation: fadeInUp 0.8s ease-out 0.5s both; }
.hero-brand .hero-trust { animation: fadeInUp 0.8s ease-out 0.6s both; }

/* ========== SECTION STYLING ========== */
section {
    position: relative;
}
.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lunch4you-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--lunch4you-primary), transparent);
    border-radius: 2px;
}

/* ========== FEATURE CARDS - Creative ========== */
.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
    background: white !important;
    box-shadow: 0 4px 20px rgba(223, 19, 113, 0.06);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lunch4you-primary), var(--lunch4you-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(223, 19, 113, 0.15);
}
.feature-card:hover::after {
    transform: scaleX(1);
}
.feature-icon {
    /* No animation on icon */
}
.feature-card:hover .feature-icon {
    /* Icon stays static on hover */
}

/* ========== BANNER CARDS - Parallax & Creative ========== */
.banner-card {
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.banner-card img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.banner-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(223, 19, 113, 0.2);
}
.banner-card:hover img {
    transform: scale(1.1);
}
.banner-overlay-dark {
    transition: opacity 0.4s ease;
}
.banner-card:hover .banner-overlay-dark {
    opacity: 0.95;
}
.banner-caption {
    transition: transform 0.4s ease;
}
.banner-card:hover .banner-caption {
    transform: translateY(-4px);
}
.banner-caption .small {
    opacity: 0.9;
    transition: opacity 0.3s;
}
.banner-card:hover .banner-caption .small {
    opacity: 1;
}

/* ========== STEP CARDS - Animated ========== */
.step-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px;
}
.step-card:hover {
    transform: translateY(-6px);
    background: rgba(201, 125, 154, 0.04);
    box-shadow: 0 12px 32px rgba(201, 125, 154, 0.2);
}
.step-icon {
    transition: transform 0.4s ease;
}
.step-card:hover .step-icon {
    animation: iconBounce 0.5s ease;
}
.step-circle {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(223, 19, 113, 0.2);
}

/* ========== FACT CARDS - Bento style ========== */
.fact-card {
    border-radius: 20px !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent !important;
    background: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.fact-card:hover {
    border-color: rgba(223, 19, 113, 0.3) !important;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(223, 19, 113, 0.12);
}
.fact-card i, .fact-card .bi {
    transition: transform 0.4s ease;
}
.fact-card:hover i, .fact-card:hover .bi {
    transform: scale(1.2) rotate(-5deg);
}

/* ========== BUTTONS - Micro-interactions ========== */
.btn-lunch4you, .btn-cta, .btn-light {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-lunch4you:hover, .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(223, 19, 113, 0.35);
}
.btn-lunch4you:active, .btn-cta:active {
    transform: translateY(0);
}
.btn-lunch4you::after, .btn-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-lunch4you:active::after, .btn-cta:active::after {
    width: 300px;
    height: 300px;
}

/* ========== NAVBAR - Glassmorphism on scroll ========== */
header {
    transition: all 0.4s ease;
}
header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--lunch4you-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 80%;
}

/* ========== FAQ ACCORDION - Smooth ========== */
.accordion-item {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}
.accordion-item:hover {
    background: rgba(223, 19, 113, 0.03);
}
.accordion-collapse {
    transition: height 0.4s ease;
}
.accordion-button {
    transition: all 0.3s ease;
}

/* ========== HEALTHY SECTION - Parallax (no img hover, uses bg) ========== */

/* ========== CTA SECTION - Animated gradient ========== */
.cta-section {
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 8s linear infinite;
    pointer-events: none;
}

/* ========== FOOTER - Subtle animation ========== */
.footer-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}
.footer-link:hover {
    padding-left: 6px;
}
.site-footer .logo-img-footer {
    transition: transform 0.4s ease;
}
.site-footer a:hover .logo-img-footer {
    transform: scale(1.05);
}
