.relationship {
    background: linear-gradient(135deg, #2d1b69 0%, #1e1348 50%, #4c1d95 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.relationship-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.relationship-header {
    margin-bottom: 50px;
}

.relationship-title {
    font-size: 3em;
    font-weight: 400;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.relationship-subtitle {
    font-size: 1.5em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* Grid Layout - SIMPLIFIED */
.relationship-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

/* Central Hub Animation - Lightning Bolt */
.relationship-grid::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-image: url("../images/Favicon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: lightningPulse 3s ease-in-out infinite;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.6));
}

@keyframes lightningPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 10px rgba(252, 249, 255, 0.6));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        filter: drop-shadow(0 0 20px rgba(213, 182, 242, 0.9)) drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
    }
}

/* Connecting Lines - Simplified like in GIF */
.relationship-grid::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: 
        /* Horizontal line */ linear-gradient(
            90deg,
            transparent 0%,
            rgba(147, 51, 234, 0.4) 10%,
            rgba(147, 51, 234, 0.8) 50%,
            rgba(147, 51, 234, 0.4) 90%,
            transparent 100%
        ),
        /* Vertical line */
            linear-gradient(
                0deg,
                transparent 0%,
                rgba(147, 51, 234, 0.4) 10%,
                rgba(147, 51, 234, 0.8) 50%,
                rgba(147, 51, 234, 0.4) 90%,
                transparent 100%
            );
    background-size: 100% 2px, 2px 100%;
    background-position: center center, center center;
    background-repeat: no-repeat;
    animation: connectionFlow 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes connectionFlow {
    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Simplified - removed complex particles for cleaner look like GIF */

.auto-show {
    animation: autoShow ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 75%;
    animation-duration: 3s;
}

@keyframes autoShow {
    from {
        opacity: 0;
        transform: translateY(200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards - ENHANCED WITH ANIMATIONS */
.feature-node {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.feature-node::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(147, 51, 234, 0.4) 0%,
        rgba(59, 130, 246, 0.4) 25%,
        rgba(147, 51, 234, 0.4) 50%,
        rgba(59, 130, 246, 0.4) 75%,
        rgba(147, 51, 234, 0.4) 100%
    );
    border-radius: 24px;
    opacity: 0;
    animation: nodeGlow 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes nodeGlow {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Grid positions with staggered animations */
.feature-node.chatbot {
    grid-column: 1;
    grid-row: 1;
    animation: nodeActivate 8s ease-in-out infinite;
    animation-delay: 0s;
}

.feature-node.broadcast {
    grid-column: 2;
    grid-row: 1;
    animation: nodeActivate 8s ease-in-out infinite;
    animation-delay: 2s;
}

.feature-node.database {
    grid-column: 1;
    grid-row: 2;
    animation: nodeActivate 8s ease-in-out infinite;
    animation-delay: 4s;
}

.feature-node.omnichannel {
    grid-column: 2;
    grid-row: 2;
    animation: nodeActivate 8s ease-in-out infinite;
    animation-delay: 6s;
}

@keyframes nodeActivate {
    0%,
    20% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
    10% {
        transform: scale(1.03);
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
    }
    80%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

/* Staggered glow effects */
.feature-node.chatbot::before {
    animation-delay: 0s;
}

.feature-node.broadcast::before {
    animation-delay: 2s;
}

.feature-node.database::before {
    animation-delay: 4s;
}

.feature-node.omnichannel::before {
    animation-delay: 6s;
}

.feature-node:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Feature Icons - FIXED */
.relationship-feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Feature Text */
.feature-title {
    font-size: 1.6em;
    font-weight: 500;
    color: white;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-description {
    font-size: 1em;
    color: white;
    line-height: 1.5;
    max-width: 250px;
}

.feature-node:hover .feature-description {
    color: #f1f1f1;
}

/* Add subtle connecting lines - REMOVED */

/* Mobile Responsive - IMPROVED */
@media (max-width: 768px) {
    .relationship-container {
        width: 70%;
    }

    .relationship-title {
        font-size: 2.5em;
    }

    .relationship-subtitle {
        font-size: 1.2em;
    }

    .relationship-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 30px;
    }

    .relationship-grid::before,
    .relationship-grid::after {
        display: none;
    }

    .feature-node.chatbot,
    .feature-node.broadcast,
    .feature-node.database,
    .feature-node.omnichannel {
        grid-column: 1;
        grid-row: auto;
    }

    .feature-title {
        font-size: 1.4em !important;
    }
}

@media (max-width: 480px) {
    .relationship {
        padding: 60px 15px;
    }

    .relationship-title {
        font-size: 2em;
    }

    .feature-node {
        padding: 30px 20px;
    }

    .feature-description {
        font-size: 0.9em;
    }
}
