/* ==========================================================================
   1. CORE PALETTE VARIABLES & BASICS
   ========================================================================== */
:root {
  --custom-orange: #ff6600; /* Primary Brand Orange */
  --custom-black: #0d0d0d;  /* Deep Brand Black */
}

/* Background & Typography Colors */
.bg-dark {
  background-color: var(--custom-black) !important;
}
.bg-black {
  background-color: #000000 !important;
}
.text-orange {
  color: #fe9404 !important;
}

/* ==========================================================================
   2. CLIENT PORTFOLIO SHOWCASE FRAME (400x400)
   ========================================================================== */
.showcase-frame {
  width: 100%;
  max-width: ;
  height: ;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.showcase-frame:hover {
  transform: translateY(-5px);
}

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* Fills container safely without distortion */
  object-position: top center; /* Focuses on the top portion of your web layout */
}

/* ==========================================================================
   3. RESPONSIVE CLIENT LOGO GRID CONTROLS
   ========================================================================== */
/* Container Grid Box for tight centering */
.client-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px; 
}

/* Base logo settings: Greyscale and faded */
.client-logo-img {
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  object-fit: contain; 
  height: 60px !important;  /* Standardized bold presence height */
  max-width: 160px;         /* Max size boundaries to control spacing */
  width: auto;              
}

/* Turns full color instantly on client mouse hover */
.client-logo-box:hover .client-logo-img {
  filter: grayscale(0%) !important;
  opacity: 1;
  transform: scale(1.05);   /* Micro zoom effect */
}

/* Small inline slider logo thumbnail option */
.client-logo-wrapper {
  background-color: rgba(255, 102, 0, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.2);
  padding: 8px 16px;
  border-radius: 4px;
}

.client-logo {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(1.2);
  transition: filter 0.3s ease;
}

.carousel-item:hover .client-logo {
  filter: grayscale(0%) brightness(1);
}

/* ==========================================================================
   4. BOOTSTRAP CAROUSEL NAVIGATION FIXES
   ========================================================================== */
.border-orange {
  border-color: var(--custom-orange) !important;
}

.bg-orange {
  background-color: var(--custom-orange) !important;
}

.custom-carousel-icon {
  filter: invert(48%) sepia(93%) saturate(2321%) hue-rotate(17deg) brightness(101%) contrast(101%);
}

.carousel-indicators [data-bs-target] {
  opacity: 0.4;
}

.carousel-indicators .active {
  opacity: 1;
}

.carousel-indicators {
  position: relative;
  bottom: -30px; 
}

/* ==========================================================================
   5. CASCADING WORK TIMELINE LAYOUT
   ========================================================================== */
.timeline-container {
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
}

.timeline-item {
  width: 100%;
  transition: all 0.4s ease;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  position: relative;
  transition: transform 0.2s ease-in-out;
}

.timeline-content:hover {
  transform: scale(1.02);
}

/* Native Mobile Adjustments for Timeline Cards */
@media (max-width: 767.98px) {
  .timeline-line { left: 20px; transform: none; }
  .timeline-dot { left: 20px; transform: translateX(-50%); }
  .timeline-item { padding-left: 45px; }
  .timeline-content { width: 100% !important; }
}

/* ==========================================================================
   6. PURE CSS STATS COUNTER SLIDER ENGINE (NO JAVASCRIPT REQUIRED)
   ========================================================================== */
.counter-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-height: 180px;
}
.counter-card:hover {
  transform: translateY(-5px);
  border-color: #ffffff !important;
}
.counter-display {
  font-size: 2.3rem; 
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.suffix {
  margin-left: 2px;
}
.stat-title {
  font-size: 0.75rem;
}
.stat-icon {
  transition: transform 0.3s ease;
}
.counter-card:hover .stat-icon {
  transform: scale(1.1);
}

/* The Odometer-style clipping structural window */
.counter-wrapper {
  height: 2.3rem;      /* Matches font-size precisely */
  line-height: 2.3rem; /* Locks numbers to a single line height row */
  overflow: hidden;    /* Clips tracking numbers out of view */
  display: inline-block;
}

/* Explicit vertical alignment string engine */
.num-scroll {
  display: flex;
  flex-direction: column;
  animation: slideNumbersUp 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* Ensures each structural sub-element retains the correct layout slot dimensions */
.num-scroll div {
  height: 2.3rem;
  line-height: 2.3rem;
  text-align: center;
}

/* Scroll Translation Keyframes */
@keyframes slideNumbersUp {
  from {
    transform: translateY(0);
  }
  to {
    /* Shifts the text block upward to reveal only the last element tag */
    transform: translateY(calc(-100% + 2.3rem)); 
  }
}

