@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ============================================================
   ICSS CLIENT PORTFOLIO — UNIFIED DESIGN SYSTEM
   Version 4.0 — Premium, Production-Grade
   Single source of truth for ALL client detail pages
   ============================================================ */


/* ============================================
   § 1. DESIGN TOKENS
   ============================================ */
:root {
  /* — Colors — */
  --bg-primary: #0f1117;
  --bg-surface: #1a1d27;
  --bg-surface-elevated: #22252f;
  --bg-hero-banner: #171a24;

  --accent: #0aa5c0;
  --accent-light: #0dd5f5;
  --accent-glow: rgba(10, 165, 192, 0.15);
  --accent-glow-strong: rgba(10, 165, 192, 0.30);

  --text-primary: #f0f2f5;
  --text-secondary: #9ca3af;
  --text-muted: rgba(255, 255, 255, 0.4);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(10, 165, 192, 0.35);

  /* — Spacing scale (8px grid) — */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 56px;
  --sp-11: 64px;
  --sp-12: 80px;
  --section-gap: 80px;

  /* — Typography — */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* — Radii — */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 50px;

  /* — Shadows — */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* — Transitions — */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.3s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);
}


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

body {
  font-family: var(--font-body) !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  animation: pageReveal 0.6s var(--ease-smooth);
}

@keyframes pageReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}


/* ============================================
   § 3. TOP INFO BAR
   ============================================ */
.top-info-bar,
.bg-dark.text-light.px-3.py-1.border-bottom {
  background: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.top-info-bar a,
.bg-dark.text-light a {
  color: var(--text-secondary) !important;
  transition: color var(--transition-fast);
}

.top-info-bar a:hover,
.bg-dark.text-light a:hover {
  color: var(--accent-light) !important;
}


/* ============================================
   § 4. ICSS LOGO BAR
   ============================================ */
.icss-logo-bar {
  background: linear-gradient(135deg, #0aa5c0, #0891a8) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.icss-logo-bar img {
  max-height: 56px;
  width: auto;
  filter: brightness(1.05);
}


/* ============================================
   § 5. BANNER / HERO SECTION
   ============================================ */
.border {
  border: 1px solid var(--border-card) !important;
}

.banner {
  background: var(--bg-hero-banner);
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-2xl) !important;
  transition: box-shadow var(--transition-base);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent), rgba(99, 102, 241, 0.6), var(--accent), transparent 95%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.banner:hover {
  box-shadow: var(--shadow-glow);
}

.banner:hover::before {
  opacity: 0.7;
}

.banner .rounded-pill {
  cursor: pointer;
}

/* Hero left content area */
.banner > div:first-child {
  flex: 1;
  max-width: 600px;
}

/* Company name */
.banner .fs-1 {
  font-weight: 800 !important;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--text-primary);
}

/* Service badges */
.banner .badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.banner .badge.text-bg-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.banner .badge.text-bg-secondary {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Description text */
.banner .fs-6 {
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================
   § 6. LOGO CONTAINER
   ============================================ */
.logo-wrapper {
  width: 240px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(230, 230, 230, 0.6) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.logo-wrapper img {
  object-fit: contain !important;
  max-width: 90% !important;
  max-height: 90% !important;
  width: auto !important;
  height: auto !important;
  padding: 12px;
}


/* ============================================
   § 7. SECTION HEADINGS
   ============================================ */
.heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(99, 102, 241, 0.6));
  border-radius: 2px;
  margin: var(--sp-4) auto 0;
}

/* Section spacing — replaces empty <div class="py-3 py-lg-4"> spacers */
.section-spacer,
.py-3.py-lg-4:empty {
  height: var(--section-gap);
}


/* ============================================
   § 8. HORIZONTAL RULES
   ============================================ */
hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  opacity: 1;
  margin: var(--sp-6) 0;
}


/* ============================================
   § 9. CARDS — UNIFIED GLASSMORPHISM
   ============================================ */
.card {
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary);
  border: 1px solid var(--border-card) !important;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(10, 165, 192, 0.12);
  border-color: var(--border-hover) !important;
}

.card .card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
}

.card .card-text,
.card .card-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}


/* ============================================
   § 10. HOVER BOX (Deliverables & Benefits)
   ============================================ */
.hover-box {
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.hover-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(10, 165, 192, 0.15);
}

/* Icon sizing inside hover-box cards */
.hover-box .icon i,
.hover-box i.bi {
  font-size: 3rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}


/* ============================================
   § 11. PROCESS / STEPPER SECTION
   ============================================ */
.progress-container {
  max-width: 800px;
}

.progress-heading {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.progress {
  height: 4px;
  background: var(--bg-surface) !important;
  border-radius: var(--radius-pill);
  overflow: visible;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent), #6366f1) !important;
  border-radius: var(--radius-pill);
  transition: width 0.5s var(--ease-smooth);
}

/* Step circles */
.progress-container .step-circle {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -22px;
  width: 2.4rem;
  height: 2.4rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  background: var(--bg-surface-elevated);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
}

.progress-container .step-circle.active {
  background: linear-gradient(135deg, var(--accent), #0077cc);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.progress-container .step-circle:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent);
  color: var(--accent-light);
  transform: scale(1.15);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Step slide cards */
.progress-container .card {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  display: none;
  min-height: 180px;
  height: auto;
  transition: opacity 0.4s ease-in-out;
}

.progress-container .card.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress-container .card-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.progress-container .card-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ============================================
   § 12. RIBBON (highlight badges)
   ============================================ */
.ribbon {
  position: absolute;
  top: 5px;
  right: -30px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #000;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
  padding: 1px;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.ribbon span {
  display: inline-block;
  width: 120px;
}


/* ============================================
   § 13. SECTION IMAGES
   ============================================ */
.container img:not(.logo-wrapper img):not([alt="ICSS Full Logo"]) {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Process & conclusion images */
.col-12.col-lg-4 img.rounded-4,
.col-12.col-lg-5 img.rounded-4 {
  max-width: 480px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.col-12.col-lg-4 img.rounded-4:hover,
.col-12.col-lg-5 img.rounded-4:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(10, 165, 192, 0.15);
}


/* ============================================
   § 14. CTA CARD
   ============================================ */
.card.border-info {
  border-color: rgba(10, 165, 192, 0.4) !important;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-primary));
}


/* ============================================
   § 15. BUTTONS
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0077cc) !important;
  border: none !important;
  box-shadow: 0 4px 16px var(--accent-glow);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), #0088dd) !important;
  box-shadow: 0 6px 24px var(--accent-glow-strong);
  transform: translateY(-2px);
}

.btn-outline-info {
  border-color: rgba(10, 165, 192, 0.5) !important;
  color: var(--accent) !important;
  font-weight: 500;
  transition: all var(--transition-base);
}

.btn-outline-info:hover {
  background: rgba(10, 165, 192, 0.1) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}


/* ============================================
   § 16. FOOTER SECTION
   ============================================ */
.footer-section {
  background: var(--bg-primary) !important;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-12) !important;
  padding-bottom: var(--sp-12) !important;
}

.footer-section .footer-heading {
  letter-spacing: 2px;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Address cards */
.address-card-wrapper {
  flex: 0 1 320px;
  min-height: 220px;
}

.address-card-wrapper > div {
  background: var(--bg-surface);
  border: 1px solid rgba(10, 165, 192, 0.15);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md) !important;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.address-card-wrapper > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 165, 192, 0.12) !important;
  border-color: rgba(10, 165, 192, 0.3);
}

.address-card-wrapper .bi-geo-alt-fill {
  font-size: 1.8rem;
  color: var(--accent);
}

.address-card-wrapper h6 {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
}

.address-card-wrapper p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Footer divider & copyright */
.footer-section .footer-divider {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.footer-section .footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ============================================
   § 17. CONCLUSION SECTION
   ============================================ */
.container .fs-1 {
  font-weight: 800 !important;
  letter-spacing: -0.3px;
}

.container p {
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ============================================
   § 18. SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 7px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(10, 165, 192, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 165, 192, 0.4);
}


/* ============================================
   § 19. TEXT SELECTION
   ============================================ */
::selection {
  background: rgba(10, 165, 192, 0.25);
  color: #fff;
}


/* ============================================
   § 20. RESPONSIVE — TABLET (≤992px)
   ============================================ */
@media (max-width: 992px) {
  :root {
    --section-gap: 56px;
  }

  .banner {
    text-align: center;
    flex-direction: column;
    gap: var(--sp-6);
  }

  .banner > div:first-child {
    max-width: 100%;
  }

  .logo-wrapper {
    width: 200px;
    height: 180px;
    margin: 0 auto;
  }

  .heading {
    font-size: 2.1rem;
  }

  .progress-heading {
    font-size: 2.5rem;
  }

  .col-12.col-lg-4 img.rounded-4,
  .col-12.col-lg-5 img.rounded-4 {
    max-width: 100%;
  }

  .section-spacer,
  .py-3.py-lg-4:empty {
    height: var(--section-gap);
  }
}


/* ============================================
   § 21. RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 40px;
  }

  .heading {
    font-size: 1.75rem;
  }

  .heading::after {
    width: 40px;
    height: 2px;
    margin-top: var(--sp-3);
  }

  .progress-heading {
    font-size: 2rem;
  }

  .progress-container .card-title {
    font-size: 1.4rem;
  }

  .logo-wrapper {
    width: 180px;
    height: 160px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Stack footer addresses on mobile */
  .footer-section .d-flex.flex-md-row {
    flex-direction: column !important;
    align-items: center !important;
  }

  .address-card-wrapper {
    flex: 0 1 100% !important;
    width: 100%;
    max-width: 340px;
  }

  .card .card-title {
    font-size: 1.3rem;
  }

  .banner .fs-1 {
    font-size: 1.75rem !important;
  }
}


/* ============================================
   § 22. RESPONSIVE — SMALL MOBILE (≤576px)
   ============================================ */
@media (max-width: 576px) {
  :root {
    --section-gap: 32px;
  }

  .heading {
    font-size: 1.45rem;
  }

  .progress-heading {
    font-size: 1.7rem;
  }

  .progress-container .card {
    min-height: auto;
  }

  .progress-container .card-title {
    font-size: 1.25rem;
  }

  .progress-container .card-body {
    font-size: 0.9rem;
  }

  /* Tighter header on mobile */
  .bg-dark.text-light.px-3 {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem !important;
    gap: 0.4rem !important;
    flex-wrap: wrap;
    justify-content: center !important;
  }

  /* Smaller step circles on mobile */
  .progress-container .step-circle {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    top: -18px;
  }

  .logo-wrapper {
    width: 150px;
    height: 140px;
  }

  .banner .fs-1 {
    font-size: 1.5rem !important;
  }

  .banner .badge {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}
