/* ==========================================================================
   CSS DESIGN SYSTEM FOR CHRISTECH.GR (1980s ARCADE & SYNTHWAVE AESTHETIC)
   ========================================================================== */

/* Theme Variables */
:root {
  --bg-color: #0a0a14;
  --panel-bg: #121225;
  --cyan: #00f3ff;
  --magenta: #ff007f;
  --lime: #39ff14;
  --amber: #ffb000;
  --white: #ffffff;
  --gray: #88889a;
  
  --font-title: 'Press Start 2P', 'Courier New', Courier, monospace;
  --font-body: 'Share Tech Mono', 'Courier New', Courier, monospace;
  --font-accent: 'Silkscreen', monospace;
  
  --shadow-cyan: 0 0 10px rgba(0, 243, 255, 0.4), 0 0 20px rgba(0, 243, 255, 0.1);
  --shadow-magenta: 0 0 10px rgba(255, 0, 127, 0.4), 0 0 20px rgba(255, 0, 127, 0.1);
  --shadow-lime: 0 0 10px rgba(57, 255, 20, 0.4), 0 0 20px rgba(57, 255, 20, 0.1);
  --shadow-amber: 0 0 10px rgba(255, 176, 0, 0.4), 0 0 20px rgba(255, 176, 0, 0.1);
}

/* Global Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.4;
  overflow: hidden; /* Main page scroll driven manually within cabinet */
  letter-spacing: 0.5px;
}

/* Crisp Pixel Rendering */
img, svg, .runner-sprite, .item-sprite {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Custom Scrollbar for CRT Monitor */
::-webkit-scrollbar {
  width: 12px;
  background-color: var(--bg-color);
}
::-webkit-scrollbar-track {
  border-left: 2px solid var(--magenta);
}
::-webkit-scrollbar-thumb {
  background-color: var(--magenta);
  border: 2px solid var(--bg-color);
  box-shadow: 0 0 8px var(--magenta);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* CRT Monitor and curved styling filters disabled by default for absolute readability */
.scanlines, .crt-monitor-overlay {
  display: none;
}

/* ==========================================================================
   ARCADE CABINET & STATUS BAR
   ========================================================================== */

.arcade-cabinet {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  border: 8px solid var(--panel-bg);
  box-shadow: 0 0 30px rgba(18, 18, 37, 0.9);
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--panel-bg);
  border-bottom: 4px solid var(--magenta);
  padding: 8px 16px;
  font-family: var(--font-title);
  font-size: 11px;
  color: var(--cyan);
  text-shadow: var(--shadow-cyan);
  z-index: 1000;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.red-dot {
  color: var(--magenta);
}

.blink-fast {
  animation: blinker 0.6s step-end infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

.control-btn {
  background: none;
  border: none;
  color: var(--lime);
  font-family: var(--font-title);
  font-size: 9px;
  cursor: pointer;
  padding: 4px 8px;
  text-shadow: var(--shadow-lime);
  transition: all 0.1s ease;
}

.control-btn:hover {
  background-color: var(--lime);
  color: var(--bg-color);
  text-shadow: none;
}

/* ==========================================================================
   SCREEN SCROLL CONTAINER & SECTIONS
   ========================================================================== */

.crt-screen {
  flex: 1;
  position: relative;
  z-index: 10;
  overflow: hidden;
  margin-bottom: 120px; /* Space for bottom highway */
}

.level-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Flows from the top to prevent top clipping */
  padding: 40px 24px;
  overflow-y: auto; /* Clean internal scroll fallback */
  background-color: var(--bg-color);
  transition: opacity 0.3s ease;
}

.level-section.active {
  display: flex;
  opacity: 1;
}

/* ==========================================================================
   TABS NAVIGATION BAR
   ========================================================================== */

.arcade-tabs {
  display: flex;
  background-color: var(--panel-bg);
  border-bottom: 4px solid var(--cyan);
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.tab-btn {
  flex: 1;
  background-color: var(--bg-color);
  border: none;
  border-right: 2px solid var(--panel-bg);
  color: var(--gray);
  font-family: var(--font-title);
  font-size: 10px;
  padding: 14px 6px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  text-align: center;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  color: var(--cyan);
  background-color: var(--panel-bg);
}

.tab-btn.active {
  color: var(--magenta);
  background-color: var(--panel-bg);
  border-bottom: 3px solid var(--magenta);
  text-shadow: var(--shadow-magenta);
}

.section-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: 26px;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 1px;
}

.section-desc {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
  font-family: var(--font-accent);
  font-size: 16px;
}

/* ==========================================================================
   LEVEL 1: HERO / TITLE SCREEN
   ========================================================================== */

.hero-section {
  background: radial-gradient(circle at center, rgba(18, 18, 37, 0.4) 0%, rgba(10, 10, 20, 0.9) 100%);
}

.title-screen {
  text-align: center;
  max-width: 800px;
}

.pixel-title {
  font-family: var(--font-title);
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 12px;
  position: relative;
}

.pixel-subtitle {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--cyan);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.retro-box {
  background-color: rgba(18, 18, 37, 0.85);
  border: 4px solid var(--cyan);
  box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.3), var(--shadow-cyan);
  padding: 24px;
  margin-bottom: 40px;
  position: relative;
}

.retro-box::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border: 2px solid var(--magenta);
  pointer-events: none;
  opacity: 0.5;
}

.tagline {
  font-family: var(--font-accent);
  font-size: 20px;
  color: var(--white);
  line-height: 1.5;
}

/* Pulsing Button */
.arcade-btn {
  font-family: var(--font-title);
  font-size: 16px;
  padding: 16px 32px;
  background-color: var(--bg-color);
  color: var(--lime);
  border: 4px solid var(--lime);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  box-shadow: var(--shadow-lime);
  transition: all 0.2s ease;
  image-rendering: pixelated;
}

.arcade-btn:hover {
  background-color: var(--lime);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--lime), 0 0 35px var(--lime);
  transform: scale(1.05);
}

.btn-pulse {
  animation: button-pulse 1.5s infinite;
}

@keyframes button-pulse {
  0% { box-shadow: 0 0 5px var(--lime); }
  50% { box-shadow: 0 0 25px var(--lime); }
  100% { box-shadow: 0 0 5px var(--lime); }
}

.cabinet-hint {
  margin-top: 50px;
  font-size: 14px;
  color: var(--gray);
  font-family: var(--font-accent);
}

.down-arrow {
  margin-top: 10px;
  animation: bounce-arrow 1.2s infinite;
  color: var(--magenta);
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   LEVEL 2: STRATEGY & EXPERTISE (CARDS)
   ========================================================================== */

.grid-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--panel-bg);
  border: 4px solid var(--magenta);
  padding: 24px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-card:hover, .service-card:focus {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pixel-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  border: 2px solid var(--white);
  padding: 4px;
}

.icon-svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--white);
  line-height: 1.4;
}

.card-stats {
  background-color: var(--bg-color);
  padding: 8px 12px;
  margin-bottom: 16px;
  font-family: var(--font-title);
  font-size: 10px;
  display: flex;
  gap: 8px;
  border: 2px dashed var(--gray);
}

.stat-lbl {
  color: var(--gray);
}

.stat-val {
  margin-right: 12px;
}

.card-body {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.text-lime { color: var(--lime); }
.text-cyan { color: var(--cyan); }
.text-magenta { color: var(--magenta); }
.text-amber { color: var(--amber); }

/* Glow overlay on cards */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 15px rgba(255, 0, 127, 0.1);
  pointer-events: none;
}
.service-card:hover::after {
  box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}

/* ==========================================================================
   LEVEL 3: QUEST LOG (TERMINAL WINDOW)
   ========================================================================== */

.retro-window {
  border: 4px solid var(--white);
  background-color: var(--bg-color);
  box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.2);
  width: 100%;
  position: relative;
}

.window-header {
  background-color: var(--white);
  color: var(--bg-color);
  font-family: var(--font-title);
  font-size: 12px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-title {
  font-weight: bold;
}

.window-buttons {
  font-weight: bold;
  cursor: pointer;
}

.window-body {
  padding: 24px;
  background-color: rgba(10, 10, 20, 0.95);
  color: var(--white);
  min-height: 350px;
}

.terminal-line {
  font-family: var(--font-body);
  font-size: 22px;
  margin-bottom: 6px;
}

.term-prompt {
  color: var(--cyan);
}

.terminal-text {
  color: #c8c8d8;
  font-size: 20px;
  margin-top: 10px;
  line-height: 1.5;
  border-left: 3px solid var(--magenta);
  padding-left: 15px;
}

.terminal-list {
  list-style: none;
  margin-top: 10px;
  padding-left: 15px;
}

.terminal-list li {
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--lime);
}

.badge {
  padding: 2px 8px;
  font-family: var(--font-accent);
  font-size: 12px;
  border: 2px solid currentColor;
}
.badge-online {
  color: var(--lime);
  box-shadow: var(--shadow-lime);
}
.badge-location {
  color: var(--amber);
  box-shadow: var(--shadow-amber);
}

.terminal-cursor {
  animation: blinker 0.8s step-end infinite;
  font-weight: bold;
  color: var(--lime);
}

/* ==========================================================================
   LEVEL 4: CONTACT / HIGH SCORE TERMINAL
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
  align-items: start;
}

.form-window {
  border-color: var(--cyan);
  box-shadow: 6px 6px 0px rgba(0, 243, 255, 0.2);
}

.form-window .window-header {
  background-color: var(--cyan);
  color: var(--bg-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-title);
  font-size: 11px;
  color: var(--cyan);
  margin-bottom: 8px;
  text-shadow: var(--shadow-cyan);
}

.form-group input, .form-group textarea {
  width: 100%;
  background-color: var(--panel-bg);
  border: 3px solid var(--gray);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.submit-btn {
  width: 100%;
  font-size: 15px;
}

.terminal-success {
  margin-top: 20px;
  font-family: var(--font-title);
  font-size: 11px;
  border: 2px solid var(--lime);
  padding: 12px;
  background-color: rgba(57, 255, 20, 0.15);
  box-shadow: var(--shadow-lime);
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Info Box */
.info-terminal-box {
  border-color: var(--lime);
  box-shadow: inset 0 0 10px rgba(57,255,20,0.2), var(--shadow-lime);
}

.info-terminal-box::before {
  border-color: var(--amber);
}

.box-title {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--lime);
  margin-bottom: 20px;
  text-shadow: var(--shadow-lime);
  border-bottom: 2px solid var(--lime);
  padding-bottom: 8px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-lbl {
  font-family: var(--font-title);
  font-size: 9px;
  color: var(--gray);
}

.info-val, .info-link {
  font-size: 22px;
  color: var(--white);
}

.info-link {
  color: var(--cyan);
  text-decoration: underline;
  outline: none;
}
.info-link:hover, .info-link:focus {
  color: var(--magenta);
  text-shadow: var(--shadow-magenta);
}

.credits {
  border-top: 2px dashed rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* ==========================================================================
   HIGHWAY & SPRITE RUNNER STAGE (FIXED AT THE BOTTOM)
   ========================================================================== */

.highway-stage {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* Shrunk height of Frankfurt skyline + Road */
  border-top: 4px solid var(--magenta);
  box-shadow: 0 -6px 15px rgba(255, 0, 127, 0.15);
  z-index: 100;
  overflow: hidden;
  background-color: var(--bg-color);
}

/* 1. Parallax Skyline (Frankfurt) */
.parallax-skyline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Spans the full height of the highway stage (120px) */
  background-image: url('../images/frankfurt_skyline.png?v=3'); /* Cache bust */
  background-repeat: no-repeat;
  background-size: 180% auto; /* 1.8x width of viewport, height scales proportionally to avoid squishing */
  background-position: 0% 50%; /* Starts on the left, centered vertically */
  opacity: 0.6; /* Softer opacity for better background blend */
  image-rendering: pixelated;
  z-index: 1;
  pointer-events: none;
}

/* 2. Neon Highway Floor (Perspective Grid) */
.neon-grid-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #05050f;
  z-index: 2;
  perspective: 60px;
  overflow: hidden;
}

.highway-lanes {
  width: 200%;
  height: 100%;
  margin-left: -50%;
  background-image: 
    linear-gradient(90deg, transparent 49%, var(--cyan) 50%, var(--cyan) 51%, transparent 52%),
    linear-gradient(0deg, var(--magenta) 2px, transparent 2px);
  background-size: 60px 100%, 100% 20px;
  background-position: 0 0;
  transform: rotateX(55deg);
  transform-origin: top center;
  box-shadow: inset 0 15px 25px rgba(0, 243, 255, 0.15);
}

/* 3. Runner Container (Centred horizontally) */
.runner-container {
  position: absolute;
  bottom: 12px;
  left: 15%; /* Initial position, can adjust with GSAP */
  z-index: 10;
  width: 64px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform: translateY(0);
}

/* 32x32 pixelated runner (scaled 2x to 64px) */
.runner-sprite {
  width: 64px;
  height: 64px;
  background-image: url('../images/sprite_sheet.svg');
  background-repeat: no-repeat;
  background-size: 256px 64px; /* 4 frames of 64px */
  background-position: 0px 0px;
  transition: transform 0.05s ease;
}

/* Speech Bubble */
.bubble-container {
  margin-bottom: 2px;
  min-height: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.speech-bubble {
  background-color: var(--panel-bg);
  border: 2px solid var(--white);
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 9px;
  padding: 2px 6px;
  white-space: nowrap;
  position: relative;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  margin-left: -4px;
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: var(--white) transparent;
  display: block;
  width: 0;
}

/* 4. Scroll Items (Obstacles/Powerups) along the road */
.highway-elements {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 55px;
  z-index: 5;
  pointer-events: none;
}

.highway-item {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-sprite {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.4));
}

.item-label {
  font-family: var(--font-accent);
  font-size: 8px;
  color: var(--white);
  background-color: var(--bg-color);
  border: 1px solid var(--magenta);
  padding: 1px 3px;
  margin-top: 2px;
  white-space: nowrap;
  box-shadow: var(--shadow-magenta);
}

/* Retro icons for elements */
.pixel-bug {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2,3h2v2h-2z M12,3h2v2h-2z M4,5h8v2h-8z M3,7h10v2h-10z M2,9h12v2h-12z M4,11h2v3h-2z M10,11h2v3h-2z" fill="%23ff007f"/></svg>');
}
.pixel-power {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6,2h4v2h-4z M4,4h8v2h-8z M2,6h12v4h-12z M4,10h8v2h-8z M6,12h4v2h-4z" fill="%2300f3ff"/></svg>');
}
.pixel-hq {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2,1h12v14h-12z M5,4h2v2h-2z M9,4h2v2h-2z M5,8h2v2h-2z M9,8h2v2h-2z M6,12h4v3h-4z" fill="%2339ff14"/></svg>');
}

/* ==========================================================================
   GLITCH AND TEXT EFFECT STYLES
   ========================================================================== */

.text-glow-cyan {
  color: var(--cyan);
  text-shadow: var(--shadow-cyan);
}

.text-glow-magenta {
  color: var(--magenta);
  text-shadow: var(--shadow-magenta);
}

.text-glow-lime {
  color: var(--lime);
  text-shadow: var(--shadow-lime);
}

/* Simple text glitch */
.glitch-wrapper {
  position: relative;
  display: inline-block;
}

.pixel-title::before,
.pixel-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
}

.pixel-title::before {
  left: 2px;
  text-shadow: -2px 0 var(--magenta);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.pixel-title::after {
  left: -2px;
  text-shadow: -2px 0 var(--cyan), 0 2px var(--magenta);
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip: rect(10px, 9999px, 50px, 0); }
  10% { clip: rect(80px, 9999px, 100px, 0); }
  20% { clip: rect(30px, 9999px, 40px, 0); }
  30% { clip: rect(120px, 9999px, 140px, 0); }
  40% { clip: rect(15px, 9999px, 35px, 0); }
  50% { clip: rect(90px, 9999px, 110px, 0); }
  60% { clip: rect(55px, 9999px, 75px, 0); }
  70% { clip: rect(5px, 9999px, 25px, 0); }
  80% { clip: rect(115px, 9999px, 135px, 0); }
  90% { clip: rect(40px, 9999px, 60px, 0); }
  100% { clip: rect(70px, 9999px, 85px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(65px, 9999px, 115px, 0); }
  10% { clip: rect(5px, 9999px, 35px, 0); }
  20% { clip: rect(90px, 9999px, 120px, 0); }
  30% { clip: rect(40px, 9999px, 55px, 0); }
  40% { clip: rect(110px, 9999px, 130px, 0); }
  50% { clip: rect(15px, 9999px, 45px, 0); }
  60% { clip: rect(75px, 9999px, 95px, 0); }
  70% { clip: rect(25px, 9999px, 55px, 0); }
  80% { clip: rect(100px, 9999px, 125px, 0); }
  90% { clip: rect(35px, 9999px, 65px, 0); }
  100% { clip: rect(80px, 9999px, 110px, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 900px) {
  body {
    font-size: 18px;
  }

  .grid-services {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pixel-title {
    font-size: 24px;
  }

  .pixel-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .tagline {
    font-size: 14px;
  }

  .level-section {
    padding: 20px 10px;
  }

  .highway-stage {
    height: 100px;
  }

  .parallax-skyline {
    height: 100%;
  }

  .neon-grid-floor {
    height: 50px;
  }

  .runner-container {
    bottom: 10px;
    width: 48px;
    height: 60px;
  }

  .runner-sprite {
    width: 48px;
    height: 48px;
    background-size: 192px 48px;
  }

  .item-sprite {
    width: 32px;
    height: 32px;
  }

  .crt-screen {
    margin-bottom: 100px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .arcade-cabinet {
    border: none; /* Spans full screen on mobile devices */
  }

  .status-center {
    display: none; /* Hide level ticker on extra small screens */
  }

  .status-bar {
    font-size: 9px;
    padding: 8px;
  }

  .pixel-title {
    font-size: 20px;
  }

  .arcade-btn {
    font-size: 11px;
    padding: 10px 16px;
  }

  .retro-window, .retro-box {
    padding: 14px;
    border-width: 3px;
  }

  .window-body {
    padding: 10px;
    min-height: 220px;
  }

  .terminal-line, .terminal-text, .terminal-list li {
    font-size: 15px;
  }

  .form-group input, .form-group textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    padding: 10px;
    border-width: 2px;
  }

  .info-val, .info-link {
    font-size: 16px;
  }
}

/* ==========================================================================
   FUTURISTIC CORPORATE WEBSITE TEMPLATE (MODE B)
   ========================================================================== */

/* 1. Global Corporate Container */
.corporate-template {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #030308;
  color: #f0f0f8;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

/* Modern Monospace and Text Rendering overrides inside corporate template */
.corporate-template * {
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
}

/* Custom modern scrollbar */
.corporate-template::-webkit-scrollbar {
  width: 8px;
}
.corporate-template::-webkit-scrollbar-track {
  background: #030308;
}
.corporate-template::-webkit-scrollbar-thumb {
  background: #252545;
  border-radius: 4px;
}
.corporate-template::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

.corporate-template .hidden {
  display: none !important;
}

/* Typography elements */
.gradient-text-cyan-purple {
  background: linear-gradient(135deg, #00f3ff, #ff007f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* 2. Header and Navigation */
.corp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  z-index: 1000;
  background: rgba(3, 3, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.corp-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.logo-accent {
  color: #00f3ff;
}

.corp-nav {
  display: flex;
  gap: 30px;
}

.corp-nav-link {
  color: #c8c8d8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.corp-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f3ff, #ff007f);
  transition: width 0.2s ease;
}

.corp-nav-link:hover::after {
  width: 100%;
}

.corp-nav-link:hover {
  color: #ffffff;
}

/* 3. Corporate Buttons */
.corp-btn {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #00f3ff, #ff007f);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 243, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-arcade-toggle {
  background: #121225;
  color: #39ff14;
  border: 2px solid #39ff14;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
}

.btn-arcade-toggle:hover {
  background: #39ff14;
  color: #121225;
  text-shadow: none;
  box-shadow: 0 0 18px #39ff14;
}

/* 4. Hero Section */
.corp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 5% 80px 5%;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.corp-hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.corp-tagline-badge {
  background: rgba(0, 243, 255, 0.1);
  color: #00f3ff;
  border: 1px solid rgba(0, 243, 255, 0.2);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.corp-hero-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
}

.corp-hero-desc {
  font-size: 19px;
  color: #a0a0b8;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.corp-hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Background Cyberpunk Mesh Grid & Blobs */
.corp-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.mesh-glow-1 {
  width: 400px;
  height: 400px;
  background-color: #00f3ff;
  top: 10%;
  left: -100px;
}

.mesh-glow-2 {
  width: 400px;
  height: 400px;
  background-color: #ff007f;
  bottom: 10%;
  right: -100px;
}

/* 5. Services Section */
.corp-services, .corp-about, .corp-contact {
  padding: 120px 5%;
  position: relative;
}

.corp-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.corp-section-header {
  margin-bottom: 60px;
}

.corp-section-header.align-center {
  text-align: center;
}

.corp-section-sub {
  color: #ff007f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 12px;
}

.corp-section-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
}

.corp-grid-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Glassmorphism cards */
.corp-card {
  position: relative;
  background: rgba(25, 25, 45, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.corp-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 243, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.05);
}

.corp-card-glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.corp-card:hover .corp-card-glow {
  opacity: 1;
  top: var(--mouse-y, 0px);
  left: var(--mouse-x, 0px);
  transform: translate(-50%, -50%);
}

.corp-card-icon-wrap {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 24px;
}

.corp-card-icon {
  width: 32px;
  height: 32px;
}

.corp-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.corp-card-body {
  font-size: 16px;
  color: #a0a0b8;
  line-height: 1.6;
}

/* 6. Executive Biography Section */
.corp-about {
  background-color: #05050c;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.corp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.corp-about-lead {
  font-size: 22px;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 24px;
  font-weight: 400;
}

.corp-about-text {
  font-size: 17px;
  color: #a0a0b8;
  margin-bottom: 40px;
}

.corp-about-stats {
  display: flex;
  gap: 40px;
}

.corp-stat {
  display: flex;
  flex-direction: column;
}

.corp-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: #00f3ff;
}

.corp-stat-lbl {
  font-size: 13px;
  color: #808098;
  letter-spacing: 1px;
}

/* Biography Visual terminal */
.corp-about-visual {
  display: flex;
  justify-content: center;
}

.visual-glass-card {
  width: 100%;
  max-width: 480px;
  background: rgba(18, 18, 37, 0.6);
  border: 1px solid rgba(0, 243, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0, 243, 255, 0.05);
  overflow: hidden;
}

.visual-header {
  background: rgba(0, 243, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.vis-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
}

.visual-body {
  padding: 24px;
  font-family: 'Share Tech Mono', Courier, monospace;
}

.vis-line {
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 15px;
  margin-bottom: 12px;
  color: #c8c8d8;
}
.vis-line * {
  font-family: 'Share Tech Mono', monospace !important;
}

.text-purple { color: #ff007f; }
.text-cyan { color: #00f3ff; }
.text-lime { color: #39ff14; }

/* 7. Contact Section */
.corp-contact-card {
  background: rgba(25, 25, 45, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.corp-contact-subtitle {
  color: #a0a0b8;
  font-size: 16px;
  margin-top: 8px;
}

.corp-contact-subtitle a {
  color: #00f3ff;
  text-decoration: underline;
}

.corp-form {
  margin-top: 40px;
}

.corp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.corp-form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.corp-form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c0c0d0;
  margin-bottom: 8px;
}

.corp-form-group input, .corp-form-group textarea {
  background-color: rgba(5, 5, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.corp-form-group input:focus, .corp-form-group textarea:focus {
  border-color: #00f3ff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
  background-color: rgba(5, 5, 11, 0.9);
}

.corp-form-group textarea {
  height: 140px;
  resize: none;
}

.corp-submit {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
}

.corp-success-alert {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #39ff14;
  background-color: rgba(57, 255, 20, 0.1);
  color: #39ff14;
  font-weight: 600;
  text-align: center;
  font-size: 15px;
}

/* 8. Corporate Footer */
.corp-footer {
  background-color: #020206;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 5%;
}

.corp-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-copyright {
  font-size: 14px;
  color: #606078;
}

/* 9. Corporate Responsiveness Media Queries */
@media (max-width: 900px) {
  .corp-header {
    padding: 20px 24px;
  }
  
  .corp-nav {
    display: none; /* Collapsed nav for simple mobile layouts */
  }

  .corp-hero-title {
    font-size: 38px;
  }

  .corp-hero-desc {
    font-size: 17px;
  }

  .corp-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .corp-hero-actions .corp-btn {
    width: 100%;
    max-width: 300px;
  }

  .corp-grid-services {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .corp-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .corp-contact-card {
    padding: 30px 20px;
  }

  .corp-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .corp-footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

