/* ===== Base Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: monospace;
  background-color: #f8f8f8;
  color: #111;
  padding: 2rem;
  transition: background 0.3s, color 0.3s;
}

.dark-theme {
  background-color: #0f0f0f;
  color: #00ff99;
}

/* ===== Theme Toggle Button ===== */
#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #111;
  color: #0f0;
  border: 2px solid #0f0;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 999;
  font-weight: bold;
  text-transform: uppercase;
}

.dark-theme #theme-toggle {
  background: #00ff99;
  color: #000;
  border-color: #fff;
}

/* ===== Navbar Brutalism ===== */
.navbar {
  border: 4px solid #000;
  padding: 2rem;
  background: #fff;
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.dark-theme .navbar {
  background: #111;
  border-color: #00ff99;
}

nav ul {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

nav a {
  text-decoration: none;
  color: inherit;
  border-bottom: 3px solid #000;
  padding-bottom: 0.25rem;
  transition: background 0.3s;
}

nav a:hover {
  background: #000;
  color: #fff;
}

.dark-theme nav a {
  border-color: #00ff99;
}

/* ===== Typing Header ===== */
header h1 {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* ===== Section Styling ===== */
.chunky-box {
  border: 6px solid #000;
  padding: 2rem;
  margin-top: 2rem;
  background: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.chunky-box p {
  text-transform: none;
}

.chunky-box a {
  color: #ff0000;
  text-decoration: underline;
}

.dark-theme .chunky-box {
  background: #111;
  border-color: #00ff99;
}

/* ===== Terminal Log ===== */
.terminal-log {
  font-family: monospace;
  background: #111;
  color: #00ff00;
  padding: 1rem;
  max-height: 200px;
  overflow-y: auto;
  border: 4px dashed #00ff00;
}

.dark-theme .terminal-log {
  background: #000;
  border-color: #00ff99;
}

/* ===== Footer Brutalism ===== */
footer {
  border-top: 4px solid #000;
  margin-top: 4rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: bold;
  background: #eee;
}

.dark-theme footer {
  background: #000;
  border-color: #00ff99;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  #theme-toggle {
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .chunky-box {
    font-size: 1rem;
  }
}

/* === Terminal Section === */
.terminal {
  padding: 2rem;
  margin-top: 3rem;
  font-family: 'Courier New', monospace;
  background-color: var(--black);
  color: var(--lime-matrix);
  border: 2px solid var(--glitch-purple);
  box-shadow: 0 0 20px var(--glitch-purple);
}

.terminal-log {
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

#terminal-input {
  width: 100%;
  padding: 0.75rem;
  background-color: transparent;
  border: 2px solid var(--cyber-teal);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
}

/* === Portfolio Grid === */
.portfolio-grid-section {
  margin-top: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}



.grid-item {
  padding: 1.5rem;
  border: 4px solid #ff0000;
  background: #fff;
  color: #111;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
  box-shadow: 4px 4px 0px #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-item:hover {
  transform: scale(1.03);
  box-shadow: 4px 4px 12px rgba(255, 0, 0, 0.4);
}

.dark-theme .grid-item {
  background: #111;
  color: #ff0000;
  border-color: #ff0000;
}

