/* Main Stylesheet - Minimal Technical Design */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.18);
  --font: 'JetBrains Mono', monospace, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  font-family: var(--font);
  margin: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

body.page {
  margin: 40px;
  background: transparent;
}

/* Particles container sits behind everything */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.frame {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-medium);
  padding: 40px;
  background: #ffffff;
  position: relative;
}

/* Links */
a {
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #cccccc;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: #000000;
}

a.back-link {
  border-bottom: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

a.back-link:hover {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

/* Typography */
h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 16px;
}

/* Meta section with dashed border */
.meta {
  color: #666666;
  margin-bottom: 24px;
  font-size: 14px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border-light);
}

/* Lists */
ul {
  margin-left: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #1a1a1a;
}

li {
  margin-bottom: 8px;
}

/* Company logo */
.company-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 24px;
  display: block;
}

.company-logo.dark-variant {
  display: none;
}



/* --- MX3D Two Column Layout --- */

.mx3d-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-top: 32px;
  border-top: 1px dashed var(--border-light);
  padding-top: 32px;
}

.mx3d-left {
  border: 1px dashed var(--border-medium);
  padding: 24px;
  background: #ffffff;
}

.mx3d-right {
  border: 1px dashed var(--border-medium);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #fafafa;
}

/* Make grid more blueprint-like */
.mx3d-left,
.mx3d-right {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 900px) {
  .mx3d-grid {
    grid-template-columns: 1fr;
  }

  .mx3d-right {
    order: -1;
  }
}


/* Viewer box stays visually consistent */
.viewer-wrapper {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.viewer-box {
  width: 100%;
  height: 380px;
  border: 1px solid var(--border-medium);
  background: #fafafa;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.viewer-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Dark mode */
body.dark-mode .viewer-box {
  background: #1110;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.7);
  border: 1px dashed var(--border-light);
  z-index: 50;
}

body.dark-mode .viewer-loading {
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.08);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #999;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tech Stack Icons */
.tech-stack-icons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tech-icon {
  height: 26px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tech-icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Dark mode tech icons */
body.dark-mode .tech-icon.light-variant {
  display: none;
}

body.dark-mode .tech-icon.dark-variant {
  display: inline-block;
}

.tech-icon.dark-variant {
  display: none;
}

body.dark-mode .tech-icon.dark-variant {
  display: inline-block;
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
  color: #666666;
  font-size: 13px;
}
