/* ==========================================================================
   Center Layout Override & Dynamic Animations
   ========================================================================== */

/* Forcefully resets hero space to break out of left-alignment */
.hero-viewport.portal-layout {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
    box-sizing: border-box;
    pointer-events: none; /* Allows clicks to pass through empty background space */
}

/* Container for your centered connection modules */
.portal-center-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 300px;
    z-index: 50;
    position: relative;
    pointer-events: auto; /* Re-enables clicking on the actual buttons */
}

/* Premium Connect Buttons Styling with Animated Entry Trigger */
.btn-portal-connect {
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--accent-primary, #f43f5e);
    color: var(--text-pure, #ffffff);
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    opacity: 0; /* Starts hidden for the reveal animation */
    
    /* Dynamic Reveal Transitions */
    animation: portalFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Staggered animation delays so the buttons slide up one after the other */
.btn-portal-connect:nth-child(1) { animation-delay: 0.2s; }
.btn-portal-connect:nth-child(2) { animation-delay: 0.35s; }
.btn-portal-connect:nth-child(3) { animation-delay: 0.5s; }

/* Syncs directly with your interface's variable glow physics */
.btn-portal-connect:hover {
    background: rgba(244, 63, 94, 0.14);
    border-color: var(--accent-primary, #f43f5e);
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.45), inset 0 0 10px rgba(244, 63, 94, 0.1);
    transform: translateY(-3px);
    color: #ffffff;
}

.btn-portal-connect .btn-icon-asset {
    width: 15px;
    height: auto;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-portal-connect:hover .btn-icon-asset {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px var(--accent-primary, #f43f5e));
}

/* ==========================================================================
   Animation Keyframe Engine
   ========================================================================== */
@keyframes portalFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);