/* ==========================================================================
   GLOBAL STYLE VARS & BASE ENGINE
   ========================================================================== */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #475569;
  overflow-x: hidden;
}

.bg-light-gray {
  background-color: #f1f5f9;
}

.bg-light-profile {
  background-color: #f8fafc;
}

/* Custom Text Resets */
.text-light-muted {
  color: #94a3b8;
}
.xsmall {
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Shared Headers Utility */
.section-title {
  position: relative;
  letter-spacing: -0.025em;
}
.title-bar {
  width: 60px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-top: 12px;
}

/* Custom Premium Buttons */
.btn-premium-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  color: #ffffff;
}

/* ==========================================================================
   1. HERO PROFILE ELEMENTS
   ========================================================================== */
.about-hero {
  min-height: 480px;
  background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  z-index: 1;
}

.hero-divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

/* ==========================================================================
   SECTION 1: BLOB & MOCKUP VECTOR ARCHITECTURE
   ========================================================================== */
.vector-blob-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.abstract-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fce7f3 0%, #fef3c7 50%, #e0f2fe 100%);
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: blobMorph 10s ease-in-out infinite alternate;
  z-index: 1;
}

.tech-mockup-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  width: 260px;
  height: 200px;
  background-color: #0f172a;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.tech-mockup-card:hover {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}

.mockup-header {
  background-color: #1e293b;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 5px;
}
.mockup-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-header span:nth-child(1) { background-color: #ef4444; }
.mockup-header span:nth-child(2) { background-color: #f59e0b; }
.mockup-header span:nth-child(3) { background-color: #10b981; }

.indicator-wrapper {
  width: 100%;
  height: 50px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-loader {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-contact-micro {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 2rem;
  border: none;
  box-shadow: 0 0 0 rgba(6, 182, 212, 0.4);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.tech-replacement-icon.icon-fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: buttonGlowPulse 2.5s infinite;
}

.btn-contact-micro:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.5);
}

.mockup-body {
  height: calc(100% - 32px);
  justify-content: center !important;
}

@keyframes blobMorph {
  0% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  100% { border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%; }
}

@keyframes buttonGlowPulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* ==========================================================================
   UPDATED SECTION 2: QUALITY STANDARDS ENHANCED GRID (Hover & Active Toggle)
   ========================================================================== */
.dynamic-service-card {
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.dynamic-service-card .small {
  color: #64748b;
  transition: color 0.3s ease;
}

.dynamic-service-card .standard-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
  background-color: #f1f5f9; /* Fallback light background */
  transition: all 0.3s ease;
}

/* Base individual colors for icons when card is in WHITE layout mode */
.dynamic-service-card:not(:hover):not(.is-active) .standard-icon {
  background-color: #e0f2fe; /* Light Blue tint as general safe style */
}

/* ==========================================================================
   ⚡ TARGET TRIGGER: Hover & Active State Background Fill
   ========================================================================== */
.dynamic-service-card:hover,
.dynamic-service-card.is-active {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -5px rgba(30, 64, 175, 0.3);
}

.dynamic-service-card:hover h4,
.dynamic-service-card.is-active h4 {
  color: #ffffff !important;
}

.dynamic-service-card:hover .small,
.dynamic-service-card.is-active .small {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Icon shapes become beautifully translucent on filled backgrounds */
.dynamic-service-card:hover .standard-icon,
.dynamic-service-card.is-active .standard-icon {
  background-color: rgba(255, 255, 255, 0.15) !important;
  transform: scale(1.05);
}

/* ==========================================================================
   2. MISSION / VISION VALUE BLOCKS
   ========================================================================== */
.mv-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.border-top-red { border-top: 5px solid #ef4444; }
.border-top-blue { border-top: 5px solid #3b82f6; }

/* Value Badges Style Matrices */
.value-badge {
  background: #ffffff;
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  height: 100%;
  transition: all 0.3s ease;
}

.value-badge:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.value-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.5rem;
  border-radius: 0.5rem;
}
.icon-purple { background-color: #f3e8ff; }
.icon-blue { background-color: #e0f2fe; }
.icon-green { background-color: #dcfce7; }
.icon-orange { background-color: #ffedd5; }

/* ==========================================================================
   SECTION 3: VALUES ACCENTS / MATRIX LAYER
   ========================================================================== */
.bg-dark-matrix {
  background-color: #0b1329;
}

.ambient-glow {
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background-color: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.value-matrix-box {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  height: 100%;
}
.value-matrix-box:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* ==========================================================================
   SECTION 4: CALL TO ACTION BOX
   ========================================================================== */
.cta-floating-panel {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 3.5rem 2rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.cta-chat-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.cta-highlight-link {
  color: #ff6b6b;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.cta-highlight-link:hover {
  color: #ee5252;
  border-color: #ee5252;
}

/* ==========================================================================
   3. SYSTEM TIMELINE RESPONSIVE TRACK ENGINE
   ========================================================================== */
.timeline-container {
  padding: 2rem 0;
}

.timeline-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #3b82f6 0%, #6366f1 50%, #10b981 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 3rem;
  box-sizing: border-box;
}

.left-item { left: 0; text-align: right; }
.right-item { left: 50%; text-align: left; }

.timeline-badge {
  position: absolute;
  top: 2.2rem;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 4px solid #3b82f6;
  border-radius: 50%;
  z-index: 10;
}
.left-item .timeline-badge { right: -9px; }
.right-item .timeline-badge { left: -9px; }

.timeline-panel {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: inline-block;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border: 1px solid #f1f5f9;
}

.timeline-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.05em;
  background-color: #eff6ff;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  display: inline-block;
}

/* ==========================================================================
   4. INTUITIVE PURE CSS FLUID ANIMATIONS & SCROLL ENGINE
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-up-delay {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.animate-scroll-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-scroll-up.animated-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.left-item { transform: translateX(-40px); }
.animate-on-scroll.right-item { transform: translateX(40px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateX(0); }

/* Glow Core Matrix */
.glow-core-wrapper {
  position: relative;
  display: inline-block;
}
.glow-core-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background-color: rgba(34, 211, 238, 0.4);
  animation: corePulse 2s infinite ease-out;
  z-index: -1;
}

@keyframes corePulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   5. DEEP MEDIA QUERY RESPONSIVE CORRECTIONS (For Mobile/Tablets)
   ========================================================================== */
@media (min-width: 1200px) {
  .vector-blob-wrapper { width: 380px; height: 380px; }
  .tech-mockup-card { width: 300px; height: 220px; }
}

@media (max-w: 991.98px) {
  .about-hero { min-height: 400px; }
  .vector-blob-wrapper { margin-bottom: 2rem; }
  .cta-floating-panel { padding: 2.5rem 1.5rem; }
}

@media (max-w: 767.98px) {
  .display-5 { font-size: 2.25rem; }
  .standard-card, .dynamic-service-card { padding: 2rem 1.5rem; }
  .value-matrix-box { padding: 1.25rem 1rem; }
  .py-5 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

  /* Timeline Conversion to Single Rail Mobile System */
  .timeline-center-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    padding: 1rem 0 1rem 3.5rem;
    text-align: left !important;
  }
  
  .right-item { left: 0; }
  
  .left-item .timeline-badge, 
  .right-item .timeline-badge {
    left: 13px;
    right: auto;
    top: 2rem;
  }

  .animate-on-scroll.left-item,
  .animate-on-scroll.right-item {
    transform: translateX(-30px);
  }
  
  .animate-on-scroll.is-visible {
    transform: translateX(0);
  }
}

@media (max-w: 400px) {
  .vector-blob-wrapper { width: 260px; height: 260px; }
  .tech-mockup-card { width: 220px; height: 170px; }
  .row-cols-2 > * { width: 100% !important; }
}