/* BMS Page Styles - Professional Light Theme */

.bms-page {
    background-color: #ffffff;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
}

.bms-page nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.bms-hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at center, rgba(46, 167, 81, 0.08) 0%, #ffffff 70%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f3f4f6;
}

.bms-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(#f3f4f6 1px, transparent 1px),
                      linear-gradient(90deg, #f3f4f6 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

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

.bms-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1f2937 0%, #2ea751 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bms-hero-content p {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bms-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bms-btn-primary {
    background: #2ea751;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(46, 167, 81, 0.3);
}

.bms-btn-primary:hover {
    background: #23823d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 167, 81, 0.4);
    color: #ffffff;
}

.bms-btn-secondary {
    background: transparent;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.bms-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

.bms-capabilities {
    padding: 100px 0;
    background-color: #f9fafb;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

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



.capability-image {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    /* Removed box-shadow to allow seamless fading into the background */
}

.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fading the image edge towards the text side */
.image-fade-overlay {
    position: absolute;
    top: 0; right: -2px; bottom: 0;
    width: 45%; /* Wider fade for a smoother transition */
    background: linear-gradient(to right, rgba(249, 250, 251, 0) 0%, rgba(249, 250, 251, 1) 90%);
    pointer-events: none;
}

.image-fade-overlay.reverse {
    right: auto;
    left: -2px;
    background: linear-gradient(to left, rgba(249, 250, 251, 0) 0%, rgba(249, 250, 251, 1) 90%);
}

.capability-text {
    padding: 0 40px; /* Added horizontal padding for breathing room */
}

.capability-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.capability-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4b5563;
}

@media (max-width: 992px) {
    .capability-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .capability-row .capability-image {
        order: -1;
    }
    .capability-image {
        height: 250px;
    }
    .image-fade-overlay, .image-fade-overlay.reverse {
        display: none; /* Disable fade on mobile to keep full image */
    }
}

.bms-showcase {
    padding: 120px 0;
    background-color: #ffffff;
}

.bms-showcase-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.bms-showcase-split.reverse {
    direction: rtl;
}

.bms-showcase-split.reverse > * {
    direction: ltr;
}

.bms-showcase-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #2ea751;
}

.bms-showcase-text p {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 30px;
}

.bms-list {
    list-style: none; 
    padding: 0; 
    color: #374151; 
    font-size: 1.1rem; 
    line-height: 2;
    font-weight: 500;
}

.bms-showcase-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 40px rgba(46, 167, 81, 0.15);
}

.bms-showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Cinematic Animations overriding defaults for BMS */
.st-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSlideUp 1s ease forwards;
}

.st-title {
    opacity: 0;
    transform: translateY(30px);
    animation: titleRevealIntro 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.st-delay-1 { animation-delay: 0.2s; }
.st-delay-2 { animation-delay: 0.4s; }
.st-delay-3 { animation-delay: 0.6s; }
.st-delay-4 { animation-delay: 0.8s; }

@media (max-width: 992px) {
    .bms-showcase-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .bms-showcase-split.reverse {
        direction: ltr;
    }
    .capability-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .capability-row .capability-image {
        order: -1;
    }
    .capability-image {
        height: 300px;
    }
    .image-fade-overlay, .image-fade-overlay.reverse {
        display: none; /* Disable fade on mobile to keep full image */
    }
}

@media (max-width: 768px) {
    .bms-hero {
        padding: 120px 0 60px;
    }
    .bms-hero-content h1 {
        font-size: 2.25rem;
    }
    .bms-hero-content p {
        font-size: 1.05rem;
    }
    .bms-btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    .bms-btn-primary {
        margin-right: 0 !important;
    }
    
    .capabilities-list {
        gap: 50px;
    }
    .capability-text {
        padding: 0 10px;
    }
    .capability-text h3 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    .capability-text p {
        font-size: 1rem;
    }
    .capability-image {
        height: 220px;
        border-radius: 16px;
    }

    .bms-showcase {
        padding: 60px 0;
    }
    .bms-showcase-split {
        margin-bottom: 60px;
    }
    .bms-showcase-text h2 {
        font-size: 1.75rem;
    }
    .bms-showcase-text p, .bms-list {
        font-size: 1rem;
    }
    .bms-showcase-image img {
        border-radius: 12px;
    }
}
