/* =========================================================
   HOMEPAGE INTERACTIVE VISUALS
   Add after the main theme stylesheet.
   ========================================================= */

.homepage-section {
    position: relative;
    overflow: hidden;
}

.section-visual {
    position: relative;
    min-height: 280px;
    isolation: isolate;
}

.section-visual::after {
    content: attr(data-label);
    position: absolute;
    right: 0;
    bottom: 0;
    color: rgba(6,26,52,.05);
    font-size: clamp(42px, 7vw, 90px);
    font-weight: 900;
    letter-spacing: -4px;
    pointer-events: none;
}

/* ABOUT */
.visual-about {
    grid-column: 1 / -1;
    min-height: 330px;
    display: grid;
    place-items: center;
}

.visual-hub {
    position: relative;
    width: min(520px, 90vw);
    height: 300px;
    border-radius: 28px;
    background: linear-gradient(145deg, #061a34, #0b4e9c);
    box-shadow: 0 30px 70px rgba(6,26,52,.18);
    overflow: hidden;
}

.visual-hub::before,
.visual-hub::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
}

.visual-hub::before {
    width: 300px;
    height: 300px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.visual-hub::after {
    width: 190px;
    height: 190px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.visual-hub-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 100px;
    height: 100px;
    transform: translate(-50%,-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1972e8;
    color: #fff;
    box-shadow: 0 0 0 12px rgba(25,114,232,.14);
}

.visual-hub-core strong {
    font-size: 32px;
}

.visual-hub-core small {
    position: absolute;
    bottom: 20px;
    font-size: 7px;
    letter-spacing: 1.5px;
}

.visual-node {
    position: absolute;
    z-index: 3;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: transform .35s ease, background .35s ease;
}

.visual-node:hover {
    transform: translateY(-6px) scale(1.05);
    background: #ff9800;
}

.node-1 { left: 9%; top: 25%; }
.node-2 { right: 9%; top: 25%; }
.node-3 { left: 12%; bottom: 22%; }
.node-4 { right: 12%; bottom: 22%; }

/* SERVICES */
.services-layout,
.content-with-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 35px;
    align-items: center;
}

.visual-services {
    min-height: 340px;
    display: grid;
    place-items: center;
}

.service-hub {
    position: relative;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 1px solid #c9d8e8;
    animation: visualSpin 24s linear infinite;
}

.service-hub::before {
    content: "";
    position: absolute;
    inset: 35px;
    border-radius: 50%;
    border: 1px dashed #d9e4ef;
}

.service-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 105px;
    height: 105px;
    transform: translate(-50%,-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #061a34;
    color: #fff;
    box-shadow: 0 20px 45px rgba(6,26,52,.2);
}

.service-center strong {
    font-size: 28px;
    color: #ff9800;
}

.service-center small {
    font-size: 7px;
    text-align: center;
    letter-spacing: 1px;
}

.service-hub > span {
    position: absolute;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dce5ef;
    box-shadow: 0 10px 25px rgba(7,26,51,.08);
    color: #0754b5;
    font-size: 8px;
    font-weight: 900;
    animation: visualCounterSpin 24s linear infinite;
}

.service-hub > span:nth-of-type(1) { top: 8%; left: 42%; }
.service-hub > span:nth-of-type(2) { right: 0; top: 42%; }
.service-hub > span:nth-of-type(3) { bottom: 8%; left: 39%; }
.service-hub > span:nth-of-type(4) { left: 0; top: 42%; }

/* LEARNING */
.visual-learning {
    min-height: 300px;
    display: grid;
    place-items: center;
}

.learning-screen {
    width: 285px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(145deg,#061a34,#0b4e9c);
    color: #fff;
    box-shadow: 0 30px 65px rgba(6,26,52,.2);
    transform: rotate(2deg);
    transition: transform .4s ease;
}

.learning-screen:hover {
    transform: rotate(0) translateY(-8px);
}

.learning-top {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.learning-top strong {
    color: #ff9800;
}

.learning-progress {
    height: 8px;
    margin: 22px 0;
    border-radius: 20px;
    background: rgba(255,255,255,.15);
    overflow: hidden;
}

.learning-progress span {
    display: block;
    width: 82%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#1972e8,#ff9800);
    animation: progressPulse 3s ease-in-out infinite;
}

.learning-lessons {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;
}

.learning-lessons i {
    height: 50px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
}

.learning-lessons i.done {
    background: rgba(25,114,232,.9);
}

.learning-caption {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.learning-caption strong { font-size: 12px; }
.learning-caption small { color: #9fc3e8; font-size: 9px; }

/* SHOP */
.shop-content {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.visual-shop {
    display: grid;
    place-items: center;
}

.store-device {
    width: 275px;
    min-height: 280px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
    transform: rotate(-3deg);
    transition: transform .4s ease;
}

.store-device:hover {
    transform: rotate(0) translateY(-8px);
}

.store-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.store-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b8c8d8;
}

.store-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: center;
}

.store-book {
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(145deg,#1972e8,#0754b5);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.store-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-lines i {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: #dce7f2;
}

.store-lines b {
    margin-top: 8px;
    color: #15915c;
    font-size: 8px;
}

.store-cart {
    margin-top: 18px;
    padding: 12px;
    border-radius: 10px;
    background: #f1f6fb;
    color: #061a34;
    font-size: 10px;
}

/* RESEARCH */
.visual-research {
    min-height: 350px;
    display: grid;
    place-items: center;
}

.research-network {
    position: relative;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    border: 1px solid #cddbeb;
    animation: networkPulse 5s ease-in-out infinite;
}

.research-network::before,
.research-network::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px dashed #d9e4ef;
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

.research-network::before { width: 210px; height: 210px; }
.research-network::after { width: 120px; height: 120px; }

.research-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 105px;
    height: 105px;
    transform: translate(-50%,-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #061a34;
    color: #fff;
    box-shadow: 0 0 0 12px rgba(25,114,232,.08);
}

.research-center strong {
    font-size: 30px;
    color: #67b4ff;
}

.research-center small {
    font-size: 7px;
    letter-spacing: 1px;
}

.research-node {
    position: absolute;
    z-index: 4;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #cbd9e7;
    color: #0754b5;
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 12px 25px rgba(7,26,51,.08);
    transition: transform .3s ease, background .3s ease;
}

.research-node:hover {
    transform: scale(1.2);
    background: #ff9800;
    color: #fff;
}

.rn-ai { left: 15%; top: 18%; }
.rn-lms { right: 15%; top: 18%; }
.rn-iot { right: 10%; bottom: 22%; }
.rn-hci { left: 10%; bottom: 22%; }
.rn-dx { left: 44%; bottom: 3%; }

.research-area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.research-area-tags span {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f2f6fa;
    border: 1px solid #dce5ef;
    color: #31506e;
    font-size: 10px;
    font-weight: 700;
}

/* BLOG */
.visual-blog {
    min-height: 300px;
    display: grid;
    place-items: center;
}

.blog-book-visual {
    position: relative;
    width: 250px;
    height: 190px;
    padding: 28px;
    border-radius: 8px 16px 16px 8px;
    background: linear-gradient(145deg,#1972e8,#0754b5);
    color: #fff;
    box-shadow: 25px 25px 60px rgba(6,26,52,.22);
    transform: rotate(-5deg);
    transition: transform .4s ease;
}

.blog-book-visual:hover {
    transform: rotate(0) translateY(-8px);
}

.blog-book-visual strong {
    font-size: 34px;
    letter-spacing: 3px;
}

.blog-book-visual i {
    display: block;
    width: 75%;
    height: 6px;
    margin-top: 14px;
    border-radius: 4px;
    background: rgba(255,255,255,.35);
}

.blog-book-visual small {
    position: absolute;
    bottom: 22px;
    font-size: 7px;
    letter-spacing: 1px;
    color: #b9d9f5;
}

/* CONTACT */
.visual-contact {
    min-height: 170px;
    display: grid;
    place-items: center;
}

.contact-hub {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #061a34;
    color: #fff;
    box-shadow: 0 20px 50px rgba(6,26,52,.18);
    text-align: center;
}

.contact-hub strong {
    color: #ff9800;
    font-size: 28px;
}

.contact-hub span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.visual-contact > i {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1972e8;
    animation: contactFloat 4s ease-in-out infinite;
}

.visual-contact > i:nth-of-type(1) { transform: translate(-100px,-45px); }
.visual-contact > i:nth-of-type(2) { transform: translate(105px,-15px); animation-delay: .7s; }
.visual-contact > i:nth-of-type(3) { transform: translate(70px,60px); animation-delay: 1.4s; }

/* GENERAL INTERACTION */
.feature-card,
.course-card,
.product-card,
.blog-card {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.feature-card:hover,
.course-card:hover,
.product-card:hover,
.blog-card:hover {
    transform: translateY(-7px);
}

.section-visual {
    cursor: default;
}

/* ANIMATIONS */
@keyframes visualSpin {
    to { transform: rotate(360deg); }
}

@keyframes visualCounterSpin {
    to { transform: rotate(-360deg); }
}

@keyframes progressPulse {
    0%,100% { opacity: .8; }
    50% { opacity: 1; }
}

@keyframes networkPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}

@keyframes contactFloat {
    0%,100% { opacity: .55; }
    50% { opacity: 1; transform: scale(1.35); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .services-layout,
    .content-with-visual,
    .shop-content {
        grid-template-columns: 1fr;
    }

    .section-visual {
        min-height: 260px;
    }

    .visual-services,
    .visual-learning,
    .visual-shop,
    .visual-research,
    .visual-blog {
        order: 2;
    }
}

@media (max-width: 760px) {
    .visual-hub {
        width: 100%;
        height: 260px;
    }

    .visual-node {
        font-size: 7px;
        padding: 8px 9px;
    }

    .service-hub,
    .research-network {
        transform: scale(.82);
    }

    .research-area-tags span {
        font-size: 9px;
    }

    .learning-screen,
    .store-device,
    .blog-book-visual {
        max-width: 100%;
    }

    .section-visual::after {
        display: none;
    }

    .visual-contact {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .visual-hub {
        height: 225px;
    }

    .visual-hub-core {
        width: 78px;
        height: 78px;
    }

    .visual-hub-core strong {
        font-size: 25px;
    }

    .visual-node {
        font-size: 6px;
        letter-spacing: .5px;
    }

    .service-hub,
    .research-network {
        transform: scale(.7);
    }

    .learning-screen {
        width: 250px;
    }

    .store-device {
        width: 245px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-hub,
    .service-hub > span,
    .learning-progress span,
    .research-network,
    .visual-contact > i {
        animation: none !important;
    }

    .feature-card,
    .course-card,
    .product-card,
    .blog-card,
    .learning-screen,
    .store-device,
    .blog-book-visual {
        transition: none !important;
    }
}
