/* ===== BASE & MODERN DARK-SLATE THEME ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #070b14;
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(56, 189, 248, 0.09) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 10%, rgba(14, 165, 233, 0.06) 0%, transparent 42%);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.68;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Full-Screen Laptop Container */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== TOP NAVIGATION BAR ===== */
.navbar {
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  font-size: 1.22rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.brand span {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.15);
}

.nav-links a.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  padding: 52px 0 64px;
}

/* ===== HERO SECTION (Home Page) ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 24px 0 56px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-text {
  flex: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.hero h1 {
  font-size: 2.9rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.16;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #94a3b8;
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-avatar {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.65);
  box-shadow:
    0 0 0 6px rgba(56, 189, 248, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-avatar:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 0 6px rgba(56, 189, 248, 0.14),
    0 20px 45px rgba(56, 189, 248, 0.16);
}

/* ===== BUTTONS ===== */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.38);
}

/* ===== SECTIONS & GRIDS ===== */
.section {
  margin-top: 52px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
  border-left: 3px solid #38bdf8;
  padding-left: 14px;
  letter-spacing: -0.3px;
}

.view-all {
  font-size: 0.92rem;
  font-weight: 500;
  color: #38bdf8;
  white-space: nowrap;
}

.view-all:hover {
  text-decoration: underline;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88) 0%, rgba(11, 17, 32, 0.95) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.07);
}

.card h3 {
  font-size: 1.14rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.94rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.card-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 12px;
}

.card-link:hover {
  color: #7dd3fc;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 6px;
  margin-top: 6px;
}

/* Optional Accent Pill for Tor / Experimental Node */
.tag-onion {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.32);
  color: #fda4af;
}

/* ===== LATEST UPDATE BANNER (Home + Updates Page) ===== */
.update-box {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-left: 4px solid #38bdf8;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.update-box:hover {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
}

.update-meta {
  font-size: 0.8rem;
  color: #38bdf8;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.update-box h3 {
  font-size: 1.08rem;
  color: #f8fafc;
  margin-bottom: 6px;
}

.update-box p {
  font-size: 0.94rem;
  color: #cbd5e1;
}

/* ===== SUB-PAGE HEADER (For Projects, About, Updates, Contact) ===== */
.page-header {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 36px;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
  letter-spacing: -0.6px;
}

.page-header p {
  color: #94a3b8;
  font-size: 1.02rem;
  max-width: 720px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.6);
  padding: 26px 0;
  margin-top: 48px;
  font-size: 0.9rem;
  color: #64748b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

/* ===== TABLET & MOBILE RESPONSIVE (<= 768px) ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 14px 20px;
    justify-content: center;
    gap: 10px;
  }

  .nav-links {
    justify-content: center;
    gap: 6px;
  }

  .nav-links a {
    padding: 6px 11px;
    font-size: 0.86rem;
  }

  main {
    padding: 32px 0 48px;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
    padding: 10px 0 36px;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .hero p {
    font-size: 0.98rem;
    margin: 0 auto 24px;
  }

  .btn-group {
    justify-content: center;
  }

  .hero-avatar {
    width: 135px;
    height: 135px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== SMALL MOBILE TUNING (<= 480px) ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 12px 14px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .card {
    padding: 18px;
  }
}