/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #0f172a;
  background-image: url('images/background-circuit.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: #f8fafc;
  line-height: 1.6;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  padding: 64px 0;
  background: rgba(255, 255, 255, 0.02);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 32px;
  color: #cbd5e1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.logo {
  height: 40px;
  filter: grayscale(1) invert(1) brightness(1.5);
  mix-blend-mode: screen;
}

.main-nav a {
  margin-left: 24px;
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #ffffff;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2)), url('images/hero-bg.png') center/cover;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-text p {
  max-width: 640px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hero-actions .btn {
  margin-right: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  padding: 24px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #ffffff;
}

.card ul {
  list-style: disc;
  margin-left: 20px;
  color: #cbd5e1;
}

/* Layout helpers */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.two-column h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.two-column ul {
  list-style: disc;
  margin-left: 20px;
  color: #cbd5e1;
}

/* Client Logos */
.client-logos {
  overflow: hidden;
  padding: 48px 0;
  display: flex;
  white-space: nowrap;
  position: relative;
}

.logos-slide {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: slide 90s infinite linear;
}

.logos-slide img {
  height: 48px;
  margin: 0 40px;
  filter: grayscale(1) invert(1) brightness(1.5);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  object-fit: contain;
}

.logos-slide img:hover {
  opacity: 1;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Contact */
.contact-list {
  list-style: none;
  margin-bottom: 16px;
}

.contact-list li {
  margin-bottom: 4px;
}

.contact-form {
  padding: 24px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.form-row select option {
  background: #0f172a;
  color: #f8fafc;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  background: transparent;
}

.footer-inner {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Testimonial */
.testimonial {
  padding: 40px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border-left: 4px solid #38bdf8;
  border-radius: 0 12px 12px 0;
  margin-top: 64px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: #f8fafc;
  margin-bottom: 16px;
  line-height: 1.5;
}

.testimonial-author {
  font-weight: 500;
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero {
    padding-top: 64px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 16px;
  }
}