/* style.css - Server/Cyber SPA Theme */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  --bg-color: #030507; /* Pure darkness abyss */
  --term-bg: rgba(10, 15, 20, 0.85);
  
  --neon-green: #00ff41; /* Matrix green */
  --cyber-cyan: #00e5ff;
  --cyber-gold: #ffb703;
  --alert-red: #ff3333;
  
  --text-main: #e0e0e0;
  --text-dim: #666666;
  
  --grid-color: rgba(0, 255, 65, 0.05);

  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow: hidden; /* SPA: no body scrolling */
  -webkit-user-select: none;
  user-select: none;
}

/* Background elements */
#digital-tact-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}

/* Cyber grid */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Classic Scan line */
#scan-line {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 10px;
  background: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  z-index: 999;
  opacity: 0.5;
  pointer-events: none;
  animation: scan 8s linear infinite;
}
@keyframes scan {
  0% { top: -10px; }
  100% { top: 100vh; }
}

/* Vignette for old monitor feel */
#vignette {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.8) 150%);
  pointer-events: none;
  z-index: 998;
}

/* Header & Nav */
.header {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}
.logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}
.blinking-cursor {
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav-links {
  display: flex;
  gap: 15px;
}
.nav-btn {
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
  padding: 6px 15px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nav-btn:hover {
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
}
.nav-btn.active {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}
.nav-btn.highlight {
  border-color: var(--cyber-gold);
  color: var(--cyber-gold);
}
.nav-btn.highlight:hover {
  background: rgba(255, 183, 3, 0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--neon-green);
  padding: 8px;
  cursor: pointer;
  z-index: 101;
  flex-shrink: 0;
}
.hamburger-btn span {
  width: 25px;
  height: 2px;
  background: var(--neon-green);
  transition: 0.3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Layout Utilities */
.container { max-width: 1000px; margin: 0 auto; width: 100%; }
.container-wide { max-width: 1200px; }
.container-medium { max-width: 800px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* Text colors */
.neon-text { color: var(--neon-green); text-shadow: 0 0 8px rgba(0, 255, 65, 0.4); }
.cyan-text { color: var(--cyber-cyan); text-shadow: 0 0 8px rgba(0, 229, 255, 0.4); }
.cyber-gold { color: var(--cyber-gold); text-shadow: 0 0 8px rgba(255, 183, 3, 0.4); }
.log-text { font-family: var(--font-mono); color: var(--text-dim); }

/* SPA Sectioning */
#app-container {
  position: relative;
  height: calc(100dvh - 70px);
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.screen-section {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: all 0.4s cubic-bezier(0.1, 1, 0.1, 1);
  overflow-y: auto;
  padding-bottom: 50px;
}
.screen-section.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* Sections specific styles */
.section-title {
  font-family: var(--font-mono);
  color: var(--neon-green);
  font-size: 1.8rem;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  padding-bottom: 10px;
  width: 100%;
}

/* Terminal Boxes */
.terminal-box {
  background: var(--term-bg);
  border: 1px solid var(--text-dim);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  width: 100%;
  max-width: 800px;
}
.term-header {
  background: rgba(255,255,255,0.05);
  padding: 8px 15px;
  border-bottom: 1px solid var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.term-body {
  padding: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: 0.2s;
  letter-spacing: 1px;
}
.btn-cyber {
  color: #000;
  background: var(--neon-green);
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}
.btn-cyber:hover {
  background: transparent;
  color: var(--neon-green);
}
.btn-outline {
  color: var(--cyber-cyan);
  border: 1px solid var(--cyber-cyan);
}
.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Home Section */
.hero-title {
  font-family: var(--font-mono);
  font-size: 3rem;
  color: var(--text-main);
  margin-bottom: 10px;
  border-right: 15px solid transparent; /* default cursor hide */
}
.hero-title span { color: var(--neon-green); }
.hero-title.secondary span { color: var(--cyber-cyan); }
.crypto-text {
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  gap: 20px;
}
.hero-actions .btn {
  flex: 1;
  max-width: 300px;
  justify-content: center;
  text-align: center;
}

/* Cards (Pain Points) */
.grid.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cyber-card {
  background: rgba(10, 15, 20, 0.9);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-top: 3px solid var(--alert-red);
  padding: 0;
  transition: all 0.2s;
}
.cyber-card:nth-child(2) { border-top-color: var(--cyber-gold); }
.cyber-card:nth-child(3) { border-top-color: var(--cyber-cyan); }
.cyber-card:hover {  border-color: var(--neon-green); box-shadow: 0 0 15px rgba(0, 255, 65, 0.15); }
.card-header {
  background: rgba(255,255,255,0.05);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--alert-red);
  padding: 8px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pain {
  padding: 30px 20px;
  font-size: 1.1rem;
  color: var(--text-main);
  min-height: 100px;
}
.card-footer {
  padding: 20px;
  border-top: 1px dotted rgba(255,255,255,0.1);
}
.solution-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.0rem;
  background: rgba(0, 255, 65, 0.1);
  color: var(--neon-green);
  padding: 4px 10px;
  margin-bottom: 10px;
}
.card-footer p { font-size: 1.1rem; color: #aaa; }
.card-footer span { font-weight: bold; }

/* Services (Modules) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-panel {
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.02);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.service-panel::before { /* Hacky corner cut */
  content: ''; position: absolute; top: 0; right: 0;
  border-width: 0 20px 20px 0; border-style: solid;
  border-color: transparent var(--bg-color) transparent transparent;
}
.panel-uid {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-dim); margin-bottom: 15px;
}
.service-title { font-size: 1.5rem; margin-bottom: 5px; }
.service-tagline { color: #fff; font-weight: bold; margin-bottom: 15px; }
.service-text { color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; }

/* USP (Server Rack) */
.server-rack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.rack-unit {
  background: #111;
  border: 1px solid #333;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.rack-status {
  width: 12px; height: 12px; border-radius: 50%;
  margin-top: 5px; box-shadow: 0 0 8px currentColor;
}
.led-green { background: var(--neon-green); color: var(--neon-green); }
.led-blue { background: var(--cyber-cyan); color: var(--cyber-cyan); }
.led-gold { background: var(--cyber-gold); color: var(--cyber-gold); }
.rack-info h3 { font-family: var(--font-mono); font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.rack-info p { color: var(--text-dim); font-size: 0.95rem; }

/* Profile */
.profile-layout { display: flex; gap: 40px; }
.avatar-box {
  width: 150px; text-align: center;
}
.avatar-placeholder {
  width: 150px; height: 150px;
  border: 1px dashed var(--cyber-cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyber-cyan);
}
.profile-data ul { list-style: none; }
.profile-data li { margin-bottom: 10px; font-family: var(--font-mono); color: #ddd; }
.data-key { display: inline-block; width: 80px; color: var(--text-dim); }
.system-msg {
  padding: 15px; background: rgba(255, 183, 3, 0.1);
  border-left: 3px solid var(--cyber-gold);
  font-family: var(--font-mono);
}
.prompt { color: var(--cyber-gold); margin-right: 10px; }

/* Cyber Table */
.cyber-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.cyber-table th, .cyber-table td {
  border: 1px solid rgba(0, 255, 65, 0.2);
  padding: 15px;
  text-align: left;
}
.cyber-table th {
  background: rgba(0, 255, 65, 0.1);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-weight: normal;
  font-size: 0.9rem;
}
.cyber-table td {
  background: rgba(10, 15, 20, 0.5);
  color: #ddd;
}
.cyber-table .price-cell {
  font-family: var(--font-mono);
  color: var(--cyber-cyan);
  text-align: right;
  white-space: nowrap;
}
.cyber-table tr:hover td {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.4);
}

/* Utils */
.center-box { margin: 0 auto; padding: 60px; text-align: center; }

/* Specific utilities extracted from inline styles */
.logo-title { font-size: 2.0rem; letter-spacing: 1px; line-height: 1.2; }
.logo-line-1, .logo-line-2 { display: inline; }
.logo-line-2 { margin-left: 10px; color: var(--cyber-cyan); }
.logo-subtitle { font-size: 0.55rem; color: rgba(255,255,255,0.6); font-weight: normal; letter-spacing: 0.1em; padding-left: 28px; margin-top: 5px; }


@media (max-width: 768px) {
  .header { padding: 10px 15px; display: block; height: auto; width: 100%; box-sizing: border-box; }
  .logo { margin-bottom: 0; width: auto; text-align: left; flex: 1; min-width: 0; overflow: hidden; }
  .logo-title { 
    font-size: clamp(1.1rem, 6vw, 1.6rem); 
    letter-spacing: 1px; 
  }
  .logo-line-1, .logo-line-2 { display: block; }
  .logo-line-2 { margin-left: 2.5em; }
  .hamburger-btn { display: flex; flex-shrink: 0; margin-left: 10px; }
  .nav-links { 
    display: none; 
    flex-direction: column; 
    width: 100%; 
    margin-top: 10px; 
    gap: 8px; 
  }
  .nav-links.open { display: flex; }
  .nav-btn { width: 100%; text-align: left; padding: 10px 15px; }
  #app-container { height: calc(100dvh - 80px); align-items: flex-start; padding-top: 15px; padding-bottom: 15px; }
  .hero-title { font-size: 1.6rem; }
  .grid.cards-3 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .profile-layout { flex-direction: column; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { max-width: 100%; }
  .hero-title-main { font-size: clamp(1rem, 6vw, 1.5rem); white-space: nowrap; }
  .section-title { font-size: clamp(1rem, 5.5vw, 1.5rem); white-space: nowrap; }
  .cyber-table { display: block; overflow-x: auto; white-space: nowrap; }
  .term-body { padding: 20px; }
  .center-box { padding: 20px; }
  .screen-section { 
    display: block; 
    align-items: stretch; /* override flex */
    padding: 20px 15px 80px 15px; 
  }
  .terminal-box { margin: 0 auto; }
}

.hero-title-main { font-size: 2.2rem; }
.crypto-text-desc { line-height: 1.8; color: #ddd; font-family: var(--font-body); }
.bold-gold { font-weight: bold; }
.execution-logs-section { border-top: 1px dashed rgba(0, 255, 65, 0.3); padding-top: 20px; }
.log-text-header { margin-bottom: 15px; }
.execution-logs-list { list-style: none; color: #ccc; font-size: 0.95rem; line-height: 1.8; }
.terminal-box-full { max-width: 100%; }
.system-msg-mb { margin-bottom: 20px; }
.price-note { font-size: 0.8rem; color: var(--text-dim); }
.pricing-note { font-size: 0.85rem; border-top: 1px dotted rgba(0,255,65,0.3); padding-top: 15px; }

/* Contact Form & Specific Layouts */
.text-left { text-align: left; }
.margin-auto { margin: 0 auto; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.text-right { text-align: right; }

.btn-full-width {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 15px;
}
.form-divider {
  border-bottom: 1px dashed var(--text-dim);
  padding-bottom: 10px;
}
.hidden-iframe {
  display: none;
}
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-mono);
  color: var(--cyber-cyan);
  font-size: 0.9rem;
}
.cyber-input {
  background: rgba(10, 15, 20, 0.8);
  border: 1px solid var(--text-dim);
  color: var(--text-main);
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}
.cyber-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}
.cyber-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.submit-btn {
  font-size: 1rem;
  padding: 10px 30px;
}
