:root {
  --bg-main: #0a0a0a;
  --bg-tab: #1a1a1a;
  --accent-primary: #33ff33;
  --accent-dim: #1db21d;
  --accent-light: rgba(51, 255, 51, 0.4);
  --text-main: #e0e0e0;
  --text-dim: #888888;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --border-style: 1px solid var(--accent-dim);
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* Forces rough edges */
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-mono);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  padding-top: 60px;
  position: relative;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Enforce flat, small terminal headers */
h1, h2, h3, h4, h5, h6 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
  text-align: left; /* Enforce Left Align */
  padding-left: 0;
  margin-left: 0;
}

p, span, div, a {
  text-align: left; /* Enforce Left Align Globally */
}

/* Terminal Format */
.cli-line,
.cli-prompt,
.highlight {
  white-space: normal;
}

.window-content p {
    white-space: normal;
}

/* CRT Scanline Overlay - Subtle */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 10000;
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  opacity: 0.4;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-tab);
  display: flex;
  padding: 0;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

.nav-tab {
  padding: 15px 25px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  border-right: 1px solid #333;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.2s ease;
}

.nav-tab:hover, .nav-tab.active {
  background: var(--accent-primary);
  color: #000;
}

.nav-contact {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 25px;
}

.nav-contact a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.nav-contact a:hover {
  color: var(--accent-primary);
}

/* Main Container - Strict Left */
.main-container {
  max-width: 100%;
  margin: 0;
  padding: 20px;
}

/* Terminal Window - Strict Left */
.terminal-window {
  background: var(--bg-main);
  border: 1px solid #333;
  margin-bottom: var(--spacing-md);
  box-shadow: none;
  position: relative;
}

.terminal-window:hover {
  border-color: var(--accent-dim);
}

.window-header {
  background: #222;
  padding: 5px 10px; /* Reduced Padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 1px solid #333;
}

.window-content {
  padding: 1rem; /* Reduced from 2rem to 1rem standard */
}

/* Hero Section */
.hero-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: block;
}

.typed-header {
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  margin-left: 0;
  padding-left: 0;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.2rem;
  background: var(--accent-primary);
  animation: blink 1s step-end infinite;
  vertical-align: sub;
}

@keyframes blink { 50% { opacity: 0; } }

/* Utilities */
.text-accent { color: var(--accent-primary); }
.text-dim { color: var(--text-dim); }
.text-main { color: var(--text-main); }

.cli-prompt {
  color: var(--accent-primary);
  font-weight: bold;
  margin-right: 10px;
}

.highlight {
  background: rgba(51, 255, 51, 0.1);
  color: var(--accent-primary);
  padding: 2px 5px;
}

/* Spacing Utilities */
.spacing-sm { margin-bottom: var(--spacing-sm); }
.spacing-md { margin-bottom: var(--spacing-md); }
.spacing-lg { margin-bottom: var(--spacing-lg); }

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Interactive CLI Input Line - Fix for indentation */
.cli-input-line {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 0; /* Remove gap if causing indentation */
}

.cli-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-primary);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    padding-left: 10px; /* Small padding from prompt */
}

/* Modules / Cards */
.growth-module {
  border: 1px solid #333;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.growth-module:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  background: rgba(51, 255, 51, 0.02);
}

.module-title {
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-specs {
  border-left: 2px solid var(--accent-dim);
  padding-left: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.project-item { margin-bottom: 1rem; }

.blog-card {
  border: 1px solid #333;
  padding: 1rem;
  display: block;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-card:hover {
  border-color: var(--accent-primary);
  background: #111;
}

.blog-title {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Contact */
.contact-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-primary);
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.contact-btn:hover { background: var(--accent-dim); }

.contact-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

.contact-links a:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body { padding-top: 50px; }
  
  .navbar { flex-wrap: wrap; }
  
  .nav-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
  }
  
  .mobile-hidden { display: none !important; }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  h1, h2, h3 { font-size: 1.1rem; }

  /* Minimal Padding on Mobile */
  .main-container {
    padding: 10px; /* Very minimal padding for left-alignment feel */
  }

  .window-content {
      padding: 0.5rem; /* Almost no padding inside window */
  }

  .nav-contact {
    width: 100%;
    margin: 0;
    justify-content: center;
    padding: 10px;
    background: #111;
    border-top: 1px solid #333;
    order: 10; /* Ensure it stays at bottom or top as needed, flex-wrap will push it down if not careful */
  }
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tool-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.tool-item:hover {
    border-color: var(--accent-primary);
    background: rgba(51, 255, 51, 0.1);
    transform: translateY(-2px);
}

.tool-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.tool-name {
    font-weight: bold;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.tool-status {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}
