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

body {
  background-color: var(--bg-primary);
  font-family: 'VT323', monospace;
  overflow-x: hidden;
  position: relative;
}



/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-primary);
  padding: 0 50px;
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.name {
  font-size: clamp(0.7rem, 6vw, 3rem);
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-align: left;
  margin-bottom: 30px;
  font-family: 'VT323', monospace;
  white-space: nowrap;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 400px;
  box-shadow: 0 2px 10px var(--shadow-color);
  border-radius: 10px;
  padding: 50px;
  background-color: var(--bg-secondary);
  position: relative;
  transform: translateY(-2px);
}

.create-design {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  font-size: 4rem;
  font-weight: normal;
  /* Color managed by JavaScript RGB animation */
  letter-spacing: 8px;
  font-family: 'VT323', monospace;
  line-height: 1.2;
}

.create-word, .design-word {
  position: relative;
  opacity: 0;
  display: block;
}

.design-row {
  display: flex;
  align-items: center;
}

.left-spaces {
  display: inline-block;
  opacity: 1;
}

.design-text {
  opacity: 0;
}

.space {
  display: inline-block;
  width: 0.5em;
}

.create-word.typing, .design-word.typing {
  opacity: 1;
}

/* Hero letter spans - color managed by JavaScript RGB animation via CSS variables */
.hero-letter {
  color: var(--letter-color, var(--accent-primary));
  /* Uses element-level --letter-color variable set by JS, falls back to --accent-primary */
  /* No transitions - instant theme updates */
}

/* BIOS-style cursor bar */
.cursor-bar {
  display: inline-block;
  width: 0.75em;
  height: 4px;
  background-color: var(--accent-primary);
  margin-left: 8px;
  animation: blink 1s infinite;
}

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

/* 3D Section styles moved to projectsSection.css */
/* Theme-specific styles moved to unifiedThemeToggle.css */

/* Blueprint Theme */
body.blueprint-mode .hero {
  background: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 0 25px;
  }

  .hero-content-wrapper {
    max-width: 100%;
  }

  .hero-container {
    padding: 30px 25px;
  }

  .name {
    margin-bottom: 20px;
  }

  .create-design {
    font-size: 1.8rem;
  }

  /* Projects section responsive styles in projectsSection.css */
}

/* Zoom compensation - ensures proper overflow handling when scaled */
html.zoom-compensated {
  overflow-x: hidden;
}
html.zoom-compensated body {
  overflow-x: visible;
}

/* Low-spec device optimizations - pause non-essential animations */
/* Exclude: banner text, BIOS overlay elements, theme selector */
html.low-spec-mode *:not(.banner-text):not(.bios-overlay):not(.bios-overlay *):not(.theme-selector):not(.theme-selector *),
html.reduced-motion *:not(.banner-text):not(.bios-overlay):not(.bios-overlay *):not(.theme-selector):not(.theme-selector *) {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

/* Keep the projects banner scrolling even in low-spec mode */
html.low-spec-mode .banner-text,
html.reduced-motion .banner-text {
  animation: scrollBanner 15s linear infinite !important;
}

/* Keep BIOS overlay animations working */
html.low-spec-mode .bios-overlay,
html.low-spec-mode .bios-overlay *,
html.reduced-motion .bios-overlay,
html.reduced-motion .bios-overlay * {
  animation-duration: unset !important;
  animation-iteration-count: unset !important;
  transition-duration: unset !important;
}

html.low-spec-mode .profile-card,
html.reduced-motion .profile-card {
  animation: none !important;
}

html.low-spec-mode .cursor::after,
html.reduced-motion .cursor::after {
  animation: none !important;
  opacity: 1 !important;
}

/* Keep essential hover/focus states working */
html.low-spec-mode button:hover,
html.low-spec-mode a:hover,
html.low-spec-mode .tab-button:hover {
  transition-duration: 0.1s !important;
}

/* Reduce backdrop-filter usage on low-spec */
html.low-spec-mode .hero-container,
html.low-spec-mode .profile-card,
html.low-spec-mode .playground-container {
  backdrop-filter: none !important;
}