/* =========================================================================
   INFOLIO CREATIVE AGENCY DESIGN - WE SPECIALIZE SECTION
   Inspired by Infolio Nuxt/Next Dark Creative Layout
   - Deep rich navy-slate canvas with ambient cosmic glows
   - "OUR SPECIALIZE" neon green badge + "WHAT CAMTEAM HAS TO OFFER"
   - Sleek dark glassmorphic cards with isometric wireframe icons
   - Hover glow borders, subtle lift, and "READ MORE ↗" action
   - Smooth horizontal carousel track with next/prev buttons
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* -------------------------------------------------------------------------
   1. MAIN CANVAS CONTAINER
   ------------------------------------------------------------------------- */
.infolio-services-section {
  position: relative;
  width: 100%;
  height: 100vh;
  /* Deep Navy Dark Gradient */
  background: linear-gradient(145deg, #030c1d 0%, #061533 45%, #081e47 75%, #020917 100%);
  color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 108px 4.5vw 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-overflow-scrolling: touch;
}

/* Cosmic Ambient Glows */
.infolio-services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 25%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(163, 230, 53, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(56, 189, 248, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.infolio-container {
  position: relative;
  z-index: 2;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* -------------------------------------------------------------------------
   2. INFOLIO HEADER BLOCK
   ------------------------------------------------------------------------- */
.infolio-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.infolio-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.infolio-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a3e635; /* Neon Green Accent */
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.infolio-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a3e635;
  box-shadow: 0 0 8px #a3e635;
}

.infolio-main-heading {
  font-family: 'Plus Jakarta Sans', 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}

.infolio-heading-light {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------------------------------
   3. HORIZONTAL CARDS TRACK (ALL 5 VISIBLE WITHOUT CUT-OFF)
   ------------------------------------------------------------------------- */
.infolio-cards-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Hide default scrollbar */
  -ms-overflow-style: none;
  padding: 10px 4px 40px;
}

.infolio-cards-viewport::-webkit-scrollbar {
  display: none;
}

.infolio-cards-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------
   4. GLASSMORPHIC SERVICE CARDS (ALTERNATING UP-DOWN STAGGER)
   ------------------------------------------------------------------------- */
.infolio-card {
  width: 100%;
  min-height: 295px;
  background: rgba(11, 23, 48, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  box-sizing: border-box;
}

/* Alternating Up / Down Stagger */
.infolio-card:nth-child(odd) {
  margin-top: 32px;
}

.infolio-card:nth-child(even) {
  margin-top: 0px;
}

/* Top Subtle Glow bar */
.infolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.infolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 45px rgba(2, 18, 56, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
  background: rgba(14, 30, 64, 0.75);
}

.infolio-card:hover::before {
  opacity: 1;
}

/* Top Wireframe Geometric Icon */
.infolio-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.35s ease;
}

.infolio-geom-icon {
  width: 100%;
  height: 100%;
  transition: all 0.35s ease;
}

.infolio-card:hover .infolio-icon-wrap {
  transform: scale(1.08) rotate(3deg);
}

.infolio-card:hover .infolio-geom-icon path,
.infolio-card:hover .infolio-geom-icon rect {
  stroke: #38bdf8;
}

/* Card Content Middle */
.infolio-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.infolio-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
  transition: color 0.3s ease;
}

.infolio-card:hover .infolio-card-title {
  color: #38bdf8;
}

.infolio-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(203, 213, 225, 0.85);
  line-height: 1.5;
  margin: 0;
}

/* -------------------------------------------------------------------------
   5. BOTTOM MINIMAL TRACKER
   ------------------------------------------------------------------------- */
.infolio-bottom-bar {
  display: none; /* Hidden on desktop when all 5 fit */
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
}

.infolio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.infolio-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* -------------------------------------------------------------------------
   6. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .infolio-cards-track {
    display: flex;
    width: max-content;
    gap: 18px;
  }

  .infolio-card {
    width: 250px;
  }

  .infolio-bottom-bar {
    display: flex;
  }
}

@media (max-width: 768px) {
  .infolio-services-section {
    padding: 85px 5vw 30px;
    height: auto;
    min-height: 100vh;
  }

  .infolio-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .infolio-header-controls {
    align-self: flex-end;
  }

  .infolio-card {
    width: 240px;
    min-height: 290px;
    padding: 22px 18px;
  }

  .infolio-main-heading {
    font-size: 1.6rem;
  }
}
