/* ============================================
   WALTHER CURO — HACKER TERMINAL THEME
   styles/terminal.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --green:      #45ff7a; /* Lighter, more vibrant green for contrast */
  --green-glow: rgba(69, 255, 122, 0.5);
  --green-dim:  #008f11;
  --green-dark: #003300;
  --red:        #ff0040;
  --yellow:     #f0e040;
  --cyan:       #00d4ff;
  --cyan-glow:  rgba(0, 212, 255, 0.4);
  --blue:       #3399ff; /* Specific blue for important text if cyan is too light */
  --white:      #e0e0e0;
  --gray:       #666666;
  --bg:         #020502;
  --bg-card:    #0a120a;
  --border:     #1a2a1a;
  --border-light: #2a3a2a;
  --font:       'JetBrains Mono', 'Courier New', monospace;
  --shadow-green: rgba(0, 255, 65, 0.15);
  --shadow-cyan:  rgba(0, 212, 255, 0.2);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--green);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  text-shadow: 0 0 2px var(--green-glow);
}

/* CRT scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 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));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Vignette */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 9998;
}

@keyframes blink    { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes slideUp  { from{transform:translateY(12px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes scanMove { 0%{top:-100%} 100%{top:100%} }
@keyframes pulseGlow { 0% { box-shadow: 0 0 5px var(--green-glow); } 50% { box-shadow: 0 0 15px var(--green-glow); } 100% { box-shadow: 0 0 5px var(--green-glow); } }

/* ---- Typography ---- */
.t-green  { color: var(--green); text-shadow: 0 0 5px var(--green-glow); }
.t-dim    { color: var(--green-dim); }
.t-red    { color: var(--red); }
.t-yellow { color: var(--yellow); }
.t-cyan   { color: var(--cyan); text-shadow: 0 0 5px var(--cyan-glow); }
.t-blue   { color: var(--blue); }
.t-white  { color: var(--white); }
.t-gray   { color: var(--gray); }
.t-bold   { font-weight: 700; }

/* ---- Layout ---- */
.terminal {
  min-height: 100vh;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 600px) {
  .terminal {
    padding: 16px 12px;
  }
}

/* ---- Nav header ---- */
.term-nav {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.term-nav .nav-path { color: var(--cyan); font-size: 14px; }
.term-nav .nav-links { margin-left: auto; display: flex; gap: 16px; }
.term-nav .nav-links a { color: var(--green-dim); font-size: 13px; text-decoration: none; transition: color .2s; }
.term-nav .nav-links a:hover { color: var(--green); }

/* ====== GLOBAL TOP MENU BAR ====== */
.tc-menubar {
  background: #0a1a0a;
  border-bottom: 1px solid var(--border);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  flex-shrink: 0;
  width: 100%;
  position: relative;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.tc-menubar .tc-logo {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: .05em;
}

.tc-menubar a {
  color: var(--green-dim);
  text-decoration: none;
  padding: 2px 8px;
  transition: background .2s, color .2s;
}

.tc-menubar a:hover {
  background: var(--green);
  color: #000;
}

.tc-menubar .tc-path-bar {
  margin-left: auto;
  color: var(--gray);
  font-size: 12px;
}

@media (max-width: 600px) {
  .tc-menubar { 
    flex-wrap: wrap; 
    gap: 8px; 
    height: auto; 
    padding: 12px 10px;
    justify-content: center;
    align-items: center;
  }
  .tc-menubar .tc-logo { 
    width: 100%; 
    text-align: center; 
    margin-bottom: 8px;
    font-size: 16px;
  }
  .tc-menubar a {
    font-size: 11px;
    padding: 6px 10px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
  }
  .tc-menubar a.active {
    background: var(--green);
    color: #000;
  }
  .tc-menubar .tc-path-bar { 
    display: none; 
  }
}

/* ====== TOTAL COMMANDER LAYOUT ====== */
.tc-layout body {
  overflow: hidden;
  height: 100vh;
}

.tc-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg);
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
  margin-top: 20px;
}

.term-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 20px;
  position: relative;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideUp .4s ease both;
}
.term-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: var(--green);
  transition: all .3s;
  box-shadow: 0 0 5px var(--green-glow);
}
.term-card:hover { 
  border-color: var(--green); 
  box-shadow: 0 0 25px var(--shadow-green); 
  transform: translateY(-5px); 
  background: #0d1a0d;
}
.term-card:hover::before { width: 4px; box-shadow: 0 0 10px var(--green-glow); }

.card-id    { color: var(--green-dim); font-size: 12px; margin-bottom: 8px; letter-spacing:.1em; }
.card-title { color: var(--cyan); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card-desc  { color: var(--white); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.card-tags  { margin-bottom: 16px; }

.tag {
  display: inline-block;
  border: 1px solid var(--green-dim);
  color: var(--green-dim);
  padding: 1px 6px;
  font-size: 12px;
  margin: 2px;
}

/* ---- Buttons ---- */
.term-btn {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  padding: 7px 18px;
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
  letter-spacing: .05em;
}
.term-btn:hover { background: var(--green); color: #000; box-shadow: 0 0 12px rgba(0,255,65,.5); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.cursor-blink {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--green);
  animation: blink 1s step-start infinite;
  vertical-align: middle;
  margin-left: 2px;
}

.section-header {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* ---- Cert list ---- */
.cert-menu { list-style: none; margin: 20px 0; }
.cert-menu li {
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cert-menu li .li-arrow { color: var(--green-dim); }
.cert-menu li:hover { border-color: var(--green); background: #0d1a0d; }
.cert-menu li:hover .li-arrow { color: var(--green); }
.cert-menu li .li-label { color: var(--white); }
.cert-menu li:hover .li-label { color: var(--green); }
.cert-menu li .li-desc { color: var(--gray); font-size: 12px; margin-left: auto; white-space: nowrap; }

@media (max-width: 500px) {
  .cert-menu li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cert-menu li .li-desc {
    margin-left: 0;
    white-space: normal;
  }
}

/* ---- GitHub / Repo cards ---- */
.repo-lang-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* ---- Instagram profile card ---- */
.insta-profile {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 28px;
  max-width: 600px;
  animation: slideUp .4s ease;
}
.insta-handle { color: var(--green); font-size: 25px; font-weight: 700; }
.insta-link   { color: var(--cyan); font-size: 14px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .terminal { padding: 18px; }
  .term-nav .nav-links { flex-wrap: wrap; margin-left: 0; width: 100%; margin-top: 8px; }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .term-nav .nav-links { gap: 10px; }
}
@media (max-width: 480px) { 
  .terminal { padding: 12px 10px; } 
  body { font-size: 13px; }
  .insta-handle { font-size: 20px; }
  .section-header { font-size: 12px; }
}
