/* Engineering Opportunity Block */

.eo__section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

/* Background variants */
.eo__section--dark {
    background: #080b12;
}

.eo__section--gradient {
    background: linear-gradient(165deg, #080b12 0%, #0c1222 35%, #111a30 100%);
}

.eo__section--accent {
    background: linear-gradient(165deg, #080b12 0%, #110d24 35%, #1a1240 100%);
}

/* Glow orbs */
.eo__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0;
    animation: eo-glow-in 1.2s ease-out forwards;
}

.eo__glow--1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.12);
    top: -10%;
    right: -5%;
    animation-delay: 0.1s;
}

.eo__glow--2 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.08);
    bottom: -15%;
    left: -8%;
    animation-delay: 0.3s;
}

.eo__glow--3 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.1);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.5s;
}

@keyframes eo-glow-in {
    to { opacity: 1; }
}

/* Dot grid overlay for technical feel */
.eo__grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Inner panel */
.eo__panel {
    position: relative;
    z-index: 1;
    border-radius: 1.5rem;
    padding: 3.5rem 3.5rem 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Corner accent lines */
.eo__panel::before,
.eo__panel::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.eo__panel::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--bs-primary, #6366f1);
    border-left: 2px solid var(--bs-primary, #6366f1);
    border-radius: 1.5rem 0 0 0;
    opacity: 0.6;
}

.eo__panel::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--bs-primary, #6366f1);
    border-right: 2px solid var(--bs-primary, #6366f1);
    border-radius: 0 0 1.5rem 0;
    opacity: 0.6;
}

@media (max-width: 767.98px) {
    .eo__section {
        padding: 4rem 0;
    }

    .eo__panel {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 1rem;
    }

    .eo__panel::before,
    .eo__panel::after {
        width: 40px;
        height: 40px;
    }

    .eo__panel::before {
        border-radius: 1rem 0 0 0;
    }

    .eo__panel::after {
        border-radius: 0 0 1rem 0;
    }
}

/* Layout */
.eo__row {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

@media (max-width: 991.98px) {
    .eo__row {
        flex-direction: column;
        gap: 2.5rem;
    }
}

.eo__content {
    flex: 1 1 0%;
    min-width: 0;
}

.eo__visual {
    flex: 0 0 auto;
    width: 360px;
    max-width: 100%;
    position: relative;
}

@media (max-width: 991.98px) {
    .eo__visual {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        order: -1;
    }
}

/* Image with soft glow underneath */
.eo__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.eo__visual::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    height: 50%;
    background: var(--bs-primary, #6366f1);
    filter: blur(40px);
    opacity: 0.15;
    border-radius: 50%;
}

/* Eyebrow badge */
.eo__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    border-radius: 0.4rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--bs-primary, #6366f1);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.eo__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bs-primary, #6366f1);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

/* Title */
.eo__title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Description */
.eo__description {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 34rem;
}

/* Divider line before bullets */
.eo__divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary, #6366f1), transparent);
    margin-bottom: 1.5rem;
    border: none;
}

/* Bullet points */
.eo__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.eo__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.eo__bullet-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eo__bullet-icon::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--bs-primary, #6366f1);
}

/* CTA */
.eo__cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.eo__cta .btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.eo__cta .btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eo__cta .btn:hover::before {
    opacity: 1;
}

.eo__cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

.eo__cta-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 991.98px) {
    .eo__cta {
        justify-content: center;
        flex-direction: column;
    }
}

/* No-image: centered layout */
.eo__row--text-only {
    justify-content: center;
}

.eo__row--text-only .eo__content {
    max-width: 40rem;
    text-align: center;
}

.eo__row--text-only .eo__description {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.eo__row--text-only .eo__divider {
    margin-left: auto;
    margin-right: auto;
}

.eo__row--text-only .eo__bullets {
    display: inline-flex;
    text-align: left;
}

.eo__row--text-only .eo__cta {
    justify-content: center;
}

/* Light theme */
[data-bs-theme="light"] .eo__section--dark {
    background: #f4f5f7;
}

[data-bs-theme="light"] .eo__section--gradient {
    background: linear-gradient(165deg, #f4f5f7 0%, #edf0f5 35%, #e8ecf4 100%);
}

[data-bs-theme="light"] .eo__section--accent {
    background: linear-gradient(165deg, #f4f5f7 0%, #f0ecf8 35%, #ece6f8 100%);
}

[data-bs-theme="light"] .eo__glow--1 {
    background: rgba(99, 102, 241, 0.06);
}

[data-bs-theme="light"] .eo__glow--2 {
    background: rgba(59, 130, 246, 0.04);
}

[data-bs-theme="light"] .eo__glow--3 {
    background: rgba(139, 92, 246, 0.05);
}

[data-bs-theme="light"] .eo__grid-overlay {
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

[data-bs-theme="light"] .eo__panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .eo__panel::before {
    border-top-color: var(--bs-primary, #6366f1);
    border-left-color: var(--bs-primary, #6366f1);
}

[data-bs-theme="light"] .eo__panel::after {
    border-bottom-color: var(--bs-primary, #6366f1);
    border-right-color: var(--bs-primary, #6366f1);
}

[data-bs-theme="light"] .eo__title {
    color: #1a1a2e;
}

[data-bs-theme="light"] .eo__description {
    color: rgba(0, 0, 0, 0.55);
}

[data-bs-theme="light"] .eo__bullets li {
    color: rgba(0, 0, 0, 0.65);
}

[data-bs-theme="light"] .eo__cta-hint {
    color: rgba(0, 0, 0, 0.3);
}
