/* ============================================================
   ICSS CLIENT PORTFOLIO — Production Quality
   ============================================================


/* ============================================
   § 1. DESIGN TOKENS
   ============================================ */
:root {
  --bg-primary: #0B1020;
  --bg-surface: #141B3A;
  --bg-surface-hover: #1A2348;
  --accent: #00D4FF;
  --accent-soft: #6EE7FF;
  --accent-purple: #6366f1;
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: rgba(255,255,255,0.35);
  --border-subtle: rgba(255,255,255,0.05);
  --border-hover: rgba(0,212,255,0.35);
  --card-radius: 16px;
  --section-pad: 80px;
  --font-heading: 'Teko', sans-serif;
  --font-body: 'Open Sans', 'Inter', system-ui, -apple-system, sans-serif;
}


/* ============================================
   § 2. GLOBAL RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body) !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   § 3. MAIN BODY TYPOGRAPHY
   ============================================ */
#main-body h1,
#main-body h2,
#main-body h3,
#main-body h4,
#main-body h5 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ============================================
   § 4. HERO SECTION — CINEMATIC
   ============================================ */
#main-body .hero-section {
  position: relative;
  padding: 150px 0 110px;
  text-align: center;
  overflow: hidden;
  background-color: #050a18 !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(0,212,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(99,102,241,0.06) 0%, transparent 50%),
    linear-gradient(rgba(0,212,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.02) 1px, transparent 1px) !important;
  background-size: 100%, 100%, 60px 60px, 60px 60px !important;
  border-bottom: 2px solid rgba(0,212,255,0.3) !important;
  box-shadow: 0 4px 60px rgba(0,212,255,0.06) !important;
}


/* ============================================
   § 5. HERO GLOW ORB
   ============================================ */
#main-body .hero-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, rgba(99,102,241,0.03) 30%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  animation: orbBreathe 7s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes orbBreathe {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%,-50%) scale(1.2); opacity: 0.85; }
}


/* ============================================
   § 5b. HERO BUBBLES — FLOATING ANIMATION
   ============================================ */
#main-body .hero-section #hero-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

#main-body .hero-section .bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.4), rgba(0,212,255,0.08) 60%, transparent);
  animation: bubbleFloat linear infinite;
  will-change: transform, opacity;
}

/* Purple-tinted variant for color variety */
#main-body .hero-section .bubble.bubble-purple {
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.35), rgba(99,102,241,0.06) 60%, transparent);
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) translateX(25px) scale(1);
    opacity: 0;
  }
}

/* Second variant — drifts left for organic feel */
@keyframes bubbleFloatDrift {
  0% {
    transform: translateY(0) translateX(0) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateY(-60vh) translateX(-20px) scale(1);
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-120vh) translateX(10px) scale(1.05);
    opacity: 0;
  }
}


/* ============================================
   § 6. HERO CONTENT BOX — PREMIUM GLASS
   ============================================ */
#main-body .hero-content-box {
  background: linear-gradient(135deg, rgba(6,12,31,0.50) 0%, rgba(12,20,50,0.40) 50%, rgba(6,12,31,0.50) 100%) !important;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  border: 1px solid rgba(0,212,255,0.18) !important;
  border-radius: 24px !important;
  padding: 65px 50px 55px !important;
  display: inline-block;
  width: 100%;
  max-width: 960px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 40px 80px -20px rgba(0,0,0,0.4),
    0 0 80px rgba(0,212,255,0.08),
    0 0 120px rgba(99,102,241,0.04) !important;
  animation: contentReveal 1s cubic-bezier(0.16,1,0.3,1) both;
}

/* Iridescent top edge */
#main-body .hero-content-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), rgba(99,102,241,0.5), rgba(168,85,247,0.5), transparent);
  border-radius: 1px;
}

@keyframes contentReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}


/* ============================================
   § 7. HERO TITLE — GRADIENT TEXT
   ============================================ */
#main-body .hero h1.display-4,
#main-body .hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem) !important;
  margin-bottom: 20px;
  line-height: 1.05;
  letter-spacing: 4px;
  color: #fff !important;
  text-shadow: 0 0 40px rgba(0,212,255,0.3), 0 0 80px rgba(0,212,255,0.1) !important;
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

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


/* ============================================
   § 8. HERO SUBTITLE
   ============================================ */
#main-body .hero .lead {
  color: var(--text-secondary) !important;
  font-size: 1.15rem !important;
  font-weight: 400;
  margin-bottom: 38px;
  line-height: 1.75;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeSlideUp 0.8s ease-out 0.4s both;
}


/* ============================================
   § 9. CERTIFICATION BADGES — NEON PILLS
   ============================================ */
#main-body .cert-badge {
  background: rgba(0,212,255,0.04) !important;
  border: 1px solid rgba(0,212,255,0.2) !important;
  color: var(--accent) !important;
  padding: 10px 24px !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  border-radius: 50px !important;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  animation: fadeSlideUp 0.8s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
}

#main-body .cert-badge:hover {
  background: rgba(0,212,255,0.1) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(0,212,255,0.2), 0 0 40px rgba(0,212,255,0.06);
  transform: translateY(-2px);
}

#main-body .cert-badge i {
  font-size: 0.85em;
}


/* ============================================
   § 10. SEARCH BAR — FLOATING SEARCH
   ============================================ */
#main-body > section.py-4 {
  background: linear-gradient(180deg, #050a18 0%, var(--bg-primary) 100%) !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

#main-body .search-input {
  background: rgba(12,20,50,0.8) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 16px 24px 16px 52px !important;
  font-size: 0.95rem !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
  width: 100%;
}

#main-body .search-input::placeholder {
  color: rgba(255,255,255,0.28) !important;
}

#main-body .search-input:focus {
  outline: none !important;
  border-color: rgba(0,212,255,0.35) !important;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.06), 0 12px 40px rgba(0,0,0,0.25) !important;
  background: rgba(12,20,50,0.95) !important;
}

#main-body .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 1.05rem;
  z-index: 5;
  transition: color 0.3s;
  pointer-events: none;
}

#main-body .search-bar-wrapper:focus-within .search-icon,
#main-body .position-relative:focus-within .search-icon {
  color: var(--accent);
}


/* ============================================
   § 11. PORTFOLIO GRID BACKGROUND
   ============================================ */
#portfolio-grid {
  background: var(--bg-primary) !important;
  position: relative;
}


/* ============================================
   § 12. PORTFOLIO SECTIONS — SCROLL REVEAL
   ============================================ */
#main-body .portfolio-section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.65s cubic-bezier(0.4,0,0.2,1);
}

#main-body .portfolio-section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   § 13. SECTION HEADERS — ACCENT LINE
   ============================================ */
#main-body .section-header {
  margin-bottom: 44px;
  border-left: 3px solid var(--accent) !important;
  padding-left: 22px;
  position: relative;
}

/* Glowing accent edge */
#main-body .section-header::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  filter: blur(4px);
  opacity: 0.5;
}

#main-body .section-header h2 {
  font-family: var(--font-heading) !important;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  margin: 0;
  letter-spacing: -0.01em;
}

#main-body .section-header h2 i {
  color: var(--accent) !important;
  margin-right: 10px;
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.3));
}

#main-body .section-header p {
  color: var(--text-secondary) !important;
  font-size: 0.88rem;
  margin: 6px 0 0;
}


/* ============================================
   § 14. CLIENT CARDS — PRODUCTION QUALITY
   ============================================
   Using #main-body #portfolio-grid for maximum
   specificity to override any external CSS.
   ============================================ */
#main-body #portfolio-grid .client-logo-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--card-radius) !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 14px 16px !important;
  gap: 12px !important;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.35s cubic-bezier(0.4,0,0.2,1),
              border-color 0.35s ease,
              background 0.35s ease !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* Accent top line on hover */
#main-body #portfolio-grid .client-logo-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-purple), transparent) !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
}

/* Hover — lift + glow + scale */
#main-body #portfolio-grid .client-logo-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--border-hover), 0 0 30px rgba(0,212,255,0.06) !important;
  border-color: var(--border-hover) !important;
  background: var(--bg-surface-hover) !important;
}

#main-body #portfolio-grid .client-logo-card:hover::before {
  opacity: 1 !important;
}

/* Active press */
#main-body #portfolio-grid .client-logo-card:active {
  transform: translateY(-2px) scale(0.98) !important;
  transition-duration: 0.1s !important;
}


/* ============================================
   § 15. LOGO CONTAINER
   ============================================ */
#main-body #portfolio-grid .client-logo-card .logo-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  width: 100% !important;
  min-height: 0 !important;
}


/* ============================================
   § 16. LOGO IMAGES — FULL COLOR, VISIBLE
   ============================================ */
#main-body #portfolio-grid .client-logo-card .card-logo-img,
#main-body #portfolio-grid .client-logo-card img {
  max-height: 60px !important;
  max-width: 90% !important;
  width: auto !important;
  object-fit: contain !important;
  transition: transform 0.35s ease !important;
  filter: none !important;
  opacity: 1 !important;
}

#main-body #portfolio-grid .client-logo-card:hover .card-logo-img,
#main-body #portfolio-grid .client-logo-card:hover img {
  transform: scale(1.06) !important;
  filter: none !important;
  opacity: 1 !important;
}


/* ============================================
   § 17. PLACEHOLDER ICON (MISSING LOGOS)
   ============================================ */
#main-body #portfolio-grid .client-logo-card .placeholder-icon {
  width: 52px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: rgba(0,212,255,0.06) !important;
  border: 1px solid rgba(0,212,255,0.12) !important;
  color: var(--accent) !important;
  font-size: 1.4rem !important;
  transition: all 0.35s !important;
}

#main-body #portfolio-grid .client-logo-card:hover .placeholder-icon {
  background: rgba(0,212,255,0.1) !important;
  border-color: rgba(0,212,255,0.25) !important;
  transform: scale(1.06) !important;
}


/* ============================================
   § 18. CLIENT NAME LABEL
   ============================================ */
#main-body #portfolio-grid .client-logo-card .client-name-label {
  font-family: var(--font-body) !important;
  font-size: 0.68rem !important;
  color: var(--text-secondary) !important;
  text-align: center !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  transition: color 0.3s !important;
}

#main-body #portfolio-grid .client-logo-card:hover .client-name-label {
  color: var(--text-primary) !important;
}


/* ============================================
   § 19. NO RESULTS STATE
   ============================================ */
#main-body .no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

#main-body .no-results i {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
  color: rgba(0,212,255,0.25);
}

#main-body .no-results p {
  font-size: 0.95rem;
}


/* ============================================
   § 20. MONOGRAM ICON (STYLED INITIALS)
   ============================================ */
#main-body #portfolio-grid .client-logo-card .monogram-icon {
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  border: 1px solid !important;
  font-family: var(--font-heading) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  transition: all 0.35s ease !important;
}

#main-body #portfolio-grid .client-logo-card:hover .monogram-icon {
  transform: scale(1.08) !important;
  filter: brightness(1.3) !important;
}


/* ============================================
   § 21. HERO STATS BAR
   ============================================ */
#main-body .hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 36px auto 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-width: 680px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.9s ease-out 0.7s both;
}

#main-body .hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
  min-width: 120px;
}

#main-body .hero-stat-number {
  font-family: var(--font-heading) !important;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0,212,255,0.25);
}

#main-body .hero-stat-suffix {
  font-family: var(--font-heading) !important;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

#main-body .hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

#main-body .hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}


/* ============================================
   § 22. STAGGERED CARD REVEAL
   ============================================ */
#main-body .client-card-col {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1),
              transform 0.5s cubic-bezier(0.4,0,0.2,1) !important;
}

#main-body .client-card-col.card-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* ============================================
   § 23. SCROLLBAR — CYBER
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0,212,255,0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,212,255,0.3);
}


/* ============================================
   § 24. TEXT SELECTION
   ============================================ */
::selection {
  background: rgba(0,212,255,0.25);
  color: #fff;
}


/* ============================================
   § 25. RESPONSIVE — TABLET (≤991px)
   ============================================ */
@media (max-width: 991px) {
  #main-body .hero-section {
    padding: 120px 0 80px;
  }

  #main-body .hero-content-box {
    padding: 50px 28px !important;
    border-radius: 20px !important;
  }
}


/* ============================================
   § 26. RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  #main-body .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }

  #main-body .hero-content-box {
    padding: 36px 20px 30px !important;
    border-radius: 16px !important;
  }

  #main-body .hero h1.display-4,
  #main-body .hero h1 {
    font-size: 2.2rem !important;
    letter-spacing: 2px;
    margin-bottom: 14px;
  }

  #main-body .hero .lead {
    font-size: 0.95rem !important;
    margin-bottom: 28px;
  }

  #main-body .cert-badge {
    padding: 7px 14px !important;
    font-size: 0.68rem !important;
  }

  #main-body .section-header h2 {
    font-size: 1.4rem;
  }

  /* Hero stats responsive */
  #main-body .hero-stats-bar {
    gap: 8px;
    padding: 20px 0;
  }

  #main-body .hero-stat-item {
    padding: 0 16px;
    min-width: 80px;
  }

  #main-body .hero-stat-number {
    font-size: 1.8rem;
  }

  #main-body .hero-stat-suffix {
    font-size: 1.2rem;
  }

  #main-body .hero-stat-label {
    font-size: 0.6rem;
  }

  #main-body .hero-stat-divider {
    height: 28px;
  }
}


/* ============================================
   § 27. RESPONSIVE — SMALL MOBILE (≤575px)
   ============================================ */
@media (max-width: 575px) {
  #main-body .hero-section {
    padding: 90px 0 50px;
  }

  #main-body .hero h1.display-4,
  #main-body .hero h1 {
    font-size: 1.8rem !important;
  }

  #main-body #portfolio-grid .client-logo-card {
    aspect-ratio: 1 / 1 !important;
    padding: 16px 10px 12px !important;
  }

  #main-body #portfolio-grid .client-logo-card .card-logo-img,
  #main-body #portfolio-grid .client-logo-card img {
    max-height: 44px !important;
  }

  #main-body #portfolio-grid .client-logo-card .client-name-label {
    font-size: 0.62rem !important;
  }
}