/* ============================================================
   DashVision Group – Split Homepage Styles
   Two clickable panels: Cybersecurity Solution | IT Services
   ============================================================ */

html, body.home-split-page {
    height: 100%;
}

body.home-split-page {
    overflow-x: hidden;
}

/* ── TOP BAR ─────────────────────────────────────────────── */
.home-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    z-index: 20;
}

.home-logo { text-decoration: none; }

.home-topbar .logo-img {
    height: 54px;
    width: auto;
}

.home-topbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.home-topbar-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 50px;
    transition: var(--transition);
}

.home-topbar-links a:hover {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
}

/* Destinations not live yet: href removed in the markup, so these are
   non-clickable and keyboard-unfocusable but keep their styling. */
a:not([href]) { cursor: default; }

.home-topbar-sep {
    color: var(--navy-border);
}

/* ── SPLIT CONTAINER ─────────────────────────────────────── */
.split-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    padding-top: 70px;
}

.split-panel {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    min-height: calc(100vh - 70px);
    opacity: 0;
    animation: splitPanelIn 0.7s ease forwards;
    transition: flex-grow 0.45s ease;
}

.split-left  { animation-delay: 0.05s; }
.split-right { animation-delay: 0.2s; }

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

.split-panel:hover { flex-grow: 1.08; }

.split-panel:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -4px;
}

.split-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.split-left .split-bg {
    background: radial-gradient(ellipse at 30% 30%, #0d2a4a 0%, #060d1a 55%, #010510 100%);
}

.split-right .split-bg {
    background: radial-gradient(ellipse at 70% 30%, #16324f 0%, #0a1930 55%, #050c1a 100%);
}

.split-panel:hover .split-bg { transform: scale(1.05); }

.split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
    transition: var(--transition);
}

.split-panel:hover .split-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25)); }

.split-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    text-align: center;
    padding: 1.5rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.split-eyebrow {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--cyan);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* Both panels' media blocks share one fixed height (--media-h) so the
   titles beneath them land on the same line across the split. */
.split-content { --media-h: 360px; --media-gap: 0.5rem; }

.split-image-wrap {
    flex: 0 0 auto;
    height: var(--media-h);
    margin-bottom: var(--media-gap);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PQC.png and IT.png now carry a real alpha channel — their black field is
   keyed out in the PNG itself. No blend mode and no CSS mask are needed, so
   the badge rows and bottom taglines stay at full contrast. Originals are
   kept as PQC-original.png / IT-original.png. */
.split-hero-image {
    max-width: 360px;
    max-height: 100%;
    width: 100%;
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 50px rgba(39, 169, 225, 0.45));
    transition: transform 0.5s ease;
}

/* Retained so existing markup keeps working — both hero images are now
   treated identically. */
.split-hero-image-full { mix-blend-mode: normal; }

.split-panel:hover .split-hero-image { transform: scale(1.05); }

.split-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 1.1rem;
}

.split-desc {
    color: var(--text-blue);
    font-size: 1.1rem;
    line-height: 1.6;
    /* reserve 3 lines in both panels so the differing copy lengths
       don't shift the blocks out of alignment */
    min-height: 4.8em;
    margin-bottom: 2rem;
}

.split-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
    border: 1.5px solid var(--cyan);
    border-radius: 50px;
    transition: var(--transition);
}

.split-cta i { transition: transform 0.3s ease; }

.split-panel:hover .split-cta {
    background: var(--cyan);
    color: var(--navy);
}

.split-panel:hover .split-cta i { transform: translateX(5px); }

/* ── IT SERVICES HERO GRAPHIC ────────────────────────────── */
.it-hero-graphic {
    position: relative;
    width: 280px;
    height: 280px;
    flex: 0 0 auto;
    /* vertical margins centre the 280px graphic inside the shared
       --media-h box so it matches the PQC image block */
    margin: calc((var(--media-h) - 280px) / 2) auto;
    margin-bottom: calc((var(--media-h) - 280px) / 2 + var(--media-gap));
    display: flex;
    align-items: center;
    justify-content: center;
}

.it-glow-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--navy-border);
    box-shadow: 0 0 50px rgba(39, 169, 225, 0.2), inset 0 0 40px rgba(39, 169, 225, 0.08);
    animation: glow-rotate 14s linear infinite;
}

@keyframes glow-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.it-center-icon {
    position: relative;
    width: 124px;
    height: 124px;
    background: linear-gradient(135deg, var(--navy-card), var(--navy-light));
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--cyan);
    box-shadow: 0 0 50px rgba(39, 169, 225, 0.35);
    z-index: 2;
}

.it-orbit-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary);
    transition: var(--transition);
}

.split-panel:hover .it-orbit-icon { border-color: var(--primary); color: var(--cyan); }

.it-orbit-icon.orbit-1 { top: -8px; left: 22px; }
.it-orbit-icon.orbit-2 { top: -8px; right: 22px; }
.it-orbit-icon.orbit-3 { bottom: -8px; left: 22px; }
.it-orbit-icon.orbit-4 { bottom: -8px; right: 22px; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.split-divider {
    position: relative;
    flex: 0 0 2px;
    background: linear-gradient(180deg, transparent, var(--navy-border) 15%, var(--navy-border) 85%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.split-divider-badge {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-blue);
    box-shadow: var(--shadow-md);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.home-footer {
    background: var(--navy);
    border-top: 1px solid var(--navy-border);
    padding: 1.25rem 0;
    color: var(--text-blue);
    font-size: 0.85rem;
}

/* ── RESPONSIVE: MOBILE STACKS TOP/DOWN ──────────────────── */
@media (max-width: 991.98px) {
    .split-container {
        flex-direction: column;
    }

    .split-panel {
        min-height: 70vh;
        flex: 1 1 auto;
    }

    .split-panel:hover { flex-grow: 1; }

    .split-divider {
        flex: 0 0 2px;
        width: 100%;
        background: linear-gradient(90deg, transparent, var(--navy-border) 15%, var(--navy-border) 85%, transparent);
    }

    .home-topbar-links a span { display: none; }
}

@media (max-width: 575.98px) {
    .home-topbar .logo-img { height: 40px; }
    .split-content { --media-h: 260px; }
    .split-hero-image { max-width: 260px; }
    .it-hero-graphic {
        width: 210px;
        height: 210px;
        margin: calc((var(--media-h) - 210px) / 2) auto;
        margin-bottom: calc((var(--media-h) - 210px) / 2 + var(--media-gap));
    }
    .it-center-icon { width: 92px; height: 92px; font-size: 2.2rem; }
    .home-topbar-links { font-size: 0.75rem; }
}
