/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #A5232A;
  --red-light: #C9343C;
  --red-glow: rgba(165, 35, 42, 0.4);
  --red-dim: rgba(165, 35, 42, 0.15);
  --bg-deep: #0A0A0A;
  --bg-dark: #0E0E0E;
  --bg-card: #161616;
  --bg-card-hover: #1C1C1C;
  --border: #222;
  --border-light: #2A2A2A;
  --text-white: #F0F0F0;
  --text-gray: #9A9A9A;
  --text-dim: #5A5A5A;
  --charcoal: #2D2D2D;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Grid BG */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(165,35,42,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165,35,42,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-gray);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-white); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: rgba(22, 22, 22, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  white-space: nowrap;
}

.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { background: var(--bg-card-hover); color: var(--red-light) !important; }

.dropdown-arrow {
  font-size: 8px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.nav-cta {
  background: var(--red) !important;
  color: var(--text-white) !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: 1px solid var(--red);
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: transparent !important;
  color: var(--red-light) !important;
  border-color: var(--red-light);
}

.nav-cta::after { display: none !important; }

.lang-switch {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
}

.lang-switch:hover {
  border-color: var(--text-gray);
  color: var(--text-gray);
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--text-white);
  transition: all 0.3s;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--text-white);
  padding: 14px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid var(--red);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: transparent;
  color: var(--red-light);
  border-color: var(--red-light);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-gray);
  padding: 14px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--text-gray);
  color: var(--text-white);
}

.btn-arrow {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
}

.section-header {
  max-width: 1280px;
  margin: 0 auto 60px;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 16px;
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 140px 40px 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.page-hero .breadcrumb a {
  color: var(--text-dim);
  transition: color 0.3s;
}

.page-hero .breadcrumb a:hover { color: var(--red-light); }

.page-hero .breadcrumb .sep { margin: 0 8px; }

.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero h1 .accent { color: var(--red); }

.page-hero .lead {
  font-size: 17px;
  color: var(--text-gray);
  max-width: 640px;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-dim);
  border-radius: 4px;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 24px; height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.service-link:hover { gap: 14px; }

/* ===== STATS BAR ===== */
.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 48px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===== CONTENT BLOCKS ===== */
.content-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.content-block h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.content-block p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin: 24px 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list .check {
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
  min-width: 20px;
  margin-top: 1px;
}

/* Why / numbered items */
.why-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-item {
  display: flex;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.3s;
}

.why-item:hover { border-color: var(--border-light); }

.why-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  min-width: 40px;
}

.why-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.why-item p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* Industries tags */
.industries-strip {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ind-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-gray);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 2px;
  transition: all 0.3s;
  cursor: default;
}

.ind-tag:hover {
  border-color: var(--red);
  color: var(--red-light);
  background: var(--red-dim);
}

.ind-tag.primary {
  border-color: var(--red);
  color: var(--red-light);
  background: var(--red-dim);
}

/* ===== PROCESS STEPS ===== */
.process-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  position: relative;
}

.process-step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--red-dim);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.7;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s;
}

.project-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.project-thumb {
  height: 220px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb-placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(10,10,10,0.8));
}

.project-body {
  padding: 28px;
}

.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-card p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  margin-bottom: 20px;
}

.contact-info-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--red);
}

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-gray);
}

.contact-detail svg {
  width: 18px; height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  min-width: 18px;
  margin-top: 2px;
}

.contact-detail a {
  color: var(--text-gray);
  transition: color 0.3s;
}

.contact-detail a:hover { color: var(--red-light); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
}

.contact-form h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.cta-box h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  padding: 64px 40px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img { height: 36px; margin-bottom: 16px; }

.footer-brand p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--red-light); }

.footer-legal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.3s;
}

.social-links a:hover {
  border-color: var(--red);
  background: var(--red-dim);
}

.social-links svg {
  width: 16px; height: 16px;
  fill: var(--text-dim);
  transition: fill 0.3s;
}

.social-links a:hover svg { fill: var(--red-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    padding: 24px 40px;
    gap: 16px;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 8px 0 0 16px;
    min-width: auto;
  }
  .mobile-toggle { display: flex; }
  .section { padding: 60px 20px; }
  .page-hero { padding: 100px 20px 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-box { padding: 40px 24px; }
  .nav-inner { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fillBar {
  to { width: var(--fill); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--red-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}
