:root {
    --bg-dark: #000000;
    --accent: #0be465;
    --text-main: #e0e0e0;
    --nav-height: 70px;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* all navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #111;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
}

.favicon { width: 32px; height: 32px; border-radius: 4px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.login-btn {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 18px;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    transition: 0.3s;
}

.login-btn:hover { background: var(--accent); color: #000; }


.section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.3) contrast(1.1) grayscale(0.2);
    animation: move-down linear;
    animation-timeline: view();
}

@keyframes move-down {
    from { transform: translateY(-10%); }
    to { transform: translateY(10%); }
}

/* images*/
.img1 { background-image: url('./img/palms.jpg'); }
.img2 { background-image: url('./img/painting.jpg'); }
.img3 { background-image: url('./img/planet.jpg'); }


.content {
    text-align: center;
    z-index: 1;
    opacity: 1;
}

h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    letter-spacing: 8px;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(11, 228, 101, 0.3);
}

.scroll-indicator {
    margin-top: 20px;
    color: var(--accent);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

footer {
    padding: 40px;
    text-align: center;
    background: #000;
    color: #333;
    font-size: 0.7rem;
}


.nav-links li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* status */
.status-red::before, 
.status-orange::before {
    content: attr(data-status);
    position: absolute;
    top: -15px;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
    letter-spacing: 1px;
    pointer-events: none;
}


.status-red::before {
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.1);
}


.status-orange::before {
    color: #ff9d00;
    border: 1px solid rgba(255, 157, 0, 0.3);
    background: rgba(255, 157, 0, 0.1);
}


.status-red:hover::before {
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}


.sys-input {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    color: var(--accent);
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
    transition: 0.3s;
}

.sys-input:focus {
    outline: none;
    border-color: var(--accent);
}

.protocol-row {
    display: flex;
    gap: 10px;
}

.sys-select {
    flex: 1;
    cursor: pointer;
}

.shorten-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.shorten-btn:active {
    transform: translateY(2px);
    background: var(--accent);
    color: #000;
}

.sys-output {
    margin-top: 20px;
    min-height: 20px;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
}

#profiles {
    padding: 15px !important;
    box-sizing: border-box;
}


.chat-system-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 150px);
    border: 1px solid var(--accent);
    background: rgba(0, 0, 0, 0.75); 
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.05);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.directory-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    font-family: 'Courier New', monospace;
}

.directory-header h2 {
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin: 0 0 5px 0;
}

.profile-list-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.profile-list-item:hover {
    background: rgba(0, 255, 65, 0.05);
    box-shadow: inset 4px 0 0 var(--accent);
}

.profile-list-item.active-target {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: inset 6px 0 0 var(--accent);
}

.terminal-chat-pane {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
}

.chat-pane-header {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    text-align: left;
    font-family: 'Courier New', monospace;
}

.chat-feed-box {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input-row {
    display: flex;
    border-top: 1px solid var(--accent);
    background: #000;
}

.chat-input-row input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--accent);
    padding: 20px;
    font-family: 'Courier New', monospace;
    outline: none;
    font-size: 0.95rem;
}

.chat-send-btn {
    padding: 0 40px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: 0.3s;
}

.chat-send-btn:hover {
    background: var(--accent);
    color: #000;
}

.empty-terminal-state {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    color: #444;
    letter-spacing: 2px;
}