/* ===================================
   ATOMIC LAB - COMPLETE DESIGN SYSTEM
   Dark Sci-Fi Theme Implementation
   =================================== */

/* Orbitron font loaded in HTML head for better performance */

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Legacy Variables - Mapped to Theme System */
:root {
  /* Map old variables to new theme system */
  --quantum-black: var(--color-bg-primary);
  --lab-dark: var(--color-bg-secondary);
  --carbon-gray: var(--color-bg-tertiary);
  --steel-gray: var(--color-surface-secondary);
  
  /* Neon Colors mapped to brand colors */
  --neon-blue: var(--color-brand-primary);
  --plasma-purple: var(--color-brand-secondary);
  --radioactive-green: var(--color-brand-tertiary);
  --fusion-orange: var(--color-brand-accent);
  
  /* Text Colors */
  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  
  /* Background Colors */
  --bg-primary: var(--color-bg-primary);
  --bg-secondary: var(--color-bg-secondary);
  
  /* Transitions */
  --transition-fast: var(--duration-fast) var(--ease-in-out);
  --transition-smooth: var(--duration-normal) var(--ease-in-out);
  
  /* Element Category Colors */
  --alkali-glow: var(--color-alkali);
  --alkaline-glow: var(--color-alkaline);
  --transition-glow: var(--color-transition);
  --metalloid-glow: var(--color-metalloid);
  --nonmetal-glow: var(--color-nonmetal);
  --halogen-glow: var(--color-halogen);
  --noble-glow: var(--color-noble);
  --lanthanide-glow: var(--color-lanthanide);
  --actinide-glow: var(--color-actinide);
  --post-transition-glow: var(--color-post-transition);
  
  /* Typography */
  --font-tech: var(--font-secondary); /* Inter - default body font */
  --font-data: var(--font-mono); /* JetBrains Mono - for data */
}

/* Body and Base */
body {
  font-family: var(--font-tech); /* Uses Inter via --font-tech */
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  font-size: var(--font-size-base);
  
  /* Quantum Background Pattern */
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(189, 0, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Headings - Use Orbitron for all headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary); /* Orbitron for headings */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Container */
.containment-field {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.nav-molecular {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid var(--color-border-primary);
  z-index: var(--z-fixed);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-text-primary);
}

/* Atom Logo */
.atom-logo {
  width: 40px;
  height: 40px;
  position: relative;
  animation: atomRotate 10s linear infinite;
}

.nucleus {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-brand-primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--color-brand-primary);
}

.electron-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-brand-primary);
  border-radius: 50%;
  opacity: 0.5;
}

.electron-ring::before,
.electron-ring::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-brand-secondary);
  border-radius: 50%;
  transform: rotate(60deg);
}

.electron-ring::after {
  transform: rotate(-60deg);
  border-color: var(--color-brand-tertiary);
}

@keyframes atomRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-primary); /* Orbitron for brand */
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  font-family: var(--font-primary); /* Orbitron for nav links */
}

.nav-link:hover {
  color: var(--color-brand-primary);
}

.nav-link.active {
  color: var(--color-brand-primary);
}

.link-text {
  position: relative;
  z-index: 1;
}

.link-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-brand-primary);
  transform: scaleX(0);
  transition: transform var(--duration-fast) var(--ease-in-out);
}

.nav-link.active .link-indicator,
.nav-link:hover .link-indicator {
  transform: scaleX(1);
}

/* Quantum Particles Background */
.quantum-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.quantum-particles::before,
.quantum-particles::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-brand-primary);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.quantum-particles::after {
  width: 3px;
  height: 3px;
  background: var(--color-brand-secondary);
  animation-duration: 15s;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(100vw, 30vh); }
  50% { transform: translate(50vw, 100vh); }
  75% { transform: translate(-20vw, 50vh); }
}

/* Scan Lines Effect */
.scan-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.1) 2px,
    rgba(0, 255, 255, 0.1) 4px
  );
  animation: scanMove 10s linear infinite;
}

@keyframes scanMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

/* Main Content Area */
main {
  margin-top: 100px; /* Increased to prevent overlap with fixed nav */
  min-height: calc(100vh - 100px);
  position: relative;
  z-index: 2;
}

/* Page Headers */
.page-title {
  font-size: 3rem;
  color: var(--neon-blue);
  text-shadow: 0 0 20px currentColor;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-primary); /* Orbitron for page titles */
}

/* Glitch Effect for Titles */
.glitch-text {
  position: relative;
  animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-1 0.5s infinite;
  color: var(--color-brand-primary);
  z-index: -1;
}

.glitch-text::after {
  animation: glitch-2 0.5s infinite;
  color: var(--color-brand-secondary);
  z-index: -2;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); }
  25% { clip-path: inset(10% 0 50% 0); }
  50% { clip-path: inset(50% 0 20% 0); }
  75% { clip-path: inset(0 0 70% 0); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(0 0 0 0); }
  25% { clip-path: inset(70% 0 0 0); }
  50% { clip-path: inset(20% 0 30% 0); }
  75% { clip-path: inset(0 0 10% 0); }
}

/* Element Cards (General) */
/* These rules apply to element cards when displayed individually or in showcases */
body > .element-hex,
.hero-element .element-hex,
.element-showcase .element-hex {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform-style: preserve-3d;
  text-decoration: none;
  display: block;
}

/* Element hex wrapper link */
a.element-hex {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Individual page showcase */
.element-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  margin: 2rem 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

/* Showcase specific sizing */
.element-showcase .element-hex {
  width: 150px;
  height: 150px;
  margin: 0;
}

.element-hex:hover .hex-inner {
  /* Removed transform to work with parent 2x scale */
  box-shadow: 
    0 0 30px currentColor,
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Hexagon Shape */
.hex-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 35, 0.9), rgba(13, 13, 20, 0.9));
  border: 2px solid currentColor;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  padding: 0.5rem;
  /* No z-index here - let it be the base layer */
}

.hex-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, currentColor, transparent);
  opacity: 0.1;
  transition: opacity 0.3s;
}

/* MERGED: .table-grid .hex-inner rules combined (was at lines 446 and 712) */
.table-grid .hex-inner {
  /* Grid-specific hex-inner adjustments */
  height: 100%;
  border-radius: 5px;
  padding: 4px; /* Reduced padding to fit more content */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  /* No z-index - background stays at base layer */
}

.element-hex:hover .hex-inner::before {
  opacity: 0.2;
}

/* Element Content - Base styles for element components */
.element-number {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 50; /* Above orbital system */
}

.element-symbol {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0.25rem 0;
  position: relative;
  z-index: 50; /* Above orbital system */
  font-family: var(--font-primary); /* Orbitron for element symbols */
}

.element-name {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: capitalize;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 50; /* Above orbital system */
}

.element-mass {
  font-size: 0.65rem;
  opacity: 0.7;
  font-family: var(--font-mono);
}

/* Element Categories Colors */
.element-alkali { color: var(--color-alkali); }
.element-alkaline { color: var(--color-alkaline); }
.element-transition { color: var(--color-transition); }
.element-metalloid { color: var(--color-metalloid); }
.element-nonmetal { color: var(--color-nonmetal); }
.element-halogen { color: var(--color-halogen); }
.element-noble { color: var(--color-noble); }
.element-lanthanide { color: var(--color-lanthanide); }
.element-actinide { color: var(--color-actinide); }
.element-post-transition { color: var(--color-post-transition); }
.element-unknown { color: var(--color-unknown); }

/* Hover Glow Effect */
.hover-glow {
  position: relative;
}

.hover-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
}

.hover-glow:hover::after {
  opacity: 0.3;
}

/* Data Cards */
.data-card {
  background: linear-gradient(135deg, rgba(26, 26, 35, 0.9), rgba(13, 13, 20, 0.9));
  border: 1px solid var(--color-border-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}

.data-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand-primary), transparent);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.data-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.data-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  font-family: var(--font-mono);
}

/* Buttons */
.btn-quantum {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
  color: var(--color-bg-primary);
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn-quantum::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-quantum:hover::before {
  width: 300px;
  height: 300px;
}

.btn-quantum:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
  background: rgba(13, 13, 20, 0.5);
  border: 1px solid var(--color-border-primary);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-secondary);
}

.data-table th {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-primary); /* Orbitron for table headers */
}

.data-table tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Loading Animation */
.quantum-loader {
  width: 60px;
  height: 60px;
  margin: 2rem auto;
  position: relative;
}

.quantum-loader::before,
.quantum-loader::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--color-brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.quantum-loader::after {
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
  border-top-color: var(--color-brand-secondary);
  animation-duration: 0.7s;
  animation-direction: reverse;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================
   Periodic Table Specific
   ========================== */

.table-grid {
  display: grid !important;
  grid-template-columns: repeat(18, 80px) !important;
  grid-template-rows: repeat(7, 80px) 40px repeat(2, 80px) !important; /* Row 8 is separator */
  gap: 4px !important;
  min-width: fit-content;
  margin: 0 auto;
  /* Ensure all grid items use the same sizing */
  grid-auto-rows: 80px !important;
  grid-auto-columns: 80px !important;
  /* Stretch items to fill grid cells */
  align-items: stretch !important;
  justify-items: stretch !important;
}

/* Duplicate .table-grid .hex-inner removed - merged with rule at line 446 */

.table-grid .element-number {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.65rem;
  opacity: 0.9;
  font-weight: 600;
  line-height: 1;
  z-index: 50; /* Above orbital animations */
}

.table-grid .element-symbol {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
  margin: auto 0;
  /* Center the symbol vertically */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  position: relative;
  z-index: 50; /* Above orbital animations */
}

.table-grid .element-name {
  font-size: 0.65rem;
  line-height: 1;
  margin-bottom: 2px;
  max-width: 100%;
  padding: 0 2px;
  text-align: center;
  /* Ensure text fits */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 50; /* Above orbital animations */
}

/* F-block elements use the same styles as main table - no special overrides */

/* F-Block Series (Lanthanides and Actinides) */
.f-block-series {
  margin-top: 2rem;
  padding: 1rem 0;
}

.series-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Legend */
.table-legend {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(13, 13, 20, 0.5);
  border-radius: 8px;
  border: 1px solid var(--color-border-primary);
  position: relative;
  z-index: 1;
}

.legend-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-primary); /* Orbitron for legend title */
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid currentColor;
  background: rgba(currentColor, 0.1);
}

.legend-label {
  font-size: 0.875rem;
  text-transform: capitalize;
}

/* Table Header */
.table-header {
  padding: 120px 0 2rem 0; /* Increased top padding to clear fixed nav and provide better spacing */
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.05), transparent);
  margin-top: 0; /* Remove any margin */
}

.table-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

/* ALL elements in the grid use these rules - no exceptions */
.table-grid .element-hex {
  width: 100% !important;
  height: 100% !important;
  min-width: 80px !important;
  min-height: 80px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important; /* Block to properly size in grid */
  position: relative !important;
  box-sizing: border-box !important;
  overflow: hidden !important; /* Prevent orbital animations from overflowing */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              z-index 0.4s ease,
              overflow 0.4s ease 0.2s !important; /* Delay overflow change */
  /* Ensure consistent text rendering */
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* On hover, slight scale and start animation */
.table-grid .element-hex:hover {
  transform: scale(1.2) !important;
  z-index: 50 !important; /* Above others but not too high */
  overflow: visible !important; /* Allow atom to overflow */
}

/* On click expand - much larger scale */
.table-grid .element-hex.expanded {
  transform: scale(2) !important;
  z-index: 9998 !important; /* Highest priority when expanded */
  overflow: visible !important;
  cursor: pointer;
}

/* Add opaque background on hover for better text readability */
.table-grid .element-hex:hover .hex-inner,
.table-grid .element-hex.expanded .hex-inner {
  background: linear-gradient(135deg, #0a0a14, #050508); /* Dark opaque background matching site theme */
  border-color: currentColor;
  box-shadow: 
    0 0 40px currentColor,
    inset 0 0 20px rgba(0, 0, 0, 0.8);
}

/* F-block elements inherit the same base styles - no overrides needed */

/* Period/Group Labels */
.period-label,
.group-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

/* Interactive Features */
.element-tooltip {
  position: absolute;
  background: rgba(13, 13, 20, 0.95);
  border: 1px solid var(--color-brand-primary);
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.element-hex:hover .element-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation - Fixed to not affect element sizing */
.stagger-container {
  perspective: 1000px;
}

.stagger-item {
  opacity: 1; /* Start visible to avoid layout issues */
  transform: none; /* No initial transform */
  animation: none; /* Disable initial load animation to prevent sizing issues */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s,
              opacity 0.3s ease,
              filter 0.3s ease; /* Smooth transitions for filters */
}

/* Hover animations disabled - using 2x scale on click instead */

/* Series Elements Container */
.series-elements {
  display: flex;
  gap: 4px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.series-elements .element-hex {
  width: 80px;
  height: 80px;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  
  .table-grid {
    grid-template-columns: repeat(18, 60px);
    grid-template-rows: repeat(10, 60px);
    gap: 2px;
  }
  
  .table-grid .element-symbol {
    font-size: 1.2rem;
  }
  
  .table-grid .element-name {
    font-size: 0.6rem;
  }
  
  .table-grid .element-number {
    font-size: 0.65rem;
  }
  
  .series-elements .element-hex {
    width: 60px;
    height: 60px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .quantum-particles,
  .scan-lines,
  .nav-molecular {
    display: none;
  }
  
  .element-hex {
    border: 1px solid black;
    background: white;
  }
}

/* Mobile Navigation Optimizations */
@media (max-width: 768px) {
  .nav-molecular {
    padding: 0.75rem 0;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-brand .brand-text {
    font-size: 1.2rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .atom-logo {
    width: 32px;
    height: 32px;
  }
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid var(--color-border-primary);
  text-align: center;
  color: var(--color-text-secondary);
}