*, *::before, *::after,
html, body, 
a, button, input, textarea, select, [role="button"], a *, [onclick],
::-webkit-scrollbar,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track,
::-webkit-scrollbar-button {
    cursor: url('../media/cursor/normal.png') 6 6, default !important;
}

.file-link.disabled,
.file-link.disabled:hover,
:disabled,
.disabled,
[aria-disabled="true"] {
    cursor: not-allowed !important;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #808080;
  --accent: #fff;
  --border-dim: rgba(255, 255, 255, 0.1);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "JetBrains Mono", "Courier New", Courier, monospace;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
              linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: overlay;
  animation: drift 40s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-120px); }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

header.hero {
  min-height: 30vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.brand-link {
  display: block;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 2px;
  text-transform: lowercase;
  position: relative;
  display: inline-block;
  padding-right: 12px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.brand-text::after {
  content: "_";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 400;
  animation: cursor-blink 1s step-end infinite;
  line-height: 1;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.brand-link:hover .brand-text {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Nav bar with dividers */
header.hero .btn {
  position: relative;
}

header.hero .btn:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -10px;
  color: var(--muted);
  opacity: 0.5;
  font-weight: 300;
}

header.hero .btn:hover::after {
  color: var(--accent);
}

section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  position: relative;
}

/* Replace // with the prompt */
.section-prompt {
  position: absolute;
  left: 20px;
  top: 10px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.5;
  font-family: "JetBrains Mono", monospace;
  z-index: 10;
}

h2 {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  margin: 0 0 18px 0;
  font-size: 20px;
  text-align: center;
  position: relative;
  display: inline-block;
}

h2::before {
  content: "[";
  color: var(--muted);
  margin-right: 8px;
  opacity: 0.7;
}

h2::after {
  content: "]";
  color: var(--muted);
  margin-left: 8px;
  opacity: 0.7;
}

.skills-group {
  margin-bottom: 0;
}

.folder-tree {
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 20px 20px 0 20px;
  margin: 20px auto 0 auto;
  position: relative;
  max-width: 500px;
}

.folder-tree:last-child {
  margin-bottom: 0;
}

.folder:last-child .folder-content.active {
  margin-bottom: 0;
}

.folder-tree::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-dim);
  border-radius: 4px 4px 0 0;
  pointer-events: none;
}

.terminal-prompt {
  position: absolute;
  top: 2.5px;
  left: 12px;
  color: var(--muted);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  opacity: 0.7;
  pointer-events: none;
  z-index: 5;
}

.terminal-prompt::before {
  content: "~/$";
  margin-right: 6px;
  color: var(--accent);
  opacity: 0.9;
}

.folder {
  margin: 2px 0;
  padding-left: 10px;
}

.folder:last-child {
  margin-bottom: 0;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  border-left: 2px solid transparent;
  font-family: "JetBrains Mono", monospace;
}

.folder-header:hover {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--accent);
}

.folder-icon {
  color: var(--muted);
  font-size: 12px;
  width: 20px;
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
}

.folder-name {
  flex: 1;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.5px;
  font-size: 14px;
}

.folder-content {
  display: none;
  padding-left: 25px;
  margin: 0;
  border-left: 1px dashed var(--border-dim);
}

.folder-content.active {
  display: block;
  margin: 2px 0 5px 0;
}

.subfolder {
  margin: 2px 0;
  padding-left: 5px;
}

.subfolder:last-child {
  margin-bottom: 0;
}

.subfolder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  border-left: 2px solid transparent;
  font-family: "JetBrains Mono", monospace;
}

.subfolder-header:hover {
  background: rgba(255, 255, 255, 0.02);
  border-left-color: var(--muted);
}

.subfolder-icon {
  color: var(--muted);
  font-size: 11px;
  width: 20px;
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
}

.subfolder-name {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 10px;
  margin: 2px 0;
  transition: all 0.2s ease;
  font-family: "JetBrains Mono", monospace;
  border-left: 2px solid transparent;
}

.file:hover {
  background: rgba(255, 255, 255, 0.02);
  border-left-color: var(--accent);
}

.file-icon {
  color: var(--muted);
  font-size: 11px;
  width: 20px;
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
}

.file-link {
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
  font-family: "JetBrains Mono", monospace;
}

.file-link:hover {
  color: var(--accent);
  padding-left: 5px;
}

.file-link.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.file-link.disabled:hover {
  color: var(--muted);
  padding-left: 0;
}

.folder-header.active .folder-icon,
.subfolder-header.active .subfolder-icon {
  color: var(--accent);
}

.folder-header.active .folder-name {
  color: var(--accent);
}

/* Hide old projects and contact styles */
#projects p,
#projects p::before,
#projects p::after,
.contact-list,
.contact-list .btn,
footer {
  display: none;
}

section::after {
  content: "01010110 01001111 01001001 01000100";
  position: absolute;
  bottom: 5px;
  right: 10px;
  color: rgba(255, 255, 255, 0.02);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  white-space: pre;
  pointer-events: none;
  transform: rotate(-90deg) translateY(100%);
  letter-spacing: 1px;
}

a, a:link, a:visited, a:hover, a:active {
  color: var(--fg);
  text-decoration: none;
}

@media (max-width: 700px) {
  .wrap {
    padding: 20px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .brand-text {
    font-size: 1.5rem;
  }
  
  .brand-text::after {
    font-size: 1.5rem;
  }
  
  .folder-tree {
    padding: 15px 10px;
  }
  
  .folder-content {
    padding-left: 15px;
  }
  
  .file-icon {
    width: 15px;
    font-size: 10px;
  }
  
  .section-prompt {
    font-size: 10px;
    left: 10px;
  }
  
  section::after {
    display: none;
  }
  
  body::after {
    display: none;
  }
}

.skill-image {
  text-align: center;
  margin: 30px 0;
}

.skill-image img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  /* REMOVED: filter: brightness(0) invert(1); - logos now show original colors */
  opacity: 0.9;
}

.skill-image small {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #888;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.info-card {
  background: #000;
  border: 1px solid #fff;
  padding: 20px;
}

.info-card h3 {
  margin: 0 0 15px 0;
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #fff;
  display: inline-block;
}

.info-card p {
  margin: 10px 0;
  line-height: 1.5;
  color: #ddd;
  text-transform: lowercase;
}

.experience-bar {
  margin: 15px 0;
}

.experience-label {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  text-transform: lowercase;
}

.bar-bg {
  background: #222;
  height: 20px;
  width: 100%;
}

.bar-fill {
  background: #fff;
  height: 100%;
  width: 0%;
}

.website-link {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 8px 16px;
  transition: all 0.2s;
  text-transform: lowercase;
}

.website-link:hover {
  background: #fff;
  color: #000;
}

.command-output {
  background: #000;
  border: 1px solid #333;
  padding: 15px;
  margin: 20px 0;
  font-family: monospace;
}

.command-output .line {
  margin: 5px 0;
  color: #fff;
}

.command-output .prompt {
  color: #fff;
}

.back-link {
  display: inline-block;
  margin: 20px 0;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 8px 16px;
  transition: all 0.2s;
  text-transform: lowercase;
}

.back-link:hover {
  background: #fff;
  color: #000;
}

.section-divider {
  border-top: 1px solid #333;
  margin: 30px 0;
}

.lowercase {
  text-transform: lowercase;
}

.terminal-container {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  margin: 40px auto 0;
  text-align: left;
  width: 514px;
  height: 322.8px;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.terminal-header {
  height: 25px;
  background: #050505;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
  z-index: 10;
}

.terminal-header-label {
  position: absolute;
  top: 2.5px;
  left: 12px;
  color: var(--muted);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  opacity: 0.7;
  pointer-events: none;
  z-index: 5;
}

.terminal-header-label::before {
  content: "~/$";
  margin-right: 6px;
  color: var(--accent);
  opacity: 0.9;
}

#terminal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  scrollbar-gutter: stable;
  color-scheme: dark;
}

#terminal-body::-webkit-scrollbar {
  width: 8px;
}

#terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

#terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

#terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
  background-clip: content-box;
}

#terminal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

#terminal-body::-webkit-scrollbar-button {
  display: none;
}

.line {
  margin-bottom: 4px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-size: 13px;
  color: #ccc;
}

.prompt-user {
  color: var(--accent);
}

.prompt-dir {
  color: var(--muted);
}

.input-line {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 13px;
}

#commandInput {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  flex-grow: 1;
  outline: none;
  margin-left: 8px;
  caret-color: var(--accent);
}
