/* ============================================
   Industry Demo Section - Image Background Layout
   Zencia.AI Theme - Matches Uploaded Design
   ============================================ */

.industry-demo-section {
    padding: 120px 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

/* Background overlay effect */
.industry-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/demo-bg-pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.industry-demo-section .container {
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */
.industry-demo-header {
    text-align: center;
    margin-bottom: 60px;
}

.industry-demo-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.industry-demo-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== MAIN CONTAINER ===== */
.main-demo-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
    min-height: 500px;
}

/* ===== LEFT SIDE: IMAGE BACKGROUND ===== */
.demo-image-background {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.demo-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    opacity: 0;
    transform: scale(1.1);
}

.demo-bg-image.active {
    opacity: 1;
    transform: scale(1);
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 217, 213, 0.1) 0%, 
        rgba(0, 139, 139, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ===== LEFT INDUSTRY INFO ===== */
.left-industry-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.left-industry-info:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.left-industry-title {
    color: var(--primary-teal);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.left-industry-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== FLOATING CALL BUTTON (REMOVED) ===== */
/* Removed floating-call-button styles */

/* ===== RIGHT CALL BUTTON ===== */
.right-call-button {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.call-now-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    width: 100%;
}

.call-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.call-now-btn:hover::before {
    left: 100%;
}

.call-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.5);
    background: linear-gradient(135deg, #ff9500 0%, #ff7000 100%);
}

.call-now-btn:active {
    transform: translateY(0);
}

.call-btn-text {
    position: relative;
    z-index: 1;
}

.call-btn-pulse {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid rgba(255, 140, 0, 0.6);
    border-radius: 12px;
    animation: callPulse 2s ease-out infinite;
}

@keyframes callPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* ===== AGENT STATUS INFO ===== */
.agent-info {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== RIGHT SIDE: INDUSTRY SELECTION PANEL ===== */
.industry-selection-panel {
    flex: 0.8;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header {
    margin-bottom: 30px;
}

.panel-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.panel-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== INDUSTRY GRID ===== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    flex: 1;
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.1), rgba(0, 139, 139, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.industry-card:hover::before,
.industry-card.active::before {
    opacity: 1;
}

.industry-card:hover,
.industry-card.active {
    transform: translateY(-2px);
    border-color: var(--primary-teal);
    box-shadow: 0 6px 20px rgba(0, 217, 213, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.industry-icon {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 213, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon,
.industry-card.active .industry-icon {
    background: rgba(0, 217, 213, 0.25);
    transform: scale(1.1);
}

.industry-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary-teal);
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon svg,
.industry-card.active .industry-icon svg {
    color: var(--accent-turquoise);
    transform: scale(1.1);
}

.industry-label {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.industry-card:hover .industry-label,
.industry-card.active .industry-label {
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .main-demo-container {
        flex-direction: column;
        max-width: 800px;
    }
    
    .demo-image-background {
        min-height: 400px;
    }
    
    .left-industry-info {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 20px;
    }
    
    .left-industry-title {
        font-size: 1.25rem;
    }
    
    .left-industry-description {
        font-size: 0.95rem;
    }
    
    .industry-selection-panel {
        padding: 30px 25px;
    }
    
    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .industry-card {
        padding: 16px 12px;
    }
    
    .right-call-button {
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .industry-demo-section {
        padding: 80px 0;
    }
    
    .industry-demo-header {
        margin-bottom: 40px;
    }
    
    .main-demo-container {
        margin: 0 20px;
        border-radius: 16px;
    }
    
    .demo-image-background {
        min-height: 300px;
    }
    
    .left-industry-info {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 16px;
    }
    
    .left-industry-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .left-industry-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .call-now-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .industry-selection-panel {
        padding: 25px 20px;
    }
    
    .panel-title {
        font-size: 1.5rem;
    }
    
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .industry-card {
        padding: 14px 10px;
    }
    
    .industry-icon {
        width: 28px;
        height: 28px;
    }
    
    .industry-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .industry-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .industry-demo-section {
        padding: 60px 0;
    }
    
    .main-demo-container {
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .demo-image-background {
        min-height: 250px;
    }
    
    .left-industry-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 14px;
    }
    
    .left-industry-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .left-industry-description {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .call-now-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .industry-selection-panel {
        padding: 20px 15px;
    }
    
    .panel-title {
        font-size: 1.25rem;
    }
    
    .panel-subtitle {
        font-size: 0.9rem;
    }
    
    .agent-info {
        top: 20px;
        left: 20px;
    }
    
    .agent-status {
        padding: 6px 12px;
    }
    
    .status-text {
        font-size: 0.8rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .demo-bg-image,
    .industry-card,
    .call-now-btn,
    .call-btn-pulse,
    .status-dot {
        animation: none !important;
        transition: none !important;
    }
    
    .industry-card:hover,
    .industry-card.active,
    .call-now-btn:hover {
        transform: none !important;
    }
}

/* Focus states for accessibility */
.industry-card:focus,
.call-now-btn:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Loading state for call button */
.call-now-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.call-now-btn.loading .call-btn-text::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.main-demo-container {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-demo-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}