/* ========================================
   myLinuxBSD — Global Stylesheet
   "Tiny Linux. Tiny BSD. Massive Impact."
   ======================================== */

:root {
  --bg:        #0a0c10;
  --bg2:       #0f1218;
  --bg3:       #161b24;
  --border:    #1e2733;
  --accent:    #00d4aa;
  --accent2:   #0094ff;
  --accent3:   #ff6b35;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --card-bg:   #111620;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius:    8px;
  --transition: 0.2s ease;
  --max-w:     1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #00ffcc; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.accent  { color: var(--accent); }
.accent2 { color: var(--accent2); }
.accent3 { color: var(--accent3); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex    { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,12,16,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.navbar .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-brand .dot { color: var(--accent); }
.nav-logo { height: 34px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  display: flex; align-items: center; gap: 1rem;
}
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column; gap: 1rem;
}
.nav-mobile a { color: var(--muted); font-size: 1rem; padding: 0.5rem 0; }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile.open { display: flex; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #00ffcc; color: #000; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(0,212,170,0.1); color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger {
  background: var(--accent3);
  color: #fff;
}
.btn-danger:hover { background: #ff8255; color: #fff; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 2.5rem; margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; color: var(--text); }
.card p  { font-size: 0.9rem; }

/* ── Section Headers ── */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { font-size: 1.05rem; max-width: 600px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ── Terminal / Code blocks ── */
.terminal {
  background: #060809;
  border: 1px solid #1a2030;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow: hidden;
}
.terminal-bar {
  background: #111820;
  padding: 0.5rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red   { background: #ff5f57; }
.terminal-dot.yellow{ background: #ffbd2e; }
.terminal-dot.green { background: #28ca41; }
.terminal-title { color: var(--muted); font-size: 0.75rem; margin-left: auto; }
.terminal-body { padding: 1.25rem; line-height: 1.8; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd    { color: var(--text); }
.terminal-body .out    { color: var(--muted); }
.terminal-body .ok     { color: #28ca41; }
.terminal-body .warn   { color: #ffbd2e; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.2rem 0.6rem; border-radius: 4px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-green  { background: rgba(0,212,170,0.12); color: var(--accent); border: 1px solid rgba(0,212,170,0.25); }
.badge-blue   { background: rgba(0,148,255,0.12); color: var(--accent2); border: 1px solid rgba(0,148,255,0.25); }
.badge-orange { background: rgba(255,107,53,0.12); color: var(--accent3); border: 1px solid rgba(255,107,53,0.25); }
.badge-gray   { background: rgba(100,116,139,0.15); color: var(--muted); border: 1px solid var(--border); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--bg3); color: var(--text); font-weight: 600; padding: 0.85rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--border); color: var(--muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group small  { font-size: 0.78rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
input[type="text"], input[type="email"], input[type="number"],
input[type="url"],  select, textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 100px; }
select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg3);
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: rgba(0,212,170,0.04); }
.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.upload-zone p { font-size: 0.9rem; }
.upload-zone .hint { font-size: 0.78rem; margin-top: 0.5rem; }
input[type="range"] {
  accent-color: var(--accent);
  width: 100%;
  cursor: pointer;
}
input[type="file"] { display: none; }

/* ── Pill toggle / tabs ── */
.tabs {
  display: flex; gap: 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
}
.tab-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none;
  background: transparent; color: var(--muted);
  transition: all var(--transition);
}
.tab-btn.active { background: var(--accent); color: #000; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Stats ── */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* ── Progress ── */
.progress-bar {
  width: 100%; height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 0.6s ease;
}

/* ── Skill chips ── */
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; color: var(--muted);
  transition: all var(--transition);
}
.chip:hover, .chip.selected { border-color: var(--accent); color: var(--accent); background: rgba(0,212,170,0.06); }

/* ── Alert / Notice ── */
.alert {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  border-left: 3px solid;
}
.alert-info   { background: rgba(0,148,255,0.08); border-color: var(--accent2); color: var(--accent2); }
.alert-warn   { background: rgba(255,189,46,0.08); border-color: #ffbd2e; color: #ffbd2e; }
.alert-success{ background: rgba(0,212,170,0.08); border-color: var(--accent); color: var(--accent); }

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--muted); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ── Hero glows ── */
.glow-green { color: var(--accent); text-shadow: 0 0 30px rgba(0,212,170,0.4); }
.glow-blue  { color: var(--accent2); text-shadow: 0 0 30px rgba(0,148,255,0.4); }
.bg-grid {
  background-image:
    linear-gradient(rgba(30,39,51,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,39,51,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Page header (inner pages) ── */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,212,170,0.06), transparent);
}
.page-header .container { position: relative; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .tabs { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
