/* ========================================
   微点科技官网 - 行业案例特定样式
   ======================================== */

/* Hero Section - Cases Specific */
.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.05;
}

.hero-content {
    max-width: 900px;
}

.hero p {
    margin: 0 auto 2.5rem;
}

.hero-decoration:nth-child(1) { top: 15%; left: 8%; }
.hero-decoration:nth-child(2) { top: 25%; right: 10%; }
.hero-decoration:nth-child(3) { bottom: 20%; left: 15%; }
.hero-decoration:nth-child(4) { bottom: 25%; right: 12%; }

/* ========================================
   Category Filter Tabs
   ======================================== */
.filter-section {
    padding: 0 8%;
    max-width: 1600px;
    margin: 0 auto;
    position: sticky;
    top: 100px;
    z-index: 50;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.filter-tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--shadow-ambient);
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
    backface-visibility: hidden;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.filter-tab:hover {
    background: var(--surface-container-low);
    color: var(--on-surface);
}

.filter-tab.active {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 80, 203, 0.3);
}

/* ========================================
   Main Cases Section
   ======================================== */
main {
    padding: 3rem 8% 80px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ========================================
   Bento Grid Layout
   ======================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(320px, auto); /* Increased row height for more visual impact */
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Case Card Styles */
.case-card {
    background: var(--surface-container-lowest);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-ambient);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

/* Card Size Variants */
.case-card.large {
    grid-column: span 8;
    grid-row: span 2;
}

.case-card.medium {
    grid-column: span 4;
    grid-row: span 2;
}

.case-card.wide {
    grid-column: span 6;
}

.case-card.standard {
    grid-column: span 4;
}

/* Card Visual Header */
.card-visual {
    position: relative;
    flex: 1; /* Allow image area to expand and fill available space */
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Smoothly fade out the entire visual area to blend with text content */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

/* Large and Medium cards get a more prominent visual base */
.case-card.large .card-visual,
.case-card.medium .card-visual {
    min-height: 300px;
}

/* Gradient Backgrounds */
.card-visual.gradient-blue { background: var(--gradient-blue); }
.card-visual.gradient-purple { background: var(--gradient-purple); }
.card-visual.gradient-teal { background: var(--gradient-teal); }
.card-visual.gradient-orange { background: var(--gradient-orange); }
.card-visual.gradient-rose { background: var(--gradient-rose); }

/* Pattern Overlays */
.card-visual::before {
    content: '';
    position: absolute;
    inset: 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='%23ffffff' fill-opacity='0.08'%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");
    opacity: 0.5;
}

/* Media Placeholder for Future Client Images/Logos */
.media-placeholder {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px dashed rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.media-placeholder svg {
    width: 32px;
    height: 32px;
}

.case-card:hover .media-placeholder {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-style: solid;
    color: rgba(255, 255, 255, 0.9);
}

.case-card.large .media-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 24px;
}

.case-card.large .media-placeholder svg {
    width: 40px;
    height: 40px;
}

/* Real Product Image Styling */
.card-visual.with-real-product {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Break boundaries */
}

/* Ensure background pattern respects container while product breaks out */
.card-visual.with-real-product::before {
    border-radius: inherit;
    overflow: hidden;
}

/* Fade the bottom of the gradient to blend seamlessly into the card text area */
/* Using a high-fidelity scrim gradient for a smoother 'fade-to-white' transition */
.card-visual.with-real-product::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.013) 8.1%,
        rgba(255, 255, 255, 0.049) 15.5%,
        rgba(255, 255, 255, 0.104) 22.5%,
        rgba(255, 255, 255, 0.175) 29%,
        rgba(255, 255, 255, 0.259) 35.3%,
        rgba(255, 255, 255, 0.352) 41.2%,
        rgba(255, 255, 255, 0.45) 47.1%,
        rgba(255, 255, 255, 0.55) 52.9%,
        rgba(255, 255, 255, 0.648) 58.8%,
        rgba(255, 255, 255, 0.741) 64.7%,
        rgba(255, 255, 255, 0.825) 71%,
        rgba(255, 255, 255, 0.896) 77.5%,
        rgba(255, 255, 255, 0.951) 84.5%,
        rgba(255, 255, 255, 0.987) 91.9%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 3; /* Above product image to create seamless blend to white content */
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.real-product-image {
    width: 100%;
    height: 100%;
    max-height: none; /* Remove previous restriction */
    object-fit: cover; /* Center crop as requested */
    object-position: center;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.15));
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2; /* Sit above background */
    position: relative;
}

.case-card:hover .real-product-image {
    transform: scale(1.08); /* Focus on scale for cover images */
}

/* Card Industry Badge */
.industry-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--on-surface);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 4;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.industry-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Card Content */
.card-content {
    padding: 1.5rem 1.75rem 1.75rem;
    flex: 0 0 auto; /* Content height is determined by its text */
    display: flex;
    flex-direction: column;
    background: var(--surface-container-lowest);
    position: relative;
    z-index: 4;
}

.case-card.large .card-content {
    padding: 2rem 2.5rem 2.5rem;
}

.card-category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--on-surface);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.case-card.large .card-title {
    font-size: 1.75rem;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    line-height: 1.65;
    /* Limit description length to maintain grid consistency */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.case-card.large .card-description {
    -webkit-line-clamp: 4; /* Large cards can show a bit more */
}

/* Card Tags */
.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.card-tag {
    padding: 0.375rem 0.875rem;
    background: var(--surface-container-low);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--on-surface-muted);
}

/* ========================================
   Section Headers - Cases Specific
   ======================================== */
.section-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

.section-header-content {
    max-width: 600px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.section-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    line-height: 1.2;
}

.section-description {
    font-size: 1rem;
    color: var(--on-surface-variant);
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* ========================================
   Highlight Section
   ======================================== */
.highlight-section {
    background: var(--on-surface);
    padding: 100px 8%;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.highlight-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.highlight-header .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.highlight-header .section-label::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.6));
}

.highlight-header h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: white;
}

.highlight-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
    backface-visibility: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.highlight-card .client-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight-card .client-logo span {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.highlight-card .client {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.highlight-card .number {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.highlight-card .number .counter-value,
.highlight-card .number .text-value {
    display: inline-block;
}

.highlight-card .desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ========================================
   More Cases Marquee
   ======================================== */
.more-cases-section {
    padding: 80px 0;
    background: var(--surface-container-low);
    overflow: hidden;
    transform: translateZ(0);
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
}

.more-cases-header {
    text-align: center;
    padding: 0 8%;
    margin-bottom: 3rem;
}

.marquee-container {
    position: relative;
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--surface-container-low), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--surface-container-low), transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee 40s linear infinite;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    flex-shrink: 0;
    padding: 1.25rem 2rem;
    background: var(--surface-container-lowest);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
    box-shadow: var(--shadow-ambient);
    transition: all 0.2s ease;
}

.marquee-item:hover {
    transform: scale(1.02);
}

.marquee-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.marquee-icon.blue { background: rgba(0, 102, 255, 0.1); }
.marquee-icon.purple { background: rgba(139, 92, 246, 0.1); }
.marquee-icon.teal { background: rgba(20, 184, 166, 0.1); }
.marquee-icon.orange { background: rgba(249, 115, 22, 0.1); }
.marquee-icon.rose { background: rgba(244, 63, 94, 0.1); }

.marquee-icon span {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.marquee-content h4 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.25rem;
}

.marquee-content p {
    font-size: 0.8125rem;
    color: var(--on-surface-muted);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 100px 8%;
    background: var(--surface);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: var(--gradient-blue);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    inset: 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='%23ffffff' fill-opacity='0.1'%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");
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Hover Carousel
   ======================================== */
.hover-carousel {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hover-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.15);
    transition: opacity 0.6s ease;
}

.hover-carousel-img--1 {
    opacity: 1;
}

.hover-carousel-img--2 {
    opacity: 0;
}

.case-card:hover .hover-carousel-img--1 {
    animation: carousel-fade-a 6s ease-in-out infinite;
}

.case-card:hover .hover-carousel-img--2 {
    animation: carousel-fade-b 6s ease-in-out infinite;
}

@keyframes carousel-fade-a {
    0%, 45%   { opacity: 1; }
    50%, 95%  { opacity: 0; }
    100%      { opacity: 1; }
}

@keyframes carousel-fade-b {
    0%, 45%   { opacity: 0; }
    50%, 95%  { opacity: 1; }
    100%      { opacity: 0; }
}

/* ========================================
   Auto Carousel (JS-driven) with Indicators
   ======================================== */
.auto-carousel .hover-carousel-img {
    transition: opacity 0.5s ease;
}

.auto-carousel .hover-carousel-img--1 {
    opacity: 1;
}

.auto-carousel .hover-carousel-img--2 {
    opacity: 0;
}

.auto-carousel.is-active .hover-carousel-img--1.is-hidden {
    opacity: 0;
}

.auto-carousel.is-active .hover-carousel-img--2.is-visible {
    opacity: 1;
}

/* When JS carousel is active, disable the pure-CSS hover animation */
.case-card:hover .auto-carousel.is-active .hover-carousel-img--1,
.case-card:hover .auto-carousel.is-active .hover-carousel-img--2 {
    animation: none;
}

/* Carousel Indicator Dots */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    transform: scale(1.2);
}

/* ========================================
   Food Ferment Carousel - contain + green bg
   ======================================== */
[data-carousel="food-ferment"] {
    background: #1a5c2a;
}

[data-carousel="food-ferment"] .hover-carousel-img {
    object-fit: contain;
    transform: scale(1);
    padding: 8%;
}

/* ========================================
   Responsive - Cases Specific
   ======================================== */
@media (max-width: 1200px) {
    .case-card.large { grid-column: span 12; }
    .case-card.medium { grid-column: span 6; }
    .case-card.wide { grid-column: span 6; }
    .case-card.standard { grid-column: span 6; }
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .filter-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 1.5rem 60px;
        min-height: 60vh;
    }
    
    main,
    .highlight-section,
    .cta-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .case-card.large,
    .case-card.medium,
    .case-card.wide,
    .case-card.standard {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .cta-container {
        padding: 2.5rem 1.5rem;
    }
}
