/* ===================================
   RABAH CUISINE - ADVANCED ANIMATIONS
   Micro-animations & Effects
   =================================== */

/* ===================================
   MAGNETIC BUTTON EFFECT
   =================================== */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-magnetic:hover {
    transform: translate(var(--mouse-x, 0), var(--mouse-y, 0));
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(15px);
}

.btn-magnetic:hover::before {
    opacity: 0.5;
}

/* ===================================
   ENHANCED CARD ANIMATIONS
   =================================== */
.card-hover-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}

.card-hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.2);
}

/* Shine Effect on Hover */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.card-shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from Left */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal from Right */
.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Reveal */
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   PARALLAX EFFECT
   =================================== */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    will-change: transform;
}

/* ===================================
   TYPEWRITER EFFECT
   =================================== */
.typewriter-container {
    display: inline-block;
    position: relative;
}

.typewriter-text {
    color: var(--color-primary);
    position: relative;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--color-primary);
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===================================
   FLOATING ANIMATION
   =================================== */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float-delay-1 { animation-delay: -1s; }
.float-delay-2 { animation-delay: -2s; }
.float-delay-3 { animation-delay: -3s; }

/* ===================================
   PULSE GLOW EFFECT
   =================================== */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 140, 66, 0.6);
    }
}

/* ===================================
   PROCESS SECTION STYLES
   =================================== */
.process-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1410 0%, #2C2416 50%, #1a1410 100%);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A574' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-header .section-subtitle {
    color: var(--color-primary);
}

.process-header .section-title {
    color: #F5F1E8;
}

.process-header .section-description {
    color: #B8A898;
}

.process-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.process-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.process-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-step:hover .process-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.4);
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: #F5F1E8;
    color: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.process-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #F5F1E8;
    margin-bottom: 0.75rem;
}

.process-description {
    color: #B8A898;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Connector Line */
.process-connector {
    position: absolute;
    top: 50px;
    left: calc(50% + 60px);
    width: calc(100% - 60px);
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    z-index: 1;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 10px solid var(--color-secondary);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.process-step:last-child .process-connector {
    display: none;
}

/* Animated Progress Line */
.process-line-animated {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.3);
    animation: progressLine 3s ease-in-out infinite;
}

@keyframes progressLine {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .process-step {
        max-width: 100%;
    }

    .process-connector {
        display: none;
    }
}

/* ===================================
   BLOG PREVIEW SECTION
   =================================== */
.blog-preview-section {
    padding: 6rem 0;
    background: var(--color-neutral-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.15);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--color-neutral-black);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--color-neutral-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 1rem;
}

.blog-card-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.blog-card-link:hover svg {
    transform: translateX(5px);
}

.blog-view-all {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   INTERACTIVE ELEMENTS
   =================================== */
/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* ===================================
   LOADING SKELETON
   =================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
