/**
 * Neural Core Use Cases Page Styles
 * Real-world implementation examples
 * Following best practices from TODO-CLEANUP.md
 * Optimized for performance, mobile responsiveness, and SEO
 */

/* ========================================================================
   INLINE TEXT LINKS - Native content links for SEO
   ======================================================================== */
.inline-text-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 6, 0.3);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.inline-text-link:hover {
    text-decoration-color: rgba(217, 119, 6, 0.8);
    color: rgba(217, 119, 6, 0.9);
}

/* Subtle glow on hover for dark backgrounds */
.inline-text-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.5), transparent);
    animation: linkGlow 0.5s ease;
}

@keyframes linkGlow {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* For light text areas, adjust link visibility */
.about-description .inline-text-link,
.what-description .inline-text-link,
.layer-description .inline-text-link,
.faq-answer-content .inline-text-link {
    text-decoration-color: rgba(116, 238, 221, 0.3);
}

.about-description .inline-text-link:hover,
.what-description .inline-text-link:hover,
.layer-description .inline-text-link:hover,
.faq-answer-content .inline-text-link:hover {
    color: rgba(116, 238, 221, 0.9);
    text-decoration-color: rgba(116, 238, 221, 0.8);
}

:root {
    --header-height: 75px;
}

/* ========================================================================
   CRITICAL ABOVE-THE-FOLD STYLES
   ======================================================================== */

/* Skip link accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #FF966C;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 4px;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Alpha badge for Neural Pathways */
.alpha-badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 4px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #000000;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    line-height: 1;
}

/* ========================================================================
   HERO SECTION - Updated from specialties structure
   ======================================================================== */

.hero-section {
    height: 100vh;
    width: 100%;
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neural-black, #0A0A0B);
    margin: 0;
    box-sizing: border-box;
}

/* Hero background image with opacity */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../images/NP-NC-UC-Hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.hero-section .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 5vw 0 5vw;
    position: relative;
    z-index: 2;
}

.hero-section .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-section .hero-text-content {
    padding: 0;
    text-align: left;
    min-width: 56vw;
}

.hero-right-space {
    /* Empty space for visual balance */
}

/* Hero text styles to match specialties page */
.hero-section .hero-label {
    color: #74EEDD;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 24px;
}

.hero-section .hero-heading {
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 200;
    line-height: 1.25;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 40px;
}

.hero-section .hero-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3c1361, #d97706);
}

.hero-section .hero-tagline {
    color: #d97706;
    font-size: 1.35rem;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-section .hero-description {
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.85;
    max-width: none;
    margin: 0;
}

/* Responsive Hero Styles */
@media (max-width: 1024px) {
    .hero-section .hero-content {
        gap: 40px;
    }
    .hero-section .hero-heading {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    .hero-section .hero-tagline,
    .hero-section .hero-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }
    .hero-section .container {
        padding: calc(var(--header-height) + 20px) 24px 40px 24px;
    }
    .hero-section .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-section .hero-text-content {
        min-width: auto;
        text-align: center;
    }
    .hero-section .hero-heading {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 32px;
        padding-bottom: 30px;
    }
    .hero-section .hero-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .hero-section .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }
    .hero-section .hero-description {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    .hero-right-space {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section .hero-heading {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    .hero-section .hero-tagline,
    .hero-section .hero-description {
        font-size: 1rem;
    }
}

/* ========================================================================
   ABOUT SECTION - "APPLICATIONS"
   ======================================================================== */

.neural-about-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--neural-black);
    position: relative;
    box-sizing: border-box;
    border-top: 1px solid var(--neural-white);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.neural-about-section .container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-label {
    font-size: 1.375rem;
    font-weight: 300;
    color: var(--neural-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 200;
    line-height: 1.05;
    color: var(--neural-white);
    letter-spacing: -0.02em;
    margin: 0 0 2.5rem 0;
}

.about-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 600px;
}

.about-description {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.about-description:last-child {
    margin-bottom: 0;
}

/* ========================================================================
   DATA FLOW VISUALIZATION - ONBOARDING SECTION
   ======================================================================== */

.data-flow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem;
}

.data-flow-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
}

.data-flow-tree {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: -60px auto 0;
    height: 500px;
    padding-bottom: 20px;
}

/* Data Categories */
.data-categories-left,
.data-categories-right {
    position: absolute;
    width: 38%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.data-categories-left {
    left: 0%;
    top: -110px;
}

.data-categories-right {
    right: 0%;
    top: -40px;
}

.data-category {
    position: relative;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.data-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neural-orange);
    transform: scale(1.02);
}

.category-number {
    position: absolute;
    top: -12px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3c1361, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
}

.category-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 0.4rem 0;
}

.category-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* SVG Connection Line */
.connection-line {
    z-index: 5;
}

.connection-line path {
    stroke-dasharray: 10, 10;
    animation: dashFlow 20s linear infinite;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -100;
    }
}

/* Flow Lines */
.flow-lines {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100%;
    pointer-events: none;
    display: none; /* Hide since we're using Mermaid now */
}

.flow-trunk {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 2px;
    height: 40%;
    background: linear-gradient(to bottom, rgba(116, 238, 221, 0.3), transparent);
    transform: translateX(-50%);
}

.flow-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(116, 238, 221, 0.2), transparent);
    opacity: 0;
    animation: flowPulse 3s ease-in-out infinite;
}

.flow-line-1 {
    left: 20%;
    top: 15%;
    height: 60%;
    transform: rotate(-15deg);
    transform-origin: bottom center;
    animation-delay: 0s;
}

.flow-line-2 {
    right: 20%;
    top: 15%;
    height: 60%;
    transform: rotate(15deg);
    transform-origin: bottom center;
    animation-delay: 0.5s;
}

.flow-line-3 {
    left: 25%;
    top: 45%;
    height: 40%;
    transform: rotate(-10deg);
    transform-origin: bottom center;
    animation-delay: 1s;
}

.flow-line-4 {
    right: 25%;
    top: 45%;
    height: 40%;
    transform: rotate(10deg);
    transform-origin: bottom center;
    animation-delay: 1.5s;
}

/* Flow Particles */
.flow-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neural-orange);
    border-radius: 50%;
    opacity: 0;
    animation: particleFlow 4s linear infinite;
}

.particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 80%; animation-delay: 0.7s; }
.particle:nth-child(3) { left: 25%; animation-delay: 1.4s; }
.particle:nth-child(4) { left: 75%; animation-delay: 2.1s; }
.particle:nth-child(5) { left: 30%; animation-delay: 2.8s; }
.particle:nth-child(6) { left: 70%; animation-delay: 3.5s; }

/* Animations */
@keyframes flowPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes particleFlow {
    0% {
        top: 10%;
        opacity: 0;
        transform: scale(0);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        top: 90%;
        opacity: 0;
        transform: scale(0);
    }
}

/* Color variations for categories */
.data-category[data-category="volume"] .category-number {
    background: linear-gradient(135deg, #74EEDD, #3c1361);
}

.data-category[data-category="frequency"] .category-number {
    background: linear-gradient(135deg, #4A90E2, #3c1361);
}

.data-category[data-category="quality"] .category-number {
    background: linear-gradient(135deg, #9B59B6, #3c1361);
}

.data-category[data-category="security"] .category-number {
    background: linear-gradient(135deg, #E74C3C, #3c1361);
}

/* Data Lake/Warehouse Card */
.data-lake-container {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.data-lake-card {
    text-align: center;
    border-color: rgba(116, 238, 221, 0.3);
}

.data-lake-card:hover {
    border-color: var(--neural-orange);
}

/* Connect flow trunk to data lake */
.flow-trunk {
    height: 45%;
    background: linear-gradient(to bottom, rgba(116, 238, 221, 0.3), rgba(217, 119, 6, 0.2));
}

/* Tablet Responsive (iPads and similar) */
@media (max-width: 1024px) {
    .data-flow-container {
        padding: 2rem;
    }
    
    .data-category {
        min-height: 160px;
        padding: 1rem 1.25rem;
    }
    
    .data-category .category-title {
        font-size: 1rem;
    }
    
    .data-category .category-desc {
        font-size: 0.875rem;
    }
    
    /* Adjust logo sizes for tablet */
    .data-category img {
        width: 50px !important;
        height: 40px !important;
    }
    
    /* Tools section for tablet */
    .tools-content {
        padding: 1.5rem;
    }
    
    .tool-item {
        margin-bottom: 1.5rem;
    }
    
    .tool-name {
        font-size: 0.95rem;
    }
    
    .tool-desc {
        font-size: 0.875rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Increase section heights on mobile */
    .neural-about-section,
    .neural-what-section {
        min-height: auto;
        padding: 80px 20px;
    }
    
    .data-flow-container {
        padding: 1rem;
        min-height: 600px;
    }
    
    .data-flow-tree {
        height: auto;
        min-height: 500px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-categories-left,
    .data-categories-right {
        position: relative !important;
        width: 100%;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-category {
        position: relative !important;
        width: 100%;
        min-height: 140px;
        padding: 1rem;
    }
    
    /* Stack logos vertically on mobile if needed */
    .data-category div[style*="display: flex"] {
        flex-wrap: wrap;
        padding: 5px 0 !important;
        margin-bottom: 35px !important;
    }
    
    /* Adjust logo container for mobile */
    .data-category picture {
        flex: 0 1 33.33% !important;
        min-width: 60px;
    }
    
    .data-category img {
        width: 45px !important;
        height: 36px !important;
    }
    
    .flow-lines,
    .connection-line {
        display: none !important;
    }
    
    .data-lake-container {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        max-width: none;
        margin-top: 2rem;
    }
    
    /* Tools section mobile optimization */
    .what-content {
        flex-direction: column;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .what-left,
    .what-right {
        width: 100%;
        max-width: 100%;
    }
    
    .tools-content {
        padding: 1.25rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .tools-headline {
        font-size: 1.5rem;
    }
    
    .tools-subheadline {
        font-size: 0.9rem;
    }
    
    .tool-item {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tool-item:last-child {
        border-bottom: none;
    }
    
    .tool-name {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .tool-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Small mobile optimization */
@media (max-width: 480px) {
    .data-category {
        padding: 0.875rem;
        min-height: 120px;
    }
    
    .data-category .category-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .data-category .category-desc {
        font-size: 0.8rem;
        bottom: 8px !important;
    }
    
    /* Make logos even smaller on very small screens */
    .data-category img {
        width: 40px !important;
        height: 32px !important;
    }
    
    /* Adjust logo row spacing */
    .data-category div[style*="display: flex"] {
        margin-bottom: 30px !important;
    }
    
    /* Tools on small mobile */
    .tools-content {
        padding: 1rem;
    }
    
    .tools-headline {
        font-size: 1.25rem;
    }
    
    .tool-name {
        font-size: 0.85rem;
    }
    
    .tool-desc {
        font-size: 0.8rem;
    }
}

/* ========================================================================
   WHAT SECTION - "USE CASES"
   ======================================================================== */

.neural-what-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--neural-black);
    position: relative;
    box-sizing: border-box;
    border-top: 1px solid var(--neural-white);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.neural-what-section .container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 60px;
}

.what-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
}

.what-label {
    font-size: 1.375rem;
    font-weight: 300;
    color: var(--neural-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.what-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 200;
    line-height: 1.05;
    color: var(--neural-white);
    letter-spacing: -0.02em;
    margin: 0;
}

.what-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
    max-width: 600px;
}

.what-description {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.what-description:last-child {
    margin-bottom: 0;
}

/* What Section Right Column */
.what-right {
    position: relative;
    min-height: 300px;
}

/* Data Lake Display in What Section */
.data-lake-display {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tools Content */
.tools-content {
    padding: 0;
    max-width: 800px;
}

.tools-headline {
    font-size: 1.75rem;
    font-weight: 300;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tools-subheadline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-style: italic;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-item:last-child {
    border-bottom: none;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #74EEDD;
    margin-bottom: 0.75rem;
    font-family: 'Courier New', monospace;
}

.tool-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(116, 238, 221, 0.3);
    font-style: italic;
}

/* ========================================================================
   STACKING SCROLL SECTIONS - STICKY BEHAVIOR
   ======================================================================== */

.section-stack-wrapper {
    position: relative;
    width: 100%;
    --stack-offset: 0;
    --stack-opacity: 1;
    --stack-scale: 1;
}

.section-stack-wrapper[data-stack="about"] {
    position: sticky;
    top: var(--header-height);
    z-index: 10;
}

.section-stack-wrapper[data-stack="what"] {
    position: sticky;
    top: var(--header-height);
    z-index: 11;
}

.section-stack-wrapper[data-stack="implementation"] {
    position: sticky;
    top: var(--header-height);
    z-index: 12;
}

.section-stack-wrapper[data-stack="results"] {
    position: sticky;
    top: var(--header-height);
    z-index: 13;
}

.section-stack-wrapper[data-stack="core"] {
    position: relative;
    z-index: 14;
    background: var(--neural-black);
    min-height: 100vh;
    margin-top: 0;
}


.section-stack-wrapper.is-covered {
    --stack-opacity: 0.7;
}

.section-stack-wrapper[data-stack="about"] .neural-about-section {
    opacity: var(--stack-opacity);
}

.section-stack-wrapper[data-stack="what"] .neural-what-section {
    opacity: var(--stack-opacity);
}

.section-stack-wrapper[data-stack="implementation"] .neural-about-section {
    opacity: var(--stack-opacity);
}

.section-stack-wrapper[data-stack="results"] .neural-what-section {
    opacity: var(--stack-opacity);
}

.fullscreen-section.specialty-section-1,
.fullscreen-section.specialty-section-2 {
    position: relative;
    z-index: 12;
    background: var(--neural-black);
    min-height: 100vh;
}

/* ========================================================================
   TECH LAYERS SECTION - Core Technology Use Cases
   ======================================================================== */

.tech-layers-section {
    padding: 100px 2.5vw;
    background: var(--neural-black);
    height: 100vh;
    border-top: 1px solid var(--neural-white);
    overflow-y: auto;
    box-sizing: border-box;
}

.tech-layers-section .container {
    max-width: 100%;
    width: 90vw;
    padding: 0 5vw;
    margin: 0 auto;
}

.tech-layers-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tech-layers-section .section-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-stack-wrapper .tech-layers-section .section-title::after,
.tech-layers-section .section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
}

.layers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.layer-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.layer-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--neural-purple);
    transform: translateY(-4px);
}

.layer-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
}

.layer-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.layer-features {
    list-style: none;
    padding: 0;
}

.layer-features li {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.layer-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neural-orange);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================================================
   USE CASE SECTIONS (ORIGINAL - kept for potential future use)
   ======================================================================== */

.fullscreen-section {
    position: relative;
    z-index: 12;
    background: var(--neural-black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}

/* Mobile adjustments */
@media (max-width: 968px) {
    .section-stack-wrapper[data-stack="about"],
    .section-stack-wrapper[data-stack="what"],
    .section-stack-wrapper[data-stack="implementation"],
    .section-stack-wrapper[data-stack="results"] {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 60px;
    }
    
    .neural-about-section,
    .neural-what-section {
        min-height: auto;
        height: auto;
        padding: 60px 20px;
    }
    
    .about-content,
    .what-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


@media (max-width: 1200px) {
    .layers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .tech-layers-section { padding: 60px 24px; }
    .layers-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .layer-card { padding: 2rem; }
}

.use-case-section-1 {
    background: #000000;
}

.use-case-section-2 {
    background: linear-gradient(180deg, #000000 0%, #0a0012 50%, #000000 100%);
}

.use-case-section-3 {
    background: #000000;
}

.use-case-content {
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

.use-case-header {
    margin-bottom: 60px;
    text-align: center;
}

.use-case-label {
    display: inline-block;
    color: #FF966C;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title,
.use-case-title {
    font-size: 3rem;
    font-weight: 200;
    margin: 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    padding-bottom: 24px;
}

.section-title::after,
.use-case-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 40px auto 0;
}

.use-case-challenge,
.use-case-solution,
.use-case-results {
    background: rgba(20, 20, 22, 0.8);
    border: 1px solid rgba(255, 150, 108, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-case-challenge::before,
.use-case-solution::before,
.use-case-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.use-case-challenge::before {
    background: linear-gradient(90deg, #ff4444, #ff6666);
}

.use-case-solution::before {
    background: linear-gradient(90deg, #8B5CF6, #a78bfa);
}

.use-case-results::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.use-case-challenge:hover,
.use-case-solution:hover,
.use-case-results:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 150, 108, 0.5);
    box-shadow: 0 20px 40px rgba(255, 150, 108, 0.15);
}

.use-case-challenge:hover::before,
.use-case-solution:hover::before,
.use-case-results:hover::before {
    opacity: 1;
}

.use-case-challenge h3,
.use-case-solution h3,
.use-case-results h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.use-case-challenge p,
.use-case-solution p,
.use-case-results p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.use-case-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-results li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.use-case-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* ========================================================================
   CTA SECTION
   ======================================================================== */

.cta-section {
    padding: 120px 5vw;
    background: var(--neural-black);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(217, 119, 6, 0.04) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 200;
    background: linear-gradient(135deg, #ffffff 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.neural-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.neural-btn--primary {
    background: linear-gradient(135deg, #8B5CF6, #d97706);
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.neural-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(217, 119, 6, 0.2);
    background: linear-gradient(135deg, #d97706, #8B5CF6);
}

.neural-btn--lg {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 1200px) {
    .fullscreen-section .container,
    .use-case-content {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .use-case-challenge,
    .use-case-solution,
    .use-case-results {
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .fullscreen-section .container,
    .use-case-content {
        padding: 0 20px;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .use-case-challenge,
    .use-case-solution,
    .use-case-results {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .use-cases-hero {
        padding: 80px 20px 60px;
    }
    
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .use-case-section {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .use-case-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .use-case-grid {
        gap: 24px;
    }
    
    .use-case-challenge,
    .use-case-solution,
    .use-case-results {
        padding: 30px;
    }
    
    .cta-section {
        padding: 80px 20px;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.75rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .use-case-challenge,
    .use-case-solution,
    .use-case-results {
        padding: 24px;
    }
    
    .use-case-challenge h3,
    .use-case-solution h3,
    .use-case-results h3 {
        font-size: 1.125rem;
    }
    
    .neural-btn--lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) and (hover: none) {
    .use-case-challenge:hover,
    .use-case-solution:hover,
    .use-case-results:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Touch-friendly interactions */
@media (pointer: coarse) {
    button, a, .clickable {
        min-height: 44px;
        padding: 12px;
    }
    
    .data-category:hover,
    .layer-card:hover {
        transform: none;
    }
}

/* Landscape orientation optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .section-stack-wrapper {
        min-height: 100vh;
    }
}

/* iPad Pro specific adjustments */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container {
        max-width: 95%;
    }
    
    .layers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .use-case-challenge,
    .use-case-solution,
    .use-case-results,
    .cta-section::before,
    .chat-bubble,
    .typing-indicator {
        animation: none;
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .data-category,
    .layer-card,
    .showcase-card {
        border: 2px solid rgba(255,255,255,0.3);
    }
    
    a:focus,
    button:focus {
        outline: 3px solid #FF966C;
        outline-offset: 2px;
    }
}

/* Analyze Section Chat Bubble */
.analyze-chat-bubble {
    position: absolute;
    right: 40px;
    top: calc(10vh - 15px);
    z-index: 10;
    opacity: 0;
}

.analyze-chat-bubble.animate-in {
    animation: slideInFromRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.5s;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    max-width: 480px;
}

.chat-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(116, 238, 221, 0.2);
    border-radius: 24px 24px 24px 4px;  /* Bottom right corner is sharp for tail */
    padding: 24px 32px;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(116, 238, 221, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Chat bubble tail pointing to the right */
.chat-content::before {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 12px;
    border-color: transparent transparent rgba(116, 238, 221, 0.2) transparent;
}

.chat-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 18px 10px;
    border-color: transparent transparent rgba(255, 255, 255, 0.03) transparent;
}

.chat-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
}

/* AI Status Indicator in left bubble */
.chat-content-left .ai-status-indicator {
    margin-top: 8px;
    padding-top: 8px;
    border-top: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-style: italic;
    min-height: 20px;
    opacity: 0;
    animation: fadeInStatus 0.5s forwards;
    animation-delay: 1s;
}

/* Completion message styling - matching right bubble */
.chat-content-left .ai-status-indicator .completion-message {
    font-style: normal;
    color: rgba(255, 255, 255, 0.9);
}

.chat-content-left .ai-status-indicator .completion-message p {
    margin: 0 0 12px 0;
    font-size: 14px !important;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
}

.chat-content-left .ai-status-indicator .completion-message p:last-child {
    margin-bottom: 0;
}

/* Completion images styling */
.completion-images {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.completion-img {
    width: calc(50% - 8px);
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(116, 238, 221, 0.2);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

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

@media (max-width: 768px) {
    .completion-images {
        flex-direction: column;
        gap: 12px;
    }
    
    .completion-img {
        width: 100%;
    }
}

.ai-status-indicator.show {
    opacity: 1;
}

.ai-status-indicator .status-dots {
    display: inline-block;
}

.ai-status-indicator .status-dots::after {
    content: '...';
    animation: typingAnimation 1.5s infinite;
    letter-spacing: 2px;
}

@keyframes fadeInStatus {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

/* Container for left chat bubble needs relative positioning */
#implementation .about-right {
    position: relative;
    min-height: 400px;
}

/* Left-side Chat Bubble (User message) */
.analyze-chat-bubble-left {
    position: absolute;
    top: -5px;
    left: 0;
    opacity: 0;
}

.analyze-chat-bubble-left.animate-in {
    animation: slideInFromLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.analyze-chat-bubble-left .chat-message {
    display: flex;
    align-items: flex-start;
    max-width: 500px;
    min-width: 500px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Expanded state - 90% of the 50vw right column */
.analyze-chat-bubble-left.expanded .chat-message {
    max-width: calc(45vw * 0.9); /* 90% of half viewport width */
    min-width: calc(45vw * 0.9);
}

/* Tablet styles (768px - 1024px) */
@media (max-width: 1024px) {
    .analyze-chat-bubble {
        right: 20px;
        top: 20px;
    }
    
    .analyze-chat-bubble-left {
        position: relative;
        top: 0;
        left: 0;
        margin-top: 20px;
    }
    
    .analyze-chat-bubble-left .chat-message {
        min-width: auto;
        max-width: 100%;
    }
    
    .analyze-chat-bubble-left.expanded .chat-message {
        max-width: 100%;
        min-width: auto;
    }
}

/* Mobile styles (less than 768px) */
@media (max-width: 768px) {
    /* Convert to static positioning for mobile */
    .analyze-chat-bubble {
        position: relative !important;
        right: auto;
        top: auto;
        margin: 20px 0;
        width: 100%;
    }
    
    .analyze-chat-bubble-left {
        position: relative !important;
        top: auto;
        left: auto;
        margin: 20px 0;
        width: 100%;
    }
    
    .analyze-chat-bubble .chat-message,
    .analyze-chat-bubble-left .chat-message {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .analyze-chat-bubble-left.expanded .chat-message {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    
    /* Adjust animations for mobile */
    .analyze-chat-bubble.animate-in {
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .analyze-chat-bubble-left.animate-in {
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.4s;
    }
}

.chat-content-left {
    background: rgba(60, 19, 97, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(60, 19, 97, 0.3);
    border-radius: 24px 24px 24px 4px;  /* Bottom left corner is sharp for tail */
    padding: 24px 32px;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(60, 19, 97, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: 500px;
    box-sizing: border-box;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Expanded state */
.analyze-chat-bubble-left.expanded .chat-content-left {
    min-width: calc(45vw * 0.9);
    width: calc(45vw * 0.9);
}

/* No position adjustment needed - bubble expands downward */

/* Tablet styles for chat content */
@media (max-width: 1024px) {
    .chat-content,
    .chat-content-left {
        min-width: auto;
        padding: 20px 24px;
    }
    
    .analyze-chat-bubble-left.expanded .chat-content-left {
        min-width: auto;
        width: 100%;
    }
}

/* Mobile styles for chat content */
@media (max-width: 768px) {
    .chat-content {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .chat-content-left {
        min-width: auto;
        width: 100%;
        padding: 16px 20px;
        border-radius: 16px;
    }
    
    .analyze-chat-bubble-left.expanded .chat-content-left {
        min-width: auto;
        width: 100%;
    }
    
    /* Hide chat bubble tail on mobile */
    .chat-content-left::before {
        display: none;
    }
    
    /* Adjust min-height for mobile */
    #implementation .about-right {
        min-height: auto;
        padding-top: 20px;
    }
}

/* Chat bubble tail pointing to the left */
.chat-content-left::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 20px 0;
    border-color: transparent rgba(60, 19, 97, 0.3) transparent transparent;
}

.chat-content-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 18px 0;
    border-color: transparent rgba(60, 19, 97, 0.2) transparent transparent;
}

.chat-content-left p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.6;
}

.chat-content-left p:first-child {
    margin-bottom: 12px;
    font-weight: 500;
}

.chat-content-left p:last-child {
    opacity: 0.7;
}

/* Typing Indicator */
.typing-indicator {
    color: #E74C3C;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.typing-indicator .dots {
    display: inline-block;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.typing-indicator .dots::after {
    content: '...';
    animation: typingAnimation 1.5s infinite;
}

.typing-indicator .dots {
    font-size: 0;
}

.typing-indicator .dots::after {
    font-size: 14px;
    letter-spacing: 2px;
}

/* Add fadeInUp animation for mobile */
@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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


/* Quarterly Showcase - Enhanced Card Styles */
.tech-layers-section.specialty-section-1 {
    overflow-x: hidden;
}

.tech-layers-section.specialty-section-1 .container {
    max-width: 100%;
    padding: 0;
}

.tech-layers-section.specialty-section-1 .layers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(480px, 1fr));
    gap: 3rem;
    max-width: 1650px;
    margin: 4rem auto;
    padding: 0 3rem;
}

.tech-layers-section.specialty-section-1 .layer-card {
    padding: 3.5rem;
    min-height: 550px;
}

/* Quarterly Showcase Styles */
.showcase-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(116, 238, 221, 0.05);
    border: 2px dashed rgba(116, 238, 221, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    color: rgba(116, 238, 221, 0.5);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.showcase-video {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(116, 238, 221, 0.3);
}

.showcase-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.showcase-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(116, 238, 221, 0.3);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.showcase-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 1700px) {
    .tech-layers-section.specialty-section-1 .layers-grid {
        grid-template-columns: repeat(3, minmax(440px, 1fr));
        max-width: 1500px;
    }
}

@media (max-width: 1550px) {
    .tech-layers-section.specialty-section-1 .layers-grid {
        grid-template-columns: repeat(3, minmax(400px, 1fr));
        max-width: 1350px;
        padding: 0 2.5rem;
    }
}

@media (max-width: 1400px) {
    .tech-layers-section.specialty-section-1 .layers-grid {
        grid-template-columns: repeat(3, minmax(360px, 1fr));
        max-width: 1200px;
        padding: 0 2rem;
    }
}

@media (max-width: 1250px) {
    .tech-layers-section.specialty-section-1 .layers-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .tech-layers-section.specialty-section-1 .layers-grid {
        margin: 4rem auto;
        padding: 0 20px;
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .tech-layers-section.specialty-section-1 .layers-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-video,
    .showcase-image,
    .showcase-placeholder {
        height: 170px;
    }
}
