/* Fonts */
@import url('https://cdn.jsdelivr.net/npm/victormono@latest/dist/index.min.css');

@font-face {
  font-family: "EGA8x14";
  font-weight: 400;
  src: url('/font/IBM_EGA/WebPlus_IBM_EGA_8x14.woff') format("woff");
  font-display: swap;
}

@font-face {
  font-family: "EGA8x14-2x";
  font-weight: 500;
  src: url('/font/IBM_EGA/WebPlus_IBM_EGA_8x14-2x.woff') format("woff");
  font-display: swap;
}

@font-face {
  font-family: "ToshibaSat-8x14";
  font-weight: 500;
  src: url('/font/WebPlus_ToshibaSat_8x14.woff') format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Victor Mono";
  font-weight: 100;
  src: url('/font/VictorMono/VictorMono-Thin.woff') format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Victor Mono";
  font-weight: 400;
  src: url('/font/VictorMono/VictorMono-Regular.woff') format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Victor Mono";
  font-weight: 700;
  src: url('/font/VictorMono/VictorMono-Bold.woff') format("woff");
  font-display: swap;
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  font-family: "Victor Mono", sans-serif;
  margin: 0;
  padding: 0;
}

/* Dark mode - conditional on OS theme */
@media (prefers-color-scheme: dark) {
  .dark-bg { background-color: #111827; }
}

/* Homepage always has dark gradient, so text must always be white */
.dark-text { color: white; }
.dark-bg a, .dark-text a { color: #20c0ff; }

/* Header with retro image - parallax via JS */
header {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  isolation: isolate;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/img/Informatics_General_programmer_at_terminal.jpg');
  background-size: cover;
  background-position: center 10%;
  background-position-y: var(--parallax-y, 10%);
  background-color: blue;
  background-blend-mode: hard-light;
  filter: blur(var(--parallax-blur, 0px));
  z-index: -1;
}

header h1 {
  font-size: 3em;
  color: yellow;
  text-shadow:
    2px 2px 5px black,
    2px 2px 10px black,
    -1px -1px 2px black,
    0 0 20px rgba(0, 0, 0, 0.8);
  bottom: 1em;
  right: 2em;
}

/* Header top bar for language switcher */
.header-top-bar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.font-toshiba {
  font-family: "ToshibaSat-8x14";
}

h1 .realName {
  font-size: 0.5em;
}

img.emoji {
  height: 1em;
  display: inline;
}

/* Layout utilities */
.p-4 { padding: 1rem; }
.m-8 { margin: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-screen-md { max-width: 768px; }
.max-w-screen-hd { max-width: 1920px; }
.relative { position: relative; }
.absolute { position: absolute; }
.text-xs { font-size: 0.75rem; }
.text-md { font-size: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.indent-2 { text-indent: 0.5rem; }
.indent-4 { text-indent: 1rem; }
.font-light { font-weight: 300; }
.text-center { text-align: center; }
.center { text-align: center; vertical-align: middle; }
.grid { display: grid; }
.place-items-center { place-items: center; }

/* Lists */
.list-disc { list-style-type: disc; }
.list-outside { list-style-position: outside; }
.list-inside { list-style-position: inside; }

/* Footer badges */
.dark-hidden { display: block; }
.dark-block { display: none; }

@media (prefers-color-scheme: dark) {
  .dark-hidden { display: none; }
  .dark-block { display: block; }
}

/* Clearfix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ================================
   Language Switcher
   ================================ */
.language-switcher {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.language-switcher a {
  padding: 0.25rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, background-color 0.2s;
  color: inherit;
}

.language-switcher a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.language-switcher a.active {
  opacity: 1;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.15);
}

/* ================================
   Company Links Grid (replaces table)
   ================================ */
.company-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.company-links-grid .link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 0.5rem;
}

.company-links-grid .link-card:hover {
  transform: translateY(-2px);
}

.company-links-grid .link-card.disabled {
  opacity: 0.5;
  cursor: default;
}

.company-links-grid .link-card.disabled:hover {
  transform: none;
}

.company-links-grid .link-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ================================
   Mobile Responsive
   ================================ */
@media (max-width: 768px) {
  header {
    min-height: 250px;
  }

  header h1 {
    font-size: 2em;
    right: 1em;
    bottom: 0.5em;
    padding: 0.5em 1em;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
  }

  .mx-auto.max-w-screen-md {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .m-8 {
    margin: 1rem;
  }

  .indent-4 {
    text-indent: 0.5rem;
  }

  ul.list-inside {
    padding-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .company-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ================================
   VAT Auditor Landing Page
   ================================ */
.vat-auditor {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* VAT Navigation */
.vat-nav {
  padding: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vat-back-link {
  font-size: 0.875rem;
  opacity: 0.8;
  color: #ffffff;
  text-decoration: none;
}

.vat-back-link:hover {
  opacity: 1;
}

.vat-nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.vat-nav-links > a {
  font-size: 0.875rem;
  opacity: 0.8;
  color: #ffffff;
  text-decoration: none;
}

.vat-nav-links > a:hover {
  opacity: 1;
}

.vat-nav .language-switcher a {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* VAT Hero */
.vat-hero {
  padding: 4rem 1.5rem 6rem;
  text-align: center;
}

.vat-hero-content {
  max-width: 56rem;
  margin: 0 auto;
}

.vat-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 9999px;
  color: #ffffff;
}

.vat-title {
  font-size: 3.5rem;
  margin: 0 0 1.5rem 0;
  font-weight: bold;
  background: linear-gradient(to right, #fff, #e9d5ff, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vat-subtitle {
  font-size: 1.25rem;
  color: #d1d5db;
  margin: 0 auto 2rem auto;
  max-width: 42rem;
}

.vat-subtitle strong {
  color: #ffffff;
}

.vat-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.vat-cta-primary {
  padding: 1rem 2rem;
  background: linear-gradient(to right, #9333ea, #06b6d4);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.25);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vat-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(147, 51, 234, 0.35);
}

.vat-cta-secondary {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s;
}

.vat-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* VAT Container */
.vat-container {
  max-width: 72rem;
  margin: 0 auto;
}

.vat-container-narrow {
  max-width: 48rem;
  margin: 0 auto;
}

/* VAT Sections */
.vat-features-section {
  padding: 5rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.vat-how-section {
  padding: 5rem 1.5rem;
}

.vat-who-section {
  padding: 5rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.vat-final-cta {
  padding: 6rem 1.5rem;
  text-align: center;
}

.vat-section-title {
  font-size: 1.875rem;
  text-align: center;
  margin: 0 0 3rem 0;
  font-weight: bold;
  color: #ffffff;
}

/* VAT Features Grid */
.vat-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.vat-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: background-color 0.2s, transform 0.2s;
}

.vat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.vat-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.vat-card-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
  color: #ffffff;
}

.vat-card-desc {
  margin: 0;
  color: #9ca3af;
}

/* VAT Steps */
.vat-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vat-step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #9333ea, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  color: #ffffff;
}

.vat-step-content {
  flex: 1;
}

.vat-step-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
  color: #ffffff;
}

.vat-step-desc {
  margin: 0;
  color: #9ca3af;
}

/* VAT Who Section */
.vat-who-desc {
  font-size: 1.25rem;
  color: #d1d5db;
  margin: 0 auto 2rem auto;
  max-width: 48rem;
}

.vat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.vat-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #ffffff;
}

/* VAT CTA */
.vat-cta-title {
  font-size: 2.5rem;
  margin: 0 0 1.5rem 0;
  font-weight: bold;
  color: #ffffff;
}

.vat-cta-desc {
  font-size: 1.25rem;
  color: #d1d5db;
  margin: 0 0 2rem 0;
}

/* VAT Footer */
.vat-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vat-footer-content {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.vat-footer-content a {
  color: #9ca3af;
  text-decoration: none;
}

.vat-footer-content a:hover {
  color: #ffffff;
}

.vat-footer-links {
  display: flex;
  gap: 1.5rem;
}

/* VAT Mobile */
@media (max-width: 768px) {
  .vat-title {
    font-size: 2.5rem;
  }

  .vat-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .vat-step {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .vat-step-number {
    margin: 0 auto;
  }

  .vat-footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================
   Homepage Section Styling
   ================================ */

/* Page gradient background */
.homepage-gradient {
  background: linear-gradient(180deg,
    #111827 0%,
    #0f172a 15%,
    #1e1b4b 40%,
    #172554 60%,
    #1e3a5f 80%,
    #111827 100%);
  min-height: 100vh;
}

/* Section base - full width */
.homepage-section {
  padding: 3rem 1.5rem;
  margin-bottom: 0;
  position: relative;
}

.homepage-section .section-content {
  max-width: 768px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.homepage-section h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.section-tagline {
  font-size: 0.95rem;
  opacity: 0.75;
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

/* Intro Section */
.section-intro {
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.section-intro strong {
  color: #38bdf8;
}

/* Professional Services Section - Full width with glass effect */
.section-professional {
  background: linear-gradient(135deg,
    rgba(30, 64, 175, 0.15) 0%,
    rgba(37, 99, 235, 0.1) 50%,
    rgba(59, 130, 246, 0.05) 100%);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.section-professional:hover {
  background: linear-gradient(135deg,
    rgba(30, 64, 175, 0.2) 0%,
    rgba(37, 99, 235, 0.15) 50%,
    rgba(59, 130, 246, 0.08) 100%);
  border-top-color: rgba(59, 130, 246, 0.35);
}

/* Decorative glow */
.section-professional::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.section-professional h2 {
  color: #60a5fa;
}

.section-professional .section-tagline {
  color: #93c5fd;
}

.service-item {
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, border-left-color 0.25s ease;
}

.service-item:hover {
  transform: translateX(4px);
}

.service-item h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  transition: color 0.25s ease;
}

.service-item p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.service-item .client-highlight {
  font-size: 0.85rem;
  margin-top: 0.35rem;
  opacity: 0.8;
}

.service-item .client-highlight a {
  font-weight: 600;
}

/* Matrix code rain layers - actual code-like characters */
.section-professional .matrix-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  font-family: "Victor Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(96, 165, 250, 0.4);
  white-space: pre;
  user-select: none;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.section-professional.parallax-ready .matrix-layer {
  opacity: 1;
}

.section-professional .matrix-layer-1 {
  transform: translateY(var(--matrix-1-y, 0px));
  z-index: 0;
}

.section-professional .matrix-layer-1::before {
  content: "0x7F\A1011\Afn()\A0xAB\A{...}\A>>>\Aasync\A0xFF\A:::::\Aawait\A[0,1]\Anull\A0xC4\Atrue\A.map\A0x3E";
  position: absolute;
  left: 5%;
  top: 60px;
  opacity: 0.5;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.section-professional .matrix-layer-1::after {
  content: "let x\A0b101\Atype\A===\Aconst\A0x9F\A=>>\Aself\Aimpl\A0xDE\Aloop\A[];;\Athen\A0x42\Ayield";
  position: absolute;
  left: 55%;
  top: 100px;
  opacity: 0.4;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.section-professional .matrix-layer-2 {
  transform: translateY(var(--matrix-2-y, 0px));
  z-index: 0;
  font-size: 12px;
  color: rgba(147, 197, 253, 0.35);
}

.section-professional .matrix-layer-2::before {
  content: "pub\A0x1A\Ause\Amod\A0xBE\Afor\Amut\A0x8C\Anew\Aref\A0x5D\Abox\Adyn\A0xF1";
  position: absolute;
  left: 25%;
  top: 80px;
  opacity: 0.5;
  text-shadow: 0 0 6px rgba(147, 197, 253, 0.3);
}

.section-professional .matrix-layer-2::after {
  content: "GET\AAPI\A200\APUT\A404\AEND\ATCP\ASSL\ADOM\ACSS\AHTML\AHTTP";
  position: absolute;
  left: 78%;
  top: 50px;
  opacity: 0.45;
  text-shadow: 0 0 6px rgba(147, 197, 253, 0.3);
}

.section-professional .matrix-layer-3 {
  transform: translateY(var(--matrix-3-y, 0px));
  z-index: 0;
  font-size: 10px;
  color: rgba(191, 219, 254, 0.3);
}

.section-professional .matrix-layer-3::before {
  content: "01\A10\A11\A00\A01\A10\A00\A11\A01\A10\A11\A00\A10\A01";
  position: absolute;
  left: 42%;
  top: 120px;
  opacity: 0.5;
  letter-spacing: 2px;
}

.section-professional .matrix-layer-3::after {
  content: "<>\A{}\A[]\A()\A;;\A::\A//\A/*\A*/\A=>\A->\A<-\A|>\A&&";
  position: absolute;
  left: 92%;
  top: 70px;
  opacity: 0.4;
}

.section-professional .section-content {
  position: relative;
  z-index: 1;
}

.section-professional .service-item {
  border-left-color: rgba(96, 165, 250, 0.4);
}

.section-professional .service-item:hover {
  border-left-color: rgba(96, 165, 250, 0.8);
}

.section-professional .service-item h3 {
  color: #93c5fd;
}

.section-professional .service-item:hover h3 {
  color: #bfdbfe;
}

/* Retro Computing Section - Full width with warm glow */
.section-retro {
  background: linear-gradient(135deg,
    rgba(180, 83, 9, 0.12) 0%,
    rgba(217, 119, 6, 0.08) 50%,
    rgba(245, 158, 11, 0.04) 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.section-retro:hover {
  background: linear-gradient(135deg,
    rgba(180, 83, 9, 0.18) 0%,
    rgba(217, 119, 6, 0.12) 50%,
    rgba(245, 158, 11, 0.06) 100%);
  border-top-color: rgba(245, 158, 11, 0.35);
}

/* Decorative glow for retro */
.section-retro::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Scanline overlay - more visible */
.section-retro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, 0.08) 1px,
    rgba(0, 0, 0, 0.08) 2px
  );
  background-position-y: var(--scanline-offset, 0px);
  pointer-events: none;
  z-index: 2;
}

/* Phosphor glow effect - animated via JS */
.section-retro .retro-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at var(--glow-x, 50%) var(--glow-y, 30%),
    rgba(251, 191, 36, var(--glow-intensity, 0.1)) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* Pixel star layers - many tiny stars, different speeds */
/* Star layers - backgrounds generated via canvas in StarField.tsx */
.section-retro .stars-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  will-change: transform;
  /* background-image set dynamically by StarField island */
}

.section-retro.parallax-ready .stars-layer {
  opacity: 1;
}

.section-retro .stars-layer-1 {
  transform: translateY(var(--stars-1-y, 0px));
  z-index: 1;
}

.section-retro .stars-layer-2 {
  transform: translateY(var(--stars-2-y, 0px));
  z-index: 1;
}

.section-retro .stars-layer-3 {
  transform: translateY(var(--stars-3-y, 0px));
  z-index: 1;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .section-retro .stars-layer {
    transform: none !important;
    transition: none;
  }
}

.section-retro h2 {
  color: #fbbf24;
  font-family: "EGA8x14", "Victor Mono", monospace;
}

.section-retro .section-tagline {
  color: #fcd34d;
}

.section-retro .service-item {
  border-left-color: rgba(251, 191, 36, 0.4);
}

.section-retro .service-item:hover {
  border-left-color: rgba(251, 191, 36, 0.8);
}

.section-retro .service-item h3 {
  color: #fcd34d;
}

.section-retro .service-item:hover h3 {
  color: #fef08a;
}

/* Media list styling for retro section */
.media-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.media-list li {
  padding: 0.5rem 0.75rem;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 4px;
  font-size: 0.85rem;
}

.media-list li::before {
  content: ">";
  color: #fbbf24;
  margin-right: 0.5rem;
  font-family: "EGA8x14", monospace;
}

/* Section Links */
.section-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-links .link-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.section-links .link-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.section-links .link-card img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%);
  margin: 0;
  border: none;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* About section styling */
.section-about {
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg,
    rgba(139, 92, 246, 0.05) 0%,
    rgba(167, 139, 250, 0.02) 100%);
}

.section-about h2 {
  margin-bottom: 1rem;
  color: #a78bfa;
  font-size: 1.5rem;
}

.section-about p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.9;
}

/* Homepage footer adjustments */
.homepage-gradient footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Homepage Mobile adjustments */
@media (max-width: 768px) {
  .homepage-section {
    padding: 2rem 1rem;
  }

  .homepage-section h2 {
    font-size: 1.4rem;
  }

  .section-intro {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
  }

  .media-list {
    grid-template-columns: 1fr;
  }

  .section-links {
    justify-content: center;
  }

  .service-item {
    padding-left: 0.75rem;
  }

  /* Spread matrix code fragments more vertically on mobile */
  .section-professional .matrix-layer-1::before { top: 150px; }
  .section-professional .matrix-layer-1::after { top: 320px; }
  .section-professional .matrix-layer-2::before { top: 220px; }
  .section-professional .matrix-layer-2::after { top: 80px; }
  .section-professional .matrix-layer-3::before { top: 380px; }
  .section-professional .matrix-layer-3::after { top: 260px; }
}

/* ================================
   Contact Section (Homepage)
   ================================ */
.section-contact {
  background: linear-gradient(135deg,
    rgba(13, 148, 136, 0.12) 0%,
    rgba(20, 184, 166, 0.08) 50%,
    rgba(45, 212, 191, 0.04) 100%);
  border-top: 1px solid rgba(45, 212, 191, 0.2);
  border-bottom: 1px solid rgba(45, 212, 191, 0.1);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.section-contact:hover {
  background: linear-gradient(135deg,
    rgba(13, 148, 136, 0.18) 0%,
    rgba(20, 184, 166, 0.12) 50%,
    rgba(45, 212, 191, 0.06) 100%);
  border-top-color: rgba(45, 212, 191, 0.35);
}

/* Decorative glow */
.section-contact::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 30%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-contact h2 {
  color: #5eead4;
}

.section-contact .section-tagline {
  color: #99f6e4;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.95rem;
}

.contact-line a {
  color: #5eead4;
}

.contact-sep {
  opacity: 0.25;
}

.phone-note {
  opacity: 0.6;
  font-size: 0.85rem;
}

.nip-prefix {
  opacity: 0.5;
}

.address-revealed {
  font-style: normal;
  line-height: 1.6;
}

.address-reveal-btn {
  padding: 0.25rem 0.75rem;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 0.375rem;
  color: #5eead4;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.address-reveal-btn:hover:not(:disabled) {
  background: rgba(45, 212, 191, 0.25);
  border-color: rgba(45, 212, 191, 0.5);
  transform: translateY(-1px);
}

.address-reveal-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-full-link {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-full-link a {
  color: #5eead4;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.contact-full-link a:hover {
  opacity: 0.8;
}

/* Contact Section Mobile */
@media (max-width: 768px) {
  .contact-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-sep {
    display: none;
  }
}

/* ================================
   Contact Page (Dedicated)
   ================================ */
.contact-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
  color: #ffffff;
  font-family: "Victor Mono", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Contact Navigation */
.contact-nav {
  padding: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-back-link {
  font-size: 0.875rem;
  opacity: 0.8;
  color: #ffffff;
  text-decoration: none;
}

.contact-back-link:hover {
  opacity: 1;
}

.contact-nav .language-switcher a {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Contact Hero */
.contact-hero {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.contact-title {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  font-weight: bold;
  background: linear-gradient(to right, #fff, #99f6e4, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: #d1d5db;
  margin: 0;
}

/* Contact Cards */
.contact-cards {
  max-width: 56rem;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: background-color 0.2s, transform 0.2s;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.contact-card h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}

.contact-card a {
  color: #5eead4;
  font-size: 1.125rem;
}

.contact-card-wide {
  grid-column: 1 / -1;
}

/* Company definition list */
.company-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.company-dl dt {
  opacity: 0.6;
  font-size: 0.9rem;
}

.company-dl dd {
  margin: 0;
  font-size: 1rem;
}

.company-dl dd a,
.contact-card .address-reveal-btn {
  color: #5eead4;
}

/* Contact Footer */
.contact-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 4rem;
}

.contact-footer a {
  color: #9ca3af;
  text-decoration: none;
}

.contact-footer a:hover {
  color: #ffffff;
}

/* Contact Page Mobile */
@media (max-width: 768px) {
  .contact-title {
    font-size: 1.75rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .company-dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .company-dl dt {
    margin-top: 0.75rem;
  }
}
