/* === Base layout and font === */
body {
    background: #222;
    color: #eee;
    font-family: 'Fira Mono', 'Consolas', monospace;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Ubuntu-style terminal header === */
.terminal-header {
    /* Ubuntu terminal gradient: dark purple to classic Ubuntu purple */
    background: linear-gradient(90deg, #2C001E 0%, #77216F 100%);
    padding: 1.2rem 2rem 1rem 2rem;
    font-size: 1.6rem;
    font-family: 'Fira Mono', 'Consolas', monospace;
    color: #fff;
    /* border-bottom: 2px solid #77216F; */ /* Uncomment for a solid border */
    position: relative;
    box-shadow: 0 2px 8px #0004;
    display: flex;
    align-items: center;
    min-height: 70px;
    
    /* Prevent prompt from wrapping and expanding the header */
    overflow-x: hidden;
    white-space: nowrap;
}

/* Keep prompt fixed, no scroll/overflow */
.prompt {
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

#typed-text {
    display: inline-block;
    white-space: nowrap;
    overflow-x: hidden;         /* Hide the scrollbar and prevent scrolling */
    text-overflow: ellipsis;    /* Show ... when text overflows */
    max-width: 50vw;            /* Adjust as needed for your layout */
    vertical-align: bottom;
    pointer-events: none;       /* Prevent user interaction */
    margin-left: 0.7em; /* Add or adjust this line for spacing */
}

@media (max-width: 760px) {
    #typed-text {
        display: none;
    }
}

/* Ubuntu green for user@host */
.user-host {
    color: #7FFF00;
    font-weight: bold;
}

/* Ubuntu blue for ~ */
.cwd {
    color: #3DAEE9;
    margin-left: 4px;
    font-weight: bold;
}

/* Ubuntu yellow for $ */
.dollar {
    color: #FFD700;
    margin-left: 4px;
    font-weight: bold;
}

/* Blinking cursor styling */
.blinker {
    display: inline-block;
    width: 1ch;
    background: #fff;
    animation: blink 1s steps(1) infinite;
    vertical-align: bottom;
}

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

/* === Tool grid layout === */
.tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    max-width: 900px;
}

/* === Tool box styling (with photo support) === */
.tool-box {
    background: #333;
    color: #eee;
    width: 44vw;
    min-width: 320px;
    max-width: 600px;
    height: 28vw;
    min-height: 180px;
    max-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8vw;
    border-radius: 6px;
    box-shadow: 0 2px 16px #0008;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.tool-box span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 2.2vw;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 8px #000a;
    padding: 0 1em;
    pointer-events: none;
}
.tool-box:hover {
    /* Do not change background! Only add a visual effect */
    transform: scale(1.04);
    filter: brightness(0.95);
}

/* === Footer and social links === */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    border-top: 2px solid #333;
}
.socials a {
    color: #4fc3f7;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 1.2rem;
}
.socials a:hover {
    text-decoration: underline;
}

/* Hamburger menu button styling */
.hamburger-btn {
    /* Remove: top: 18px; */
    right: 32px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 20;
    position: absolute;
    align-self: center;
}
.hamburger-btn span {
    display: block;
    height: 4px;
    width: 100%;
    background: #eee;
    border-radius: 2px;
    transition: background 0.2s;
}
body.light-mode .hamburger-btn span {
    background: #222;
}

/* Dropdown menu for hamburger */
.hamburger-dropdown {
    display: none;
    position: absolute;
    top: 58px;
    right: 32px;
    background: #222;
    color: #eee;
    padding: 1em 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 12px #0008;
    font-size: 1.1rem;
    z-index: 30;
    min-width: 180px;
    flex-direction: column;
}
.hamburger-dropdown.active {
    display: flex;
}
.hamburger-dropdown a {
    color: #eee;
    text-decoration: none;
    padding: 0.5em 0;
    transition: color 0.2s;
}
.hamburger-dropdown a:hover {
    color: #7FFF00;
}