@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:wght@300;400;500;600&family=Bebas+Neue&display=swap');

.sec-story-new {
    position: relative;
    background-color: #FFF8EE;
    color: #4A3B2F;
    padding: 150px 0;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Background Atmosphere */
.story-bg-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.story-bg-blobs {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: blobFloat 20s infinite alternate ease-in-out;
}

.blob-orange {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: #E67E22;
    opacity: 0.12;
}

.blob-red {
    bottom: -10%; right: -10%;
    width: 700px; height: 700px;
    background: #C0392B;
    opacity: 0.10;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.story-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: rotateSlow 60s infinite linear;
}

@keyframes rotateSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.story-wave {
    position: absolute;
    width: 100%;
    height: 120px;
    z-index: 5;
    pointer-events: none;
}

.wave-top { top: -1px; transform: rotate(180deg); }
.wave-bottom { bottom: -1px; }

.story-wave svg { width: 100%; height: 100%; }
.wave-top path { fill: #FF5722; }

/* Container */
.story-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

/* Header */
.story-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.est-badge {
    display: inline-block;
    background: #C0392B;
    color: #FFF8EE;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-header.is-visible .est-badge {
    transform: translateY(0);
    opacity: 1;
}

.title-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.quote-mark-bg {
    position: absolute;
    top: -60px; left: -80px;
    font-family: 'Playfair Display', serif;
    font-size: 150px;
    color: #C0392B;
    opacity: 0.15;
    line-height: 1;
}

.title-line-1 {
    font-size: 2rem;
    font-weight: 300;
    color: #7f6e60;
    letter-spacing: 8px;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.title-line-2 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    color: #C0392B;
    line-height: 1;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.story-header.is-visible .title-line-1,
.story-header.is-visible .title-line-2 {
    transform: translateX(0);
    opacity: 1;
}

.beating-heart {
    display: inline-block;
    font-size: 3rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
}

.title-underline {
    width: 200px;
    height: 15px;
    margin-top: 10px;
}

.draw-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.5s ease 1s;
}

.story-header.is-visible .draw-line {
    stroke-dashoffset: 0;
}

/* Pull Quote */
.story-pull-quote {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-style: italic;
    color: #C0392B;
    margin: 60px 0;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
    text-shadow: 0 0 20px rgba(192, 57, 43, 0.2);
}

.story-pull-quote.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Columns */
.story-columns {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.story-col-left {
    flex: 1;
    position: relative;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 1s ease;
}

.story-col-left.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.story-col-right {
    flex: 1;
}

/* Chef Visuals */
.chef-spotlight {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(230,126,34,0.4) 0%, rgba(230,126,34,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.chef-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    cursor: pointer;
}

.chef-hero {
    width: 300px;
    animation: chefIdle 4s infinite ease-in-out;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chef-wrapper:hover .chef-hero {
    transform: scale(1.1) rotate(5deg);
}

@keyframes chefIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chef-platform {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #6d5b4e;
    margin-top: -20px;
    font-style: italic;
}

.chef-speech-bubble {
    position: absolute;
    top: 10%; right: -20px;
    background: white;
    color: #C0392B;
    padding: 10px 15px;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.chef-speech-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

/* Badges */
.chef-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

.badge-item {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.badge-award { border: 2px solid #F1C40F; animation: slowRotate 20s infinite linear; }
.badge-rating .badge-icon { animation: twinkle 2s infinite alternate; }

@keyframes slowRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes twinkle { 0% { opacity: 0.5; } 100% { opacity: 1; } }

/* Text Chapters */
.story-chapter {
    margin-bottom: 30px;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.story-chapter.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.chapter-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.story-chapter:hover .chapter-icon {
    transform: translateY(-5px) scale(1.1);
}

.story-chapter h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #C0392B;
    margin-bottom: 10px;
}

.story-chapter p {
    color: #6d5b4e;
    line-height: 1.6;
}

.reveal-text span {
    opacity: 0;
    transform: translateY(10px);
    display: inline-block;
    transition: all 0.5s ease;
}

.reveal-text.is-revealed span {
    opacity: 1;
    transform: translateY(0);
}

.chapter-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 57, 43, 0.2), transparent);
    margin: 20px 0;
}

/* Stats Counter */
.story-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: perspective(600px) rotateY(-90deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card.is-visible {
    transform: perspective(600px) rotateY(0deg);
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.15);
}

.stat-icon-wrap {
    width: 60px; height: 60px;
    background: #FFF8EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    transition: transform 0.5s;
}

.stat-card:hover .stat-icon-wrap { transform: rotate(360deg); }

.stat-number-wrap {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: #C0392B;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f6e60;
    font-weight: 500;
}

/* Timeline */
.story-timeline-section {
    position: relative;
    padding: 60px 0;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.story-timeline-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-line-track {
    position: absolute;
    top: 80px; left: 5%; width: 90%;
    height: 4px;
    background: rgba(192, 57, 43, 0.2);
    border-radius: 2px;
}

.timeline-line-fill {
    height: 100%;
    width: 0%;
    background: #C0392B;
    border-radius: 2px;
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-points {
    position: relative;
    width: 90%;
    margin: 0 auto;
    height: 150px;
}

.t-point {
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    text-align: center;
    width: 140px;
}

.t-dot {
    width: 20px; height: 20px;
    background: white;
    border: 4px solid #C0392B;
    border-radius: 50%;
    margin: 0 auto 15px;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-timeline-section.is-visible .t-dot { transform: scale(1); }

.t-content {
    background: white;
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.story-timeline-section.is-visible .t-content {
    opacity: 1;
    transform: translateY(0);
}

.t-point:hover .t-dot {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(192, 57, 43, 0.4);
}

.t-point:hover .t-content {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.t-year {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: #E67E22;
}

.t-content p {
    font-size: 0.8rem;
    line-height: 1.2;
    margin: 5px 0;
}

.t-ill { font-size: 1.5rem; }

/* Quote Card */
.story-quote-card {
    background: linear-gradient(135deg, #2C1810 0%, #1A0F0A 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.story-quote-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sqc-left { flex: 0 0 300px; text-align: center; }
.sqc-chef { width: 100%; max-width: 250px; animation: chefIdle 6s infinite ease-in-out; }

.sqc-right {
    flex: 1;
    padding-left: 40px;
    position: relative;
    color: #FFF8EE;
}

.sqc-quote-mark-large {
    position: absolute;
    top: -20px; left: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    color: rgba(230, 126, 34, 0.2);
    line-height: 1;
}

.sqc-lines { margin-bottom: 20px; position: relative; z-index: 2; }

.sqc-line {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    margin: 5px 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s ease;
}

.story-quote-card.is-visible .sqc-line {
    opacity: 1;
    transform: translateX(0);
}

.sqc-author {
    font-size: 1.2rem;
    color: #E67E22;
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.story-quote-card.is-visible .sqc-author { opacity: 1; }

.sqc-signature-line {
    width: 150px; height: 2px;
    background: #E67E22;
    margin-top: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease 1s;
}

.story-quote-card.is-visible .sqc-signature-line { transform: scaleX(1); }

.sqc-hat-icon {
    position: absolute;
    bottom: -20px; right: 20px;
    font-size: 80px;
    opacity: 0.1;
    animation: rotateSlow 30s infinite linear;
}

@media (max-width: 768px) {
    .sec-story-new { padding: 60px 0; overflow: hidden; }
    .story-container { width: 100%; padding: 0 15px; box-sizing: border-box; }
    
    /* Header Responsive */
    .story-header { margin-bottom: 40px; padding: 0; text-align: center; width: 100%; }
    .est-badge { font-size: 0.8rem; padding: 5px 12px; margin-bottom: 10px; transform: none !important; opacity: 1 !important; }
    .title-wrapper { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .title-line-1 { font-size: 1.1rem; letter-spacing: 4px; transform: none !important; opacity: 1 !important; margin: 0; }
    .title-line-2 { font-size: 2.5rem; transform: none !important; opacity: 1 !important; margin: 0; }
    .quote-mark-bg { font-size: 60px; top: -25px; left: 50%; transform: translateX(-50%) !important; }
    .title-underline { width: 100px; height: 10px; }
    .beating-heart { font-size: 1.8rem; }
    
    .story-pull-quote { font-size: 1.4rem; margin: 30px 0; padding: 0; transform: none !important; opacity: 1 !important; width: 100%; }
    
    /* Columns and Chef */
    .story-columns { 
        display: block !important;
        width: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important;
    }
    .story-col-left { 
        width: 100% !important; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        transform: none !important; 
        opacity: 1 !important; 
        margin: 40px 0 0 0 !important;
    }
    .story-col-right { 
        width: 100% !important; 
        text-align: center; 
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .chef-spotlight { width: 220px; height: 220px; }
    .chef-hero { width: 160px; }
    
    /* Chapters Responsive */
    .story-chapter { 
        margin: 0 0 40px 0 !important; 
        transform: none !important; 
        opacity: 1 !important; 
        text-align: center !important; 
        width: 100% !important;
        padding: 0 !important;
        display: block !important;
    }
    .chapter-icon { font-size: 1.8rem; margin-bottom: 5px; }
    .story-chapter h3 { font-size: 1.3rem; margin-bottom: 8px; width: 100%; }
    .story-chapter p { font-size: 0.95rem; line-height: 1.6; color: #555; width: 100%; margin: 0; }
    
    /* Stats */
    .story-stats { 
        grid-template-columns: 1fr 1fr; 
        gap: 10px; 
        margin-bottom: 40px; 
        width: 100%; 
    }
    @media (max-width: 350px) {
        .story-stats { grid-template-columns: 1fr; }
    }
    .stat-card { padding: 15px 10px; transform: none !important; opacity: 1 !important; }
    .stat-number-wrap { font-size: 1.8rem; }
    
    /* Timeline Fixes */
    .story-timeline-section { 
        display: block !important; 
        padding: 40px 0 !important; 
        overflow-x: auto !important; 
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    .timeline-line-track { 
        width: 600px !important; 
        left: 0 !important; 
        top: 60px !important; 
        position: absolute !important;
    }
    .timeline-points { 
        width: 600px !important; 
        display: flex !important; 
        gap: 10px !important; 
        padding: 0 20px 40px 20px !important; 
        position: relative !important;
        height: auto !important;
    }
    .t-point { 
        position: relative !important; 
        transform: none !important; 
        width: 130px !important; 
        flex-shrink: 0 !important; 
        top: 0 !important;
        left: 0 !important;
    }
    
    /* Quote Card */
    .story-quote-card { 
        display: block !important;
        padding: 50px 20px 40px !important; 
        margin: 80px 0 20px 0 !important; 
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        box-sizing: border-box;
        overflow: visible !important; /* Crucial: make sure chef's head isn't cut off */
        position: relative;
    }
    .sqc-left { 
        margin-top: -80px !important; /* Reduced negative margin */
        margin-bottom: 20px !important; 
        width: 100% !important; 
        text-align: center !important; 
        position: relative;
        z-index: 10;
    }
    .sqc-chef { max-width: 140px !important; height: auto; }
    .sqc-right { padding: 0 !important; width: 100% !important; }
    .sqc-line { font-size: 1rem; line-height: 1.5; white-space: normal !important; width: 100% !important; margin: 8px 0; }
}
