:root {
  --color-blue: #1E64C8;
  --color-green: #47A437;
  --color-purple: #AB54A3;
  --color-gray-700: #333333;
  --color-gray-600: #666666;
  --color-gray-300: #d1d5db;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
}

/* Header & Gradient */

.main-header {
  background: linear-gradient(135deg, var(--color-blue), var(--color-green), var(--color-purple));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.main-header .navbar {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Colors & Badges */

.bg-blue {
  background-color: var(--color-blue);
}

.bg-green {
  background-color: var(--color-green);
}

.bg-purple {
  background-color: var(--color-purple);
}

.color-blue {
  color: var(--color-blue);
}

.color-green {
  color: var(--color-green);
}

.color-purple {
  color: var(--color-purple);
}

/* Badge Styles - Unified */

.badge-blue {
  background-color: var(--color-blue) !important;
  color: white !important;
}

.badge-green {
  background-color: var(--color-green) !important;
  color: white !important;
}

.badge-purple {
  background-color: var(--color-purple) !important;
  color: white !important;
}

/* All badges uniform styling */

.badge {
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: 0.3px;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem !important;
  white-space: normal !important;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.3;
}

/* Badge wrapper - consistent spacing across all pages */

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Card Body Flex Layout for Icon Alignment */

.card-body {
  display: flex;
  flex-direction: column;
}

.card-body .d-flex {
  margin-top: auto !important;
}

/* Hero Section Uniform */

.hero-section {
  background: linear-gradient(135deg, rgba(30, 100, 200, 0.05), rgba(71, 164, 55, 0.05), rgba(171, 84, 163, 0.05));
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -1px;
}

.hero-section .lead {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.8;
}

/* Page Header Styles */

.page-header {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: var(--color-gray-700);
}

.page-header p {
  font-size: 1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Icon Styling for Team Cards */

.team-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue) !important;
  transition: color 0.3s ease;
}

.team-icon-link i {
  color: var(--color-blue) !important;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.team-icon-link:hover, .team-icon-link:hover i {
  color: var(--color-green) !important;
}

/* Hover Effects */

.hover-lift {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Mission Section Styles - Enhanced & Scaled */

.mission-section {
  background: radial-gradient(circle at center, #ffffff 0%, #f9fafb 100%);
  position: relative;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(30, 100, 200, 0.02) 0%, rgba(71, 164, 55, 0.02) 50%, rgba(171, 84, 163, 0.02) 100%);
  pointer-events: none;
}

.orbit-svg {
  max-width: 800px;
  width: 100%;
  transition: opacity 0.5s ease;
}

.arc-outer {
  stroke: var(--color-green);
  transform-origin: 200px 200px;
  animation: rotate-cw 40s linear infinite;
  opacity: 0.85;
  will-change: transform;
}

.arc-middle {
  stroke: var(--color-purple);
  transform-origin: 200px 200px;
  animation: rotate-ccw 55s linear infinite;
  opacity: 0.9;
  will-change: transform;
}

.arc-inner {
  stroke: var(--color-blue);
  transform-origin: 200px 200px;
  animation: rotate-cw 30s linear infinite;
  will-change: transform;
}

.domain-block {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 15px 45px rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
  box-sizing: border-box;
}

.domain-block:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

@keyframes rotate-cw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-ccw {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Accordion Customization - Scaled Up Text */

.domain-title {
  display: flex;
  align-items: center;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.domain-title h2 {
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  margin-bottom: 0;
  flex: 1;
}

.accordion-button {
  font-size: 1.2rem;
  font-weight: 400;
  padding: 1.2rem 0;
  box-shadow: none !important;
  background: transparent !important;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: none;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-body {
  padding: 0 0 2rem 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
}

/* Color specific accordions */

.acc-green .accordion-button {
  color: var(--color-green);
}

.acc-purple .accordion-button {
  color: var(--color-purple);
}

.acc-blue .accordion-button {
  color: var(--color-blue);
}

.acc-green .accordion-button::after, .acc-purple .accordion-button::after, .acc-blue .accordion-button::after {
  filter: brightness(0);
}

/* Partner Carousel - Infinite Scroll */

.logo-slider {
  overflow: hidden;
  padding: 40px 0;
  background: transparent;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  width: 200px;
  margin: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: grayscale(1);
  transition: filter 0.3s ease;
  height: 80px;
}

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

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

.logo-item-xlarge {
  width: 200px;
  height: 100px;
  margin: 0 15px;
}

.logo-item-xlarge img {
  max-height: 100px;
}

/* Service Offering Cards */

.service-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 15px 45px rgba(0,0,0,0.04) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 60px rgba(0,0,0,0.08) !important;
}

.service-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.5);
}

.service-card h5 {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

/* Project Card Images */

.project-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
}

@media (min-width: 992px) {
  .project-card-img-wrapper {
    width: 220px;
    flex-shrink: 0;
  }
}

@media (min-width: 992px) {
  .project-card-link .d-flex > div:last-child {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
}

.project-card-link .badge {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.project-card-link h4 {
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.project-card-link p {
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 992px) {
  .project-card-img {
    height: 200px;
  }
}

/* Responsive text wrapping for all screens */

.project-card-link {
  overflow: hidden;
}

.project-card-link .px-lg-4 {
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Ensure flex containers don't overflow */

.bg-white.rounded-4.shadow-sm.d-flex {
  min-width: 0;
  overflow: hidden;
}

.bg-white.rounded-4.shadow-sm.d-flex > div {
  min-width: 0;
  overflow: hidden;
}

/* Team Member Cards */

.card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
  transform: translateY(-8px);
}

.card img {
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card .bi {
  transition: all 0.3s ease;
}

/* Blog Card Images */

.blog-card img {
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

/* Section Styles Uniform */

.content-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background-color: #ffffff;
}

.content-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  color: var(--color-gray-700);
  font-weight: 700;
}

/* Card uniformization */

.card {
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-6px) !important;
}

/* Form Styles */

.form-control, .form-floating > textarea {
  border-radius: 12px !important;
  border: none !important;
  background-color: #f3f4f6 !important;
  font-size: 1rem;
  padding: 0.875rem 1rem;
}

.form-control:focus, .form-floating > textarea:focus {
  background-color: #e5e7eb !important;
  box-shadow: 0 0 0 3px rgba(30, 100, 200, 0.1) !important;
  border: none !important;
}

.form-floating > label {
  color: #6b7280;
  font-weight: 500;
}

/* Button Styles Uniform */

.btn-primary {
  background-color: var(--color-blue) !important;
  border: none !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1550a8 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(30, 100, 200, 0.3);
}

.btn-outline-dark {
  border-radius: 50px;
  font-weight: 600;
  border-width: 2px;
}

/* Responsive Typography & Layout */

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

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

@media (max-width: 768px) {
  .hero-section .lead {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section .d-flex.justify-content-center {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-section .btn-lg {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .content-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .domain-block {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
}

@media (max-width: 768px) {
  .domain-title {
    gap: 10px;
    letter-spacing: 1px;
  }
}

@media (max-width: 768px) {
  .domain-title h2 {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .accordion-button {
    font-size: 1rem;
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  .accordion-body {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .orbit-svg {
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .final-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .final-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .final-cta .d-flex.justify-content-center {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .final-cta .btn-lg {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 50px !important;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  footer .row {
    text-align: center;
  }
}

@media (max-width: 576px) {
  footer .col-6 {
    text-align: left;
  }
}

/* Force all badges to font-size 10px globally */

.badge {
  font-size: 10px !important;
}

/* Accessible focus styles */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Smooth page transitions */

html {
  scroll-behavior: smooth;
}

/* Image optimization hints */

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

