:root {
  --bg-color: #ffffff;
  --text-color: #1d1d1f;
  /* Apple's near-black */
  --accent-color: #86868b;
  /* Apple's gray */
  --secondary-color: #0071e3;
  /* Apple's blue */
  --card-bg: #f5f5f7;
  /* Apple's light gray background */
  --border-color: #d2d2d7;
  --hover-color: #e8e8ed;
  --glass-bg: rgba(255, 255, 255, 0.7);
}

/* Dark mode class for theme switching */
.dark-mode {
  --bg-color: #000000;
  --text-color: #f5f5f7;
  --accent-color: #86868b;
  --secondary-color: #2997ff;
  --card-bg: #1c1c1e;
  --border-color: #38383a;
  --hover-color: #2c2c2e;
  --glass-bg: rgba(0, 0, 0, 0.7);
}

/* Light mode class for explicit theme switching */
.light-mode {
  --bg-color: #f8f9fa;
  --text-color: #333;
  --accent-color: #979797;
  --secondary-color: #018786;
  --card-bg: #fff;
  --border-color: #ddd;
  --hover-color: #eaeaea;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  opacity: 0.8;
  font-weight: normal;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
  width: 40%;
}

/* Canvas for Neural Network */
#neural-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
}

/* Main container */
.center-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero {
  max-width: 800px;
  padding: 2rem;
  background-color: var(--bg-color);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.typewriter {
  font-size: 1.5rem;
  overflow: hidden;
  border-right: 0.15em solid var(--accent-color);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-color)
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: scale(1.2);
}

.hero-paragraph {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-button {
  padding: 14px 28px;
  border-radius: 980px;
  /* Apple-style rounded pills */
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.cta-button.primary {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.cta-button.secondary {
  background-color: transparent;
  border: 1.5px solid var(--text-color);
  color: var(--text-color);
}

.cta-button:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Services Section */
.services-container {
  padding: 6rem 0;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-card-content {
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-content h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: black;
}

.service-card-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card-content li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}

.service-card-content li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* About Section */
.about-container {
  padding: 6rem 0;
  text-align: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.about-text {
  max-width: 800px;
  text-align: left;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  text-align: center;
}

.contact-paragraph {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon {
  font-size: 1.5rem;
}

/* Footer */
.footer {
  width: 100%;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-nav ul,
.footer-services ul {
  list-style: none;
}

.footer-nav li,
.footer-services li {
  margin-bottom: 0.5rem;
}

.footer-nav a,
.footer-services a {
  color: var(--text-color);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover,
.footer-services a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-social {
  margin-top: 1rem;
  justify-content: flex-start;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  /* Changed from space-between to center */
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Form status messages */
#form-status {
  margin-bottom: 1.5rem;
}

.success-message {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #198754;
  margin-bottom: 1.5rem;
}

.error-message {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #dc3545;
  margin-bottom: 1.5rem;
}

/* Hide honeypot field */
.website-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Trusted By Section */
.trusted-by-container {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.trusted-by-content {
  max-width: 1000px;
  margin: 0 auto;
}

.trusted-by-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  font-weight: 500;
}

.company-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.company-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.company-logo-link:hover {
  transform: translateY(-5px);
  opacity: 0.8;
}

.company-logo {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  background-color: transparent;
}

.company-logo:hover {
  filter: grayscale(0%);
}

/* Debug styling for missing images */
.company-logo[src*="AWTO.svg"] {
  border: 1px dashed var(--border-color);
  min-width: 80px;
  min-height: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .typewriter {
    font-size: 1.2rem;
  }

  .hero-paragraph {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-button {
    width: auto;
    min-width: 200px;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

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

  .company-logo {
    max-width: 150px;
  }
}

/* Use Cases Section */
.use-cases-container {
  padding: 8rem 0;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-bottom: 4rem;
}

.use-cases-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.use-case-card {
  background-color: var(--card-bg);
  border-radius: 30px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: block;
  /* Removed grid */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 900px;
  margin: 0 auto;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.use-case-image-wrapper {
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.use-case-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-tag {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.use-case-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  font-family: 'Outfit', sans-serif;
}

.use-case-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.case-details h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.case-details ul {
  list-style: none;
  margin-top: 1.5rem;
}

.case-details li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.case-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

@media (max-width: 1024px) {
  .use-case-card {
    grid-template-columns: 1fr;
  }

  .use-case-image-wrapper {
    height: 300px;
  }

  .use-case-content {
    padding: 2.5rem;
  }
}

/* Homepage Use Cases Preview */
.use-cases-preview-container {
  padding: 6rem 0;
  text-align: center;
}

.use-case-preview-card {
  max-width: 800px;
  margin: 3rem auto;
  background-color: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-case-preview-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.use-case-preview-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
}

.text-link {
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.cta-container {
  margin-top: 2rem;
}