/*
Theme Name: АйтиСървис
Theme URI: https://айтисървис.bg
Author: АйтиСървис
Description: Тъмна технологична тема за IT компания - интернет, VPN, firewall, бизнес мрежи.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: айтисървис
*/

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

html { scroll-behavior: smooth; }

body {
  background: #0a0e1a;
  color: #e2e8f0;
  font-family: 'Syne', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }
.mono { font-family: 'Space Mono', monospace; }

/* ===== CONTACT ITEMS in why-section ===== */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,200,180,0.06);
  border: 0.5px solid rgba(0,200,180,0.2);
  border-radius: 8px;
  padding: 14px 18px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.contact-item:hover {
  background: rgba(0,200,180,0.12);
  border-color: rgba(0,200,180,0.4);
}

.contact-icon {
  width: 38px; height: 38px;
  background: rgba(0,200,180,0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00c8b4;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
}

.contact-detail strong {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.5px;
}

/* ===== INNER PAGE / BLOG CONTENT ===== */
/* Blog pages get white background for readability */
.blog .site-content,
.single .site-content,
.page:not(.home) .site-content,
.archive .site-content,
.search .site-content {
  background: #ffffff;
  min-height: 100vh;
}

body.blog,
body.single,
body.page:not(.home),
body.archive,
body.search {
  background: #f8fafc;
}

.site-content {
  padding: 100px 0 80px;
  max-width: 100%;
}

.site-content-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 48px 80px;
  background: #ffffff;
  min-height: calc(100vh - 100px);
}

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.25;
}

.site-content h1 { font-size: 36px; font-weight: 800; }
.site-content h2 { font-size: 26px; font-weight: 700; margin-top: 40px; }
.site-content h3 { font-size: 20px; font-weight: 600; margin-top: 28px; }

.site-content p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.site-content a {
  color: #0891b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-content ul, .site-content ol {
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 18px;
  list-style: disc;
}

.site-content ol { list-style: decimal; }

.site-content blockquote {
  border-left: 3px solid #00c8b4;
  padding: 12px 20px;
  margin: 24px 0;
  background: #f0fdfa;
  color: #94a3b8;
  font-style: italic;
}

.site-content img {
  border-radius: 8px;
  margin: 24px 0;
}

.site-content code,
.site-content pre {
  font-family: 'Space Mono', monospace;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 13px;
  color: #0e7490;
  padding: 2px 6px;
}

.site-content pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

/* Post meta */
.entry-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

/* Blog archive list */
.posts-list { display: flex; flex-direction: column; gap: 20px; }

.post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 28px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  border-color: #00c8b4;
  box-shadow: 0 4px 20px rgba(0,200,180,0.08);
}

.post-card h2 { font-size: 20px; margin-bottom: 8px; color: #0f172a; }
.post-card h2 a { color: #0f172a; text-decoration: none; }
.post-card h2 a:hover { color: #0891b2; }
.post-card p { color: #64748b; font-size: 14px; margin: 0; }

.blog-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: #00c8b4;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

/* ===== NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(0,200,180,0.15);
}

.site-logo {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #00c8b4;
  letter-spacing: 2px;
  font-weight: 700;
}

.site-logo span { color: #ffffff; }

.main-nav ul {
  display: flex;
  gap: 36px;
}

.main-nav ul li a {
  font-size: 11px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-nav ul li a:hover { color: #00c8b4; }

.nav-cta {
  background: #00c8b4;
  color: #0a0e1a !important;
  font-family: 'Space Mono', monospace;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 4px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; color: #0a0e1a !important; }

/* ===== HERO ===== */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 96px 48px 48px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,180,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,180,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,200,180,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,180,0.08);
  border: 0.5px solid rgba(0,200,180,0.25);
  color: #00c8b4;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
  width: fit-content;
}

.status-dot {
  width: 6px; height: 6px;
  background: #00c8b4;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

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

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-title em {
  font-style: normal;
  color: #00c8b4;
}

.hero-subtitle {
  font-size: 16px;
  color: #94a3b8;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #00c8b4;
  color: #0a0e1a;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); color: #0a0e1a; }

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 0.5px solid rgba(148,163,184,0.25);
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: #00c8b4; color: #00c8b4; }

/* ===== TERMINAL ===== */
.terminal-block {
  margin: 0 48px;
  background: rgba(0,0,0,0.5);
  border: 0.5px solid rgba(0,200,180,0.15);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 640px;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.terminal-block code {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #00c8b4;
  display: block;
  line-height: 2;
}

.terminal-block code .dim { color: #64748b; }
.terminal-block code .ok { color: #22c55e; }
.terminal-block code .white { color: #e2e8f0; }

/* ===== SERVICES ===== */
.services-section {
  padding: 100px 48px;
  border-top: 0.5px solid rgba(0,200,180,0.1);
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: #00c8b4;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  max-width: 500px;
}

.section-subtitle {
  font-size: 15px;
  color: #94a3b8;
  max-width: 480px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.service-card {
  background: rgba(255,255,255,0.02);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(0,200,180,0.4);
  background: rgba(0,200,180,0.04);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px; height: 44px;
  background: rgba(0,200,180,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
  color: #00c8b4;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.65;
}

/* ===== STATS ===== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid rgba(0,200,180,0.1);
  border-bottom: 0.5px solid rgba(0,200,180,0.1);
}

.stat-item {
  padding: 56px 48px;
  border-right: 0.5px solid rgba(0,200,180,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Space Mono', monospace;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.stat-number span { color: #00c8b4; }

.stat-desc {
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* ===== WHY US ===== */
.why-section {
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content h2 { margin-bottom: 16px; }
.why-content p { color: #cbd5e1; font-size: 15px; line-height: 1.8; margin-bottom: 32px; }

.why-list { display: flex; flex-direction: column; gap: 16px; }

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.why-check {
  width: 22px; height: 22px;
  background: rgba(0,200,180,0.1);
  border: 0.5px solid rgba(0,200,180,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: #00c8b4;
  font-size: 13px;
}

.why-item-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.why-item-text span {
  font-size: 13px;
  color: #94a3b8;
}

.why-visual {
  background: rgba(0,0,0,0.4);
  border: 0.5px solid rgba(0,200,180,0.12);
  border-radius: 12px;
  padding: 28px;
}

.network-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 0.5px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
}

.node-icon {
  font-size: 18px;
  color: #00c8b4;
  width: 36px;
  text-align: center;
}

.node-info strong {
  display: block;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
}

.node-info span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
}

.node-status {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 48px;
  text-align: center;
  border-top: 0.5px solid rgba(0,200,180,0.1);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,200,180,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 36px;
  position: relative;
}

.cta-section .btn-primary { position: relative; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 0.5px solid rgba(0,200,180,0.1);
  padding: 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .site-logo { margin-bottom: 14px; display: block; }

.footer-brand p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #64748b;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #00c8b4; }

.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.04);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #1e293b;
  letter-spacing: 1px;
}

.footer-uptime {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #00c8b4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .site-header { padding: 16px 24px; }
  .main-nav { display: none; }
  .hero-section, .terminal-block, .services-section, .cta-section { padding-left: 24px; padding-right: 24px; }
  .stats-section { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 0.5px solid rgba(0,200,180,0.1); padding: 36px 24px; }
  .why-section { grid-template-columns: 1fr; padding: 60px 24px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 36px 24px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; }
}

/* ===== HERO CONTACTS ===== */
.hero-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.hero-contact-item i {
  color: #00c8b4;
  font-size: 16px;
}

.hero-contact-sep {
  width: 1px;
  height: 18px;
  background: rgba(0,200,180,0.25);
}

/* ===== LIVE TERMINAL ===== */
.live-terminal-section {
  margin: 0 48px 64px;
  background: #060a10;
  border: 0.5px solid rgba(0,200,180,0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.lt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #0a0f1a;
  border-bottom: 1px solid rgba(0,200,180,0.1);
}

.lt-dots {
  display: flex;
  gap: 6px;
}

.lt-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}

.lt-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #475569;
  letter-spacing: 1px;
  flex: 1;
}

.lt-uptime {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #00c8b4;
}

.lt-body {
  padding: 14px 18px;
  min-height: 200px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: none;
}

.lt-body::-webkit-scrollbar { display: none; }

.lt-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  line-height: 1.9;
  padding: 1px 0;
}

.lt-line.lt-new {
  animation: ltSlideIn 0.35s ease;
}

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

.lt-ts   { color: #475569; flex-shrink: 0; }
.lt-host { color: #7c3aed; flex-shrink: 0; width: 72px; }
.lt-tag  { flex-shrink: 0; width: 46px; text-align: center;
           font-size: 9px; border-radius: 2px; padding: 1px 5px;
           letter-spacing: 1px; }
.lt-tag.ok   { background: rgba(34,197,94,0.15);  color: #22c55e; }
.lt-tag.info { background: rgba(100,116,139,0.15); color: #64748b; }
.lt-tag.warn { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.lt-msg  { color: #94a3b8; flex: 1; word-break: break-word; }

@media (max-width: 1024px) {
  .live-terminal-section { margin: 0 24px 48px; }
  .lt-line { font-size: 10px; }
  .hero-contacts { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-contact-sep { display: none; }
}

