/**
 * SILVER CREEK TECHNOLOGIES
 * Enterprise Software Design System & Stylesheet
 */

/* -------------------------------------------------------------
 * 1. DESIGN SYSTEM TOKENS & RESET
 * ----------------------------------------------------------- */
:root {
  /* Surface & Background */
  --bg-main: #060a14;
  --bg-surface: #0c1222;
  --bg-card: #111a30;
  --bg-card-hover: #162240;
  --bg-glass: rgba(12, 18, 34, 0.92);
  --bg-input: #090e1c;

  /* Accent Brand Gradients */
  --primary-400: #38bdf8;
  --primary-500: #0284c7;
  --primary-600: #0369a1;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --cyan-400: #22d3ee;
  --emerald-400: #34d399;
  --silver-100: #f8fafc;
  --silver-300: #cbd5e1;
  --silver-400: #94a3b8;
  --silver-500: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  --glow-primary: 0 0 25px rgba(56, 189, 248, 0.25);
  --glow-indigo: 0 0 25px rgba(99, 102, 241, 0.25);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Spacing */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-main);
  color: var(--silver-300);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul {
  list-style: none;
}

/* Accessibility Skip Navigation */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary-500);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 99999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 1rem;
}

/* -------------------------------------------------------------
 * 2. CONTAINER & GRID UTILITIES
 * ----------------------------------------------------------- */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--primary-400);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--silver-100);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, var(--primary-400) 70%, var(--indigo-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--silver-400);
  line-height: 1.6;
}

/* -------------------------------------------------------------
 * 3. STICKY TOP NAVIGATION HEADER
 * ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-smooth), padding var(--transition-smooth);
  padding: 0.85rem 0;
}

.site-header.scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(6, 10, 20, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 195px;
  height: 39px;
  display: block;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.65rem 0;
  }
  .site-header .site-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .header-inner {
    gap: 0.5rem;
  }
  .logo-img {
    width: 145px;
    height: 29px;
  }
}

@media (max-width: 380px) {
  .site-header .site-container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  .header-inner {
    gap: 0.35rem;
  }
  .logo-img {
    width: 125px;
    height: 25px;
  }
}

.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--silver-300);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-400);
}

.nav-link.active {
  color: #fff;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-400), var(--indigo-500));
  border-radius: var(--radius-full);
}

.nav-pill-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-400);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.25rem;
  vertical-align: middle;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Responsive Enquiry CTA Button */
.header-enquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition: all var(--transition-fast);
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--indigo-600) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  flex-shrink: 0;
}

.header-enquiry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--indigo-500) 100%);
  color: #ffffff;
}

.header-enquiry-btn .enquiry-arrow {
  transition: transform var(--transition-fast);
}

.header-enquiry-btn:hover .enquiry-arrow {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .header-actions {
    gap: 0.5rem;
  }
  .header-enquiry-btn {
    padding: 0.42rem 0.85rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
  }
  .header-enquiry-btn .enquiry-arrow {
    display: none;
  }
}

@media (max-width: 380px) {
  .header-actions {
    gap: 0.35rem;
  }
  .header-enquiry-btn {
    padding: 0.36rem 0.65rem;
    font-size: 0.75rem;
  }
}

/* Mobile Toggle Hamburger (always stays inside viewport) */
.mobile-toggle-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 36px;
  padding: 9px 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-400);
}

@media (min-width: 1024px) {
  .mobile-toggle-btn {
    display: none;
  }
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--silver-100);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

/* Mobile Navigation Off-Canvas Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--silver-300);
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 70px);
  overflow-y: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--silver-300);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-400);
}

.mobile-nav-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--silver-400);
  margin-bottom: 0.4rem;
}

/* -------------------------------------------------------------
 * 4. BUTTONS & UI COMPONENTS
 * ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--indigo-600) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--indigo-500) 100%);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver-100);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary-400);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--silver-200);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--silver-400);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-accent {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary-400);
}

.badge-outline {
  border: 1px solid var(--border-subtle);
  color: var(--silver-400);
}

/* -------------------------------------------------------------
 * 5. HERO SECTION
 * ----------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(17, 26, 48, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--silver-200);
  backdrop-filter: blur(8px);
}

.hero-pill-sparkle {
  color: var(--primary-400);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--silver-100);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--silver-400);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--silver-100);
  line-height: 1.2;
}

.metric-number span {
  color: var(--primary-400);
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--silver-500);
  margin-top: 0.2rem;
}

/* Hero Terminal Visual */
.hero-visual-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-primary);
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.hero-visual-card:hover {
  transform: translateY(-4px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(6, 10, 20, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.mac-dots {
  display: flex;
  gap: 6px;
}
.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--silver-500);
}

.hero-media-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-media-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.9);
}

.hero-visual-card:hover .hero-media-wrap img {
  transform: scale(1.03);
}

.terminal-overlay-stats {
  padding: 1.25rem;
  background: var(--bg-card);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
}

.stat-chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--silver-500);
}

.stat-chip-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-400);
}

/* -------------------------------------------------------------
 * 6. LOGO TICKER / CLIENT BAR
 * ----------------------------------------------------------- */
.client-logo-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 13, 26, 0.4);
}

.client-logo-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.client-bar-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver-500);
  font-weight: 600;
}

.client-logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.client-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--silver-500);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.client-badge-item:hover {
  opacity: 1;
  color: var(--silver-200);
}

/* -------------------------------------------------------------
 * 7. CORE SERVICES SECTION
 * ----------------------------------------------------------- */
.services-section {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-400), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), var(--glow-primary);
}

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

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-400);
  margin-bottom: 1.5rem;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(4deg);
  background: rgba(56, 189, 248, 0.2);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--silver-100);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--silver-400);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tech-tag-sm {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--silver-400);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-400);
  margin-top: auto;
}
.service-card-link:hover {
  gap: 0.75rem;
  color: #fff;
}

/* -------------------------------------------------------------
 * 8. PORTFOLIO & CASE STUDIES
 * ----------------------------------------------------------- */
.portfolio-section {
  padding: 6rem 0;
}

.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--silver-400);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-pill.active {
  background: var(--primary-500);
  border-color: var(--primary-400);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), var(--glow-primary);
}

.case-img-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
}

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

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

.case-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  color: var(--primary-400);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.case-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--silver-100);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.case-desc {
  font-size: 0.925rem;
  color: var(--silver-400);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.case-metrics-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.case-metric {
  flex: 1;
}

.case-metric-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald-400);
}

.case-metric-label {
  font-size: 0.72rem;
  color: var(--silver-500);
  text-transform: uppercase;
}

.case-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* -------------------------------------------------------------
 * 9. TECH STACK INTERACTIVE TABS
 * ----------------------------------------------------------- */
.tech-section {
  padding: 6rem 0;
  background: rgba(12, 18, 34, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tech-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.tech-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--silver-300);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tech-tab-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.tech-tab-btn.active {
  background: var(--primary-500);
  border-color: var(--primary-400);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.tech-tab-panel {
  display: none;
}

.tech-tab-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  animation: fadeIn 0.4s ease;
}

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

.tech-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-smooth);
}

.tech-item-card:hover {
  background: var(--bg-card);
  border-color: var(--primary-400);
  transform: translateY(-4px);
}

.tech-item-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--primary-400);
}

.tech-item-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--silver-100);
  margin-bottom: 0.35rem;
}

.tech-item-role {
  font-size: 0.8rem;
  color: var(--silver-500);
}

/* -------------------------------------------------------------
 * 10. SDLC PROCESS SECTION
 * ----------------------------------------------------------- */
.process-section {
  padding: 6rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.process-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  position: relative;
  transition: all var(--transition-smooth);
}

.process-step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--silver-100);
  margin-bottom: 0.85rem;
}

.process-step-desc {
  font-size: 0.95rem;
  color: var(--silver-400);
  line-height: 1.6;
}

/* -------------------------------------------------------------
 * 11. TESTIMONIALS SECTION
 * ----------------------------------------------------------- */
.testimonials-section {
  padding: 6rem 0;
  background: rgba(12, 18, 34, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--silver-300);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.75rem;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-500);
}

.client-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--silver-100);
}

.client-role {
  font-size: 0.8rem;
  color: var(--silver-500);
}

/* -------------------------------------------------------------
 * 12. PRE-FOOTER CTA BANNER
 * ----------------------------------------------------------- */
.cta-banner-section {
  padding: 5rem 0 2rem 0;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 26, 48, 0.95) 0%, rgba(12, 18, 34, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  padding: 4rem 2.5rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--glow-primary);
  overflow: hidden;
}

.cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  color: var(--silver-100);
  line-height: 1.2;
  margin: 1.25rem 0 1rem 0;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--silver-400);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cta-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: var(--emerald-400);
  font-weight: 600;
}

/* -------------------------------------------------------------
 * 13. FOOTER
 * ----------------------------------------------------------- */
.site-footer {
  background: #040710;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  font-size: 0.9375rem;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--silver-100);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-bio {
  color: var(--silver-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-300);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary-500);
  border-color: var(--primary-400);
  color: #fff;
  transform: translateY(-2px);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  color: var(--silver-400);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--primary-400);
  transform: translateX(3px);
  display: inline-block;
}

.footer-address {
  display: flex;
  gap: 0.6rem;
  color: var(--silver-400);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--silver-300);
  margin-bottom: 0.75rem;
}
.footer-contact-link a:hover {
  color: var(--primary-400);
}

.footer-sla-card {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.sla-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--emerald-400);
  margin-bottom: 0.35rem;
}

.sla-text {
  font-size: 0.78rem;
  color: var(--silver-500);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: var(--silver-500);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-links a:hover {
  color: var(--silver-300);
}

/* Back to top button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--silver-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-400);
  transform: translateY(-3px);
}

/* -------------------------------------------------------------
 * 14. INTERACTIVE MODAL & FORMS
 * ----------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--glow-primary);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.25rem;
}

.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-400);
  font-weight: 700;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--silver-100);
  margin-top: 0.2rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--silver-400);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--silver-200);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: #f87171;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--silver-100);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

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

.form-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  color: var(--silver-500);
  margin-top: 1rem;
  text-align: center;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--silver-100);
  font-size: 0.9rem;
  animation: slideInToast 0.3s ease;
}

.toast-success {
  border-left: 4px solid var(--emerald-400);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

@keyframes slideInToast {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* -------------------------------------------------------------
 * 15. PAGE HEADERS (ABOUT, SERVICES, PORTFOLIO, ETC.)
 * ----------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem 0;
  background: radial-gradient(circle at 50% 20%, rgba(14, 23, 44, 0.9) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--silver-500);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--silver-400);
}
.breadcrumbs a:hover {
  color: var(--primary-400);
}

.breadcrumbs span.current {
  color: var(--primary-400);
  font-weight: 600;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--silver-100);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--silver-400);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* -------------------------------------------------------------
 * 16. ACCORDION (FAQ)
 * ----------------------------------------------------------- */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.open {
  border-color: var(--primary-500);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--silver-100);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--primary-400);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--silver-400);
  font-size: 0.95rem;
  line-height: 1.65;
}

.accordion-item.open .accordion-content {
  padding-bottom: 1.5rem;
}

/* -------------------------------------------------------------
 * 17. CAREERS JOBS LIST
 * ----------------------------------------------------------- */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-smooth);
}

@media (min-width: 768px) {
  .job-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.job-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.job-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--silver-100);
  margin-bottom: 0.35rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--silver-400);
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* -------------------------------------------------------------
 * 18. RESPONSIVE MEDIA QUERIES REFINEMENTS
 * ----------------------------------------------------------- */
@media (max-width: 1023px) {
  .site-header {
    padding: 0.75rem 0;
  }
}

@media (max-width: 768px) {
  .hero-trust-metrics {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cta-card {
    padding: 2.5rem 1.5rem;
  }
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 100%;
  }
}
