/* ========================================
   FOOD CELEBRATION SECTION
   ======================================== */

.food-celebration {
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

.food-celebration .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Animated hands ---- */
.food-hand {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: none;          /* no transition — keyframes do the work */
}

.food-hand img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

/* --- RESTING (off-screen) positions --- */

.food-from-top {
    top: -100px;
    left: 50%;
    width: 480px;
    transform: translateX(-50%) translateY(-300px) rotate(-10deg);
}

.food-from-left {
    left: -60px;
    top: 50%;
    width: 500px;
    transform: translateY(-50%) translateX(-400px) rotate(-20deg);
}

.food-from-right {
    right: -60px;
    top: 50%;
    width: 370px;
    transform: translateY(-50%) translateX(400px) scaleX(-1) rotate(20deg);
}



.food-from-bottom {
    bottom: -40px;
    left: 50%;
    width: 580px !important;
    transform: translateX(-50%) translateY(400px) rotate(10deg);
    animation-delay: 0.5s !important;
}

/* --- ACTIVATED: section scrolled into view --- */

.food-celebration.in-view .food-from-top {
    animation: slideFromTop 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.food-celebration.in-view .food-from-left {
    animation: slideFromLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
}

.food-celebration.in-view .food-from-right {
    animation: slideFromRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s forwards;
}


.food-celebration.in-view .food-from-bottom {
    animation: slideFromBottom 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s forwards;
}

.food-celebration.in-view .food-celebration-content {
    animation: fadeInScale 0.8s ease-out 0.35s forwards;
}

/* --- Keyframes --- */

@keyframes slideFromTop {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-300px) rotate(-10deg); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0)      rotate(0deg);   }
}

@keyframes slideFromRight {
    0%   { opacity: 0; transform: translateY(-50%) translateX(400px) scaleX(-1) rotate(20deg); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0)     scaleX(-1) rotate(0deg);  }
}

@keyframes slideFromLeft {
    0%   { opacity: 0; transform: translateY(-50%) translateX(-400px) rotate(-20deg); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0)      rotate(0deg);   }
}

@keyframes slideFromBottom {
    0%   { opacity: 0; transform: translateX(-50%) translateY(400px) rotate(10deg); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0)     rotate(0deg);  }
}

@keyframes fadeInScale {
    0%   { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1);    }
}

/* ---- Center content ---- */
.food-celebration-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: scale(0.85);
}

.food-celebration-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.2;
}

.highlight-text {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.celebration-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 32px;
}

.celebration-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.celebration-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-emoji {
    font-size: 36px;
}

.stat-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-celebration {
    background: linear-gradient(135deg, var(--primary), #00a86b);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-celebration:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.btn-celebration i {
    margin-left: 8px;
}

/* ===== Responsive ===== */

@media (max-width: 1200px) {
    .food-from-right { right: -30px; width: 280px; }
    .food-from-left  { left:  -60px; width: 400px; }
}

@media (max-width: 950px) {
    .food-celebration { padding: 80px 20px; }

    .food-from-top    { width: 420px !important; }
    .food-from-right  { top: 10px; right: -30px; width: 260px !important; }
    .food-from-left   { top: 10px; left:  -50px; width: 370px !important; }
    .food-from-bottom { width: 320px !important; }

    .food-celebration-content { padding: 40px 30px; }
    .food-celebration-content h2 { font-size: 32px; }
}

@media (max-width: 700px) {
    .food-celebration { padding: 80px 20px; }

    .food-from-top    { width: 420px !important; }
    .food-from-right  { top: 10px; right: -30px; width: 200px !important; }
    .food-from-left   { top: 10px; left:  -50px; width: 300px !important; }

    .food-celebration-content { padding: 40px 30px; }
    .food-celebration-content h2 { font-size: 32px; }
}

@media (max-width: 540px) {
    .food-celebration { padding: 60px 20px; }
    .food-celebration .container { min-height: 420px; }

    .food-from-top    { width: 320px !important; top: -50px; }
    .food-from-right  { right: -30px; width: 160px !important;  }
    .food-from-left   { left:  -50px; width: 260px !important;  }

    .food-celebration-content { padding: 30px 20px; }
    .food-celebration-content h2 { font-size: 26px; }
    .celebration-subtitle { font-size: 16px; }
    .celebration-stats { gap: 20px; }
    .stat-emoji { font-size: 28px; }
    .stat-text  { font-size: 12px; }

    .food-celebration.in-view .food-from-left {
        animation: slideFromLeft 1s cubic-bezier(0.34, 1.56, 0.54, 0.8) 1s forwards;
    }

    .food-celebration.in-view .food-from-right {
        animation: slideFromRight 1s cubic-bezier(0.34, 1.56, 0.54, 0.8) 1.5s forwards;
    }
}

@media (max-width: 400px) {
    .food-celebration { padding: 60px 20px; }
    .food-celebration .container { min-height: 420px; }

    .food-from-top    { width: 280px !important; top: -50px; }
    .food-from-right  { right: -30px; width: 100px !important;  }
    .food-from-left   { left:  -70px; width: 200px !important;  }

    .food-celebration.in-view .food-from-left {
        animation: slideFromLeft 1s cubic-bezier(0.34, 1.56, 0.54, 0.85) 1s forwards;
    }

    .food-celebration.in-view .food-from-right {
        animation: slideFromRight 1s cubic-bezier(0.34, 1.56, 0.54, 0.85) 1.5s forwards;
    }

}



/* ========================================
   UPDATED WHY BARAKEAT SECTION
   ======================================== */

/* Why Barakeat - Circular image cards */
.why-circles-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.why-circle-card {
    text-align: center;
    max-width: 260px;
    transition: transform 0.4s ease;
}

.why-circle-card:hover {
    transform: translateY(-8px);
}


.why-circle-img{
    position: relative;
    display: flex;
    margin: 0 auto;
    align-items: center;
}

.why-circle-img img {
    /* margin-top: -20px;
    margin-right: 7px; */
    align-self: center;
    transform: scale(1.5) translateY(-5px);
  /* increase from whatever it was */
}

.why-circle-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 61, 36, 0.15);
    border: 4px solid #003d24;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.why-circle-card:hover .why-circle-img {
    box-shadow: 0 12px 40px rgba(0, 61, 36, 0.25);
    border-color: #F4CA16;
}

.why-circle-img img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.why-circle-card:hover .why-circle-img img {
    transform: scale(1.1);
}

.why-circle-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #003d24;
    margin: 0 0 10px;
}

.why-circle-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .why-circles-row {
        gap: 40px;
    }
    .why-circle-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 600px) {
    .why-circles-row {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }
    .why-circle-img {
        width: 140px;
        height: 140px;
    }
    .why-circle-card h3 {
        font-size: 20px;
    }
}

/* ========================================
   WHY BARAKEAT - Circle Card Animations
   Desktop: bounce from top  |  Mobile: slide from sides (R, L, R)
   ======================================== */

/* Hidden state before animation */
.why-circle-anim {
    opacity: 0;
}

/* DESKTOP: bounce from top */
@media (min-width: 769px) {
    .why-circle-anim {
        transform: translateY(-120px) scale(0.6);
    }
    .why-circle-anim.circle-visible[data-circle="1"] {
        animation: circleBounceDown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0s forwards;
    }
    .why-circle-anim.circle-visible[data-circle="2"] {
        animation: circleBounceDown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    }
    .why-circle-anim.circle-visible[data-circle="3"] {
        animation: circleBounceDown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
    }
}

@keyframes circleBounceDown {
    0%   { opacity: 0; transform: translateY(-120px) scale(0.6); }
    70%  { opacity: 1; transform: translateY(10px) scale(1.05); }
    85%  { transform: translateY(-5px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* MOBILE: slide from sides (right, left, right) */
@media (max-width: 768px) {
    .why-circle-anim[data-circle="1"] {
        transform: translateX(100px);
    }
    .why-circle-anim[data-circle="2"] {
        transform: translateX(-100px);
    }
    .why-circle-anim[data-circle="3"] {
        transform: translateX(100px);
    }
    .why-circle-anim.circle-visible[data-circle="1"] {
        animation: circleSlideFromRight 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0s forwards;
    }
    .why-circle-anim.circle-visible[data-circle="2"] {
        animation: circleSlideFromLeft 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards;
    }
    .why-circle-anim.circle-visible[data-circle="3"] {
        animation: circleSlideFromRight 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
    }
}

@keyframes circleSlideFromRight {
    0%   { opacity: 0; transform: translateX(100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes circleSlideFromLeft {
    0%   { opacity: 0; transform: translateX(-100px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ========================================
   FOOD CELEBRATION - BARAKEAT Brand Expand
   Fast title that appears after bag animation
   ======================================== */
.food-brand-title {
    position: absolute;
    top: 105%;
    z-index: 20;
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #003d24;
    text-align: center;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    text-shadow: 0 4px 20px rgba(0, 61, 36, 0.2);
}

.food-celebration.in-view .food-brand-title {
    animation: brandExpand 0.5s cubic-bezier(0.16, 1, 0.3, 1) 2.8s forwards;
}

@keyframes brandExpand {
    0%   { opacity: 0; transform: scale(0); }
    50%  { opacity: 1; transform: scale(1.15); }
    75%  { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 950px) {
    .food-brand-title {
        top: 95%;
        font-size: 48px;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    .food-brand-title {
        top: 90%;
        font-size: 48px;
        letter-spacing: 4px;
    }
}

@media (max-width: 400px) {
    .food-brand-title {
        font-size: 36px;
        letter-spacing: 3px;
    }
}

/* ========================================
   HOW IT WORKS - Step Keyword Labels
   Large yellow brand-title text on each step
   ======================================== */
.demo-step-keyword {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #F4CA16;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.08);
    line-height: 1.15;
    margin-bottom: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.demo-step.active .demo-step-keyword {
    opacity: 1;
    transform: translateY(0);
}

/* On the green background section, make keyword stand out more */
.green-bg-section .demo-step-keyword {
    color: #F4CA16;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.15);
    font-size: 24px;
}

/* ========================================
   FLOATING BUBBLE ANIMATIONS
   For decorative circles in How It Works
   ======================================== */
.bubble-float {
    animation: bubbleFloat 6s ease-in-out infinite;
}

.bubble-float-alt {
    animation: bubbleFloatAlt 8s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -20px); }
    50% { transform: translate(-10px, -35px); }
    75% { transform: translate(20px, -15px); }
}

@keyframes bubbleFloatAlt {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-20px, 15px); }
    66% { transform: translate(15px, -25px); }
}

@media (max-width: 768px) {
    .demo-step-keyword {
        font-size: 16px;
    }

    .green-bg-section .demo-step-keyword {
        font-size: 18px;
    }
}
