/* ========================================================
   AKSHAY.exe — Developer Portfolio
   style.css — Dark Hacker / Terminal UI Theme
   ======================================================== */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --bg:           #0d1117;
  --bg-2:         #0a0e14;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --neon-green:   #00ff9f;
  --neon-blue:    #00c8ff;
  --neon-purple:  #bd93f9;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --border:       rgba(0, 255, 159, 0.18);
  --border-blue:  rgba(0, 200, 255, 0.18);
  --glow-green:   0 0 8px rgba(0, 255, 159, 0.45), 0 0 20px rgba(0, 255, 159, 0.18);
  --glow-blue:    0 0 8px rgba(0, 200, 255, 0.45), 0 0 20px rgba(0, 200, 255, 0.18);
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;
  --font-sans:    'Inter', system-ui, sans-serif;
  --radius:       10px;
  --transition:   0.25s cubic-bezier(.4,0,.2,1);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 255, 159, 0.28);
  color: #fff;
}

/* ── Animated Background Gradient ───────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0, 255, 159, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 90%, rgba(0, 200, 255, 0.045) 0%, transparent 60%),
    linear-gradient(180deg, #0d1117 0%, #0a0e14 100%);
  z-index: 0;
  pointer-events: none;
}

/* ── Grid Overlay ────────────────────────────────────────── */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 159, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 159, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* ── Particles ────────────────────────────────────────────── */
#particles-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0%   { opacity: 0;    transform: translateY(0) scale(1); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0;    transform: translateY(-100vh) scale(0.5); }
}

/* ── Navbar ──────────────────────────────────────────────── */
.glass-nav {
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 255, 159, 0.1);
  transition: background var(--transition), border-color var(--transition);
  z-index: 1000;
}

.glass-nav.scrolled {
  background: rgba(10, 14, 20, 0.92);
  border-bottom-color: rgba(0, 255, 159, 0.2);
}

/* Brand logo */
.brand-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand-cursor {
  color: var(--neon-green);
  animation: blink 1.1s step-end infinite;
  margin-right: 2px;
  font-size: 0.85rem;
}

.brand-exe {
  color: var(--neon-green);
  text-shadow: var(--glow-green);
}

/* Nav links */
.nav-glow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted) !important;
  text-decoration: none;
  padding: 6px 14px !important;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.nav-glow:hover,
.nav-glow.active {
  color: var(--neon-green) !important;
  border-color: rgba(0, 255, 159, 0.3);
  background: rgba(0, 255, 159, 0.07);
  text-shadow: 0 0 8px rgba(0, 255, 159, 0.6);
  box-shadow: 0 0 12px rgba(0, 255, 159, 0.12);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

/* ── Terminal Window ──────────────────────────────────────── */
.terminal-window {
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid var(--neon-green);
  border-radius: var(--radius);
  box-shadow:
    var(--glow-green),
    0 24px 64px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: terminalFadeIn 0.6s ease forwards;
}

@keyframes terminalFadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Terminal header bar */
.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(0, 255, 159, 0.15);
  user-select: none;
}

.terminal-btn {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-close-t    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.5); }
.btn-minimize   { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.5); }
.btn-maximize   { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.5); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Terminal body (output scrollable area) */
.terminal-body {
  padding: 16px 20px 8px;
  min-height: 240px;
  max-height: 420px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 159, 0.3) transparent;
}

.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 159, 0.3);
  border-radius: 4px;
}

/* Terminal lines */
.terminal-line {
  display: block;
  margin-bottom: 2px;
  white-space: pre-wrap;
  word-break: break-all;
  animation: lineAppear 0.15s ease forwards;
}

@keyframes lineAppear {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

.terminal-prompt {
  color: var(--neon-green);
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 255, 159, 0.5);
}

.terminal-output {
  color: var(--text);
}

.terminal-cmd-echo {
  color: var(--neon-blue);
  font-weight: 500;
}

.terminal-result-line {
  color: var(--text-muted);
  padding-left: 16px;
  display: block;
  font-size: 0.8rem;
}

.terminal-result-line.highlight {
  color: var(--neon-green);
}

.terminal-error {
  color: #ff6b6b;
}

.terminal-comment {
  color: #6a737d;
  font-style: italic;
}

/* Terminal input line */
.terminal-input-line {
  border-top: 1px solid rgba(0, 255, 159, 0.1);
  padding: 10px 20px;
}

.terminal-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--neon-blue);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  width: 100%;
  caret-color: transparent; /* we use custom cursor */
}

.terminal-cursor {
  color: var(--neon-green);
  animation: blink 1s step-end infinite;
  font-size: 0.8rem;
  line-height: 1;
  text-shadow: var(--glow-green);
  pointer-events: none;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Hints row */
.terminal-hints {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-bottom: 12px;
}

.hint-label { margin-right: 8px; }

.hint-cmd {
  display: inline-block;
  color: var(--neon-blue);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 4px;
  padding: 1px 8px;
  margin-right: 6px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.7rem;
}

.hint-cmd:hover {
  background: rgba(0, 200, 255, 0.1);
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.2);
  color: #fff;
}

/* ── Services Section ────────────────────────────────────── */
.services-section {
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-prompt {
  color: var(--neon-green);
  text-shadow: 0 0 6px rgba(0,255,159,0.4);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 159, 0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: default;
}

.service-card:hover {
  border-color: rgba(0, 255, 159, 0.45);
  box-shadow: 0 0 24px rgba(0, 255, 159, 0.1), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-4px);
  background: rgba(0, 255, 159, 0.04);
}

.service-icon {
  font-size: 2rem;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
  display: block;
  line-height: 1;
}

.service-title {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Page Header (code.html, code-view.html) ──────────────── */
.page-header-section {
  min-height: 220px;
  padding-top: 90px;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,255,159,0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,255,159,0.08);
}

.page-header-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 24px rgba(0,255,159,0.15);
}

.page-header-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Code Gallery ─────────────────────────────────────────── */
.code-gallery-section {
  position: relative;
  z-index: 1;
}

.code-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.code-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0,255,159,0.14), 0 12px 40px rgba(0,0,0,0.4);
  transform: translateY(-6px) scale(1.012);
}

/* Thumbnail */
.card-thumb-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.03);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.85) saturate(0.8);
}

.code-card:hover .card-thumb {
  transform: scale(1.06);
  filter: brightness(0.7) saturate(0.6);
}

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
  opacity: 0;
  transition: opacity var(--transition);
  background: rgba(0,0,0,0.3);
}

.code-card:hover .card-thumb-overlay { opacity: 1; }

/* Card body */
.card-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.card-desc-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 12px;
  line-height: 1.5;
}

.btn-view-code {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-green);
  background: transparent;
  border: 1px solid rgba(0,255,159,0.4);
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all var(--transition);
  text-shadow: 0 0 6px rgba(0,255,159,0.4);
  width: 100%;
  justify-content: center;
}

.btn-view-code:hover {
  background: rgba(0,255,159,0.1);
  border-color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0,255,159,0.2);
  color: #fff;
  text-shadow: none;
}

/* Card scroll-in animation */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-animate-in { animation: cardIn 0.45s ease forwards; }

/* ── Code Viewer (code-view.html) ─────────────────────────── */
.code-viewer-section {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 100vh;
}

.viewer-topbar {
  margin-bottom: 16px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 14px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-back:hover {
  color: var(--neon-blue);
  border-color: rgba(0,200,255,0.4);
  background: rgba(0,200,255,0.06);
}

.viewer-project-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-blue);
  background: transparent;
  border: 1px solid rgba(0,200,255,0.4);
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-copy-code:hover {
  background: rgba(0,200,255,0.1);
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0,200,255,0.2);
  color: #fff;
}

/* VS Code container */
.vscode-container {
  background: #1e1e2e;
  border: 1px solid rgba(0,255,159,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* Tab bar */
.vscode-tabbar {
  background: #181825;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 38px;
  gap: 0;
}

.vscode-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 18px;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  user-select: none;
  display: flex;
  align-items: center;
}

.vscode-tab:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.vscode-tab.active {
  background: #1e1e2e;
  color: var(--text);
  border-bottom-color: var(--neon-blue);
}

/* Status bar */
.vscode-statusbar {
  background: #007acc;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 12px;
  min-height: 24px;
}

/* Editor area */
.vscode-editor-area {
  display: flex;
  max-height: 600px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.vscode-editor-area::-webkit-scrollbar { width: 8px; height: 8px; }
.vscode-editor-area::-webkit-scrollbar-track { background: transparent; }
.vscode-editor-area::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

/* Line numbers */
.line-numbers {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
  text-align: right;
  padding: 16px 10px 16px 16px;
  user-select: none;
  border-right: 1px solid rgba(255,255,255,0.05);
  background: #1a1a2e;
  min-width: 52px;
  line-height: 1.65;
  flex-shrink: 0;
}

.line-numbers span { display: block; }

/* Code content */
.code-content {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #cdd6f4;
  padding: 16px 20px;
  white-space: pre;
  overflow-x: auto;
  flex: 1;
}

/* Syntax highlighting classes */
.sy-tag     { color: #89b4fa; }
.sy-attr    { color: #f38ba8; }
.sy-string  { color: #a6e3a1; }
.sy-comment { color: #6c7086; font-style: italic; }
.sy-sel     { color: #89dceb; }
.sy-prop    { color: #cba6f7; }
.sy-value   { color: #fab387; }
.sy-kw      { color: #cba6f7; }
.sy-fn      { color: #89dceb; }
.sy-num     { color: #fab387; }
.sy-op      { color: #89b4fa; }
.sy-var     { color: #cdd6f4; }

/* ── Toast Notification ───────────────────────────────────── */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(13,17,23,0.95);
  border: 1px solid var(--neon-green);
  border-radius: 8px;
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 20px;
  box-shadow: var(--glow-green), 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page Transition ──────────────────────────────────────── */
.page-transition-in {
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Scrollbar global ─────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(0,255,159,0.25); border-radius: 6px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .terminal-body { min-height: 180px; max-height: 300px; font-size: 0.75rem; }
  .page-header-title { font-size: 1.5rem; }
  .viewer-project-title { font-size: 0.95rem; }
  .vscode-editor-area { max-height: 400px; }
  .toast-notification { left: 16px; right: 16px; bottom: 16px; }
}


/* Bottom Right Credit */
.made-by{
    position: fixed;
    bottom: 15px;
    right: 20px;
    z-index: 9999;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.25);
    padding: 6px 12px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

.made-by span{
    color: #00f7ff;
    font-weight: 600;
}