/* 
 * Modern CSS for Convergence.net
 * Bootstrap 5 Compatible
 */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #3385d6;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 1rem;
}

/* Base Typography */
body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Navigation Enhancements */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px;
    font-weight: 600 !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.btn-secondary {
    color: white !important;
    background-color: var(--secondary-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-item i {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 0;
    color: white;
    margin-bottom: 3rem;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Solution Boxes */
.solution-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solution-box:hover {
    background: #fafafa;
    border-color: rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color) !important;
}

.solution-box.bg-primary {
    background: white;
    border: 2px solid #e0e0e0;
}

.solution-box.bg-secondary {
    background: white;
    border: 2px solid #e0e0e0;
}

.solution-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.solution-box p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-muted);
}

.solution-box i {
    color: #666666;
}

/* Market Cards */
.market-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 320px;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    transition: all 0.3s ease;
}

.market-card:hover::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}

.market-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.market-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 10;
}

.market-label h3 {
    color: white;
    font-size: 1.75rem;
    margin: 0;
}

.market-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    overflow-y: auto;
}

.market-card:hover .market-content {
    opacity: 1;
}

.market-card:hover .market-label {
    opacity: 0;
}

/* Market Cards - Bootstrap card styling overrides */
.card.shadow-sm.rounded-lg.h-100,
.card.shadow-sm.border-0.rounded-lg.h-100 {
    transition: all 0.3s ease;
}

.card.shadow-sm.rounded-lg.h-100:hover,
.card.shadow-sm.border-0.rounded-lg.h-100:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.25) !important;
}

/* Make market card images smaller */
.card-img-top {
    max-height: 200px;
    object-fit: cover;
}

/* Make market card text bigger and easier to read */
.card-text.small {
    font-size: 0.95rem !important;
    color: #6c757d !important;
    line-height: 1.5;
}

.card-text.small.bold {
    font-weight: 600 !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Section Styling */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

/* Client Logos */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.client-logos img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Tags/Badges */
.tag-list {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.img-full {
    width: 100%;
    max-width: 800px;
}

.img-contain {
    object-fit: contain;
    overflow: hidden;
}

/* Footer Enhancements */
footer a:hover {
    color: var(--primary-color) !important;
}

/* Utilities */
.shadow-soft {
    box-shadow: var(--shadow-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .custom-section-padding {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .container.custom-section-padding {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .img-full {
        width: 100%;
        max-width: none;
    }
}

/* Page-specific styles */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.page-content a:hover {
    text-decoration: underline;
}

.content-box {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.content-box h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.content-box li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

a.btn:hover {
    text-decoration: none;
}

.text-muted a {
    color: var(--text-muted);
    text-decoration: none;
}

a.text-muted {
    text-decoration: none;
}

#slider1_container {
    margin: 0 auto !important;
}

/* Custom section padding for platform overview - minimal on all screens */
.custom-section-padding {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.container.custom-section-padding {
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
}
