/* Custom styles with Bootstrap Stylish Portfolio integration */

/* Global Styles and Variables */
:root {
    --primary-color: #1D809F; /* Bootstrap Stylish Portfolio blue */
    --secondary-color: #1abc9c; /* Clean green slightly adjusted from Stylish Portfolio */
    --accent-color: #f4623a; /* Stylish Portfolio orange accent */
    --dark-color: #212529; /* Bootstrap dark color */
    --light-color: #f8f9fa; /* Bootstrap light color */
    --text-color: #212529; /* Bootstrap default text color */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Page Header - Match Stylish Portfolio Masthead */
header {
    position: relative;
    background: linear-gradient(90deg, rgba(29,128,159,0.9), rgba(33,37,41,0.9)), url('https://via.placeholder.com/1920x1080') no-repeat center center;
    background-size: cover;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
    color: white;
}

header p {
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* Content Sections */
section {
    padding: 6rem 0;
}

section h2 {
    margin-bottom: 2rem;
    position: relative;
}

section h2:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.text-center h2:after {
    left: 50%;
    margin-left: -25px;
}

/* Architecture Diagram - Stylish Portfolio Style */
.architecture-diagram {
    margin: 3rem 0;
}

.architecture-diagram h3 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.pipeline-diagram {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.component {
    padding: 1.5rem;
    border-radius: 0.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.component:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.component i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.component span {
    font-weight: 600;
}

.user i { color: var(--accent-color); }
.chatbot i { color: var(--secondary-color); }
.api i { color: var(--primary-color); }
.database i { color: var(--dark-color); }
.analytics i { color: #6f42c1; }

.arrow {
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Chat Demo Section */
.chat-container {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background-color: white;
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: bold;
}

.chat-title {
    display: flex;
    align-items: center;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f5f5f5;
}

.message {
    margin-bottom: 1rem;
    display: flex;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 70%;
}

.bot .message-content {
    background-color: white;
    border: 1px solid #e0e0e0;
}

.user .message-content {
    background-color: var(--primary-color);
    color: white;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background-color: white;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    margin-right: 0.5rem;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Components Cards - Stylish Portfolio Services Style */
.components {
    background-color: white;
}

.component-card {
    text-align: center;
    background-color: white;
    border-radius: 0.25rem;
    padding: 2.5rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.component-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 1.5rem;
}

.component-icon i {
    font-size: 2rem;
}

.component-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.component-card p {
    margin-bottom: 1rem;
    color: #6c757d;
}

.tech-badge {
    display: inline-block;
    background-color: var(--light-color);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 2rem 1rem;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 1.25rem;
}

.feature-icon i {
    font-size: 1.75rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #6c757d;
}

/* Build Plan Section - Callout Style */
.build-plan {
    background-color: var(--light-color);
    text-align: left;
}

.step-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.step-content p {
    color: #6c757d;
}

/* Integration Section */
.integration {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.integration-diagram {
    margin-top: 3rem;
}

/* CTA Section */
.cta {
    background-color: var(--dark-color);
}

/* Footer - Matching Stylish Portfolio */
footer {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.6);
}

footer p {
    margin-bottom: 0;
}

/* Bootstrap Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .pipeline-diagram {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .chat-messages {
        height: 300px;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    
    .step-content {
        text-align: center;
    }
    
    section h2:after {
        left: 50%;
        margin-left: -25px;
    }
}

/* Bootstrap Utility Class Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}