/* TechNEA — Custom Styles */

/* Base */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0a0a0f;
  color: #d1d5db;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Accent color — teal */
:root {
  --accent: #00B4D8;
  --accent-light: #00d4f0;
  --accent-dim: #008ca8;
  --surface: #111118;
  --surface-border: #1e1e2a;
  --neural: #00B4D8;
  --engineering: #f59e0b;
  --automation: #10b981;
}

/* Subtle underline accent for section labels */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 1rem;
}

/* Pillar cards — the 3 blocks */
.pillar-card {
  position: relative;
  background: rgba(17, 17, 24, 0.25);
  backdrop-filter: blur(4px);
  border: 1px solid var(--surface-border);
  border-top: 3px solid var(--pillar-color);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.pillar-card.neural { --pillar-color: var(--neural); }
.pillar-card.engineering { --pillar-color: var(--engineering); }
.pillar-card.automation { --pillar-color: var(--automation); }

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--pillar-color) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pillar-icon i {
  font-size: 24px;
  color: var(--pillar-color);
}

.pillar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pillar-color);
  margin-bottom: 0.5rem;
}

/* Service tiles — different from cognify cards */
.service-tile {
  background: rgba(17, 17, 24, 0.25);
  backdrop-filter: blur(4px);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.service-tile:hover {
  border-color: var(--accent);
}

.service-tile-number {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Process timeline — horizontal with connecting line */
.process-step {
  position: relative;
  text-align: center;
  width: 100%;
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  z-index: 2;
}

/* Connecting line between steps — on the step itself */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(50% + 24px);
  width: calc(100% - 24px);
  height: 2px;
  background: linear-gradient(to right, color-mix(in srgb, var(--accent) 50%, transparent) 0%, color-mix(in srgb, var(--accent) 15%, transparent) 100%);
  z-index: 1;
}

@media (max-width: 767px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}

/* Portfolio items — horizontal cards */
.portfolio-item {
  background: rgba(17, 17, 24, 0.25);
  backdrop-filter: blur(4px);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s ease;
}

.portfolio-item:hover {
  border-color: var(--accent);
}

.portfolio-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 0.25rem 0.75rem;
  display: inline-block;
  width: fit-content;
}

.portfolio-metric {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.portfolio-metric-label {
  font-size: 0.7rem;
  color: #6b7280;
}

/* Scroll indicator arrow */
.scroll-arrow {
  opacity: 0.4;
  transition: opacity 0.3s ease, text-shadow 0.3s ease;
  animation: arrow-bounce 2s ease-in-out infinite;
}

.scroll-arrow:hover {
  opacity: 1;
  text-shadow: 0 0 12px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 50%, transparent);
  animation: none;
}

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

/* Smooth scroll */
html {
  scroll-behold: smooth;
  overflow-x: hidden;
}

/* Background grid pattern */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 180, 216, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Gradient blobs — ambient background lighting */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-blob-1 {
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.22) 0%, transparent 65%);
}

.bg-blob-2 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(125, 30, 15, 0.5) 0%, transparent 65%);
}

.bg-blob-3 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 65%);
}

/* Sticky header */
header {
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 1px 0 var(--surface-border);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Contact form inputs */
.form-input {
  background: rgba(17, 17, 24, 0.25);
  backdrop-filter: blur(4px);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-text-fill-color: #d1d5db;
  -webkit-box-shadow: 0 0 0px 1000px rgba(17, 17, 24, 0.25) inset !important;
  box-shadow: 0 0 0px 1000px rgba(17, 17, 24, 0.25) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Tech section frame — glassmorphic border */
.tech-section-frame {
  background: rgba(17, 17, 24, 0.25);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  overflow: hidden;
  padding: 1rem 0;
}

/* Tech marquee — seamless infinite loop */
.tech-marquee {
  overflow: hidden;
  position: relative;
  height: 4rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 3%, #000 10%, #000 90%, rgba(0,0,0,0.3) 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 3%, #000 10%, #000 90%, rgba(0,0,0,0.3) 97%, transparent 100%);
}

.tech-track {
  display: flex;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  left: 0;
  width: max-content;
  transform: translateY(-50%);
  animation: tech-scroll 42s linear infinite;
  will-change: transform;
}

.tech-item {
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  color: #6b7280;
  margin-right: 0;
  position: relative;
}

.tech-item::after {
  content: '·';
  color: rgba(0, 180, 216, 0.3);
  margin: 0 1.5rem;
}

@keyframes tech-scroll {
  0% { transform: translateX(0) translateY(-50%); }
  100% { transform: translateX(-50%) translateY(-50%); }
}

/* Footer */
footer a:hover {
  color: var(--accent-light);
}

/* Form status messages */
#formStatus {
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 0.5rem;
}

#formStatus.success {
  color: #10b981;
  opacity: 1;
}

#formStatus.error {
  color: #ef4444;
  opacity: 1;
}

/* Privacy Policy sections */
.privacy-section {
  background: rgba(17, 17, 24, 0.25);
  backdrop-filter: blur(4px);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}

.privacy-section ol {
  padding-left: 1.5rem;
}

.privacy-section ol > li {
  margin-bottom: 0.5rem;
}

.privacy-section ol > li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* Cookie Banner — glassmorphism + slide animation */
#cookie-banner {
  background: rgba(17, 17, 24, 0.75);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
}

#cookie-banner.slide-out {
  animation: cookie-slide-out 0.35s ease forwards;
}

@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cookie-slide-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

#cookie-accept-btn {
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#cookie-accept-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent);
}

#cookie-reject-btn {
  background: transparent;
  color: #9ca3af;
  border: 1px solid var(--surface-border);
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#cookie-reject-btn:hover {
  color: #d1d5db;
  border-color: #4b5563;
}
