/* ========================================
   COMPONENT STYLES - Phase 1
   ======================================== */

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-subtext {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: transform var(--transition-normal);
  margin-left: auto;
  margin-right: auto;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon i {
  font-size: var(--font-size-2xl);
  color: var(--color-white);
  display: block;
  line-height: 1;
  text-align: center;
}

.service-card h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  flex-grow: 1;
}

/* ===== SOLUTION CARDS ===== */
.solution-card {
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.solution-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-gray-200);
}

.solution-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  transition: all var(--transition-normal);
}

.solution-card:hover .solution-icon {
  background: var(--color-primary);
  transform: none;
}

.solution-icon i {
  font-size: var(--font-size-xl);
  color: var(--color-white);
  transition: color var(--transition-normal);
}

.solution-card:hover .solution-icon i {
  color: var(--color-danger);
}

.solution-card h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  /* color: var(--text-primary); */
  margin-bottom: var(--space-3);
      color: rgba(var(--bs-link-color-rgb))
}

.solution-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
  color: black;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: var(--font-size-4xl);
  color: var(--color-primary-light);
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.testimonial-content {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.testimonial-content p {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  line-height: var(--line-height-relaxed);
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: var(--space-6);
}

.author-info h6 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.author-info span {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}


.rating {
  display: flex;
  gap: var(--space-1);
}

.rating i {
  color: var(--color-warning);
  font-size: var(--font-size-sm);
}

/* ===== PARTNER LOGOS ===== */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  height: 100px;
}

.partner-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  transition: filter var(--transition-normal);
}

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

/* ===== CALL-TO-ACTION SECTION ===== */
.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* ===== NAVIGATION ENHANCEMENTS ===== */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--color-gray-200);
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary) !important;
  text-decoration: none;
}

.brand-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary) !important;
  padding: var(--space-2) var(--space-4) !important;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary) !important;
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.btn-outline-primary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== SECTION STYLING ===== */
.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  /* margin-bottom: var(--space-4); */
  text-align: center;
  color: black;

}

.section-subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  text-align: center;
  color: black;
}

/* ===== FOOTER STYLING ===== */
footer {
  background: var(--color-gray-800) !important;
}

footer h5,
footer h6 {
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: var(--space-2);
}

footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer ul li a:hover {
  color: var(--color-white);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  text-align: center;
  line-height: 40px;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-primary);
  border-top: 2px solid transparent;
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== ANIMATION UTILITIES ===== */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

/* ========================================
   ABOUT PAGE (scoped styles)
   ======================================== */
.about-hero { background: linear-gradient(135deg, #f5faff 0%, #e9f3ff 100%); border-radius: 16px; padding: 32px 24px; }
.about-hero .section-title { margin-bottom: 8px; }
.kpi-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:16px; margin-top: 8px; }
.kpi-card { background:#fff; border:1px solid #e6eef6; border-radius:12px; padding:16px; text-align:center; box-shadow: 0 1px 6px rgba(16,24,40,.06); }
.kpi-number { font-size: 28px; font-weight: 700; color: var(--color-primary); line-height:1; }
.kpi-label { margin:6px 0 0; color:#47535a; font-size:14px; }

.card.h-100 { border-radius:12px; border:1px solid #e6eef6; box-shadow: 0 1px 6px rgba(16,24,40,.06); margin-left:25px; margin-right:25px; }
.card__title { color: var(--color-primary); }

.team-card .avatar { width:56px; height:56px; border-radius:50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:12px; }
.team-card .role { color:#6b7780; font-size:14px; margin:0; }

.values-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:16px; }
.value-card { background:#fff; border:1px solid #e6eef6; border-radius:12px; padding:16px; box-shadow: 0 1px 6px rgba(16,24,40,.06); }
.value-icon { width:44px; height:44px; border-radius:50%; background: var(--color-primary); display:flex; align-items:center; justify-content:center; color:#fff; margin-bottom:10px; }
.value-title { margin:0 0 6px; font-weight:600; }
.value-desc { margin:0; color:#47535a; }

/* Spacing fixes */
.section-header { margin-bottom: 24px; }
.about-hero { margin-bottom: 24px; }
.card-body h3, .card-body h4 { margin: 0 0 8px;    margin-left: 21px;
    margin-top: 11px;}
.card-body p { margin: 0 0 8px; margin-left: 20px;}
.team-card .avatar { margin-bottom: 10px;    margin-left: 21px;
    margin-top: 11px; }
.team-card .card__title { margin-bottom: 4px; }
.team-card .role { margin-bottom: 6px;    margin-left: 21px; }
.values-grid { margin-top: 8px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
