/* ----- GENERAL BODY LAYOUT ----- */
body {
    background: black;
    color: #33FF33;
    font-family: monospace;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ----- LEFT PANEL ----- */
.left-panel {
    width: 25vw;
    min-width: 220px;
    max-width: 340px;
    height: 100vh;
    background: #000000;
    background-image: url('../img/background.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #33FF33;
    z-index: 2;
}

.flip-card {
    width: 240px;
    height: 320px;
    perspective: 1000px;
    margin-top: 36px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front {
    background: transparent;
}

.flip-card-back {
    background: transparent;
    transform: rotateY(180deg);
}

.profile-img {
    width: 240px;
    height: 320px;
    object-fit: cover;
    border: 5px solid #33FF33;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(165, 28, 219, 0.5);
}

/* ----- RIGHT PANEL ----- */
.right-panel {
    width: 75vw;
    height: 100vh;
    min-width: 0;
    background-image: url('../img/background.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
    background-attachment: local;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    z-index: 1;
    overflow: hidden;
}

/* Black overlay for readability */
.background-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1;
    pointer-events: none;
}

/* ----- MENU BAR (STATIC AT TOP) ----- */
.menu-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: 38px;
    line-height: 38px;
    background: #000;
    border-bottom: 1px solid #33FF33;
    color: #00FF00;
    z-index: 20;
    padding-left: 18px;
    font-family: monospace;
    font-size: 1em;
    user-select: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 1em;
    min-height: 38px;
    height: auto;
    line-height: 1.6;
    padding: 8px 12px 6px 12px;
    gap: 8px;
    box-sizing: border-box;
    pointer-events: auto;
    font-weight: bold;
}

.menu-bar span {
    color: #F65314;
    cursor: pointer;
    padding: 0 8px;
    border-radius: 4px;
    transition: background 0.1s, color 0.1s;
}

.menu-bar span:hover {
    background: #111;
    color: #33FF33;
}

/* ----- TERMINAL OUTPUT AREA ----- */
#terminal {
    position: absolute;
    top: 38px;                /* height of .menu-bar */
    left: 0; right: 0;
    bottom: 36px;             /* height of .bottom-navbar */
    overflow-y: auto;
    padding: 20px 20px 0 20px;
    background: transparent;
    font-size: 1.08em;
    z-index: 3;
    white-space: pre-wrap;
    word-break: break-word;
    /* For nice fading scrollbars: */
    scrollbar-color: #33FF33 #111;
    scrollbar-width: thin;
}

#input {
    font-family: monospace;
    font-size: 1.1em;
    color: #FF10F0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    caret-color: #ff1efb;
    width: auto;
    min-width: 2ch;
    display: inline;
    vertical-align: middle;
}

/* ----- INPUT LINES AND COLORS ----- */
.input-line input, .input-line, #terminal .user-command, #terminal .user-input {
    color: #FF10F0 !important;
    font-family: monospace;
}

/* Prompt styling */
.prompt {
    color: #00A1F1;
    font-weight: bold;
}

/* ----- BOTTOM NAV-BAR (STATIC) ----- */
.bottom-navbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 36px;
    background: transparent;
    border-top: 1px solid #00FF00;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    pointer-events: none;
}

.bottom-left {
    color: #00FF00;
    font-family: monospace;
    font-size: 1em;
    margin-left: 18px;
    margin-bottom: 6px;
    pointer-events: auto;
}

.bottom-right {
    color: #00FF00;
    font-family: monospace;
    font-size: 1em;
    margin-right: 18px;
    margin-bottom: 6px;
    margin-left: auto;
    pointer-events: auto;
}

/* ----- RESPONSIVE ADJUSTMENTS ----- */
@media (max-width: 1024px) {
    .left-panel {
        min-width: 160px;
        max-width: 200px;
    }
    .flip-card, .profile-img {
        width: 180px;
        height: 240px;
    }
}
@media (max-width: 768px) {
    .left-panel {
        min-width: 100px;
        max-width: 120px;
    }
    .flip-card, .profile-img {
        width: 120px;
        height: 160px;
    }
    .right-panel {
        padding: 0;
    }
}
@media (max-width: 480px) {
    .container {
        flex-direction: column;
    }
    .left-panel, .right-panel {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        height: 50vh;
    }
    .flip-card, .profile-img {
        width: 80px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .menu-bar {
        font-size: 0.95em;
        padding-left: 6px;
        padding-right: 6px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-start;
        min-height: unset;
    }
    .menu-bar span {
        padding: 2px 5px;
        font-size: 0.97em;
    }
}

/* On very small screens, stack the menu vertically or make it scrollable */
@media (max-width: 480px) {
    .menu-bar {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.88em;
        gap: 2px;
        padding-top: 7px;
        padding-bottom: 7px;
        height: auto;
    }
    .menu-bar span {
        display: block;
        width: 100%;
        padding: 3px 4px;
        margin-bottom: 1px;
    }
}

/* --- Business Card (Back of Flip Card) --- */
.bizcard {
    width: 94%;
    min-height: 94%;
    background: #151516;
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 20px 0 rgba(0,0,0,0.12);
    padding: 22px 14px 18px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    position: relative;
    margin: auto;
    overflow: hidden;
}

.bizcard-header {
    margin-bottom: 15px;
}

.bizcard-name {
    font-size: 1.4em;
    font-weight: bold;
    display: block;
    letter-spacing: 0.5px;
}

.bizcard-title {
    font-size: 1.03em;
    color: #11C6F6;
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

.bizcard-info {
    margin-bottom: 17px;
    width: 100%;
}

.bizcard-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 7px;
    font-size: 0.8em;
}

.bizcard-icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #11C6F6;
    font-size: 1.11em;
    margin-right: 6px;
    margin-top: 1px;
}

.bizcard-logo {
    margin: 16px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bizcard-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 1.5px #11C6F6);
    border-radius: 50%;
    background: #fff;
}

.bizcard-company {
    color: #11C6F6;
    font-weight: 500;
    font-size: 1em;
    letter-spacing: 1.2px;
    text-align: center;
    margin-top: 2px;
}

/* Responsive for card on small panels */
/* Tablet and small laptop */
@media (max-width: 900px) {
    .bizcard {
        width: 99%;
        min-height: 99%;
        padding: 14px 7px 11px 10px;
    }
    .bizcard-logo img {
        width: 48px;
        height: 48px;
    }
    .bizcard-name {
        font-size: 1.18em;
    }
    .bizcard-title {
        font-size: 0.97em;
    }
}

/* Large phone and portrait tablet */
@media (max-width: 680px) {
    .bizcard {
        width: 99vw;
        min-width: 0;
        padding: 10px 5px 9px 7px;
    }
    .bizcard-logo img {
        width: 36px;
        height: 36px;
    }
    .bizcard-name {
        font-size: 1.05em;
    }
    .bizcard-title {
        font-size: 0.93em;
    }
    .bizcard-row {
        font-size: 0.97em;
    }
}

/* Small phone */
@media (max-width: 480px) {
    .bizcard {
        width: 98vw;
        padding: 8px 4px 7px 7px;
    }
    .bizcard-logo img {
        width: 28px;
        height: 28px;
    }
    .bizcard-name {
        font-size: 0.92em;
    }
    .bizcard-title {
        font-size: 0.85em;
    }
    .bizcard-row {
        font-size: 0.91em;
    }
}

