/* =============================================
   Datamahi — Modern Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-900: #0a1128;
  --blue-800: #1b1f6e;
  --blue-700: #1a2baa;
  --blue-600: #2244d4;
  --blue-500: #2962ff;
  --blue-400: #4d82ff;
  --blue-300: #7aa5ff;
  --blue-100: #e8efff;
  --blue-50: #f4f7ff;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-blue: 0 4px 20px rgba(41, 98, 255, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-700);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  color: var(--gray-700);
  max-width: 65ch;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--gray-100);
}

.section--blue {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 100%);
  color: var(--white);
}

.section--blue h2,
.section--blue h3,
.section--blue p {
  color: var(--white);
}

.section--blue p {
  opacity: 0.9;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 48px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--blue-500);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--blue-500);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  margin: 6px 0;
  transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 1.2rem;
    padding: 16px 24px;
    width: 100%;
    text-align: center;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 40%, var(--blue-600) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(41, 98, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(26, 43, 170, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--blue-300);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--blue-500);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-dark {
  background: transparent;
  color: var(--blue-500);
  border: 1.5px solid var(--blue-500);
}

.btn--outline-dark:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.btn--white {
  background: var(--white);
  color: var(--blue-600);
}

.btn--white:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  transform: translateY(-1px);
}

/* --- Section Headers --- */
.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header p {
  margin: 12px auto 0;
  font-size: 1.1rem;
}

.section__label {
  display: inline-block;
  color: var(--blue-500);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* --- Capability Cards --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.capability-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}

.capability-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.capability-card__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-500);
}

.capability-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-card h3 {
  margin-bottom: 8px;
}

.capability-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* --- Outcomes / Split Section --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse {
    direction: ltr;
  }
}

.split__visual {
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

#scatter-chart {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scatter-chart svg {
  max-width: 100%;
  height: auto;
}

.split__content h2 {
  margin-bottom: 16px;
}

.split__content p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--blue-700);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 12px;
}

.cta-banner p {
  margin: 0 auto 32px;
  font-size: 1.1rem;
  max-width: 500px;
}

.cta-banner .btn {
  margin: 0 8px;
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.value-card {
  text-align: center;
  padding: 40px 24px;
}

.value-card__icon {
  width: 56px;
  height: 56px;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue-500);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0 auto;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info h3 {
  margin-bottom: 16px;
  margin-top: 32px;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info a {
  color: var(--blue-500);
  font-weight: 500;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.hours-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.hours-table td {
  padding: 10px 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--gray-900);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--gray-500);
}

.contact-form {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 40px;
}

.contact-form h3 {
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
}

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

/* --- Contact CTA --- */
.contact-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-cta__icon {
  width: 80px;
  height: 80px;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.contact-cta__icon svg {
  stroke: var(--blue-500);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-cta h2 {
  margin-bottom: 16px;
}

.contact-cta p {
  font-size: 1.05rem;
  margin: 0 auto 32px;
}

.contact-cta .btn svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-cta__locations {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

.contact-cta__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gray-500);
}

.contact-cta__location svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-500);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo img {
  height: 28px;
  width: auto;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--gray-300);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bottom p {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.footer__locations {
  display: flex;
  gap: 20px;
}

.footer__locations span {
  font-size: 0.85rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__locations svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* --- Fade-in animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About page hero --- */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 40%, var(--blue-600) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(41, 98, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
}

/* --- Approach section --- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
}

.approach-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px;
}

.approach-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.approach-card h3 {
  margin-bottom: 8px;
}

.approach-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* --- Founder Card --- */
.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .founder-card {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    text-align: center;
  }
}

.founder-card__image {
  width: 280px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.founder-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card__content h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.founder-card__role {
  color: var(--blue-500) !important;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px !important;
}

.founder-card__content p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.founder-card__links {
  margin-top: 24px;
}

.founder-card__links .btn svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
