/* Core Features Section */
.core-features-section {
    padding: 120px 0;
    position: relative;
    background: #020617;
    /* Darker background */
    /* Add subtle electric blue ambient light */
    /* Synced with Impact Section (Black) */
    background: radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.15), transparent 60%), #000000;
    overflow: hidden;
    text-align: center;
}

.core-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.core-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #e2e8f0;
}

.core-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.core-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Core Grid Layout */
.core-grid {
    display: grid;
    grid-template-columns: 1fr 400px 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 600px;
}

.core-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.item-top-left {
    grid-area: 1 / 1 / 2 / 2;
}

.item-top-right {
    grid-area: 1 / 3 / 2 / 4;
}

.item-bottom-left {
    grid-area: 2 / 1 / 3 / 2;
}

.item-bottom-right {
    grid-area: 2 / 3 / 3 / 4;
}

.core-center {
    grid-area: 1 / 2 / 3 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Icons */
.core-icon-box {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.core-icon {
    font-size: 28px;
}

.core-item:hover .core-icon-box {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
}

.core-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.core-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Central Pulse Animation */
.pulse-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: #0f172a;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.core-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.5);
    box-shadow:
        0 0 30px rgba(37, 99, 235, 0.4),
        inset 0 0 20px rgba(37, 99, 235, 0.2);
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

/* Updated Pulse Colors to Sky/Cyan */
.ring-1 {
    animation: pulse-wave 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    border-color: rgba(56, 189, 248, 0.8);
    /* Sky 400 */
}

.ring-2 {
    animation: pulse-wave 5s cubic-bezier(0.4, 0, 0.2, 1) infinite 1.25s;
    border-color: rgba(14, 165, 233, 0.6);
    /* Sky 500 */
}

.ring-3 {
    animation: pulse-wave 5s cubic-bezier(0.4, 0, 0.2, 1) infinite 2.5s;
    border-color: rgba(3, 105, 161, 0.4);
    /* Sky 700 */
}

.ring-4 {
    animation: pulse-wave 5s cubic-bezier(0.4, 0, 0.2, 1) infinite 3.75s;
    border-color: rgba(12, 74, 110, 0.2);
    /* Sky 900 */
}

@keyframes pulse-wave {
    0% {
        width: 80px;
        height: 80px;
        opacity: 0;
        border-width: 3px;
        border-color: rgba(37, 99, 235, 0.9);
        box-shadow:
            0 0 40px rgba(37, 99, 235, 0.8),
            inset 0 0 30px rgba(37, 99, 235, 0.5);
    }

    10% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        width: 700px;
        height: 700px;
        opacity: 0;
        border-width: 1px;
        border-color: rgba(37, 99, 235, 0);
        box-shadow:
            0 0 0 rgba(37, 99, 235, 0),
            inset 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Connecting Lines */
.horizontal-line {
    position: absolute;
    top: 50%;
    left: -100px;
    right: -100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
    z-index: 1;
}

.vertical-line {
    position: absolute;
    top: -50px;
    bottom: -50px;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.3), transparent);
    z-index: 1;
    transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 1024px) {
    .core-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 60px;
        padding: 0 20px;
    }

    .core-center {
        grid-area: 3 / 1 / 4 / 2;
        /* Move to middle or keep between items */
        order: 2;
        margin: 40px 0;
    }

    .item-top-left {
        order: 1;
        grid-area: auto;
    }

    .item-top-right {
        order: 1;
        grid-area: auto;
    }

    .item-bottom-left {
        order: 3;
        grid-area: auto;
    }

    .item-bottom-right {
        order: 3;
        grid-area: auto;
    }

    .horizontal-line,
    .vertical-line {
        display: none;
    }

    .pulse-ring {
        display: block;
        /* Keep animation on mobile? Yes looks cool centered */
    }
}