/* ============================================================
   style.css — DS Portfolio | WSCube-Inspired Design System
   Clean unified file — no duplicate rules
   ============================================================ */

/* ─── Google Fonts loaded via <link> in header.php (non-blocking) ─ */

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════ */
:root {
  /* Dark backgrounds */
  --dark-bg: #000000;
  --dark-bg-2: #1d1d1f;
  --dark-bg-3: #333336;
  --dark-surface: #1d1d1f;
  --dark-border: rgba(255, 255, 255, 0.15);
  --dark-border-h: rgba(255, 255, 255, 0.3);

  /* Light backgrounds */
  --light-bg: #ffffff;
  --light-bg-alt: #f5f5f7;
  --light-border: #d2d2d7;

  /* Brand colors */
  --clr-blue: #0066cc;
  --clr-blue-dark: #0055b3;
  --clr-blue-light: #2997ff;
  --clr-blue-glow: rgba(0, 102, 204, 0.15);
  --clr-orange: #f56300;
  --clr-orange-dark: #cc5300;
  --clr-orange-light: #ff8533;
  --clr-orange-glow: rgba(245, 99, 0, 0.15);
  --clr-red: #ff3b30;
  --clr-green: #34c759;
  
  /* Themed Professional Style (Matched to Brand) */
  --node-accent: var(--clr-blue);
  --node-accent-glow: rgba(0, 102, 204, 0.15);
  --node-dark-bg: #0d0d0d;
  --node-card-bg: #141414;
  --node-border: rgba(255, 255, 255, 0.08);
  --node-border-h: rgba(0, 102, 204, 0.3);
  --node-secondary: var(--clr-orange);

  /* Text */
  --text-dark: #000000;
  --text-mid: #1d1d1f;
  --text-muted: #424245;
  --text-faint: #86868b;
  --text-light: #f5f5f7;
  --text-light-muted: #d2d2d7;
  --text-light-faint: #86868b;

  /* Font */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 4rem;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Border radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Shadows - Minimal Apple style with subtle glow */
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --sh-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --sh-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --sh-xl: 0 12px 36px rgba(0, 0, 0, 0.12);
  --sh-blue: 0 10px 40px var(--clr-blue-glow);
  --sh-orng: 0 10px 40px var(--clr-orange-glow);

  /* Transitions */
  --tr-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tr: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy aliases */
  --clr-bg: var(--dark-bg);
  --clr-bg-2: var(--dark-bg-2);
  --clr-bg-3: var(--dark-bg-3);
  --clr-surface: var(--dark-surface);
  --clr-border: var(--dark-border);
  --clr-primary: var(--clr-blue);
  --clr-primary-dark: var(--clr-blue-dark);
  --clr-accent: var(--clr-green);
  --clr-amber: var(--clr-orange);
  --clr-text: var(--text-mid);
  --clr-text-muted: var(--text-muted);
  --clr-success: var(--clr-green);
  --clr-warning: var(--clr-orange);
  --clr-error: var(--clr-red);
  --clr-info: var(--clr-blue);
  --space-xs: var(--sp-1);
  --space-sm: var(--sp-2);
  --space-md: var(--sp-4);
  --space-lg: var(--sp-6);
  --space-xl: var(--sp-10);
  --space-2xl: var(--sp-16);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);
  --shadow-sm: var(--sh-sm);
  --shadow-md: var(--sh-md);
  --shadow-lg: var(--sh-lg);
  --shadow-glow: var(--sh-blue);
  --transition: var(--tr);
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--clr-blue);
  text-decoration: none;
  transition: var(--tr);
}

a:hover {
  color: var(--clr-blue-dark);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f4f6fb;
}

::-webkit-scrollbar-thumb {
  background: #c0c8e0;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-blue);
}

::selection {
  background: var(--clr-blue);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, var(--text-5xl));
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  color: var(--text-mid);
  line-height: 1.6;
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--text-light);
}

.dark-section p {
  color: var(--text-light-muted);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-24) 0;
}

.section-sm {
  padding: var(--sp-16) 0;
}

.dark-section {
  background: var(--dark-bg);
  position: relative;
}

.light-section {
  background: #ffffff;
}

.alt-section {
  background: var(--light-bg-alt);
}

/* Dot grid pattern removed */
.dot-grid::before {
  display: none;
}

.dot-grid>* {
  position: relative;
  z-index: 1;
}

/* Glow blobs removed */
.glow-blob {
  display: none !important;
}

.glow-blob-blue {
  display: none !important;
}

.glow-blob-orange {
  display: none !important;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, var(--text-4xl));
  font-weight: 700;
  margin-bottom: var(--sp-4);
  color: var(--text-dark);
}

.dark-section .section-title {
  color: var(--text-light);
}

.section-title span {
  color: var(--clr-blue);
}

.dark-section .section-title span {
  color: var(--clr-blue-light);
}

.section-sub {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: var(--text-xl);
  font-weight: 400;
}

.dark-section .section-sub {
  color: var(--text-light-muted);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

/* ═══════════════════════════════════════════════════════════
   TICKER BAR
═══════════════════════════════════════════════════════════ */
.ticker-bar {
  background: #fcf1db;
  color: #1a1a2e;
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
  z-index: 2100;
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
}

.ticker-bar.hidden {
  display: none;
}




.ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  gap: var(--sp-3);
  overflow: hidden;
}

.ticker-icon {
  flex-shrink: 0;
  font-size: 15px;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  padding-left: 30%;
}

.ticker-text strong {
  font-weight: 800;
}

.ticker-bar:hover .ticker-text {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-60%);
  }
}

.ticker-cta {
  flex-shrink: 0;
  background: var(--clr-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: var(--tr);
  text-decoration: none;
}

.ticker-cta:hover {
  background: var(--clr-blue-dark);
  color: #fff;
}

.ticker-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--tr);
}

.ticker-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR  — WSCube exact: solid white always (like WSCube)
═══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 48px;
  display: flex;
  align-items: center;
  background: #ffffff;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  transition: height 0.3s ease;
}

.navbar.scrolled {
  background: #ffffff;
  height: 48px;
}

/* Nav inner */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
}

/* Logo — dark text since navbar is always white */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand .logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s;
  flex-shrink: 0;
}

.nav-brand .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-brand:hover .logo-icon {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--clr-blue);
  letter-spacing: -0.5px;
}

.logo-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Desktop nav list */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

/* Nav links — dark text (always on white bg) */
.nav-link,
.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.8);
  padding: 0 14px;
  border-radius: 0;
  transition: color 0.2s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  position: relative;
  height: 48px;
}

.nav-link:hover,
.nav-link-btn:hover {
  color: var(--text-dark);
  background: none;
}

.nav-link.active,
.nav-link-btn.active {
  color: var(--text-dark);
  font-weight: 400;
}

/* Dropdown chevron */
.nav-chevron {
  transition: transform 0.22s;
  flex-shrink: 0;
}

.nav-item.dropdown-open .nav-chevron {
  transform: rotate(180deg);
}

/* ─── Dropdown ─── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(13, 18, 37, 0.18), 0 0 0 1px rgba(13, 18, 37, 0.05);
  min-width: 520px;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 2000;
}

/* Triangle pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Show */
.nav-item.dropdown-open .nav-dropdown,
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: var(--tr);
  color: var(--text-dark);
}

.nav-dropdown-item:hover {
  background: var(--light-bg-alt);
  color: var(--clr-blue);
}

.nav-dropdown-item:hover .nav-dropdown-label {
  color: var(--clr-blue);
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.nav-dropdown-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.nav-dropdown-footer {
  border-top: 1px solid var(--light-border);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  text-align: center;
}

.nav-dropdown-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-blue);
  transition: var(--tr);
}

.nav-dropdown-all:hover {
  gap: 10px;
}

/* Right side: CTA + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  /* Always blue (WSCube style) */
  background: var(--clr-blue);
  color: #fff;
  border: 2px solid var(--clr-blue);
  transition: var(--tr);
  white-space: nowrap;
  box-shadow: var(--sh-blue);
  text-decoration: none;
}

.nav-cta-btn:hover {
  background: var(--clr-blue-dark);
  border-color: var(--clr-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Hamburger — always dark since navbar is white */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: var(--light-bg-alt);
  border: 1.5px solid var(--light-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--tr);
  z-index: 1002;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark);
  transition: var(--tr);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE DRAWER  (slides in from right)
═══════════════════════════════════════════════════════════ */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  /* Always above everything */
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
  padding-right: env(safe-area-inset-right);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 31, 0.72);
  z-index: 2900;
}

.mobile-overlay.open {
  display: block;
}

/* Drawer header row — logo + close button */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--light-border);
  flex-shrink: 0;
  gap: 12px;
  min-height: 72px;
  /* match navbar height */
}

/* Ensure logo text is dark inside light drawer */
.mobile-drawer-header .logo-name {
  color: var(--clr-blue) !important;
  font-size: 18px;
  font-weight: 800;
}

.mobile-drawer-header .logo-sub {
  color: var(--clr-blue) !important;
  opacity: 0.8;
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg-alt);
  border: 1px solid var(--light-border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--tr);
}

.mobile-drawer-close:hover {
  background: #e8e8ed;
  color: var(--text-dark);
}

.mobile-nav {
  flex: 1;
  padding: 8px 0;
}

.mobile-nav-list {
  list-style: none;
  padding: 0 20px;
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--light-border);
  cursor: pointer;
  font-family: inherit;
  transition: var(--tr);
  letter-spacing: 0.01em;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--clr-blue);
}

.mobile-nav-link.active {
  font-weight: 700;
}

.mobile-chevron {
  transition: transform 0.25s;
  flex-shrink: 0;
}

.mobile-nav-expand.open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-sub-list {
  list-style: none;
  padding: 0 0 0 12px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-left: 2px solid var(--clr-blue);
}

.mobile-sub-list.open {
  max-height: 500px;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin: 2px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: var(--tr);
}

.mobile-sub-link span {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-sub-link:hover {
  background: var(--light-bg-alt);
  color: var(--clr-blue);
}

.mobile-nav-footer {
  padding: 20px;
  border-top: 1px solid var(--light-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  /* Safe area bottom padding for iPhone home bar */
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.mobile-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-contact-info a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
}

.mobile-contact-info a:hover {
  color: var(--clr-blue);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  /* Subtract both ticker(44px) + navbar(48px) */
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  background: #f6f6f9;
  /* Slightly elevated background */
  position: relative;
  z-index: 100;
  overflow: visible;
}

/* Premium Light Architectural Grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 102, 204, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 102, 204, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 1;
  /* Above the hexagonal mesh, but below content */
  pointer-events: none;
  /* Smooth fade-out mask towards edges */
  mask-image: radial-gradient(circle at center, black 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 65%, transparent 100%);
}

/* Ambient Blue UI Glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(26, 62, 240, 0.08) 0%, rgba(0, 0, 0, 0) 65%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-shapes {
  z-index: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-visual,
.hero-copy,
.section-header,
.container {
  position: relative;
  z-index: 2;
}

.hero-placeholder,
.card,
.portfolio-card {
  position: relative;
  z-index: 3;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-16) 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: var(--r-full);
  padding: 6px 18px;
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: var(--sp-5);
  width: fit-content;
  max-width: 100%;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-green);
}

.hero-title {
  font-size: clamp(1.8rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.hero-title .highlight {
  color: var(--text-dark);
}

.hero-title .highlight-blue {
  color: var(--clr-blue);
}

.hero-desc {
  font-size: var(--text-xl);
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: var(--sp-8);
  line-height: 1.5;
  font-weight: 400;
}

.service-detail-header .service-hero-grid {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: var(--sp-12) !important;
  align-items: center !important;
  margin-top: var(--sp-12) !important;
}

.service-detail-header .service-hero-content {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  z-index: 5;
}

.service-detail-header .service-hero-visual {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  z-index: 5;
}

.service-detail-header .service-hero-img-wrap {
  width: 100% !important;
  max-width: 520px !important;
  border-radius: var(--r-2xl) !important;
  overflow: hidden !important;
  box-shadow: var(--sh-xl) !important;
  background: #fff;
  border: 1px solid var(--light-border) !important;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-10);
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 102, 204, 0.15);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 6px rgba(0, 102, 204, 0.05);
  position: relative;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 var(--sp-4);
  transition: all 0.3s ease;
}

.hero-stat-num {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--clr-blue);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(0, 102, 204, 0.2);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    min-width: 0;
    gap: var(--sp-6);
    padding: var(--sp-6);
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat {
    padding: 0;
    text-align: center;
    align-items: center;
  }
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 110;
  transform: translateY(-150px);
}

.hero-image-wrap {
  position: relative;
  width: 600px;
  max-width: 100%;
  height: auto;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--light-border);
  box-shadow: var(--sh-xl);
  position: relative;
  z-index: 1;
}

.hero-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--r-xl);
  padding: var(--sp-3) var(--sp-5);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 160px;
  white-space: normal;
}

.hero-float-card-1 {
  top: -40px;
  left: -20px;
}

.hero-float-card-2 {
  top: 60px;
  right: -50px;
}

.hero-float-card-3 {
  bottom: 60px;
  left: -50px;
}


.hero-float-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

/* Service Detail Integrated Hero */
.service-detail-header {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--light-bg-alt);
  border-bottom: 1px solid var(--light-border);
}

.lock-screen-container {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #060c1f;
  border: 1px solid var(--light-border);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-6);
  box-shadow: var(--sh-xl);
}

.lock-screen-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}

.glass-lock-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-xl);
  padding: var(--sp-12);
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: lockFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lockFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lock-icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-8);
  box-shadow: 0 0 30px rgba(var(--clr-primary-rgb), 0.4);
  position: relative;
}

.lock-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--clr-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: lockPulse 2s infinite;
}

@keyframes lockPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  70% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.lock-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #060c1f;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.lock-desc {
  color: #4b5563;
  font-size: var(--text-md);
  line-height: 1.6;
  margin-bottom: var(--sp-10);
}

.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-screenshot-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: blur(10px);
  transform: scale(1.1);
}

.service-hero-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  margin-top: var(--sp-12);
  text-align: left;
}

.service-hero-content {
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.service-hero-actions {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.service-hero-visual {
  display: flex;
  align-items: center;
}

.service-hero-img-wrap {
  width: 100%;
  max-width: 520px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  background: #fff;
  border: 1px solid var(--light-border);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ─── Portfolio Extensions ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--light-bg-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--light-border);
  transition: var(--tr);
}

.feature-item:hover {
  transform: translateY(-3px);
  border-color: var(--clr-blue-light);
  box-shadow: var(--sh-md);
}

.feature-grid .feature-item .feature-icon {
  width: 40px !important;
  height: 40px !important;
  color: var(--clr-blue);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(var(--clr-blue-rgb), 0.1);
  border-radius: 8px;
  padding: 8px;
}

.feature-grid .feature-item .feature-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.feature-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.lock-screen-container {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid var(--light-border);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-screen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10);
  text-align: center;
}

.lock-icon-wrap {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  box-shadow: var(--sh-lg);
  color: var(--clr-orange);
}

.lock-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--sp-2);
  color: var(--text-dark);
}

.lock-desc {
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
  max-width: 400px;
}

.demo-screenshot-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(1);
}

@media (max-width: 992px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .service-hero-visual {
    order: -1;
  }

  .service-hero-content {
    text-align: center;
    align-items: center;
  }

  .service-hero-content h1,
  .service-hero-content p {
    text-align: center !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 6px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-blue);
  color: #fff;
  border-color: var(--clr-blue);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--clr-blue-dark);
  border-color: var(--clr-blue-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--clr-blue);
  border-color: var(--clr-blue);
}

.btn-outline:hover {
  background: var(--clr-blue);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #fff;
}

.btn-accent {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
  box-shadow: none;
}

.btn-accent:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-lg {
  padding: 7px 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border: none;
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.card::before {
  display: none;
}

.dark-section .card {
  background: var(--dark-bg-2);
  border: none;
}

.dark-section .card:hover {
  background: var(--dark-bg-3);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
}

.service-card-static {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: block;
  height: 100%;
}

.service-card-static:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--clr-blue);
}

/* ═══════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.badge-primary {
  background: rgba(26, 62, 240, 0.10);
  color: var(--clr-blue);
  border: 1px solid rgba(26, 62, 240, 0.2);
}

.badge-accent {
  background: rgba(16, 201, 135, 0.10);
  color: var(--clr-green);
  border: 1px solid rgba(16, 201, 135, 0.25);
}

.badge-orange {
  background: rgba(241, 163, 55, 0.12);
  color: var(--clr-orange-dark);
  border: 1px solid rgba(241, 163, 55, 0.3);
}

.badge-error {
  background: rgba(241, 91, 91, 0.10);
  color: var(--clr-red);
  border: 1px solid rgba(241, 91, 91, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--sp-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--sp-2);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid var(--light-border);
  border-radius: var(--r-md);
  color: var(--text-dark);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  transition: var(--tr);
  outline: none;
}

.form-control:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 4px rgba(26, 62, 240, 0.08);
}

.form-control::placeholder {
  color: var(--text-faint);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 5px;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--clr-red);
  margin-top: 5px;
}

/* ═══════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--sp-6);
  border: 1px solid transparent;
  animation: slideDown 0.3s ease;
}

.alert-success {
  background: rgba(16, 201, 135, 0.08);
  color: #076f4a;
  border-color: rgba(16, 201, 135, 0.25);
}

.alert-error {
  background: rgba(241, 91, 91, 0.08);
  color: #9b1c1c;
  border-color: rgba(241, 91, 91, 0.25);
}

.alert-warning {
  background: rgba(241, 163, 55, 0.08);
  color: #854d0e;
  border-color: rgba(241, 163, 55, 0.25);
}

.alert-info {
  background: rgba(26, 62, 240, 0.08);
  color: var(--clr-blue);
  border-color: rgba(26, 62, 240, 0.25);
}

.alert-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.alert-close:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════════════════════════ */
.service-card {
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 12px;
  padding: var(--sp-8);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Node.js Professional Style Section — Light Version */
.specialization-node-dark {
  background-color: var(--light-bg) !important;
  color: var(--text-dark) !important;
  position: relative;
  overflow: hidden;
  padding: var(--sp-20) 0 !important;
}

.specialization-node-dark .section-title {
  color: var(--text-dark) !important;
}

.specialization-node-dark .section-title span {
  color: var(--node-accent) !important;
}

.specialization-node-dark .section-sub {
  color: var(--text-muted) !important;
}

.specialization-node-dark .section-label {
  color: var(--node-accent) !important;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
}

.node-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  position: relative;
  z-index: 2;
}

.node-service-card {
  background: #ffffff;
  border-top: 1px solid var(--light-border);
  border-left: 1px solid var(--light-border);
  border-right: 3px solid var(--node-accent);
  border-bottom: 3px solid var(--node-accent);
  border-radius: 12px;
  padding: var(--sp-8);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  text-decoration: none;
  box-shadow: var(--sh-sm);
}

.node-service-card:hover {
  transform: translateY(-8px);
  border-top-color: var(--node-accent);
  border-left-color: var(--node-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px var(--node-accent-glow);
}

.node-service-icon {
  width: 48px;
  height: 48px;
  background: var(--light-bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--sp-6);
  border: 1px solid var(--light-border);
  transition: all 0.3s ease;
  color: var(--node-accent);
}

.node-service-card:hover .node-service-icon {
  background: var(--node-accent);
  color: #fff;
  border-color: var(--node-accent);
  transform: scale(1.1) rotate(5deg);
}

.node-service-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-dark) !important;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.node-service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted) !important;
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.node-service-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--node-accent);
  opacity: 0.8;
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.node-service-card:hover .node-service-footer {
  opacity: 1;
  gap: 12px;
}

.node-tech-badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: #ffffff !important;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--node-accent);
  font-weight: 700;
  box-shadow: 0 2px 8px var(--node-accent-glow);
}

/* Responsive adjustments for Node grid */
@media (max-width: 992px) {
  .node-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .node-service-grid {
    grid-template-columns: 1fr;
  }
  
  .specialization-node-dark {
    padding: var(--sp-12) 0 !important;
  }
}

.specialization-node-dark .hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #000;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  background: rgba(var(--clr-blue-rgb), 0.05);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--sp-6);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
  transform: none;
  box-shadow: none;
}

/* Service Cards Pro (Listing) */
.service-card-pro {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  border: 1px solid var(--light-border);
  height: 100%;
}

.service-card-pro:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card-pro:hover .service-thumb-img {
  transform: scale(1.08);
}

.service-thumb-img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Service Content Styling (HTML from DB) */
.service-full-content p {
  margin-bottom: var(--sp-6);
}

.service-full-content strong {
  color: var(--text-dark);
}

.service-full-content ul {
  margin-bottom: var(--sp-6);
  padding-left: var(--sp-6);
}

.service-full-content li {
  margin-bottom: var(--sp-2);
  position: relative;
  list-style: disc;
}

.service-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 400;
  color: var(--clr-blue);
  margin-top: var(--sp-5);
  transition: var(--tr);
}

.service-link:hover {
  color: var(--clr-blue-dark);
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.portfolio-item {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: linear-gradient(135deg, #0f1940 0%, #1a3ef0 100%);
  max-width: 100%;
  width: 100%;
  max-height: 85vh;
  /* Safety: prevent blue-screen overflow if grid fails */
  z-index: 1;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  content: "";
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.07);
}

/* Overlay: always visible (partial) — brighter on hover */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(6, 12, 31, 0.92) 0%,
      rgba(6, 12, 31, 0.40) 55%,
      rgba(6, 12, 31, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5) var(--sp-6);
  /* Always visible — text is always readable */
  opacity: 1;
  transition: background 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  background: linear-gradient(to top,
      rgba(6, 12, 31, 0.98) 0%,
      rgba(6, 12, 31, 0.65) 70%,
      rgba(6, 12, 31, 0.10) 100%);
}

.portfolio-category {
  font-size: var(--text-xs);
  color: var(--clr-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  /* Always visible */
  opacity: 0.85;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-category {
  opacity: 1;
}

.portfolio-name {
  font-size: var(--text-base);
  color: #fff;
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.3;
}

.portfolio-tech {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  transition: opacity 0.3s;
  opacity: 0;
}

.portfolio-item:hover .portfolio-tech {
  opacity: 1;
}

/* Case Study Specifics */
.case-study-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-12);
  align-items: stretch; /* Required for sticky track */
}

/* ── Elite Process Roadmap (High-Fidelity UI/UX) ────────────────── */
.process-roadmap-area {
  background: radial-gradient(circle at 0% 0%, #f4f7ff 0%, #ffffff 100%);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.elite-process-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  position: relative;
}

.elite-step {
  flex: 1;
  position: relative;
  z-index: 10;
  perspective: 1000px;
}

.elite-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.02),
    inset 0 0 0 1px rgba(255,255,255,1);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.elite-step:hover .elite-card {
  transform: translateY(-15px) rotateX(5deg);
  background: #fff;
  box-shadow: 0 30px 60px rgba(13,18,37,0.1);
  border-color: var(--clr-blue);
}

.elite-icon-box {
  width: 70px; height: 70px;
  margin: 0 auto 24px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--icon-clr, var(--clr-blue));
}

.elite-icon-glow {
  position: absolute; inset: 0;
  background: var(--icon-clr, var(--clr-blue));
  filter: blur(20px);
  opacity: 0.15;
  border-radius: 50%;
  transition: opacity 0.3s;
}
.elite-step:hover .elite-icon-glow { opacity: 0.4; }

.elite-icon-box svg { width: 32px; height: 32px; position: relative; z-index: 2; }

.elite-step-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clr-blue);
  margin-bottom: 12px;
}

.elite-step-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.elite-step-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.elite-path {
  flex: 1;
  height: 20px;
  margin: 0 -10px;
  z-index: 5;
  display: flex;
  align-items: center;
}

.elite-path svg { width: 100%; height: 100%; overflow: visible; }
.path-bg { stroke: rgba(0,0,0,0.05); stroke-width: 2; stroke-linecap: round; }
.path-active { 
  stroke: var(--clr-blue); 
  stroke-width: 2; 
  stroke-linecap: round; 
  stroke-dasharray: 6 12;
  animation: eliteFlow 2s linear infinite;
}

@keyframes eliteFlow {
  from { stroke-dashoffset: 36; }
  to { stroke-dashoffset: 0; }
}

.elite-node-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(26,62,240,0.03), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 1024px) {
  .elite-process-wrap { flex-direction: column; gap: 60px; }
  .elite-path { transform: rotate(90deg); margin: 0; }
  .elite-step { width: 100%; max-width: 400px; }
}

/* Sticky Sidebar Utility (Nuclear Fix) */
.post-sidebar, 
.case-study-sidebar {
  position: relative;
  height: 100%;
  overflow: visible !important;
}

.sticky-sidebar-inner {
  /* Disabled native sticky to let JS handle the precise boundary */
  position: relative; 
  height: fit-content;
  z-index: 50;
  will-change: transform;
}

@media (max-width: 1024px) {
  .sticky-sidebar-inner {
    transform: none !important;
  }
}

.case-study-block {
  margin-bottom: var(--sp-16);
}

.case-study-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--sp-6);
  position: relative;
  display: inline-block;
}

.case-study-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--clr-blue);
  border-radius: var(--r-full);
}

.case-study-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: var(--sp-8);
}

.case-study-text p {
  margin-bottom: var(--sp-6);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.tech-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  background: var(--light-bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--light-border);
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results-card {
  background: var(--clr-blue) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: var(--sh-xl);
}

.results-card .card-title {
  color: #fff !important;
  margin-bottom: var(--sp-4);
}

.results-text {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95) !important;
}

.results-text p {
  color: #fff !important;
  margin-bottom: var(--sp-4);
}

.results-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .case-study-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }
}

/* ═══════════════════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--clr-blue);
  padding: var(--sp-12) 0;
  border: none;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: var(--sp-4) var(--sp-6);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
  display: block;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-size: 13px;
  color: inherit;
  opacity: 0.8;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonial-card {
  padding: var(--sp-8);
  border-left: 4px solid var(--clr-blue);
  background: #fff;
  border-radius: var(--r-xl);
}

.testimonial-card:hover {
  border-left-color: var(--clr-orange);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: var(--sp-4);
}

.testimonial-text {
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: var(--sp-6);
}

.testimonial-text::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--clr-blue);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.testimonial-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--text-dark);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   BLOG CARDS
═══════════════════════════════════════════════════════════ */
.blog-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--r-xl);
}

/* Force explicit height on thumbnail so placeholder renders */
.blog-thumb {
  width: 100%;
  height: 200px;
  /* explicit height — works even without an img */
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #eef1fb 0%, #d8dff5 100%);
  flex-shrink: 0;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

/* Placeholder: attractive blue gradient with SVG icon */
.blog-thumb-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8ecf8 0%, #c8d3f0 50%, #d4dcf5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blog-thumb-placeholder svg {
  opacity: 0.45;
}

.blog-thumb-placeholder-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7493;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-body {
  padding: var(--sp-6);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.blog-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
  transition: color 0.2s;
}

.blog-card:hover .blog-title {
  color: var(--clr-blue);
}

.blog-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  line-height: 1.7;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-blue);
  transition: var(--tr);
}

.blog-read-more:hover {
  gap: 11px;
  color: var(--clr-blue-dark);
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--light-bg-alt);
  padding: var(--sp-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  display: none;
}

.cta-title {
  font-size: clamp(2.5rem, 4.5vw, var(--text-5xl));
  font-weight: 700;
  color: var(--clr-blue);
  margin-bottom: var(--sp-4);
  position: relative;
  letter-spacing: -0.03em;
}

.cta-title span {
  color: inherit;
}

.cta-sub {
  font-size: var(--text-xl);
  color: var(--text-mid);
  margin-bottom: var(--sp-10);
  position: relative;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, #f8faff 0%, #d9eaff 100%);
  border-top: 1px solid var(--light-border);
  padding: var(--sp-16) 0 var(--sp-8);
  position: relative;
  z-index: 100; /* Above everything in content */
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid #d2d2d7;
}

.footer-brand-clean {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: var(--sp-4);
}

.logo-icon-sm {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--clr-blue);
}

.logo-name-footer {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo-sub-footer {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  max-width: 300px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--tr);
}

.footer-social a:hover {
  background: var(--text-dark);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a,
.footer-links span {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-3);
}

.footer-legal {
  display: flex;
  gap: var(--sp-6);
}

.footer-legal a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--tr);
}

.footer-legal a:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
══════════════════════════   CASE STUDY & UI/UX SHOWCASE
═══════════════════════════════════════════════════════════ */
#uiux-showcase {
  background: #fdfdfe;
  padding: var(--sp-16) 0;
  border-radius: var(--r-2xl);
  margin-top: var(--sp-12);
}

/* Device Mockups: Laptop Frame */
.laptop-mockup-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto var(--sp-12);
  perspective: 2000px;
}

.laptop-screen {
  background: #fff;
  border: 12px solid #1a1a1a;
  border-radius: 24px 24px 0 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.laptop-mockup-wrapper:hover .laptop-screen {
  transform: translateY(-5px);
}

.laptop-base {
  height: 18px;
  background: #2a2a2a;
  border-radius: 0 0 24px 24px;
  position: relative;
  width: 108%;
  left: -4%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 10px 10px;
}

/* Development Lifecycle: Structured Box Grid */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.lifecycle-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 3px solid rgba(0, 102, 204, 0.1);
  border-bottom: 3px solid rgba(0, 102, 204, 0.1);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.lifecycle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.07);
  border-right-color: var(--clr-blue);
  border-bottom-color: var(--clr-blue);
}

.lifecycle-card .step-icon {
  width: 54px;
  height: 54px;
  background: #f0f7ff;
  color: var(--clr-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.lifecycle-card:hover .step-icon {
  background: var(--clr-blue);
  color: #fff;
}

.lifecycle-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lifecycle-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* High-UX Bento System Modules */
.ux-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin: var(--sp-12) auto;
  width: 100%;
}

.ux-module-card {
  background: #ffffff;
  border: 1px solid rgba(0, 102, 204, 0.05);
  border-right: 3px solid rgba(0, 102, 204, 0.15);
  border-bottom: 3px solid rgba(0, 102, 204, 0.15);
  padding: 40px;
  border-radius: 24px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  min-height: 220px;
}

.ux-module-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(0, 102, 204, 0.08);
  border-right-color: var(--clr-blue);
  border-bottom-color: var(--clr-blue);
}

.ux-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.core-badge {
  background: var(--clr-blue);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.ux-module-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 204, 0.03);
  border: 1px solid rgba(0, 102, 204, 0.05);
  border-radius: 14px;
  color: var(--clr-blue);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.ux-module-card:hover .ux-module-icon {
  background: var(--clr-blue);
  color: #fff;
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.ux-module-icon svg {
  width: 26px;
  height: 26px;
  z-index: 2;
}

/* Duotone Icon Paths */
.ux-module-icon .path-secondary {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.ux-module-card:hover .ux-module-icon .path-secondary {
  opacity: 0.7;
}

.ux-module-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0;
  max-width: 90%;
}

@media(max-width: 768px) {
  .ux-module-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ux-module-card {
    padding: 30px;
    min-height: auto;
  }
}

/* Redefined Feature Grid (System Modules) - Deprecated in favor of module-grid */
.feature-grid {
  display: none;
}

.feature-text-box {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 14.5px;
  line-height: 1.4;
  flex: 1;
}

@media(max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .lifecycle-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium Light Cards */
.light-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  border-radius: var(--r-xl);
  transition: all 0.4s ease;
}

.light-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
  border-color: rgba(10, 159, 220, 0.1) !important;
}

@media(max-width: 768px) {
  .lifecycle-track {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .lifecycle-track::before {
    display: none;
  }

  .laptop-base {
    display: none;
  }

  .laptop-screen {
    border-radius: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
.page-header {
  background:
    repeating-linear-gradient(45deg, rgba(0, 102, 204, 0.03) 0, rgba(0, 102, 204, 0.03) 1.5px, transparent 1.5px, transparent 32px),
    repeating-linear-gradient(-45deg, rgba(0, 102, 204, 0.03) 0, rgba(0, 102, 204, 0.03) 1.5px, transparent 1.5px, transparent 32px),
    linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--light-border);
  z-index: 1;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
  top: -400px;
  left: -200px;
  z-index: -1;
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 118, 171, 0.06) 0%, transparent 70%);
  bottom: -500px;
  right: -300px;
  z-index: -1;
  pointer-events: none;
}

.page-header-title {
  font-size: clamp(3rem, 6vw, var(--text-5xl));
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  letter-spacing: -0.03em;
}

.page-header-sub {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text-mid);
  position: relative;
  margin-top: var(--sp-4);
}

/* Watermark Kill-Switch (Hides BI, ETL, etc. if they linger in cache or DB) */
.page-header .reveal div[style*="64px"],
.page-header .reveal div[style*="Poppins"],
.page-header .reveal div[style*="font-size: 4rem"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--sp-5) 0;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--clr-blue);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq-item {
  border: 1.5px solid var(--light-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-3);
  transition: var(--tr);
  background: #fff;
}

.faq-item:hover {
  border-color: var(--clr-blue);
  box-shadow: var(--sh-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--sp-5) var(--sp-8);
  background: transparent;
  color: var(--text-dark);
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  cursor: pointer;
  transition: var(--tr);
  font-family: inherit;
  border: none;
}

.faq-question:hover {
  background: var(--light-bg-alt);
}

.faq-question.open {
  color: var(--clr-blue);
}

.faq-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-question.open .faq-icon {
  transform: rotate(45deg);
  color: var(--clr-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--sp-8) var(--sp-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION & FILTER
═══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid var(--light-border);
  background: #fff;
  color: var(--text-muted);
  transition: var(--tr);
}

.pagination a:hover {
  background: var(--light-bg-alt);
  border-color: var(--clr-blue);
  color: var(--clr-blue);
}

.pagination .active {
  background: var(--clr-blue);
  border-color: var(--clr-blue);
  color: #fff;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: nowrap;
  margin-bottom: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  /* Room for scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 102, 204, 0.3) transparent;
}

/* Custom Webkit Scrollbar for nice desktop UX */
.filter-bar::-webkit-scrollbar {
  height: 6px;
}

.filter-bar::-webkit-scrollbar-track {
  background: transparent;
}

.filter-bar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 102, 204, 0.3);
  border-radius: 10px;
}

.filter-bar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 102, 204, 0.6);
}

.filter-btn {
  padding: 8px 22px;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid var(--light-border);
  background: #fff;
  color: var(--text-muted);
  transition: var(--tr);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FILTER & PORTFOLIO EXTENSIONS (CRISP)
═══════════════════════════════════════════════════════════ */
.filter-btn:hover,
.filter-btn.active {
  background: var(--clr-blue);
  border-color: var(--clr-blue);
  color: #fff;
  box-shadow: var(--sh-blue);
}

.vault-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #020617;
  /* Deep Navy */
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 480px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  margin-top: var(--sp-8);
}

/* Redesigned Crisp Intel Panel */
.vault-intel {
  padding: var(--sp-12);
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #020617;
  z-index: 1;
}

.vault-intel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 1;
}

.vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--clr-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-6);
}


/* ═══════════════════════════════════════════════════════════
   MISC: CONTACT, 404, LIGHTBOX
═══════════════════════════════════════════════════════════ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-12);
  align-items: start;
}

.contact-form-card {
  padding: var(--sp-12);
  /* Default Desktop */
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(26, 62, 240, 0.08);
  border: 1.5px solid rgba(26, 62, 240, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.contact-info-value {
  color: var(--text-dark);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: 2px;
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: clamp(6rem, 16vw, 10rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 31, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.22s ease;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
}

.lightbox-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--tr);
}

.lightbox-close:hover {
  background: var(--clr-red);
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 34px;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--clr-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-blue);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--tr);
  z-index: 500;
  font-size: 20px;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--clr-blue-dark);
  transform: translateY(-3px);
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
}

body.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-border);
  border-top-color: var(--clr-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════════════════ */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.35);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   MODERN BLOG SEARCH 
═══════════════════════════════════════════════════════════ */
.modern-search-bar {
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1.5px solid var(--light-border) !important;
  border-radius: var(--r-full) !important;
  padding: 3px 6px 3px 20px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
}

.modern-search-bar:focus-within {
  border-color: var(--clr-blue) !important;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1), 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

.search-input {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  padding: 8px 0 !important;
  font-size: 14px !important;
  color: var(--text-dark) !important;
  outline: none !important;
  font-family: var(--font-sans) !important;
}

.search-input::placeholder {
  color: var(--text-faint) !important;
  font-weight: 500 !important;
  opacity: 0.6 !important;
}

.modern-search-bar .btn-primary {
  padding: 6px 20px !important;
  font-size: 13px !important;
  border-radius: var(--r-full) !important;
}

/* ── ≤1100px ── */
@media(max-width:1100px) {
  .hero-image-wrap {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 520 / 400;
  }

  .hero-float-card-1 {
    top: 5px;
    left: -20px;
  }

  .hero-float-card-2 {
    top: 65px;
    right: -20px;
  }

  .hero-float-card-3 {
    bottom: 65px;
    left: -20px;
  }

  .hero-float-card-4 {
    bottom: 5px;
    right: -20px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer-grid .footer-col:last-child {
    grid-column: span 3;
  }
}

/* ── ≤1024px: TABLET breakpoint ── */
@media(max-width:1024px) {
  .nav-menu {
    gap: 1px;
  }

  .nav-link,
  .nav-link-btn {
    padding: 8px 10px;
    font-size: 0.8125rem;
  }

  .nav-cta-btn {
    padding: 6px 16px;
    font-size: 0.8125rem;
  }

  .hero-float-card-1 {
    top: 0px;
    left: -10px;
  }

  .hero-float-card-2 {
    top: 70px;
    right: -10px;
  }

  .hero-float-card-3 {
    bottom: 70px;
    left: -10px;
  }

  .hero-float-card-4 {
    bottom: 0px;
    right: -10px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer-grid>.footer-col:last-child {
    grid-column: span 3;
  }
}

/* ── ≤900px: MOBILE breakpoint ── */
@media(max-width:900px) {

  /* Hide desktop nav, show hamburger */
  .nav-menu {
    display: none !important;
  }

  .nav-cta-btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Navbar stays white on mobile too (solid) */
  .navbar {
    height: 64px;
  }

  /* Layout */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-10);
  }

  .hero-copy {
    align-items: center;
  }

  .hero-visual {
    display: flex;
  }

  .hero-image-wrap {
    width: 280px;
    height: 280px;
  }

  .hero-float-card {
    display: none !important;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-badge {
    margin: 0 auto var(--sp-5);
  }

  .hero-desc {
    text-align: center;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .contact-form-card {
    padding: var(--sp-8);
    /* Tablet: 32px */
  }
}

/* ── ≤640px: Small mobile ── */
@media(max-width:640px) {
  .container {
    padding: 0 16px;
  }

  .contact-form-card {
    padding: var(--sp-5);
    /* Mobile: 20px */
  }

  .section {
    padding: 64px 0;
  }

  .hero-title {
    font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-actions .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col {
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .footer-brand .logo-text {
    text-align: left;
  }

  .footer-desc {
    max-width: 100%;
    font-size: 14px;
    text-align: left;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    gap: var(--sp-3);
  }

  .page-header {
    padding: 90px 0 50px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat-item:last-child,
  .stat-item:nth-last-child(2) {
    border-bottom: none;
  }

  /* Mobile drawer full-width on tiny screens */
  .mobile-drawer {
    width: 100vw;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .nav-cta-btn {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  .ticker-cta {
    display: none !important;
  }

  .ticker-item {
    font-size: 11px;
  }

  .footer-legal {
    gap: var(--sp-3);
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .footer-legal a {
    font-size: 12px;
    flex-shrink: 0;
  }

  .footer-bottom {
    font-size: 13px;
  }

  .terminal-prompt span {
    display: none !important;
  }

  .dos-terminal-search {
    padding-left: 12px !important;
  }
}

/* ── ≤480px ── */
@media(max-width:480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .ticker-cta {
    display: none;
  }
}


/* -- =400px -- */
@media(max-width:400px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--sp-5);
  }
}

/* -----------------------------------------------------------
   CHAT WIDGET (AI ASSISTANT)
----------------------------------------------------------- */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: var(--font-sans);
}

.chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clr-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(26, 62, 240, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  position: relative;
}

.chat-button:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--clr-blue-dark);
}

.chat-button .ai-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #10c987;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 201, 135, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 201, 135, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 201, 135, 0);
  }
}

.chat-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 280px;
  background: #fff;
  padding: var(--sp-5);
  border-radius: 18px 18px 4px 18px;
  box-shadow: var(--sh-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid var(--light-border);
}

.chat-popup.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: all 0.2s ease;
  z-index: 10;
}

.chat-popup-close:hover {
  color: var(--clr-blue);
  transform: scale(1.1);
}

.chat-popup-header {
  font-weight: 800;
  font-size: 14px;
  color: var(--clr-blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-popup-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--light-border);
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.chat-header {
  background: var(--clr-blue);
  padding: var(--sp-6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.chat-header-info p {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
}

.chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
  flex: 1;
  padding: var(--sp-6);
  overflow-y: auto;
  background: #fcfdfe;
}

.chat-msg {
  margin-bottom: var(--sp-4);
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.bot {
  background: #fff;
  border: 1px solid var(--light-border);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--clr-blue);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-quick-actions {
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-top: 1px solid var(--light-border);
}

.quick-action-btn {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: #f8faff;
  border: 1px solid var(--clr-blue-light);
  border-radius: 10px;
  font-size: 13px;
  color: var(--clr-blue);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-action-btn:hover {
  background: var(--clr-blue);
  color: #fff;
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .chat-widget {
    bottom: 20px;
    right: 20px;
  }

  .chat-window {
    width: calc(100vw - 40px);
    height: 70vh;
    bottom: 70px;
  }

  .chat-popup {
    width: 240px;
    bottom: 70px;
  }
}


.chat-input-area {
  padding: var(--sp-4) var(--sp-6);
  background: #fff;
  border-top: 1px solid var(--light-border);
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--light-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input:focus {
  border-color: var(--clr-blue);
}

.chat-send {
  background: var(--clr-blue);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--clr-blue-dark);
  transform: scale(1.1);
}

.chat-send svg {
  width: 16px;
  height: 16px;
}


@media (max-width: 640px) {
  .hero {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
    min-height: auto;
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-12);
  }

  .hero-content {
    padding: var(--sp-10) 0;
  }

  .expertise-row {
    flex-direction: column !important;
    gap: var(--sp-2) !important;
  }

  .hero-stats {
    gap: var(--sp-4) !important;
  }
}

/* --- Clean Card & Restructuring Styles --- */
.portfolio-card {
  background: #ffffff;
  border-top: 1px solid var(--light-border);
  border-left: 1px solid var(--light-border);
  border-right: 3px solid var(--node-accent);
  border-bottom: 3px solid var(--node-accent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-top-color: var(--node-accent);
  border-left-color: var(--node-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px var(--node-accent-glow);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f2f5;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--tr-slow);
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-blue);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
  display: block;
}

.portfolio-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.portfolio-title a {
  color: var(--text-dark);
  transition: var(--tr);
}

.portfolio-title a:hover {
  color: var(--clr-blue);
}

.portfolio-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.portfolio-tech-list span {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--light-bg-alt);
  color: var(--text-muted);
  border-radius: 4px;
  text-transform: uppercase;
}

.hero-visual {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-image-wrap {
  position: relative;
  perspective: 2000px; /* Crucial for 3D */
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(10, 159, 220, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-perspective {
  transform: rotateY(-18deg) rotateX(8deg) rotateZ(2deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-perspective:hover {
  transform: rotateY(-10deg) rotateX(4deg) rotateZ(1deg);
}

.hero-visual-simple {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 30px 60px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: #fff;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-visual-simple img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* --- Floating Glass Cards --- */
.hero-dashboard-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.dashboard-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 220px;
  pointer-events: auto;
  animation: heroFloat 6s ease-in-out infinite;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateZ(100px); /* Lift off the surface */
}

.card-revenue {
  top: 10%;
  left: -80px;
  animation-delay: 0s;
  transform: translateZ(150px);
}

.card-projects {
  bottom: 5%;
  right: -60px;
  animation-delay: -3s;
  transform: translateZ(200px);
}

.card-icon-new {
  width: 40px;
  height: 40px;
  background: rgba(10, 159, 220, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-new svg {
  width: 20px;
  height: 20px;
}

.card-text-wrap {
  width: 100%;
}

.card-title-sm {
  font-size: 10px;
  font-weight: 800;
  color: var(--clr-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.card-info-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.dashboard-card .card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-green);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--clr-green);
}

@media (max-width: 1200px) {
  .card-revenue {
    left: -20px;
  }

  .card-projects {
    right: -20px;
  }
}

.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Service Card Styles --- */
.service-card {
  background: #fff;
  padding: var(--sp-10);
  border-radius: var(--r-xl);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--tr);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
  border-color: rgba(var(--clr-blue-rgb), 0.1);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--clr-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--tr);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(var(--clr-blue-rgb), 0.05);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--sp-6);
  transition: var(--tr);
}

.service-card:hover .service-icon-box {
  background: var(--clr-blue);
  color: #fff;
  transform: rotate(-5deg) scale(1.1);
}

.service-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--sp-4);
  color: var(--text-dark);
}

.service-desc {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.service-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
}

.service-link svg {
  transition: var(--tr);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* Grid Utility */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Navsan Inspired Process Flow (Horizontal & Responsive) ────────── */
.process-roadmap-area {
  background: #f8fafc;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   DELIVERY MATRIX — Structured Grid
═══════════════════════════════════════════════════════════ */
.delivery-matrix-area {
  background: var(--light-bg-alt);
  position: relative;
  overflow: hidden;
  padding: var(--sp-24) 0;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  position: relative;
  z-index: 2;
}

.delivery-card {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  position: relative;
  transition: var(--tr-slow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.delivery-card-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: var(--tr);
  z-index: 0;
}

.delivery-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-blue);
  box-shadow: var(--sh-md);
}

.delivery-card:hover .delivery-card-bg {
  opacity: 1;
}

.delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.delivery-number {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 800;
  color: rgba(0, 102, 204, 0.1);
  line-height: 1;
  transition: var(--tr);
}

.delivery-card:hover .delivery-number {
  color: var(--clr-blue);
  opacity: 0.2;
}

.delivery-icon {
  width: 32px;
  height: 32px;
  background: var(--light-bg-alt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
  transition: var(--tr);
}

.delivery-icon svg {
  width: 16px;
  height: 16px;
}

.delivery-card:hover .delivery-icon {
  background: var(--clr-blue);
  color: #ffffff;
  transform: rotate(5deg);
}

.delivery-body {
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.delivery-title {
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: var(--sp-1);
  color: var(--text-dark);
}

.delivery-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.delivery-footer {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.delivery-phase {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* Connectors for Desktop */
@media (min-width: 992px) {
  .delivery-card:nth-child(3n)::after,
  .delivery-card:last-child::after {
    display: none;
  }
}

@media (max-width: 991px) {
  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  
  .delivery-card {
    min-height: auto;
  }
}