/* ============================================
   STOMACH SUPPORT - CINEMATIC STORY VIDEO
   Inspired by Disney/Pixar AI Story Videos
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700;900&family=Amiri:wght@400;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4aa;
    --primary-dark: #00a88a;
    --primary-glow: rgba(0, 212, 170, 0.4);
    --secondary: #7c5cfc;
    --accent: #ff6b9d;
    --accent-warm: #ff9a5c;
    --bg-dark: #050810;
    --bg-scene: #0a0e1a;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.5);
    --overlay-dark: rgba(5, 8, 16, 0.7);
    --overlay-darker: rgba(5, 8, 16, 0.85);
    --subtitle-bg: rgba(0, 0, 0, 0.75);
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --gold: #ffd700;
    --font-main: 'Cairo', 'Tajawal', sans-serif;
    --font-story: 'Amiri', 'Cairo', serif;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* --- Cinema Container (16:9 letterbox) --- */
.cinema-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cinema-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
}

/* --- Scene System --- */
.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.scene.fade-out {
    opacity: 0;
    z-index: 5;
}

/* --- Scene Background Image --- */
.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Ken Burns Effect Variations */
.scene.active .scene-bg.ken-burns-zoom-in {
    animation: kenBurnsZoomIn 12s ease-in-out forwards;
}

.scene.active .scene-bg.ken-burns-zoom-out {
    animation: kenBurnsZoomOut 12s ease-in-out forwards;
}

.scene.active .scene-bg.ken-burns-left {
    animation: kenBurnsLeft 12s ease-in-out forwards;
}

.scene.active .scene-bg.ken-burns-right {
    animation: kenBurnsRight 12s ease-in-out forwards;
}

.scene.active .scene-bg.ken-burns-up {
    animation: kenBurnsUp 12s ease-in-out forwards;
}

@keyframes kenBurnsZoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes kenBurnsZoomOut {
    0% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes kenBurnsLeft {
    0% { transform: scale(1.1) translateX(0); }
    100% { transform: scale(1.15) translateX(-3%); }
}

@keyframes kenBurnsRight {
    0% { transform: scale(1.1) translateX(0); }
    100% { transform: scale(1.15) translateX(3%); }
}

@keyframes kenBurnsUp {
    0% { transform: scale(1.1) translateY(0); }
    100% { transform: scale(1.15) translateY(-3%); }
}

/* --- Scene Overlay (darkens the image for text readability) --- */
.scene-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.overlay-dark {
    background: linear-gradient(
        to top,
        rgba(5, 8, 16, 0.95) 0%,
        rgba(5, 8, 16, 0.5) 30%,
        rgba(5, 8, 16, 0.2) 50%,
        rgba(5, 8, 16, 0.5) 80%,
        rgba(5, 8, 16, 0.8) 100%
    );
}

.overlay-bottom {
    background: linear-gradient(
        to top,
        rgba(5, 8, 16, 0.95) 0%,
        rgba(5, 8, 16, 0.6) 25%,
        rgba(5, 8, 16, 0.15) 50%,
        transparent 100%
    );
}

.overlay-full-dark {
    background: rgba(5, 8, 16, 0.92);
}

.overlay-vignette {
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(5, 8, 16, 0.7) 100%
    );
}

/* --- Scene Content --- */
.scene-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    text-align: center;
}

.scene-content.align-bottom {
    justify-content: flex-end;
    padding-bottom: 120px;
}

/* --- Title Scenes (Intro/Outro) --- */
.intro-text {
    font-family: var(--font-story);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.intro-text.animate-in {
    animation: fadeSlideUp 1.5s ease-out forwards;
}

.scene-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.8);
}

.scene-title.animate-in {
    animation: scaleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scene-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), #00b4d8, var(--secondary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

.scene-title .gradient-warm {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent), var(--gold));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Subtitle System (Bottom Text) --- */
.subtitle-container {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 85%;
    max-width: 900px;
    text-align: center;
    pointer-events: none;
}

.subtitle-text {
    display: inline-block;
    font-family: var(--font-main);
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.8;
    padding: 12px 30px;
    background: var(--subtitle-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
}

.subtitle-text.animate-in {
    animation: subtitleAppear 0.8s ease-out forwards;
}

.subtitle-text.animate-out {
    animation: subtitleDisappear 0.5s ease-in forwards;
}

@keyframes subtitleAppear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes subtitleDisappear {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* --- Typewriter Effect --- */
.typewriter {
    overflow: hidden;
    border-left: 3px solid var(--primary);
    white-space: nowrap;
    margin: 0 auto;
    font-family: var(--font-main);
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-white);
    opacity: 0;
}

.typewriter.animate-in {
    opacity: 1;
    animation: typewriter-border 0.8s step-end infinite;
}

@keyframes typewriter-border {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* --- Narrative Text (Story paragraphs) --- */
.narrative-text {
    font-family: var(--font-main);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-light);
    line-height: 2;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
}

.narrative-text.animate-in {
    animation: fadeSlideUp 1s ease-out forwards;
}

.narrative-text.delay-1 { animation-delay: 0.3s; }
.narrative-text.delay-2 { animation-delay: 0.6s; }
.narrative-text.delay-3 { animation-delay: 0.9s; }
.narrative-text.delay-4 { animation-delay: 1.2s; }
.narrative-text.delay-5 { animation-delay: 1.5s; }

/* --- Highlight Words --- */
.highlight {
    color: var(--primary);
    font-weight: 700;
}

.highlight-danger {
    color: var(--danger);
    font-weight: 700;
}

.highlight-success {
    color: var(--success);
    font-weight: 700;
}

.highlight-gold {
    color: var(--gold);
    font-weight: 700;
}

.highlight-accent {
    color: var(--accent);
    font-weight: 700;
}

/* --- Scene Chapter Indicator --- */
.chapter-indicator {
    position: absolute;
    top: 40px;
    right: 50px;
    z-index: 20;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.25);
    padding: 6px 18px;
    border-radius: 20px;
}

.scene.active .chapter-indicator {
    animation: fadeIn 0.8s ease-out 0.5s forwards;
}

/* --- Diagnosis Mock UI --- */
.diagnosis-mock {
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 550px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.diagnosis-mock.animate-in {
    animation: mockAppear 0.8s ease-out forwards;
}

@keyframes mockAppear {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }

.mock-header-title {
    margin-right: auto;
    margin-left: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.mock-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disease-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.disease-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.disease-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.disease-organ {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.disease-bar-track {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.disease-bar-fill {
    height: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    width: 0%;
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .disease-bar-fill.fill-high {
    width: var(--fill);
    background: linear-gradient(90deg, #ff4757, #ff6b6b);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.scene.active .disease-bar-fill.fill-medium {
    width: var(--fill);
    background: linear-gradient(90deg, #ffa502, #ffc048);
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.3);
}

.scene.active .disease-bar-fill.fill-low {
    width: var(--fill);
    background: linear-gradient(90deg, #2ed573, #7bed9f);
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.3);
}

/* --- Food Guide Cards --- */
.food-guide-row {
    display: flex;
    gap: 24px;
    width: 90%;
    max-width: 800px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.food-guide-row.animate-in {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.food-guide-card {
    flex: 1;
    max-width: 350px;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.food-guide-card.good {
    background: rgba(46, 213, 115, 0.08);
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.food-guide-card.bad {
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.food-card-title {
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.food-guide-card.good .food-card-title {
    background: rgba(46, 213, 115, 0.1);
    border-bottom: 1px solid rgba(46, 213, 115, 0.15);
    color: var(--success);
}

.food-guide-card.bad .food-card-title {
    background: rgba(255, 71, 87, 0.1);
    border-bottom: 1px solid rgba(255, 71, 87, 0.15);
    color: var(--danger);
}

.food-items-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.food-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.food-item-row span:first-child {
    font-size: 1.3rem;
}

/* --- Doctor Cards --- */
.doctor-cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.doctor-cards-container.animate-in {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.doctor-card-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 22px;
    text-align: center;
    min-width: 200px;
    max-width: 240px;
    backdrop-filter: blur(16px);
}

.doctor-avatar-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(124, 92, 252, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.doctor-avatar-wrap::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(46, 213, 115, 0); }
}

.doctor-card-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-white);
}

.doctor-card-item .doctor-specialty {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.doctor-card-item .doctor-stars {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.doctor-contact-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* --- Stats Counter --- */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
}

.stats-row.animate-in {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- CTA Button --- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    padding: 16px 44px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px var(--primary-glow);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn.animate-in {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 50px var(--primary-glow);
}

/* --- Progress Bar --- */
.video-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0 4px 4px 0;
    width: 0%;
    transition: width 0.8s ease;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Scene Counter --- */
.scene-counter {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 18px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scene-counter.visible {
    opacity: 1;
}

/* --- Play/Pause Indicator --- */
.play-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-indicator.show {
    animation: playIndicatorPulse 0.8s ease-out forwards;
}

@keyframes playIndicatorPulse {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

.play-indicator svg {
    width: 40px;
    height: 40px;
    fill: white;
}

/* --- Ambient Particles --- */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Glow Effects --- */
.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* --- Logo Animation --- */
.logo-reveal {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    opacity: 0;
    transform: scale(0.6);
}

.logo-reveal.animate-in {
    animation: logoReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.6); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Shared Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleReveal {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

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

/* --- Emoji Float --- */
.floating-emoji {
    font-size: 3rem;
    display: inline-block;
    animation: floatSoft 3s ease-in-out infinite;
    margin-bottom: 20px;
}

/* --- Heartbeat Line for Intro --- */
.heartbeat-svg {
    width: 250px;
    height: 60px;
    margin-bottom: 30px;
    opacity: 0;
}

.heartbeat-svg.animate-in {
    opacity: 1;
}

.heartbeat-svg .ecg-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    fill: none;
    stroke-width: 3;
}

.heartbeat-svg.animate-in .ecg-path {
    animation: drawLine 2.5s ease-in-out forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* --- Controls Hint --- */
.controls-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    transition: opacity 0.5s ease;
}

/* --- Feature Grid for story scenes --- */
.feature-grid-story {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 90%;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
}

.feature-grid-story.animate-in {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.feature-grid-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.feature-grid-item .feature-emoji {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.feature-grid-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.feature-grid-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Tech Badges --- */
.tech-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    opacity: 0;
}

.tech-badges.animate-in {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .scene-content {
        padding: 40px 30px;
    }

    .subtitle-container {
        bottom: 30px;
        width: 92%;
    }

    .subtitle-text {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .food-guide-row {
        flex-direction: column;
        align-items: center;
    }

    .doctor-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .feature-grid-story {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .chapter-indicator {
        top: 20px;
        right: 20px;
    }
}
