/*
 * Lumon Corporate Terminal Theme - Complete Package
 * All-in-one CSS file for easy deployment
 * 
 * Inspired by: Apple TV+ "Severance" Lumon Industries interface
 * Version: 1.0.0
 * Created: July 30, 2025
 * 
 * Usage: Include this single CSS file for complete Lumon theme
 * Requires: VT323 font from Google Fonts
 */

/* Import VT323 font */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* ===== COLOR PALETTE ===== */
:root {
  /* Authentic Lumon Terminal Color Palette */
  --lumon-bg-primary: #09213A;        /* Lumon dark blue background */
  --lumon-bg-secondary: #0A2440;      /* Slightly lighter blue for sections */
  --lumon-bg-accent: #0D2B4A;         /* Accent blue for cards */
  --lumon-text-primary: #8FE2FF;      /* Lumon light blue text */
  --lumon-text-secondary: #6BC5E8;    /* Dimmer blue for secondary text */
  --lumon-text-accent: #8FE2FF;       /* Bright blue for accents */
  --lumon-text-light: #8FE2FF;        /* Light blue text */
  --lumon-border-color: #8FE2FF;      /* Blue borders */
  --lumon-border-accent: #8FE2FF;     /* Accent border color */
  
  /* Alias variables for easy integration */
  --bg-primary: var(--lumon-bg-primary);
  --bg-secondary: var(--lumon-bg-secondary);
  --bg-accent: var(--lumon-bg-accent);
  --text-primary: var(--lumon-text-primary);
  --text-secondary: var(--lumon-text-secondary);
  --text-accent: var(--lumon-text-accent);
  --text-light: var(--lumon-text-light);
  --border-color: var(--lumon-border-color);
  --border-accent: var(--lumon-border-accent);
  
  /* Glow effect colors */
  --lumon-glow-primary: rgba(143, 226, 255, 0.6);
  --lumon-glow-secondary: rgba(107, 197, 232, 0.4);
  --lumon-glow-intense: rgba(143, 226, 255, 0.8);
  
  /* Typography */
  --lumon-font-family: 'VT323', 'Courier New', 'Monaco', monospace;
  --font-family: var(--lumon-font-family);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
}

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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--lumon-font-family);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--lumon-text-primary);
  background-color: var(--lumon-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  letter-spacing: 0.1em;
}

/* ===== CRT EFFECTS ===== */
/* Scanlines Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.2) 50%
  );
  background-size: 100% 4px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.3;
  animation: lumon-scanlines 0.1s linear infinite;
}

/* Screen Vignette/Glow Effect */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 999;
  pointer-events: none;
  animation: lumon-flicker 0.3s infinite;
}

@keyframes lumon-scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

@keyframes lumon-flicker {
  0% { opacity: 0.9; }
  5% { opacity: 0.8; }
  10% { opacity: 0.9; }
  15% { opacity: 0.85; }
  20% { opacity: 0.9; }
  100% { opacity: 1; }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--lumon-font-family);
  font-weight: normal;
  line-height: 1.2;
  color: var(--lumon-text-primary);
  text-shadow: 0 0 15px var(--lumon-glow-primary);
  letter-spacing: 0.1em;
}

h1 { 
  font-size: 2.25rem;
  text-shadow: 0 0 20px var(--lumon-glow-primary);
}
h2 { 
  font-size: 1.875rem;
  text-shadow: 0 0 15px var(--lumon-glow-primary);
}
h3 { 
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--lumon-glow-primary);
}
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--lumon-text-secondary);
  text-shadow: 0 0 5px var(--lumon-glow-secondary);
}

a {
  color: var(--lumon-text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px var(--lumon-glow-secondary);
  letter-spacing: 0.05em;
}

a:hover, a:focus {
  text-shadow: 0 0 15px var(--lumon-glow-intense);
  outline: 1px solid var(--lumon-text-primary);
  outline-offset: 2px;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Terminal Screen Container */
.lumon-terminal {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.terminal-screen {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl);
}

.terminal-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* ===== HEADER STYLES ===== */
.site-header {
  background-color: var(--lumon-bg-primary);
  border-bottom: 1px solid var(--lumon-border-color);
  padding: var(--spacing-lg) 0;
  position: relative;
  z-index: 2;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.company-name h1 {
  font-size: 2rem;
  font-weight: normal;
  color: var(--lumon-text-primary);
  margin: 0;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--lumon-glow-primary);
}

/* ===== CLOCK COMPONENT ===== */
.lumon-clock {
  font-family: var(--lumon-font-family);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--lumon-text-primary);
  letter-spacing: 0.1em;
  user-select: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  text-shadow: 0 0 15px var(--lumon-glow-intense);
}

.lumon-clock-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
  padding: 0.5rem 0;
  margin-left: auto;
}

/* ===== HERO SECTION ===== */
.welcome-message {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0;
  position: relative;
  z-index: 3;
}

.welcome-message h1 {
  font-size: 2.5rem;
  color: var(--lumon-text-primary);
  text-shadow: 0 0 20px var(--lumon-glow-primary);
  margin-bottom: var(--spacing-lg);
}

.welcome-message p {
  font-size: 1.2rem;
  color: var(--lumon-text-secondary);
  text-shadow: 0 0 10px var(--lumon-glow-secondary);
}

/* ===== ANIMATIONS ===== */
.blink {
  animation: lumon-blink 1s infinite;
  display: inline-block;
  color: var(--lumon-text-primary);
  text-shadow: 0 0 15px var(--lumon-glow-intense);
}

@keyframes lumon-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  animation: lumon-typing 3.5s steps(40, end);
  max-width: min(90vw, 800px);
  width: fit-content;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  line-height: 1.2;
  word-break: break-word;
}

@keyframes lumon-typing {
  from {
    width: 0;
    max-width: 0;
  }
  to {
    width: 100%;
    max-width: min(90vw, 800px);
  }
}

/* ===== SECTIONS & CARDS ===== */
.section, .lumon-card {
  background-color: var(--lumon-bg-secondary);
  border: 1px solid var(--lumon-border-color);
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-xl);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(143, 226, 255, 0.1);
  transition: all 0.3s ease;
}

.section:hover, .lumon-card:hover {
  border-color: var(--lumon-text-primary);
  box-shadow: 0 0 30px rgba(143, 226, 255, 0.2);
}

.section h2 {
  color: var(--lumon-text-primary);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 0 15px var(--lumon-glow-primary);
}

/* ===== FORMS & INPUTS ===== */
input, textarea, button {
  font-family: var(--lumon-font-family);
  font-size: 1.2rem;
  outline: none;
}

input, textarea {
  background: transparent;
  border: 1px solid var(--lumon-border-color);
  color: var(--lumon-text-primary);
  padding: 0.8rem;
  transition: all 0.3s ease;
  width: 100%;
}

input:focus, textarea:focus {
  border-color: var(--lumon-text-primary);
  box-shadow: 0 0 10px var(--lumon-glow-primary);
  text-shadow: 0 0 5px var(--lumon-glow-secondary);
}

input::placeholder, textarea::placeholder {
  color: var(--lumon-text-secondary);
  opacity: 0.7;
}

button, .button {
  background: var(--lumon-text-primary);
  color: var(--lumon-bg-primary);
  border: 1px solid var(--lumon-border-color);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

button:hover, .button:hover {
  opacity: 0.8;
  box-shadow: 0 0 15px var(--lumon-glow-intense);
}

/* ===== PROJECT CARDS ===== */
.project-card {
  background-color: var(--lumon-bg-accent);
  border: 1px solid var(--lumon-border-color);
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--lumon-text-primary);
  box-shadow: 0 0 20px rgba(143, 226, 255, 0.3);
}

.project-card h3 {
  color: var(--lumon-text-primary);
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 10px var(--lumon-glow-secondary);
}

.project-card p {
  color: var(--lumon-text-secondary);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.lumon-footer {
  background-color: var(--lumon-bg-secondary);
  border-top: 1px solid var(--lumon-border-color);
  padding: var(--spacing-lg) 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.lumon-footer p {
  color: var(--lumon-text-secondary);
  font-size: 1rem;
  text-shadow: 0 0 5px var(--lumon-glow-secondary);
}

.lumon-footer a {
  color: var(--lumon-text-primary);
  text-shadow: 0 0 8px var(--lumon-glow-primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .company-name h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .lumon-clock {
    font-size: 1.2rem;
  }
  
  .lumon-clock-container {
    min-width: 100px;
    justify-content: center;
    margin-top: 0.5rem;
    margin-left: 0;
  }
  
  .welcome-message h1 {
    font-size: 1.8rem;
  }
  
  .terminal-screen {
    padding: var(--spacing-md);
  }
  
  .typewriter {
    font-size: clamp(0.9rem, 3.5vw, 1.4rem);
    max-width: 95vw;
  }
  
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .company-name h1 {
    font-size: 1.25rem;
  }
  
  .lumon-clock {
    font-size: 1rem;
  }
  
  .lumon-clock-container {
    min-width: 90px;
  }
  
  .welcome-message h1 {
    font-size: 1.5rem;
  }
  
  .typewriter {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    max-width: 98vw;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
}

/* ===== ACCESSIBILITY ===== */
/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .blink,
  .typewriter {
    animation: none !important;
  }
  
  .typewriter {
    width: 100%;
    max-width: min(90vw, 800px);
    white-space: normal;
    word-break: break-word;
  }
  
  .blink {
    opacity: 1;
  }
  
  button, .button,
  input, textarea,
  .section, .lumon-card,
  .project-card {
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  body::before,
  body::after {
    display: none;
  }
  
  .terminal-screen::before {
    display: none;
  }
  
  h1, h2, h3, h4, h5, h6,
  p, a {
    text-shadow: none;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
  }
  
  button, .button {
    border: 2px solid var(--lumon-text-primary);
  }
  
  input, textarea {
    border: 2px solid var(--lumon-text-primary);
  }
}

/* Print Styles */
@media print {
  body::before,
  body::after,
  .terminal-screen::before {
    display: none;
  }
  
  .lumon-clock-container {
    display: none;
  }
  
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}