/* Business Units Section - New Professional Design */

.BusinessUnitsSection {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.BusinessUnitsSection::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="%23e0e0e0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}


/* Section Header */

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-line {
    display: block;
    position: relative;
    overflow: hidden;
}

.title-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 1s ease;
}

.title-line.animate::after {
    width: 100%;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 0 auto;
    border-radius: 2px;
    transform: scaleX(0);
    animation: expandWidth 1.5s ease 0.5s forwards;
}


/* Business Units Grid */

.business-units-grid {
    display: grid;
    gap: 60px;
    position: relative;
}


/* Business Unit Card */

.business-unit-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
}

.business-unit-card:nth-child(1) {
    animation-delay: 0.2s;
}

.business-unit-card:nth-child(2) {
    animation-delay: 0.4s;
}

.business-unit-card:nth-child(3) {
    animation-delay: 0.6s;
}

.business-unit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.business-unit-card:nth-child(even) {
    direction: rtl;
}

.business-unit-card:nth-child(even) .card-content {
    direction: ltr;
}


/* Card Image */

.card-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.business-unit-card:hover .card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-unit-card:hover .image-overlay {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: #3498db;
}

.business-unit-card:hover .service-icon {
    transform: scale(1);
}


/* Card Content */

.card-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.service-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.feature {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    color: #2c3e50;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    transform: translateY(-2px);
}


/* Learn More Button */

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.learn-more-btn:hover::before {
    left: 100%;
}

.learn-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.learn-more-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover svg {
    transform: translateX(5px);
}


/* Animations */

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    to {
        transform: scaleX(1);
    }
}


/* Responsive Design */

@media (max-width: 1200px) {
    .business-unit-card {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    .business-unit-card:nth-child(even) {
        direction: ltr;
    }
    .card-image {
        height: 300px;
    }
    .card-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .BusinessUnitsSection {
        padding: 80px 0;
    }
    .section-title {
        font-size: 3rem;
    }
    .card-content {
        padding: 30px;
    }
    .service-title {
        font-size: 2rem;
    }
    .service-description {
        font-size: 1rem;
    }
    .learn-more-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .card-content {
        padding: 25px;
    }
    .service-title {
        font-size: 1.8rem;
    }
    .service-features {
        flex-direction: column;
    }
}


/* Loading Animation */

.business-unit-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}


/* Parallax Effect */

.business-unit-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-image {
    transform: translateZ(20px);
}

.card-content {
    transform: translateZ(10px);
}


/* Hover Effects Enhancement */

.business-unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.business-unit-card:hover::before {
    opacity: 1;
}