/* =============================================
   SAI Language Services — Main Stylesheet
   Bootstrap 5 Compatible
   ============================================= */

/* ---------- CSS Variables (Colors) ---------- */
:root {
  --primary: #83001c;
  --primary-container: #a9162d;
  --on-primary: #ffffff;
  --on-primary-fixed: #400009;
  --secondary-container: #fd9294;
  --on-tertiary-container: #90d6e4;
  --tertiary: #00464f;
  --surface: #f8f9ff;
  --surface-container: #e6eeff;
  --surface-container-low: #eff4ff;
  --on-surface: #0d1c2f;
  --on-surface-variant: #5a4040;
  --on-background: #0d1c2f;
  --surface-bright: #f8f9ff;
  --surface-variant: #d5e3fd;
  --outline-variant: #e2bebd;
}

/* ---------- Base ---------- */
* { font-family: 'Inter', sans-serif; }

body {
  background-color: var(--surface);
  color: var(--on-surface);
}

/* ---------- Triangle Shape ---------- */
.sai-triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Sizes for triangles used inline ---------- */
.tri-xs  { width: 8px;  height: 8px;  }
.tri-sm  { width: 12px; height: 12px; }
.tri-md  { width: 16px; height: 16px; }
.tri-lg  { width: 20px; height: 20px; }
.tri-xl  { width: 24px; height: 24px; }
.tri-2xl { width: 32px; height: 32px; }
.tri-3xl { width: 40px; height: 40px; }
.tri-4xl { width: 48px; height: 48px; }
.tri-5xl { width: 64px; height: 64px; }
.tri-6xl { width: 96px; height: 96px; }

.tri-bg-primary          { background: var(--primary); }
.tri-bg-primary-container{ background: var(--primary-container); }
.tri-bg-tertiary-accent  { background: var(--on-tertiary-container); }
.tri-bg-white            { background: white; }

.tri-rotate-90  { transform: rotate(90deg); }
.tri-rotate-180 { transform: rotate(180deg); }

/* ---------- Navigation ---------- */
.sai-nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: #83001c;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.02em;
}

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

.nav-link-active {
  color: var(--primary) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  text-decoration: none;
}

.nav-link-default {
  color: #475569;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s;
}
.nav-link-default:hover { color: var(--primary); }

.nav-inner {
  max-width: 1440px;
}

/* ---------- Buttons ---------- */
.btn-get-started {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: white;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: 2px;
  transition: opacity 0.3s, transform 0.075s;
}
.btn-get-started:hover  { opacity: 0.85; color: white; }
.btn-get-started:active { transform: scale(0.95); }

.btn-sai-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-sai-primary:hover { opacity: 0.85; color: #fff; }

.btn-sai-outline {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid rgba(131, 0, 28, 0.2);
  text-decoration: none;
  transition: border-color 0.3s;
}
.btn-sai-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sai-solid {
  background: var(--primary);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  padding: 20px 64px;
  border: none;
  border-radius: 2px;
  transition: background 0.3s;
}
.btn-sai-solid:hover { background: var(--on-primary-fixed); color: white; }

/* ---------- Main Wrapper ---------- */
.main-wrapper { padding-top: 90px; }

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 921px;
  background-color: var(--surface-container-low);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1.5rem;
}

.hero-eyebrow-tri {
  width: 8px;
  height: 8px;
  background: var(--primary);
  margin-left: 8px;
  vertical-align: middle;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--on-surface);
}

.hero-title-accent {
  color: var(--primary);
}

.hero-title-tri {
  width: 40px;
  height: 40px;
  background: var(--primary);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--on-surface-variant);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.7s;
  z-index: 0;
}
.hero-img:hover { filter: grayscale(0); }

.hero-img-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, var(--surface-container-low), transparent);
  z-index: 1;
}

.hero-deco-triangle-1 {
  position: absolute;
  bottom: -96px;
  left: -96px;
  width: 384px;
  height: 384px;
  background-color: rgba(131, 0, 28, 0.05);
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-deco-triangle-2 {
  position: absolute;
  top: 25%;
  right: 25%;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  opacity: 0.2;
  animation: pulse 2s infinite;
  pointer-events: none;
}

/* ---------- Solutions Section ---------- */
.solutions-section {
  padding: 8rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
}

.card-light {
  background: var(--surface-container);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.card-dark {
  background: var(--on-background);
  color: var(--surface-bright);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.card-number {
  font-size: 3.5rem;
  font-weight: 900;
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  line-height: 1;
  color: rgba(131, 0, 28, 0.2);
}
.card-dark .card-number { color: rgba(213, 227, 253, 0.1); }

.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  display: block;
  margin-bottom: 1rem;
}
.card-dark .card-label { color: var(--secondary-container); }

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.card-body-text { color: var(--on-surface-variant); line-height: 1.7; }
.card-dark .card-body-text { color: rgba(213, 227, 253, 0.7); }

.card-triangle {
  width: 32px;
  height: 32px;
  background: var(--primary);
  margin-top: 2rem;
  transition: transform 0.3s;
}
.card-light:hover .card-triangle,
.card-dark:hover .card-triangle { transform: translateX(8px); }
.card-dark .card-triangle { background: var(--primary-container); }

/* Bridge image panel */
.bridge-img-wrapper {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}
.bridge-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bridge-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 4rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  max-width: 500px;
}

.bridge-panel-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.bridge-panel-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
}

.tag-badge {
  background: rgba(131, 0, 28, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* ---------- Global Capabilities Section ---------- */
.global-section {
  background-color: var(--tertiary);
  color: white;
  padding: 8rem 3rem;
  overflow: hidden;
  position: relative;
}

.global-inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bridge-divider {
  background-image: radial-gradient(circle, #83001c 1px, transparent 1px);
  background-size: 24px 24px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  opacity: 0.2;
}

.global-presence-label {
  color: var(--on-tertiary-container);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 1rem;
}

.global-title {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.global-title-tri {
  width: 32px;
  height: 32px;
  background: var(--primary);
  margin-right: 1.5rem;
  vertical-align: middle;
  display: inline-block;
}

.global-title-accent { color: var(--on-tertiary-container); }

.global-stat-num {
  font-size: 3rem;
  font-weight: 900;
}

.global-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.global-header-left { max-width: 640px; }

.map-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(4px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.map-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(1);
}

.map-dot {
  position: absolute;
  background: var(--primary-container);
}
.map-dot-1 { width: 16px; height: 16px; top: 25%;  left: 33%; }
.map-dot-2 { width: 12px; height: 12px; bottom: 50%; right: 25%; background: var(--primary); }
.map-dot-3 { width: 20px; height: 20px; top: 66%;  left: 50%; background: var(--on-tertiary-container); opacity: 0.8; }

/* Hub list items */
.hub-tri {
  width: 20px;
  height: 20px;
  background: var(--primary-container);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.hub-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hub-text {
  color: rgba(144, 214, 228, 0.8);
  line-height: 1.7;
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Case Studies Section ---------- */
.case-section {
  padding: 8rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
}

.case-eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 1rem;
}

.case-section-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.case-section-title-tri {
  width: 24px;
  height: 24px;
  background: var(--primary);
  margin-left: 12px;
  vertical-align: baseline;
  display: inline-block;
}

.case-card { cursor: pointer; }

.case-img-wrapper {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}
.case-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.case-card:hover .case-img-wrapper img { transform: scale(1.1); }

.case-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(131, 0, 28, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}
.case-card:hover .case-img-overlay { opacity: 1; }

.case-tri-accent {
  position: absolute;
  background: var(--primary);
  pointer-events: none;
}
.case-tri-1 { width: 64px; height: 64px; top: 0;  left: 0;  transform: translate(-32px, -32px); }
.case-tri-2 { width: 48px; height: 48px; bottom: 0; right: 0; transform: translate(16px, 16px) rotate(180deg); }
.case-tri-3 { width: 32px; height: 32px; top: 50%; left: 0;  transform: translate(-16px, -50%) rotate(90deg); }

.case-sector {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--on-surface-variant);
  display: block;
  margin-bottom: 0.5rem;
}

.case-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: color 0.3s;
}
.case-card:hover .case-title { color: var(--primary); }

.case-desc {
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-decoration: none;
}

.read-link-tri {
  width: 8px;
  height: 8px;
  background: var(--primary);
  transform: rotate(90deg);
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 8rem 3rem;
  background: var(--surface-container-low);
  overflow: hidden;
  position: relative;
  text-align: center;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-tri {
  width: 96px;
  height: 96px;
  background: var(--primary);
  margin: 0 auto 3rem;
}

.cta-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.cta-title-accent { color: var(--primary); }

.cta-desc {
  font-size: 1.4rem;
  color: var(--on-surface-variant);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 150%;
  height: 150%;
  border: 40px solid rgba(131, 0, 28, 0.05);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
footer {
  background: #f8fafc;
  padding: 5rem 3rem;
}

.footer-inner { max-width: 1440px; margin: 0 auto; }

.footer-logo { height: 32px; width: auto; }

.footer-brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: #83001c;
  text-transform: uppercase;
  font-style: italic;
}

.footer-desc {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 2rem;
}

.footer-heading {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin-bottom: 2rem;
}

.footer-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.3s;
  display: block;
  margin-bottom: 1rem;
}
.footer-link:hover { color: var(--primary); }

.social-btn {
  width: 32px;
  height: 32px;
  background: #e2e8f0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}
.social-btn:hover { background: var(--primary); }
.social-btn:hover .material-symbols-outlined { color: white; }

.material-symbols-outlined { font-size: 16px; }

.footer-bottom-border { border-top: 1px solid #e2e8f0; }

.footer-copy {
  color: #94a3b8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0;
}

.footer-bottom-tri {
  width: 12px;
  height: 12px;
  background: var(--primary);
}

.footer-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.5; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.animate-pulse  { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-img,
  .hero-img-overlay    { width: 100%; opacity: 0.3; }
  .solutions-section,
  .case-section        { padding: 4rem 1.5rem; }
  .global-section      { padding: 4rem 1.5rem; }
  .cta-section         { padding: 4rem 1.5rem; }
  footer               { padding: 3rem 1.5rem; }
}
