/*
Theme Name: Astra Child
Template: astra
Description: Child theme for nengmohd.com
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

/* Global */
body {
  overflow-x: hidden !important;
}

/* Hide Astra header - replaced by custom nav */
#masthead,
.site-header,
.ast-primary-header-bar,
.main-header-bar,
.ast-masthead-custom-menu-items {
  display: none !important;
}

/* Contact page - dark background */
html body.page-id-8789,
body.page-id-8789,
body.page-id-8789 .site,
body.page-id-8789 #page,
body.page-id-8789 #content,
body.page-id-8789 #primary,
body.page-id-8789 .site-content,
body.page-id-8789 .entry-content,
body.page-id-8789 .post-content {
  background: #04090C !important;
  background-color: #04090C !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Global text color */
body {
  color: #D8D8ED !important;
}

.entry-content,
.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content span,
.entry-content div {
  color: #D8D8ED !important;
}

/* Custom nav */
.nm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  background: rgba(40,40,40,0.95);
  backdrop-filter: blur(4px);
}

.nm-nav * {
  pointer-events: auto;
}

.nm-nav-logo {
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nm-nav-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.nm-nav-client {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.nm-nav-client:hover {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
}

.nm-nav-menu-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.nm-nav-menu-btn:hover {
  color: #000000;
}

/* Nav panel */
.nm-nav-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100vh;
  background: #04090C;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 99999;
  padding: 28px 48px 48px;
  transition: right 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.nm-nav-panel.open {
  right: 0;
}

.nm-panel-top {
  display: flex;
  justify-content: flex-end;
}

.nm-panel-close {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}

.nm-panel-close:hover {
  color: #fff;
}

.nm-panel-links {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 0;
}

.nm-panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.nm-panel-link-title {
  font-family: 'Courier Prime', monospace;
  font-size: 24px;
  font-weight: 400;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.2s;
}

.nm-panel-link-sub {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.nm-panel-link::after {
  content: "→";
  font-family: 'Courier Prime', monospace;
  font-size: 18px;
  color: rgba(255,255,255,0.15);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.nm-panel-link:hover .nm-panel-link-title {
  color: #fff;
}

.nm-panel-link:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
}

.nm-panel-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nm-panel-coords {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

/* Overlay backdrop */
.nm-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,9,12,0.5);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nm-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .nm-nav {
    padding: 16px 24px;
  }
  .nm-nav-panel {
    width: 100%;
    right: -100%;
  }
  .nm-nav-panel.open {
    right: 0;
  }
}

body.page-id-4102 .nm-nav-menu-btn {
  color: #ffffff !important;
}

body.page-id-4102 .nm-nav-client {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.3) !important;
}

#masthead,
.site-header,
.main-header-bar {
    background-color: #212529 !important;
}

body.page-id-9564,
body.page-id-9564 .site,
body.page-id-9564 #page,
body.page-id-9564 #content,
body.page-id-9564 #primary,
body.page-id-9564 .entry-content {
  background: #212529 !important;
  background-color: #212529 !important;
}