:root {
    --bg: #050505;
    --accent: #4facfe;
    --text: #94a3b8;
    --code-bg: #0f172a;
    --border: rgba(79, 172, 254, 0.3);
    
    /* Fluid Typography System */
    --font-main: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    --font-h1: clamp(1.5rem, 1rem + 2.5vw, 2.8rem);
    --font-h2: clamp(1.1rem, 0.9rem + 1.5vw, 1.8rem);
    
    /* Fluid Spacing System */
    --space-outer: clamp(15px, 5vw, 60px);
    --space-card: clamp(15px, 2vw, 30px);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Courier New', monospace;
    line-height: 1.6;
    padding: var(--space-outer);
    /* Fluid width: takes up 95% of screen up to a max of 1200px */
    width: clamp(320px, 95vw, 1200px); 
    margin: auto;
    box-sizing: border-box;
    font-size: var(--font-main);
}

header {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 5vh; /* Margin relative to viewport height */
    display: flex;
    flex-wrap: wrap; /* Allows header to stack on small screens */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

h1 { 
    color: #fff; 
    margin: 0; 
    font-size: var(--font-h1); 
    letter-spacing: -0.05em; 
    text-transform: uppercase; 
}

h2 { 
    color: #fff; 
    border-bottom: 1px solid #1e293b; 
    padding-bottom: 10px; 
    margin-top: 6vh; 
    font-size: var(--font-h2); 
    font-family: monospace;
    letter-spacing: 2px;
}

.project-card {
    background: rgba(79, 172, 254, 0.05);
    border: 1px solid #1e293b;
    padding: var(--space-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Mission Log Grid: Fluid columns */
.mission-grid {
    display: grid;
    /* Columns expand based on viewport width */
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 550px), 1fr));
    gap: 2.5vw;
}

.btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 2.5vw, 25px);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.9rem;
}

.btn-logout {
    background: transparent;
    color: #ff3e3e;
    border: 1px solid #ff3e3e;
}

input, textarea {
    background: var(--code-bg);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Social Icons styling */
.header-socials a {
    color: var(--text);
    font-size: clamp(1rem, 0.8rem + 1vw, 1.4rem);
    margin-right: 15px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header-socials a:hover {
    color: var(--accent);
}

.project-links {
    margin-top: auto; /* Pushes links to the bottom of the card */
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-links a {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--accent);
    color: #000;
}

.system-link-container {
    margin: 15px 0;
    font-family: monospace;
    font-size: 0.85rem;
}

.prompt {
    color: var(--accent);
    margin-right: 8px;
    font-weight: bold;
    opacity: 0.8;
}

.terminal-link {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 2px 4px;
}

.terminal-link:hover {
    color: var(--accent);
    background: rgba(79, 172, 254, 0.1);
    border-bottom: 1px solid var(--accent);
    text-shadow: 0 0 8px var(--accent);
    letter-spacing: 0.5px;
}