/* Industrial Graphite Theme - SmartSolutions KZ */

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "JetBrains Mono", "Courier New", monospace;
  line-height: 1.6;
  color: #e5e7eb;
  background-color: #111316;
}

/* Industrial color palette */
:root {
  --industrial-dark: #111316;
  --industrial-panel: #2a2f36;
  --cyan-accent: #00c2ff;
  --signal-orange: #ff6b00;
  --steel-gray: #4a5568;
  --bolt-silver: #cbd5e0;
}

/* Diagonal title styling */
.diag-title {
  position: relative;
  display: inline-block;
}

.diag-strip {
  position: absolute;
  height: 4px;
  background: linear-gradient(45deg, var(--cyan-accent), var(--signal-orange));
  transform-origin: left center;
}

.diag-title.highlighted .diag-strip {
  animation: stripGlow 0.8s ease-out;
}

@keyframes stripGlow {
  0% {
    transform: scaleX(0) skewX(-12deg);
    opacity: 0;
  }
  100% {
    transform: scaleX(1) skewX(-12deg);
    opacity: 1;
  }
}

/* Tech card styling */
.tech-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 194, 255, 0.2);
}

/* Bolt corners */
.bolt-corner {
  position: absolute;
  background: var(--bolt-silver);
  border: 2px solid var(--industrial-dark);
  z-index: 10;
}

/* Perforated edge effect */
.perforated-edge {
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    var(--cyan-accent) 8px,
    var(--cyan-accent) 12px,
    transparent 12px,
    transparent 20px
  );
  opacity: 0.3;
}

/* Spec chip styling */
.spec-chip {
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--steel-gray);
}

.spec-chip:hover {
  border-color: var(--cyan-accent);
  box-shadow: 0 4px 20px rgba(0, 194, 255, 0.1);
}

/* Station zigzag layout */
.station-zigzag .grid:nth-child(even) {
  direction: rtl;
}

.station-zigzag .grid:nth-child(even) > * {
  direction: ltr;
}

/* Gauge stat styling */
.gauge-stat {
  position: relative;
  transition: all 0.3s ease;
}

.gauge-stat:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-accent);
}

/* Grid overlay background */
.grid-overlay {
  background-image: linear-gradient(45deg, rgba(0, 194, 255, 0.03) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Clip diagonal sections */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

/* FAQ accordion styling */
.faq-item.active {
  border-color: var(--cyan-accent);
}

.faq-indicator--cyan {
  transition: all 0.3s ease;
}

.faq-item.active .faq-indicator--cyan {
  background-color: var(--cyan-accent);
  color: var(--industrial-dark);
}

.faq-content {
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header styling */
header {
  backdrop-filter: blur(10px);
  background-color: rgba(42, 47, 54, 0.95);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 194, 255, 0.1);
  background-color: rgba(42, 47, 54, 0.98);
}

/* Button styling - preserving exact structure */
header a[href="#contacts"],
footer a[href="#contacts"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

header a[href="#contacts"]:hover,
footer a[href="#contacts"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 194, 255, 0.3);
}

header a[href="#contacts"]::before,
footer a[href="#contacts"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

header a[href="#contacts"]:hover::before,
footer a[href="#contacts"]:hover::before {
  left: 100%;
}

/* Navigation links styling */
nav a {
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Form styling */
.form-input {
  background: var(--industrial-panel);
  border: 2px solid var(--steel-gray);
  color: #e5e7eb;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan-accent);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1);
}

.form-input.border-red-500 {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Cookie popup styling */
#cookiePopup {
  backdrop-filter: blur(10px);
  background: rgba(42, 47, 54, 0.95);
  border: 1px solid var(--steel-gray);
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Map wrapper styling */
.map-wrapper {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--steel-gray);
}

.map-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--cyan-accent);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 5;
}

/* Mobile menu styling */
#mobileMenu {
  background: rgba(42, 47, 54, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--steel-gray);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Team member styling */
.team-member {
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
}

/* Tag styling */
.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

/* Responsive styles */
@media (max-width: 768px) {
  .diag-title h1,
  .diag-title h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .spec-chip {
    margin-bottom: 16px;
  }

  .station-zigzag .grid:nth-child(even) {
    direction: ltr;
  }

  .gauge-stat {
    margin-bottom: 20px;
  }

  #cookiePopup {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .diag-title h1,
  .diag-title h2 {
    font-size: 1.5rem;
  }

  .tech-card {
    margin-bottom: 20px;
  }
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--cyan-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--cyan-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .tech-card,
  .spec-chip,
  .gauge-stat {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup,
  .bolt-corner,
  .perforated-edge {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .diag-strip {
    background: #000 !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--industrial-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--steel-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-accent);
}
