/* ---------- Modern Variable System ---------- */
:root {
  --primary-blue: #0b66ff;
  --deep-navy: #0f172a;
  --midnight: #020617;
  --electric: #3aa0ff;
  --slate-text: #475569;
  --border-color: #e2e8f0;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Styles ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--midnight);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--primary-blue);
  background: linear-gradient(90deg, var(--primary-blue), var(--electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Header & Navigation ---------- */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--slate-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-blue);
}

.cta-btn {
  background: var(--primary-blue);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(11, 102, 255, 0.2);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 102, 255, 0.3);
}

/* ---------- Hero Section (AI Pivot) ---------- */
.ai-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
  padding: 6rem 0;
  overflow: hidden;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--slate-text);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-img {
  width: 480px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img svg { width: 100%; height: auto; max-width: 420px; }

.btn-secondary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.hero-trust {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Grid Layouts ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.offerings-grid, .delivered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.offering-card, .delivered-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 1rem;
  transition: var(--transition);
}

.offering-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.offering-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* ---------- Modern Form Styling ---------- */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--midnight);
}

.contact-form input, 
.contact-form textarea, 
.contact-form select {
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--midnight);
  background: var(--bg-light);
  transition: var(--transition);
}

/* Specific Dropdown Styling */
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  cursor: pointer;
}

.contact-form input:focus, 
.contact-form textarea:focus, 
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 102, 255, 0.1);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--midnight);
  transform: scale(1.01);
}

/* Visible focus styles for keyboard users */
a:focus-visible,
.btn-primary:focus-visible,
.cta-btn:focus-visible,
.btn-secondary:focus-visible,
.summary-link:focus-visible {
  outline: 3px solid rgba(11, 102, 255, 0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsiveness ---------- */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .nav-row { flex-direction: column; gap: 1.5rem; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero-text h1 { font-size: 2.25rem; text-align: center; }
  .hero-text p { text-align: center; margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; flex-direction: column; }
  .hero-flex { flex-direction: column; }
  .contact-flex { flex-direction: column; }
}

/* ---------- Sections & Utilities ---------- */
.section { padding: 5rem 0; }
.alt-bg { background: var(--bg-light); }
.section-title { font-size: 2.25rem; margin-bottom: 1rem; }
.section-subtitle { color: var(--slate-text); font-size: 1.125rem; margin-bottom: 3rem; }

footer {
  background: var(--midnight);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

.footer-brand-name { color: var(--white); font-weight: 700; font-size: 1.25rem; }
.footer-quicklinks a { color: #94a3b8; margin-right: 1.5rem; font-size: 0.875rem; transition: var(--transition); }
.footer-quicklinks a:hover { color: var(--white); }

.tech-tags {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-blue);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.delivered-domain {
  display: inline-block;
  background: var(--bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--slate-text);
}

/* ---------- AI Services Page ---------- */
.ai-journey {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 1rem;
}

.ai-journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 0.5rem;
}

.ai-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
}

.ai-journey-step strong {
  color: var(--midnight);
  font-size: 1rem;
}

.ai-journey-step span:last-child {
  font-size: 0.875rem;
  color: var(--slate-text);
}

.ai-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.ai-service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 1rem;
  transition: var(--transition);
}

.ai-service-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ai-service-card h3 {
  color: var(--midnight);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.ai-service-card ul {
  list-style: none;
  padding: 0;
}

.ai-service-card li {
  margin-bottom: 1rem;
  color: var(--slate-text);
  line-height: 1.6;
}

/* ---------- About Page ---------- */
.about-flex {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.about-main {
  flex: 2;
}

.about-main h3 {
  color: var(--midnight);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-main h3:first-of-type {
  margin-top: 0;
}

.about-main p {
  color: var(--slate-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.career-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.career-highlights li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-blue);
  border-radius: 0.5rem;
  color: var(--slate-text);
  line-height: 1.6;
}

.career-highlights li strong {
  color: var(--midnight);
}

.founder-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.founder-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
}

.founder-highlight strong {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.founder-highlight span {
  font-size: 0.875rem;
  color: var(--slate-text);
  line-height: 1.4;
}

/* ---------- Page CTA Section ---------- */
.page-cta-section {
  padding: 4rem 0;
  text-align: center;
}

.page-cta-section h2 {
  font-size: 2rem;
  color: var(--midnight);
  margin-bottom: 1rem;
}

.page-cta-section p {
  color: var(--slate-text);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Layout Utilities ---------- */
.hero-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.contact-flex {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h4 {
  color: var(--midnight);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.contact-info h4:first-of-type {
  margin-top: 0;
}

.contact-info p {
  color: var(--slate-text);
  line-height: 1.6;
}

.contact-info a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-icons {
  display: flex;
  gap: 1rem;
}

.footer-social-icons a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-social-icons a:hover {
  color: var(--white);
}

.footer-legal {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 2rem;
}

.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748b;
}

/* ---------- Credibility Section (Index) ---------- */
.credibility-section {
  padding: 3rem 0;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.credibility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.credibility-stat {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.credibility-label {
  font-size: 1rem;
  color: var(--slate-text);
}

.summary-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.summary-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin: 2rem 0;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .ai-journey {
    flex-direction: column;
  }

  .about-flex {
    flex-direction: column;
  }

  .contact-flex {
    grid-template-columns: 1fr;
  }

  .founder-highlights {
    grid-template-columns: 1fr;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
  }
}