/* ========================================
   TERMINAL PORTFOLIO - CSS THEME
   Linux Command Prompt Style
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-dark: #0a0e14;
  --bg-terminal: #0d1117;
  --bg-titlebar: #1a1e26;
  --bg-input: #161b22;
  --bg-card: #161b22;
  --bg-card-hover: #1c2128;

  --text-primary: #c9d1d9;
  --text-green: #39ff14;
  --text-green-dim: #00cc44;
  --text-cyan: #58d1eb;
  --text-yellow: #e3b341;
  --text-red: #f85149;
  --text-orange: #f0883e;
  --text-purple: #bc8cff;
  --text-blue: #58a6ff;
  --text-white: #f0f6fc;
  --text-muted: #6e7681;

  --glow-green: 0 0 10px rgba(57, 255, 20, 0.3), 0 0 20px rgba(57, 255, 20, 0.1);
  --glow-cyan: 0 0 10px rgba(88, 209, 235, 0.3);

  --border-color: #30363d;
  --selection-bg: rgba(57, 255, 20, 0.15);

  --font-mono: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size: 14px;
  --line-height: 1.7;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--selection-bg);
  color: var(--text-green);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--text-primary);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Command Mode Wrapper ---------- */
.command-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
}

/* ---------- Scanline Overlay ---------- */
.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

.scanline-overlay::after {
  content: '';
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    transparent 0%,
    rgba(57, 255, 20, 0.02) 50%,
    transparent 100%
  );
  animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(50%); }
}

/* ---------- Terminal Window ---------- */
.terminal-window {
  width: 100%;
  max-width: 960px;
  height: 85vh;
  max-height: 700px;
  background: var(--bg-terminal);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(57, 255, 20, 0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: windowAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes windowAppear {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- Title Bar ---------- */
.title-bar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  background: var(--bg-titlebar);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
  flex-shrink: 0;
}

.title-bar-buttons {
  display: flex;
  gap: 8px;
}

.title-bar-buttons span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition-fast);
}

.btn-close {
  background: #ff5f57;
  border: 1px solid #e0443e;
}

.btn-minimize {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.btn-maximize {
  background: #28c840;
  border: 1px solid #1aab29;
}

.title-bar-buttons span:hover {
  filter: brightness(1.3);
}

.title-bar-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.title-bar-spacer {
  width: 55px;
}

/* ========================================
   MODE SELECTOR OVERLAY
   ======================================== */
.mode-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

.mode-selector-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.mode-selector-box {
  text-align: center;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.mode-ascii {
  color: var(--text-green);
  font-size: 12px;
  line-height: 1.2;
  text-shadow: var(--glow-green);
  margin-bottom: 24px;
  white-space: pre;
}

.mode-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.mode-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.mode-cards {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 240px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-mono);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.04), transparent);
  transition: left 0.6s ease;
}

.mode-card:hover::before {
  left: 100%;
}

.mode-card:hover {
  border-color: var(--text-green);
  background: var(--bg-card-hover);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.1), 0 10px 40px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.mode-card:active {
  transform: translateY(0);
}

.mode-card-icon {
  font-size: 36px;
}

.mode-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-green);
  text-shadow: var(--glow-green);
}

.mode-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.mode-card-hint {
  color: var(--text-cyan);
  font-size: 11px;
}

.mode-card-preview {
  width: 100%;
  height: 60px;
  background: var(--bg-dark);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  margin-top: 4px;
}

.preview-bar {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--text-green), var(--text-cyan));
  border-radius: 4px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.preview-grid {
  display: flex;
  gap: 6px;
}

.preview-block {
  flex: 1;
  height: 28px;
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.mode-card-preview-terminal {
  text-align: left;
  font-size: 10px;
  line-height: 1.6;
}

.preview-prompt {
  color: var(--text-green);
  opacity: 0.7;
}

.preview-cursor {
  animation: blink 1s step-end infinite;
}

.mode-divider {
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
}

.mode-divider span {
  background: var(--bg-dark);
  padding: 0 8px;
}

/* ---------- Terminal Body ---------- */
.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.terminal-body.active {
  display: flex;
}

/* Custom scrollbar */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: var(--bg-terminal);
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---------- Terminal Output ---------- */
#terminalOutput {
  flex: 1;
}

.output-line {
  margin-bottom: 2px;
  animation: lineAppear 0.15s ease forwards;
  word-wrap: break-word;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes lineAppear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.output-line.typed {
  overflow: hidden;
  white-space: nowrap;
  animation: typingLine 0.4s steps(40) forwards;
}

@keyframes typingLine {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ---------- Typing Line ---------- */
.typing-line {
  opacity: 1 !important;
  animation: none !important;
}

.typing-line::after {
  content: '▋';
  color: var(--text-green);
  animation: blink 0.7s step-end infinite;
  margin-left: 1px;
}

/* ---------- ASCII Art ---------- */
.ascii-art {
  color: var(--text-green);
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 8px;
  white-space: pre;
  text-shadow: var(--glow-green);
}

.ascii-art-animated {
  animation: asciiGlow 2s ease-in-out;
}

@keyframes asciiGlow {
  0% {
    opacity: 0;
    text-shadow: none;
    filter: brightness(0.3);
  }
  30% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.6), 0 0 40px rgba(57, 255, 20, 0.3);
    filter: brightness(1.5);
  }
  100% {
    text-shadow: var(--glow-green);
    filter: brightness(1);
  }
}

/* ---------- Table Row Animation ---------- */
.table-row-animated {
  animation: rowSlideIn 0.3s ease forwards;
}

@keyframes rowSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.portfolio-table-wrap {
  overflow-x: auto;
}

/* ---------- Text Colors ---------- */
.text-green {
  color: var(--text-green);
  text-shadow: var(--glow-green);
}

.text-cyan {
  color: var(--text-cyan);
  text-shadow: var(--glow-cyan);
}

.text-yellow {
  color: var(--text-yellow);
}

.text-red {
  color: var(--text-red);
}

.text-orange {
  color: var(--text-orange);
}

.text-purple {
  color: var(--text-purple);
}

.text-blue {
  color: var(--text-blue);
}

.text-white {
  color: var(--text-white);
}

.text-muted {
  color: var(--text-muted);
}

.text-bold {
  font-weight: 700;
}

/* ---------- Prompt ---------- */
.prompt {
  color: var(--text-green);
  white-space: nowrap;
  user-select: none;
  text-shadow: var(--glow-green);
}

.prompt-colon {
  color: var(--text-primary);
}

.prompt-path {
  color: var(--text-cyan);
  text-shadow: var(--glow-cyan);
}

.prompt-dollar {
  color: var(--text-primary);
  margin-right: 8px;
}

/* ---------- Command Line Input ---------- */
.command-line {
  display: flex;
  align-items: center;
  margin-top: 4px;
  min-height: 28px;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: var(--font-size);
  caret-color: var(--text-green);
  letter-spacing: 0.3px;
}

/* ---------- Click Mode Navigation ---------- */
.click-nav {
  margin-top: 12px;
}

.click-nav.hidden {
  display: none;
}

.nav-section {
  margin-bottom: 20px;
}

.nav-section-title {
  color: var(--text-yellow);
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link {
  display: inline-block;
  color: var(--text-cyan);
  text-decoration: none;
  padding: 4px 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
  margin-right: 20px;
}

.nav-link:hover {
  color: var(--text-green);
  text-shadow: var(--glow-green);
  border-bottom-color: var(--text-green);
}

.nav-link::before {
  content: '→ ';
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover::before {
  color: var(--text-green);
}

.nav-link-active {
  color: var(--text-green);
  border-bottom-color: var(--text-green-dim);
}

.nav-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* ---------- Portfolio Table ---------- */
.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.portfolio-table th {
  text-align: left;
  color: var(--text-yellow);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 12px 6px 0;
  font-weight: 600;
  white-space: nowrap;
}

.portfolio-table td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.3);
  vertical-align: top;
}

.portfolio-table tr {
  transition: background var(--transition-fast);
}

.portfolio-table tr:hover {
  background: rgba(57, 255, 20, 0.03);
}

.portfolio-table .col-permissions {
  color: var(--text-muted);
  font-size: 12px;
}

.portfolio-table .col-name {
  color: var(--text-cyan);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.portfolio-table .col-name:hover {
  color: var(--text-green);
  text-shadow: var(--glow-green);
}

.portfolio-table .col-tech {
  color: var(--text-purple);
}

.portfolio-table .col-platform {
  color: var(--text-orange);
}

.portfolio-table .col-status-released {
  color: var(--text-green);
}

.portfolio-table .col-status-dev {
  color: var(--text-yellow);
}

.portfolio-table .col-year {
  color: var(--text-muted);
}

/* ---------- Project Detail ---------- */
.project-detail {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(13, 17, 23, 0.5);
}

.project-detail .detail-row {
  margin-bottom: 6px;
}

.detail-label {
  color: var(--text-yellow);
  display: inline-block;
  min-width: 120px;
}

.detail-value {
  color: var(--text-primary);
}

/* ---------- Horizontal Rule ---------- */
.terminal-hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

/* ---------- Blinking Cursor ---------- */
.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--text-green);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Mode Toggle (in terminal) ---------- */
.mode-toggle-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
}

.mode-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-toggle-btn:hover {
  border-color: var(--text-green);
  color: var(--text-green);
}

.mode-toggle-btn.active {
  border-color: var(--text-green);
  color: var(--text-green);
  background: rgba(57, 255, 20, 0.08);
}

/* ---------- Loading Dots Animation ---------- */
.loading-dots::after {
  content: '';
  animation: loadDots 1.5s steps(3) infinite;
}

@keyframes loadDots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body {
    padding: 10px;
    align-items: flex-start;
  }

  .terminal-window {
    height: 95vh;
    max-height: none;
    border-radius: 8px;
  }

  .terminal-body {
    padding: 16px;
  }

  .portfolio-table {
    font-size: 11px;
  }

  .portfolio-table th,
  .portfolio-table td {
    padding: 4px 6px 4px 0;
  }

  .ascii-art {
    font-size: 7px;
  }

  .mode-cards {
    flex-direction: column;
  }

  .mode-card {
    width: 100%;
    max-width: 280px;
  }

  .mode-divider {
    transform: rotate(0);
  }

  .mode-ascii {
    font-size: 8px;
  }

  .mode-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size: 12px;
  }

  .title-bar-text {
    font-size: 11px;
  }

  .terminal-body {
    padding: 12px;
  }
}

/* ========================================
   GUI MODE STYLES
   ======================================== */

.gui-mode {
  font-family: var(--font-sans);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
}

/* ---------- GUI Container ---------- */
.gui-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- GUI Navbar ---------- */
.gui-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

.gui-navbar.scrolled {
  border-bottom-color: var(--border-color);
  padding: 10px 0;
}

.gui-navbar .gui-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gui-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.gui-logo:hover {
  color: var(--text-green);
}

.gui-logo-bracket {
  color: var(--text-green);
  text-shadow: var(--glow-green);
}

.gui-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.gui-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.gui-nav-link:hover {
  color: var(--text-green);
}

.gui-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-green);
  transition: width var(--transition-normal);
  box-shadow: var(--glow-green);
}

.gui-nav-link:hover::after {
  width: 100%;
}

.gui-nav-mode-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gui-nav-mode-btn:hover {
  border-color: var(--text-green);
  color: var(--text-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.gui-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.gui-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.gui-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.gui-mobile-menu.active {
  display: flex;
}

.gui-mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}

.gui-mobile-link:hover {
  color: var(--text-green);
}

/* ---------- GUI Hero ---------- */
.gui-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.gui-hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.gui-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.gui-hero-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-green);
  margin-bottom: 16px;
  text-shadow: var(--glow-green);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.gui-hero-name {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.1;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.gui-hero-role {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-cyan);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.gui-hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.gui-tag {
  display: inline-block;
  background: rgba(57, 255, 20, 0.08);
  color: var(--text-green);
  padding: 2px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 2px 2px;
  border: 1px solid rgba(57, 255, 20, 0.15);
}

.gui-highlight {
  color: var(--text-green);
  text-shadow: var(--glow-green);
}

.gui-hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.gui-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.gui-btn-primary {
  background: var(--text-green);
  color: var(--bg-dark);
  border: none;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.gui-btn-primary:hover {
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.4);
  transform: translateY(-2px);
}

.gui-btn-outline {
  background: transparent;
  color: var(--text-green);
  border: 1px solid var(--text-green);
}

.gui-btn-outline:hover {
  background: rgba(57, 255, 20, 0.08);
  transform: translateY(-2px);
}

.gui-hero-stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 0.6s ease 0.7s both;
}

.gui-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-green);
  text-shadow: var(--glow-green);
  font-family: var(--font-mono);
}

.gui-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- GUI Sections ---------- */
.gui-section {
  padding: 80px 0;
}

.gui-section-alt {
  background: var(--bg-terminal);
}

.gui-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.gui-section-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-green);
  text-shadow: var(--glow-green);
}

.gui-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 8px;
  margin-bottom: 12px;
}

.gui-section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--text-green), var(--text-cyan));
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: var(--glow-green);
}

/* ---------- GUI About ---------- */
.gui-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.gui-about-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.gui-about-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gui-about-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.gui-about-icon {
  width: 24px;
  text-align: center;
}

.gui-about-label {
  color: var(--text-muted);
  min-width: 80px;
}

.gui-about-value {
  color: var(--text-primary);
}

/* Code Window */
.gui-code-window {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.gui-code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-titlebar);
  border-bottom: 1px solid var(--border-color);
}

.gui-code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.gui-code-dot.red { background: #ff5f57; }
.gui-code-dot.yellow { background: #ffbd2e; }
.gui-code-dot.green { background: #28c840; }

.gui-code-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.gui-code-content {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-primary);
  overflow-x: auto;
}

.code-bracket { color: var(--text-white); }
.code-key { color: var(--text-cyan); }
.code-string { color: var(--text-green); }

/* ---------- GUI Projects Grid ---------- */
.gui-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gui-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.gui-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--text-green), var(--text-cyan));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gui-project-card:hover {
  border-color: var(--text-green-dim);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(57, 255, 20, 0.05);
}

.gui-project-card:hover::before {
  opacity: 1;
}

.gui-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.gui-project-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
}

.gui-project-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-dark);
  padding: 2px 8px;
  border-radius: 4px;
}

.gui-project-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.gui-project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gui-project-tech {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-purple);
  background: rgba(188, 140, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(188, 140, 255, 0.15);
}

.gui-project-platform {
  font-size: 12px;
  color: var(--text-orange);
}

.gui-project-status {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}

.gui-project-status.released {
  color: var(--text-green);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.15);
}

.gui-project-status.dev {
  color: var(--text-yellow);
  background: rgba(227, 179, 65, 0.08);
  border: 1px solid rgba(227, 179, 65, 0.15);
}

/* ---------- GUI Skills ---------- */
.gui-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.gui-skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.gui-skill-cat-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 20px;
}

.gui-skill-item {
  margin-bottom: 16px;
}

.gui-skill-item:last-child {
  margin-bottom: 0;
}

.gui-skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.gui-skill-info span:last-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.gui-skill-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  overflow: hidden;
}

.gui-skill-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--text-green-dim), var(--text-green));
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gui-skill-fill.animated {
  /* width set by JS via data-width attribute */
}

/* ---------- GUI Contact ---------- */
.gui-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.gui-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.gui-contact-card:hover {
  border-color: var(--text-green);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gui-contact-icon {
  font-size: 28px;
}

.gui-contact-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.gui-contact-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- GUI Footer ---------- */
.gui-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- GUI Responsive ---------- */
@media (max-width: 768px) {
  .gui-nav-links {
    display: none;
  }

  .gui-hamburger {
    display: flex;
  }

  .gui-hero-name {
    font-size: 36px;
  }

  .gui-hero-role {
    font-size: 20px;
  }

  .gui-hero-stats {
    gap: 24px;
  }

  .gui-stat-number {
    font-size: 24px;
  }

  .gui-about-grid {
    grid-template-columns: 1fr;
  }

  .gui-section {
    padding: 60px 0;
  }

  .gui-section-title {
    font-size: 26px;
  }

  .gui-projects-grid {
    grid-template-columns: 1fr;
  }

  .gui-skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gui-hero-name {
    font-size: 28px;
  }

  .gui-hero-desc {
    font-size: 14px;
  }

  .gui-hero-actions {
    flex-direction: column;
  }

  .gui-btn {
    text-align: center;
  }

  .gui-hero-stats {
    flex-direction: column;
    gap: 16px;
  }
}

