/* ================================================
   BOOT OVERLAY
   Azure Cloud Shell–style intro sequence
================================================== */

/* Prevent scroll flash during boot */
body.booting {
    overflow: hidden;
}

/* Full-screen overlay */
#boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    /* Opacity starts at 1, JS drives the fade-out */
    transition: opacity 0.6s ease;
}

/* Portal screenshot background */
#boot-portal-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/azure-portal-bg.jpg');
    background-size: cover;
    background-position: center top;
    /* Fallback: deep Azure-style blue-grey gradient if no image yet */
    background-color: #020f1f;
    filter: brightness(0.55);
    transition: filter 0.4s ease;
}

/* Cloud Shell floating window */
#boot-shell-window {
    position: relative;
    z-index: 1;
    width: min(680px, 92vw);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 30px 80px rgba(0,0,0,0.75),
        0 0 60px rgba(0, 180, 216, 0.12);
    /* Entry animation */
    animation: shellAppear 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    /* Exit animation class added by JS */
    transform-origin: top center;
}

@keyframes shellAppear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Title bar — Azure Cloud Shell chrome */
#boot-shell-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    user-select: none;
}

.boot-shell-traffic {
    display: flex;
    gap: 6px;
    align-items: center;
}

.boot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.85;
}
.boot-dot-red    { background: #ff5f57; }
.boot-dot-yellow { background: #ffbd2e; }
.boot-dot-green  { background: #28c840; }

#boot-shell-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ccc;
    letter-spacing: 0.02em;
}

.boot-azure-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.boot-shell-actions {
    font-size: 11px;
    color: #666;
    cursor: default;
}

/* Terminal body */
#boot-shell-body {
    background: #012456; /* classic Azure Cloud Shell navy */
    padding: 20px 22px 22px;
    min-height: 220px;
    font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
    font-size: 13.5px;
    line-height: 1.7;
    color: #eaeaea;
}

/* Output lines */
#boot-shell-output {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Individual line types */
.boot-line-prompt  { color: #eaeaea; }
.boot-line-cmd     { color: #4ec9b0; }  /* teal — matches PS syntax highlight */
.boot-line-info    { color: #9cdcfe; }  /* blue — info / comment colour */
.boot-line-ok      { color: #4ec9b0; }
.boot-line-warn    { color: #dcdcaa; }  /* yellow */
.boot-line-accent  { color: #00b4d8; }  /* site accent */

/* Blinking cursor */
.boot-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: #4ec9b0;
    vertical-align: text-bottom;
    margin-left: 1px;
    animation: bootBlink 0.9s step-end infinite;
}

@keyframes bootBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Progress bar */
#boot-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

#boot-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    position: relative;
}

#boot-progress-bar::after {
    content: '';
    position: absolute;
    inset-block: 0;
    left: 0;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, #00b4d8, #4ec9b0);
    border-radius: 3px;
    transition: width 0.08s linear;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.6);
}

#boot-progress-pct {
    font-size: 12px;
    color: #9cdcfe;
    min-width: 36px;
    text-align: right;
}

/* ── Exit animation ──────────────────────────── */
#boot-shell-window.boot-exit {
    animation: shellExit 0.55s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes shellExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-60px) scale(0.88);
    }
}

#boot-overlay.boot-overlay-out {
    opacity: 0;
    pointer-events: none;
}

/* ================================================
   PROFILE IMAGE — circular
================================================== */
.profile-circle-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.profile-img-circle {
    width: 340px;
    height: 340px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 3px solid rgba(0, 180, 216, 0.5);
    box-shadow:
        0 0 0 6px rgba(0, 180, 216, 0.1),
        0 0 0 12px rgba(0, 180, 216, 0.05),
        0 24px 64px rgba(0, 0, 0, 0.55);
    animation: fadeInRight 0.9s ease-out 0.2s forwards;
    opacity: 0;
}

/* Responsive overrides */
@media (max-width: 991px) {
    .profile-circle-wrap {
        justify-content: center;
    }
    .profile-img-circle {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 479px) {
    .profile-img-circle {
        width: 160px;
        height: 160px;
    }
}

/* Reduce motion: skip the boot sequence entirely */
@media (prefers-reduced-motion: reduce) {
    #boot-overlay { display: none !important; }
}
