/*
Theme Name:  BDO Theme
Theme URI:   https://bossmin.org
Author:      Jason D. Bossmin
Author URI:  https://bossmin.org
Description: Bossmin Dot Org – Dark Cyber Self-Hosting Theme
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bdo-theme
Tags:        dark, self-hosting, technology, one-page
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg-base:      #060b14;
  --bg-surface:   #0d1525;
  --bg-card:      #0f1e35;
  --bg-card-hover:#132238;
  --border:       rgba(0, 212, 255, 0.12);
  --border-glow:  rgba(0, 212, 255, 0.35);

  --cyan:         #00d4ff;
  --cyan-dim:     rgba(0, 212, 255, 0.08);
  --blue:         #0070f3;
  --blue-dim:     rgba(0, 112, 243, 0.15);
  --purple:       #7c3aed;
  --orange:       #f97316;

  --text:         #dde6f0;
  --text-muted:   #5c7a9a;
  --text-dim:     #3a5470;

  --font-display: 'Rajdhani', 'Trebuchet MS', sans-serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius:       8px;
  --radius-lg:    14px;
  --shadow-glow:  0 0 30px rgba(0, 212, 255, 0.18);
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.5);

  --transition:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 112, 243, 0.08) 0%, transparent 70%),
    linear-gradient(to bottom, var(--bg-base), #040810);
}

/* Grid background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #fff;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

.logo-icon svg { width: 22px; height: 22px; }

.logo-text { display: flex; flex-direction: column; }

.site-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.site-tagline {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav .nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-list li a,
.nav-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav .nav-list li a:hover,
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-btn {
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  color: var(--cyan) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}

.nav-btn:hover {
  background: rgba(0, 212, 255, 0.18);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  color: #fff !important;
}

.nav-btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted) !important;
}

.nav-btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan) !important;
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-badge span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
  color: #fff;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-secondary:hover {
  color: #fff;
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-card), 0 0 60px rgba(0, 112, 243, 0.1);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

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

.td-red   { background: #ff5f57; }
.td-yellow{ background: #ffbd2e; }
.td-green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.t-prompt { color: var(--cyan); }
.t-cmd    { color: #fff; }
.t-output { color: var(--text-muted); }
.t-success{ color: #4ade80; }
.t-warn   { color: #facc15; }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--cyan);
  animation: blink 1.2s step-end infinite;
  vertical-align: middle;
}

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

/* ============================================================
   Benefits Section
   ============================================================ */
.benefits {
  padding: 100px 0;
  position: relative;
}

.benefits-header {
  text-align: center;
  margin-bottom: 60px;
}

.benefits-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.benefits-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  font-size: 16px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  opacity: 0;
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.benefit-card:hover::before { opacity: 1; }

.benefit-icon {
  width: 46px;
  height: 46px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}

.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================================
   Stats Section
   ============================================================ */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, transparent, rgba(0, 112, 243, 0.04), transparent);
}

.stats-header {
  text-align: center;
  margin-bottom: 60px;
}

.stats-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 12px;
}

.stats-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin-inline: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 40px 20px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 80px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 200px;
  margin-inline: auto;
}

/* ============================================================
   Services Section
   ============================================================ */
.services {
  padding: 100px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.services-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.12), var(--shadow-card);
}

.service-card:hover::after { opacity: 1; }

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.service-icon {
  font-size: 32px;
  line-height: 1;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 4px;
  transition: var(--transition);
}

.service-link:hover {
  gap: 10px;
  color: #fff;
}

/* ============================================================
   CTA / Trusted Solutions Section
   ============================================================ */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-content h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.cta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.cta-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.cta-visual {
  position: relative;
}

.cta-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.cta-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cta-panel h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4ade80;
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.infra-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.infra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.infra-label {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.infra-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.infra-bar {
  height: 4px;
  background: var(--bg-base);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.infra-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 2px;
}

/* ============================================================
   Helpdesk / Footer CTA Section
   ============================================================ */
.helpdesk {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.helpdesk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin-inline: auto;
  margin-top: 48px;
}

.helpdesk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.helpdesk-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.helpdesk-icon { font-size: 36px; }

.helpdesk-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.helpdesk-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-icon { width: 30px; height: 30px; }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--cyan); }

/* ============================================================
   Utilities & Animations
   ============================================================ */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-visual    { order: -1; }
  .cta-inner      { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .helpdesk-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: rgba(6, 11, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 8px;
  }

  .header-inner { position: relative; }
  .hero { padding: 60px 0 40px; }
  .benefits, .services, .stats, .cta { padding: 60px 0; }
}
