/*
Purpose: Solutions page specific styles for Minds4AI
Author: AI Assistant
Last Modified: 2025-01-27
*/

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

/* Force all elements to respect viewport boundaries */
*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Prevent any element from extending beyond viewport */
body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

/* Container constraints */
.container {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Force all flex and grid containers to stay within bounds */
.solution-grid,
.nav-grid,
.metrics-grid,
.dashboard-content,
.workflow-visualization,
.creation-tools,
.industry-grid {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure all positioned elements stay within viewport */
[style*="position: absolute"],
[style*="position: fixed"],
.pattern-dot,
.creative-ai-badge,
.automation-badge,
.enterprise-security-badge,
.ai-optimization-badge {
    max-width: calc(100vw - 30px);
    right: 15px !important;
    left: auto !important;
}

/* Force all images and media to be responsive */
img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

/* Text overflow handling */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Prevent text from causing overflow */
h1, h2, h3, h4, h5, h6, p, span, div {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Force all mockup containers to stay within bounds */
.marketing-dashboard-mockup,
.enterprise-control-mockup,
.creative-studio-mockup,
.website-mockup,
.social-mockup,
.whatsapp-mockup {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Ensure all internal mockup elements respect boundaries */
.dashboard-interface,
.control-panel,
.studio-interface,
.device-frame,
.social-post,
.chat-header {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Page Header Section */
.solutions-header {
    background: linear-gradient(135deg, 
    #000000 0%, 
    #100d28 70%, 
    #3d0e82 99%, 
    #3d0e82 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.solutions-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumbs a:hover {
    opacity: 0.8;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.solutions-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.solutions-header p {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.solution-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.solution-icons i {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.solution-icons i:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.solution-icons i:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.solution-icons i:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.solution-icons i:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.solution-icons i:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

.solution-icons i:nth-child(6) {
    top: 60%;
    right: 5%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive Design for Solutions Header */
@media (max-width: 768px) {
    .solutions-header {
        padding: 100px 0 60px;
    }
    
    .solutions-header h1 {
        font-size: 2.5rem;
    }
    
    .solutions-header p {
        font-size: 1.1rem;
    }
    
    .solution-icons i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .solutions-header {
        padding: 80px 0 50px;
    }
    
    .solutions-header h1 {
        font-size: 2rem;
    }
    
    .solutions-header p {
        font-size: 1rem;
    }
    
    .solution-icons i {
        font-size: 1.2rem;
        opacity: 0.05;
    }
}

/* Solutions Navigation */
.solutions-navigation {
    padding: 60px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.solutions-navigation h3 {
    text-align: center;
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-item:hover {
    transform: translateY(-2px);
    border-color: #8f4ff0;
    color: #8f4ff0;
    box-shadow: 0 4px 16px rgba(143, 79, 240, 0.2);
}

.nav-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #8f4ff0;
}

.nav-item span {
    font-weight: 600;
    text-align: center;
}

/* Sample Websites Styling */
.sample-websites {
    margin-top: 2rem;
}

.sample-websites h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.website-samples {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sample-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.sample-link:hover {
    background: #e0d4f7;
    color: #8f4ff0;
    border-color: #8f4ff0;
}

.sample-link i {
    color: #8f4ff0;
    font-size: 0.9rem;
}

.sample-link span {
    font-weight: 500;
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .nav-item {
        padding: 1rem 0.5rem;
    }
    
    .nav-item i {
        font-size: 1.5rem;
    }
    
    .solutions-navigation h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .sample-link {
        padding: 0.5rem 0.75rem;
    }
    
    .sample-link span {
        font-size: 0.9rem;
    }
}

/* Solutions Header 
.solutions-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}*/

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.ai-pattern {
    position: relative;
    width: 100%;
    height: 100%;
}

.pattern-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #8f4ff0;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.pattern-dot:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pattern-dot:nth-child(2) {
    top: 40%;
    right: 20%;
    animation-delay: 0.5s;
}

.pattern-dot:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1s;
}

.pattern-dot:nth-child(4) {
    top: 60%;
    right: 40%;
    animation-delay: 1.5s;
}

.pattern-dot:nth-child(5) {
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.pattern-dot:nth-child(6) {
    top: 30%;
    left: 50%;
    animation-delay: 2.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
}

.header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.header-content p {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.6;
}

/* Solution Sections */
.solution-section {
    padding: 80px 0;
}

.solution-section:nth-child(even) {
    background: #f8fafc;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-grid.reverse {
    direction: rtl;
}

.solution-grid.reverse > * {
    direction: ltr;
}

.solution-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-weight: 600;
}

.solution-content p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Feature Lists */
.feature-list,
.benefit-list,
.use-case-list {
    margin-bottom: 2.5rem;
}

.feature-item,
.benefit-item,
.use-case-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover,
.benefit-item:hover,
.use-case-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i,
.benefit-item i,
.use-case-item i {
    font-size: 1.2rem;
    color: #8f4ff0;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.feature-item span,
.benefit-item span,
.use-case-item span {
    font-weight: 500;
    color: #1e293b;
}

/* Website Builder Mockup */
.website-mockup {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.device-frame {
    background: #1e293b;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.screen {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 9/16;
}

.website-preview {
    padding: 1rem;
    height: 100%;
}

.preview-header {
    height: 40px;
    background: linear-gradient(135deg, #100d28 0%, #3d0e82 100%);
    border-radius: 5px;
    margin-bottom: 1rem;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.content-block {
    height: 60px;
    background: #f1f5f9;
    border-radius: 5px;
}

.content-block.small {
    height: 40px;
}

.responsive-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.responsive-indicators i {
    font-size: 1.5rem;
    color: #8f4ff0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.responsive-indicators i:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Social Media Mockup */
.social-mockup {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.social-post {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-pic {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #100d28 0%, #3d0e82 100%);
    border-radius: 50%;
    margin-right: 0.75rem;
}

.profile-info {
    flex: 1;
}

.profile-name {
    height: 12px;
    background: #cbd5e1;
    border-radius: 3px;
    margin-bottom: 0.25rem;
    width: 80px;
}

.post-time {
    height: 8px;
    background: #e2e8f0;
    border-radius: 2px;
    width: 60px;
}

.post-image {
    height: 200px;
    background: linear-gradient(45deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
}

.post-image::after {
    content: '🎨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
}

.post-actions i {
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.post-actions i:hover {
    color: #8f4ff0;
}

.automation-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* WhatsApp Mockup */
.whatsapp-mockup {
    max-width: 350px;
    margin: 0 auto;
    background: #128c7e;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.chat-header {
    background: #075e54;
    padding: 1rem;
    display: flex;
    align-items: center;
    color: white;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.chat-avatar i {
    font-size: 1.5rem;
}

.chat-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.chat-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-messages {
    padding: 1rem;
    background: #ece5dd;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.message.received {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.sent {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Campaign Generator Section */
.campaign-generator {
    background: #1e293b;
    color: white;
}

.solution-content-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.solution-content-center h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.solution-content-center p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.campaign-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.campaign-feature {
    text-align: center;
    padding: 1.5rem;
}

.campaign-feature i {
    font-size: 2.5rem;
    color: #a78bfa;
    margin-bottom: 1rem;
}

.campaign-feature h3 {
    font-size: 1.1rem;
    color: #f1f5f9;
    font-weight: 500;
}

.campaign-demo {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-input {
    background: #334155;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.demo-input i {
    color: #a78bfa;
    font-size: 1.2rem;
}

.demo-input span {
    color: #e2e8f0;
    font-style: italic;
}

.demo-arrow {
    margin: 1rem 0;
}

.demo-arrow i {
    font-size: 1.5rem;
    color: #a78bfa;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.demo-output {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.output-item {
    background: rgba(167, 139, 250, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.output-item i {
    color: #a78bfa;
    font-size: 1.1rem;
}

.output-item span {
    color: #f1f5f9;
    font-weight: 500;
}

/* Industry Bundles */
.industry-bundles {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.industry-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.industry-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #100d28 0%, #3d0e82 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.industry-card .card-icon i {
    font-size: 2rem;
    color: white;
}

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.industry-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Creative Studio Mockup */
.creative-studio-mockup {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.studio-interface {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.studio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.studio-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.studio-title i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.creation-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #27ae60;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    animation: pulse 2s infinite;
}

.creation-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.tool-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.tool-item i {
    font-size: 1.5rem;
    color: #8f4ff0;
    margin-bottom: 8px;
}

.tool-item span {
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.output-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #e74c3c;
}

.preview-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.preview-content {
    font-weight: 600;
    color: #2c3e50;
}

.creative-ai-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e74c3c;
}

.creative-ai-badge i {
    font-size: 0.9rem;
}

/* Marketing Dashboard Mockup */
.marketing-dashboard-mockup {
    background: linear-gradient(135deg, #100d28 0%, #3d0e82 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-interface {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.dashboard-title i {
    font-size: 1.2rem;
}

.campaign-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.metric-box {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.performance-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #27ae60;
}

.metric {
    background: rgba(39, 174, 96, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(39, 174, 96, 0.3);
    font-weight: 600;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.campaign-preview {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.preview-item.active {
    background: rgba(143, 79, 240, 0.2);
    border-color: rgba(143, 79, 240, 0.4);
}

.preview-item i {
    margin-right: 10px;
    color: #8f4ff0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.success {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-badge.generating {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
    animation: pulse 2s infinite;
}

.status-badge.ready {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.analytics-preview {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.chart-placeholder {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
}

.bar {
    width: 20px;
    background: linear-gradient(to top, #8f4ff0, #a78bfa);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
    animation: growUp 1.5s ease-out;
}

.bar:hover {
    background: linear-gradient(to top, #7c3aed, #8f4ff0);
    transform: scaleY(1.1);
}

.ai-optimization-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(142, 68, 173, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(142, 68, 173, 0.3);
    backdrop-filter: blur(10px);
}

.ai-optimization-badge i {
    color: #e74c3c;
    animation: pulse 2s infinite;
}

@keyframes growUp {
    from {
        height: 0;
    }
    to {
        height: var(--final-height, 100%);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.preview-header {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.preview-text {
    font-weight: 500;
    line-height: 1.4;
}

/* Enterprise Control Mockup */
.enterprise-control-mockup {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.control-panel {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.panel-title i {
    color: #8f4ff0;
    font-size: 1.2rem;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #27ae60;
}

.workflow-visualization {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.workflow-step {
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.workflow-step.active .step-icon {
    background: #27ae60;
    border-color: #27ae60;
}

.workflow-step.processing .step-icon {
    background: #f39c12;
    border-color: #f39c12;
    animation: pulse 2s infinite;
}

.step-icon i {
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.step-status {
    font-size: 0.8rem;
    opacity: 0.7;
}

.workflow-connector {
    height: 2px;
    background: rgba(255,255,255,0.2);
    flex: 0.5;
    margin: 0 10px;
    margin-top: -25px;
}

.metrics-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metric-card {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.enterprise-security-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2ecc71;
}

.enterprise-security-badge i {
    font-size: 0.9rem;
}

/* Bottom CTA */
.bottom-cta {
    background: linear-gradient(135deg, 
        #000000 0%, 
        #100d28 70%, 
        #3d0e82 99%, 
        #3d0e82 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Active Navigation */
.nav-menu a.active {
    color: #8f4ff0;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .solutions-header {
        padding: 100px 0 60px;
    }
    
    .header-content h1 {
        font-size: 2.2rem;
    }
    
    .solution-section {
        padding: 60px 0;
    }
    
    /* Add hard constraints on solution-visual and solution-grid */
    .solution-visual {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .solution-grid.reverse {
        direction: ltr;
    }
    
    .solution-content h2 {
        font-size: 2rem;
    }
    
    .campaign-features {
        grid-template-columns: 1fr;
    }
    
    .demo-output {
        flex-direction: column;
        align-items: center;
    }
    
    .industry-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    /* Fix grid layouts under 768px - force single column */
    .dashboard-content,
    .metrics-grid,
    .workflow-visualization {
        grid-template-columns: 1fr !important;
        display: block !important;
    }
    
    /* Add overflow safeguards to mockup containers */
    .marketing-dashboard-mockup,
    .enterprise-control-mockup,
    .creative-studio-mockup,
    .website-mockup,
    .social-mockup,
    .whatsapp-mockup {
        padding: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }
    
    /* Explicitly constrain internal elements */
    .screen,
    .device-frame,
    .studio-interface,
    .control-panel {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Fix badges positioning on tablets */
    .automation-badge,
    .creative-ai-badge,
    .enterprise-security-badge,
    .ai-optimization-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 10px;
    }
    
    /* Benefit Sections Mobile Fixes */
    .creative-benefits,
    .marketing-benefits,
    .enterprise-benefits {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 1rem 0 !important;
    }
    
    .benefit-showcase {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    
    .benefit-item {
        display: flex !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .benefit-item i {
        flex-shrink: 0 !important;
        width: 16px !important;
        min-width: 16px !important;
        font-size: 14px !important;
        margin-top: 2px !important;
    }
    
    .benefit-item span {
        flex: 1 !important;
        max-width: calc(100% - 24px) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.4 !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    /* Force viewport constraints on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }
    
    /* Ensure container never exceeds viewport */
    .container {
        max-width: 100vw !important;
        width: 100vw !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .solution-content h2 {
        font-size: 1.6rem;
    }
    
    .website-mockup,
    .social-mockup,
    .whatsapp-mockup {
        max-width: calc(100vw - 40px) !important;
        width: calc(100vw - 40px) !important;
    }
    
    .campaign-demo {
        padding: 1rem;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .demo-input {
        padding: 0.75rem 1rem;
        max-width: 100% !important;
    }
    
    /* Force all sections to stay within viewport */
    .solution-section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Fix width issues for mockups causing horizontal overflow - remove transform scale and reduce padding */
    .marketing-dashboard-mockup,
    .enterprise-control-mockup,
    .creative-studio-mockup {
        padding: 10px !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .website-mockup,
    .social-mockup,
    .whatsapp-mockup {
        padding: 10px !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .dashboard-interface,
    .control-panel,
    .studio-interface,
    .device-frame,
    .social-post,
    .chat-header,
    .screen {
        padding: 10px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .metrics-grid,
    .dashboard-content {
        grid-template-columns: 1fr !important;
        display: block !important;
        gap: 8px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .workflow-visualization {
        grid-template-columns: 1fr !important;
        display: block !important;
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .workflow-connector {
        display: none;
    }
    
    .creation-tools {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Ensure all visual elements stay within bounds - remove transform scale */
    .solution-visual {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    /* Force all grids to single column */
    .solution-grid,
    .nav-grid,
    .industry-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Fix any absolute positioned elements */
    .pattern-dot {
        display: none !important;
    }
    
    /* Ensure badges don't cause overflow */
    .automation-badge,
    .creative-ai-badge,
    .enterprise-security-badge,
    .ai-optimization-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        margin-top: 10px !important;
        align-self: flex-start !important;
        max-width: calc(100% - 20px) !important;
    }
    
    /* Prevent any element from causing horizontal scroll */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Force text to wrap */
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
    
    /* Fix solution-visual internal elements */
    .solution-visual img,
    .solution-visual video,
    .solution-visual iframe,
    .solution-visual svg {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Fix any potential overflow from mockup elements */
    .preview-content,
    .preview-header,
    .preview-item,
    .chart-placeholder,
    .chart-bars,
    .post-image,
    .post-actions,
    .chat-messages,
    .message {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
}