/**
 * IconTech Studio: Connected World IoT Hero CSS
 * Scoped strictly to .hero-layout-connected-ecosystem
 */

.hero-layout-connected-ecosystem {
    position: relative;
    background: #05010a;
    overflow: hidden;
    color: #ffffff;
}

.hero-layout-connected-ecosystem .container {
    position: relative;
    z-index: 2;
}

/* Faint grid background overlay across the entire section */
.hero-bg-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(168, 85, 247, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

/* Subtle radial purple glow behind left-side text elements */
.heading-glow-radial {
    position: absolute;
    top: 15%;
    left: -20%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.075) 0%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
}

@media (min-width: 1025px) {
    .hero-layout-connected-ecosystem .container {
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-left: clamp(24px, 5vw, 80px) !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .hero-layout-connected-ecosystem .service_details-hero-grid {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.48fr);
        gap: clamp(2rem, 3vw, 4rem);
        align-items: center;
        width: 100%;
    }

    .hero-layout-connected-ecosystem .service_details-hero-visual {
        justify-content: flex-end;
        width: 100%;
        margin-right: 0;
    }

    .hero-layout-connected-ecosystem .iot-image-stage {
        margin-left: auto;
        margin-right: 0;
        width: 100%;
        max-width: 840px;
        padding-right: 0;
        justify-content: flex-end;
    }

    .hero-layout-connected-ecosystem .iot-image-wrapper {
        justify-content: flex-end;
        width: 100%;
    }

    .hero-layout-connected-ecosystem .iot-main-img {
        margin-left: auto;
        margin-right: 0;
        max-width: 840px;
    }
}

/* ----------------------------------------------------
 * RIGHT COLUMN: IOT SHOWCASE IMAGE STAGE
 * ---------------------------------------------------- */
.iot-image-stage {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    perspective: 1200px;
}

.iot-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out;
    animation: floatSlow 5s ease-in-out infinite alternate;
}

@keyframes floatSlow {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-12px);
    }
}

.iot-image-glow {
    position: absolute;
    inset: 0%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 148, 253, 0.35) 0%, rgba(99, 44, 155, 0.15) 50%, transparent 75%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.iot-main-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 670px;
    object-fit: contain;
    border-radius: 16px;
    outline: none;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(165, 148, 253, 0.25));
    transition: filter 0.4s ease;
}

.iot-image-wrapper:hover .iot-main-img {
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 35px rgba(165, 148, 253, 0.4));
}

/* FLOATING STATUS BADGES OVER IMAGE */
.floating-badge {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15, 10, 28, 0.85);
    border: 1px solid rgba(165, 148, 253, 0.3);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.05em;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.badge-top-right {
    top: -12px;
    right: -10px;
}

.badge-bottom-left {
    bottom: -12px;
    left: -10px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

.badge-icon {
    font-size: 0.85rem;
}

.badge-text {
    color: #A594FD;
}

/* ----------------------------------------------------
 * SUBTLE DEERFLOW ATTRIBUTION BADGE
 * ---------------------------------------------------- */
.deerflow-badge {
    position: absolute;
    bottom: 20px;
    right: 25px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(12, 10, 20, 0.65);
    border: 1px solid rgba(165, 148, 253, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.deerflow-badge:hover {
    color: #A594FD;
    border-color: #A594FD;
    background: rgba(15, 12, 30, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 148, 253, 0.25);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .hero-layout-connected-ecosystem {
        padding: 100px 0 60px;
    }

    .iot-image-stage {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-layout-connected-ecosystem {
        padding: 90px 0 50px;
    }

    .floating-badge {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    .deerflow-badge {
        bottom: 10px;
        right: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .iot-image-wrapper,
    .badge-dot {
        animation: none !important;
        transition: none !important;
    }
}