/* Modern Architecture Section */
.architecture-content {
    position: relative;
}

.architecture-content h3 {
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.architecture-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0ea5e9);
    border-radius: 2px;
}

.architecture-content .lead {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Core Features */
.core-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateX(10px);
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.feature-item .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00d4ff, #0ea5e9);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.feature-content h5 {
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-content h5 {
    color: #00d4ff;
}

.feature-content p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Microservices Diagram */
.microservices-diagram {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.microservices-diagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* API Gateway */
.api-gateway {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.api-gateway::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: gatewayShine 3s ease-in-out infinite;
}

.api-gateway h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.api-gateway p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-box:hover::before {
    transform: translateX(100%);
}

.service-box:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.service-box i {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-box:hover i {
    transform: scale(1.2);
    color: #ffffff;
}

.service-box span {
    display: block;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.service-box:hover span {
    color: #00d4ff;
}

.service-box small {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Service Box Colors */
.service-box.marketing {
    border-color: rgba(239, 68, 68, 0.3);
}

.service-box.marketing:hover {
    border-color: #ef4444;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.service-box.marketing i {
    color: #ef4444;
}

.service-box.hr {
    border-color: rgba(34, 197, 94, 0.3);
}

.service-box.hr:hover {
    border-color: #22c55e;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.service-box.hr i {
    color: #22c55e;
}

.service-box.it {
    border-color: rgba(168, 85, 247, 0.3);
}

.service-box.it:hover {
    border-color: #a855f7;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.service-box.it i {
    color: #a855f7;
}

.service-box.financial {
    border-color: rgba(245, 158, 11, 0.3);
}

.service-box.financial:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.service-box.financial i {
    color: #f59e0b;
}

/* Event Bus */
.event-bus {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.event-bus::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: busShine 4s ease-in-out infinite reverse;
}

.event-bus h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.event-bus p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes gatewayShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes busShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item .feature-icon {
        margin-bottom: 1rem;
    }
    
    .microservices-diagram {
        padding: 1.5rem;
    }
}