/* ==========================================================================
   PHOS | HIGH-PERFORMANCE COMPUTING & ENTERPRISE WAREHOUSING
   STEALTH OBSIDIAN & CRIMSON RED THEME
   ========================================================================== */

:root {
  --bg-core: #070709;
  --bg-surface: #0d0e14;
  --bg-panel: rgba(15, 17, 26, 0.78);
  --bg-panel-hover: rgba(22, 25, 38, 0.92);
  --red-primary: #ff1e38;
  --red-bright: #ff334b;
  --red-glow: rgba(255, 30, 56, 0.45);
  --red-subtle: rgba(255, 30, 56, 0.12);
  --red-border: rgba(255, 30, 56, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-white: #ffffff;
  --text-main: #f0f2f5;
  --text-muted: #9ba1b0;
  --text-dark: #636a7e;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red-primary);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-core);
}
::-webkit-scrollbar-thumb {
  background: #1e2230;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
  box-shadow: 0 0 10px var(--red-glow);
}

/* Canvas Background */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Ambient Lighting */
.glow-blob {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.25;
}
.glow-1 { top: -200px; right: -150px; background: var(--red-primary); }
.glow-2 { bottom: -200px; left: -150px; background: #990011; }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.page-section {
  min-height: 100vh;
  padding: 100px 0 80px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Glass Panels */
.glass-card {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  border-color: var(--red-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px var(--red-subtle);
  transform: translateY(-4px);
}

/* Buttons */
.btn-cyber {
  background: linear-gradient(135deg, #ff1e38 0%, #b30e22 100%);
  color: #ffffff;
  border: 1px solid #ff4d63;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 20px rgba(255, 30, 56, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-cyber:hover {
  background: linear-gradient(135deg, #ff334b 0%, #c81026 100%);
  box-shadow: 0 0 30px rgba(255, 30, 56, 0.65);
  transform: translateY(-2px);
  color: #fff;
}
.btn-cyber:active {
  transform: translateY(0);
}

/* Top Sticky Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  transition: all 0.3s ease;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo-wrap {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.8px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
}
.nav-tab-btn.active {
  background: var(--red-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--red-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sfx-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.sfx-btn.active {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: var(--red-subtle);
}

/* Laser Pulsing Glow */
.laser-line {
  stroke: var(--red-primary);
  filter: drop-shadow(0 0 6px #ff1e38) drop-shadow(0 0 14px #ff1e38);
  animation: laserGlow 2.2s infinite alternate ease-in-out;
}
@keyframes laserGlow {
  0% { opacity: 0.85; stroke-width: 5; }
  100% { opacity: 1; stroke-width: 6.5; filter: drop-shadow(0 0 12px #ff1e38) drop-shadow(0 0 24px #ff1e38); }
}

/* ==========================================================================
   PAGE 1: TOP CENTER LOGO & 9 SERVICES
   ========================================================================== */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
}
.logo-hero-wrap {
  padding: 16px 24px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 30, 56, 0.08) 0%, transparent 70%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
}
.logo-hero-img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 30, 56, 0.4));
}
.hero-subtag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  color: var(--red-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-top: 14px;
  text-transform: uppercase;
}

.services-heading-wrap {
  text-align: center;
  margin-bottom: 45px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.15;
}
.text-red { color: var(--red-primary); }
.text-red-glow {
  color: var(--red-primary);
  text-shadow: 0 0 25px var(--red-glow);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 10px auto 0;
  font-weight: 300;
}

/* 9 Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.service-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 30, 56, 0.1);
  border: 1px solid var(--red-border);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s;
}
.service-card:hover .service-icon-box {
  background: var(--red-primary);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--red-glow);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
}
.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.service-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}
.service-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dark);
}

.page-nav-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* ==========================================================================
   PAGE 2: OUR TOP PCS (5 PCS: GAMING + AI)
   ========================================================================== */
.top-pcs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 45px;
  flex-wrap: wrap;
  gap: 20px;
}
.filter-btn-group {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.filter-btn {
  background: #11141e;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-btn.active {
  background: var(--red-primary);
  color: #fff;
  border-color: var(--red-primary);
  box-shadow: 0 0 15px var(--red-glow);
}

.pcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.pc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pc-photo-frame {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.pc-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  opacity: 0.88;
}
.pc-card:hover .pc-photo-frame img {
  transform: scale(1.06);
  opacity: 1;
}
.pc-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 11, 16, 0.85);
  border: 1px solid var(--red-border);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--red-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--red-glow);
}

.pc-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pc-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.pc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  font-weight: 300;
}
.pc-quick-specs {
  background: #090a0f;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.spec-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.spec-line span { color: var(--text-dark); font-weight: 700; text-transform: uppercase; }
.spec-line strong { color: var(--text-main); font-weight: 500; text-align: right; }

/* ==========================================================================
   PAGE 3: ENQUIRY & BUILD YOUR PC (GOOGLE FORMS)
   ========================================================================== */
.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.enquiry-col {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-item-box {
  background: #090b11;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.contact-item-box:hover {
  border-color: var(--red-border);
}
.contact-info-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}
.contact-link {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--red-primary); }

.copy-icon-btn {
  background: #181b28;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.copy-icon-btn:hover {
  background: var(--red-primary);
  color: #fff;
  border-color: var(--red-primary);
}

.form-input {
  width: 100%;
  background: #090a0f;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.form-input:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 12px var(--red-subtle);
}

/* Build your PC Callout Box */
.build-pc-feature {
  background: #090b12;
  border: 2px solid var(--red-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(255, 30, 56, 0.12);
}
.google-form-btn {
  width: 100%;
  max-width: 420px;
  padding: 16px 28px;
  font-size: 0.98rem;
  margin: 18px 0 10px;
}

/* ==========================================================================
   MODAL: 3 PHOTOS + SPECIFICATIONS
   ========================================================================== */
.modal-backdrop-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(4, 5, 8, 0.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop-wrap.open {
  display: flex;
}
.modal-content-box {
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  background: #0c0e17;
  border: 1px solid var(--red-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px var(--red-subtle);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-top-bar {
  padding: 20px 24px;
  background: #111422;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-scroll-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 3-Photo Gallery Container */
.photo-gallery-main {
  height: 340px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}
.photo-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 20px 16px 12px;
  color: #fff;
}

.thumbnails-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.thumb-btn {
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
  opacity: 0.6;
  transition: all 0.2s;
}
.thumb-btn.active, .thumb-btn:hover {
  opacity: 1;
  border-color: var(--red-primary);
  box-shadow: 0 0 10px var(--red-glow);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Spec Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}
.specs-table td {
  padding: 10px 12px;
}
.specs-table td:first-child {
  color: var(--text-dark);
  font-weight: 700;
  width: 32%;
}
.specs-table td:last-child {
  color: var(--text-main);
}

/* Toast */
.toast-box {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #111420;
  border: 1px solid var(--red-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--red-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-box.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: #040507;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dark);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .enquiry-grid { grid-template-columns: 1fr; }
  .nav-tabs { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .pcs-grid { grid-template-columns: 1fr; }
  .photo-gallery-main { height: 240px; }
}
