/* Terminal-Themed Website Styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

/* Terminal Color Scheme Variables */
:root {
  --terminal-bg: #0d1117;
  --terminal-surface: #161b22;
  --terminal-border: #30363d;
  --terminal-green: #7ce38b;
  --terminal-blue: #58a6ff;
  --terminal-yellow: #ffa657;
  --terminal-red: #ff6b6b;
  --terminal-purple: #d2a8ff;
  --terminal-cyan: #39d0d6;
  --terminal-white: #f0f6fc;
  --terminal-gray: #8b949e;
  --terminal-dim: #6e7681;
  
  /* Cursor animation */
  --cursor-blink: cursor-blink 1.2s infinite;
}

/* Cursor blink animation */
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Typing animation */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Scanline effect */
@keyframes scanline {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  background: var(--terminal-bg);
  color: var(--terminal-white);
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* Optional scanline effect for authentic CRT feel */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--terminal-green), 
    transparent
  );
  opacity: 0.1;
  animation: scanline 3s linear infinite;
  pointer-events: none;
  z-index: 1000;
}

.container {
  width: 100vw;
  margin: 0;
  padding: 2rem;
  background: var(--terminal-surface);
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
}

/* Terminal window header */
.container::before {
  content: '● ● ●';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--terminal-border);
  color: var(--terminal-dim);
  display: flex;
  align-items: center;
  padding-left: 1rem;
  font-size: 12px;
  letter-spacing: 0.5rem;
}

/* Add top padding to account for terminal header */
.container {
  padding-top: 50px;
}

/* Navigation as terminal commands */
nav {
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--terminal-border);
  position: relative;
}

nav::before {
  content: '$ ';
  color: var(--terminal-green);
  font-weight: bold;
}

nav a {
  text-decoration: none;
  margin-right: 2rem;
  color: var(--terminal-blue);
  font-weight: 400;
  transition: all 0.2s ease;
  position: relative;
}

nav a::before {
  content: './';
  color: var(--terminal-gray);
}

nav a:hover {
  color: var(--terminal-cyan);
  text-shadow: 0 0 5px var(--terminal-cyan);
}

nav a:hover::before {
  color: var(--terminal-cyan);
}

/* Terminal-style headings */
h1 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--terminal-green);
  margin: 2rem 0 1rem 0;
  position: relative;
  text-shadow: 0 0 10px var(--terminal-green);
}

h1::before {
  content: '# ';
  color: var(--terminal-yellow);
}

h1::after {
  content: '_';
  animation: var(--cursor-blink);
  color: var(--terminal-green);
}

h2 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--terminal-blue);
  margin: 2rem 0 1rem 0;
  text-shadow: 0 0 8px var(--terminal-blue);
}

h2::before {
  content: '## ';
  color: var(--terminal-yellow);
}

h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--terminal-purple);
  margin: 1.5rem 0 0.75rem 0;
  text-shadow: 0 0 6px var(--terminal-purple);
}

h3::before {
  content: '### ';
  color: var(--terminal-yellow);
}

/* Paragraph styling */
p {
  color: var(--terminal-white);
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 1.5;
}

/* Terminal-style blockquotes */
blockquote {
  background: rgba(88, 166, 255, 0.1);
  border-left: 4px solid var(--terminal-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--terminal-blue);
  position: relative;
  border-radius: 0 4px 4px 0;
}

blockquote::before {
  content: '> ';
  color: var(--terminal-blue);
  font-weight: bold;
  position: absolute;
  left: 0.5rem;
  top: 1rem;
}

blockquote p {
  color: inherit;
  margin-left: 1rem;
  margin-bottom: 0;
}

/* Code blocks - enhanced terminal look */
code {
  background: rgba(125, 227, 139, 0.1);
  color: var(--terminal-green);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 13px;
  border: 1px solid rgba(125, 227, 139, 0.2);
}

pre {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}

pre::before {
  content: '$ ';
  color: var(--terminal-green);
  font-weight: bold;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--terminal-white);
}

/* Lists with terminal styling */
ul, ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  color: var(--terminal-white);
  margin-bottom: 0.5rem;
  position: relative;
}

ul li::before {
  content: '→';
  color: var(--terminal-cyan);
  position: absolute;
  left: -1.5rem;
}

ol li::marker {
  color: var(--terminal-yellow);
}

/* Links with terminal styling */
a {
  color: var(--terminal-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: var(--terminal-yellow);
  text-shadow: 0 0 5px var(--terminal-yellow);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terminal-cyan);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
  background: var(--terminal-yellow);
}

/* Footer as terminal output */
footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--terminal-border);
  text-align: left;
  color: var(--terminal-gray);
  font-size: 12px;
}

footer::before {
  content: '[process completed with exit code 0]\n$ ';
  color: var(--terminal-green);
  display: block;
  margin-bottom: 0.5rem;
}

/* Terminal prompt for interactive elements */
.terminal-prompt::before {
  content: '$ ';
  color: var(--terminal-green);
  font-weight: bold;
}

/* Selection styling */
::selection {
  background: var(--terminal-blue);
  color: var(--terminal-bg);
}

::-moz-selection {
  background: var(--terminal-blue);
  color: var(--terminal-bg);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--terminal-border);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--terminal-gray);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 40px 1rem 2rem;
  }
  
  nav a {
    display: block;
    margin: 0.5rem 0;
  }
  
  body {
    font-size: 13px;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
}

/* Hide scanline on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  body::before {
    display: none;
  }
  
  h1::after {
    animation: none;
  }
}




// New section w3c validation.

/* HTML5 Valid Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.badge-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

.badge-simple {
    background-color: #e34c26;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    border: 2px solid #e34c26;
}

.badge-minimal {
    background-color: #fff;
    color: #e34c26;
    padding: 4px 8px;
    border: 1px solid #e34c26;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

