/* assets/css/main.css */
:root {
  /* Colors - Void (Dark) Mode */
  --bg-color: #000000;
  --text-color: #ffffff;
  --link-color: #ffffff;
  --link-hover-color: rgba(255, 255, 255, 0.7);
  --border-color: #ffffff;
  --content-bg: #000000;

  /* Typography */
  --font-mono:
    "Roboto Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  /* Fluid Typography (scales smoothly based on screen width) */
  --font-size-base: clamp(
    15px,
    2vw + 10px,
    18px
  ); /* Base text like emails and descriptions */
  --font-size-xl: clamp(24px, 4vw + 16px, 34px); /* Header */
  --font-size-sm: clamp(12px, 1.5vw + 8px, 14px); /* Footer text */

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;

  /* Borders & Radii */
  --border-width: 2px;
  --radius-md: 16px;

  /* Transitions */
  --transition-base: 0.3s ease;
}

html.glow-mode {
  /* Colors - Glow (Light) Mode */
  --bg-color: #ffffff;
  --text-color: #111111;
  --link-color: #111111;
  --link-hover-color: rgba(17, 17, 17, 0.7);
  --border-color: #000000;
  --content-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* Layout */
.container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* Content Box */
.content-box {
  background-color: var(--content-bg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  /* Use clamp for fluid width: 300px min, scales with viewport, 380px max */
  width: clamp(300px, 90vw, 380px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base);
}

h1 {
  font-size: var(--font-size-xl);
  line-height: 1.1;
  font-weight: 700;
}

.company-message {
  font-size: var(--font-size-base);
  line-height: 1.5;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color var(--transition-base),
    opacity var(--transition-base);
}

a:hover {
  color: var(--link-hover-color);
}

/* Footer */
footer {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-color);
  font-size: var(--font-size-sm);
  z-index: 200;
  text-align: center;
  white-space: nowrap;
  background-color: var(--content-bg);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  opacity: 0;
  transition:
    opacity 0.4s ease,
    background-color var(--transition-base);
  pointer-events: none;
}

footer.visible {
  opacity: 1;
  pointer-events: auto;
}

.footer-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--link-hover-color);
}

#copyright-symbol-trigger {
  cursor: pointer;
}

/* Landscape mode optimizations for small devices */
@media (max-height: 500px) and (orientation: landscape) {
  .content-box {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-xs);
  }

  footer {
    bottom: var(--space-xs);
  }
}
