/* ===================================================================
 * IT Services — Main Stylesheet
 * Light theme · Blue accent
 * =================================================================== */

/* === BREADCRUMB ================================================== */
.breadcrumb-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  margin-top: var(--header-h);
}
.breadcrumb-nav + .page-hero {
  padding-top: 48px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .78rem;
  color: var(--text-muted);
}
.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  opacity: .4;
}
.breadcrumb-item.active { color: var(--text-secondary); }

/* === ROOT VARIABLES ============================================== */
:root {
  --bg-primary:      #f7f6f3;
  --bg-secondary:    #efece6;
  --bg-card:         #ffffff;
  --bg-card-hover:   #fbfaf7;
  --accent:          #0072c6;
  --accent-dim:      rgba(0, 114, 198, 0.10);
  --accent-glow:     rgba(0, 114, 198, 0.22);
  --accent-dark:     #005a9e;
  --success:         #12936a;
  --danger:          #d64550;
  --text-primary:    #2a2622;
  --text-secondary:  #5f5950;
  --text-muted:      #7d7567;
  --border:          rgba(0, 114, 198, 0.22);
  --border-subtle:   rgba(42, 38, 34, 0.09);
  --header-h:        70px;
  --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', monospace;
  --t:               300ms ease;
  --t-slow:          600ms ease;
  --shadow:          0 4px 24px rgba(42, 38, 34, 0.10);
  --shadow-accent:   0 10px 30px rgba(0, 114, 198, 0.15);
  --r:               12px;
  --r-sm:            8px;
}

/* === RESET ======================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* === TYPOGRAPHY ================================================== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-secondary); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
}

/* === LAYOUT ====================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}
.section--dark {
  background: var(--bg-secondary);
}

/* === SECTION PHOTO BACKGROUNDS =================================== */
.section--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.section--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 246, 243, 0.83);
  z-index: 0;
  pointer-events: none;
}
.section--photo > .container {
  position: relative;
  z-index: 1;
}
.section--photo-servers {
  background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1920&q=80');
}
.section--photo-code {
  background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1920&q=80');
}
.section--photo-circuit {
  background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80');
}
.section--photo-data {
  background-image: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&w=1920&q=80');
}
@media (max-width: 768px) {
  .section--photo { background-attachment: scroll; }
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* === GRID UTILS ================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* === BUTTONS ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--t);
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* === PRELOADER =================================================== */
@media (max-width: 767px) { #preloader { display: none !important; } }
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === HEADER ====================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.site-header.scrolled {
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo-text span { color: var(--accent); }
.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: all var(--t);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--border-subtle);
}
.nav-link.active { color: var(--accent); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
  box-shadow: var(--shadow);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--t);
}
.dropdown a:hover {
  color: var(--text-primary);
  background: var(--accent-dim);
}
.dropdown a i {
  width: 16px;
  color: var(--accent);
  font-size: 0.8rem;
}
.header-cta { margin-left: 16px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: rgba(247, 246, 243, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  animation: slideDown 0.3s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  display: block;
  transition: all var(--t);
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.mobile-nav .mobile-sub {
  padding-left: 32px;
  font-size: 0.88rem;
}
.mobile-nav .mobile-group-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 8px 16px 4px;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* === HERO ======================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Slides */
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.slide-1 { background: linear-gradient(135deg, #ffffff 0%, #e7f0fa 50%, #f4f1ec 100%); }
.slide-2 { background: linear-gradient(135deg, #ffffff 0%, #e7f2ee 50%, #f4f1ec 100%); }
.slide-3 { background: linear-gradient(135deg, #ffffff 0%, #efe9f6 50%, #f3f0eb 100%); }
.slide-4 { background: linear-gradient(135deg, #ffffff 0%, #e4eff8 50%, #f2efe9 100%); }

/* Grid overlay */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 114, 198, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 114, 198, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}
/* Radial glow */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 60% 40%, rgba(0, 114, 198, 0.06) 0%, transparent 70%);
}
/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247, 246, 243, 0.30);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 8px var(--accent); } 50% { box-shadow: 0 0 20px var(--accent); } }
.hero-eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 620px;
  line-height: 1.7;
}
.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
/* Dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  background: rgba(42, 38, 34, 0.20);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--t);
  border: none;
}
.hero-dot.active {
  background: var(--accent);
  width: 24px;
  box-shadow: 0 0 8px var(--accent);
}
/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.5s ease infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* === INNER PAGE HERO ============================================= */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  /* Match the home hero look: same light gradient + radial accent glow
     as .slide-1 / .hero-slide::after, instead of the flat --bg-secondary. */
  background:
    radial-gradient(ellipse 60% 50% at 60% 40%, rgba(0, 114, 198, 0.06) 0%, transparent 70%),
    linear-gradient(135deg, #ffffff 0%, #e7f0fa 50%, #f4f1ec 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 114, 198, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 114, 198, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 24s linear infinite;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p {
  font-size: 1.05rem;
  max-width: 620px;
  color: var(--text-secondary);
}

/* === CARDS ======================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 32px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
}
.card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--accent);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.card h3 {
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.card p {
  font-size: 0.92rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: gap var(--t);
}
.card-link:hover { gap: 10px; color: var(--accent); }

/* === PROBLEM CARDS =============================================== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: all var(--t);
}
.problem-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(42, 38, 34, 0.12);
}
.problem-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  opacity: 0.7;
}
.problem-card h3 { font-size: 1rem; margin-bottom: 8px; }
.problem-card p { font-size: 0.88rem; line-height: 1.6; }

/* === SERVICES GRID =============================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* === CASE STUDIES ================================================ */
.cases-wrapper {
  position: relative;
  overflow: hidden;
}
.cases-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}
.case-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}
.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.case-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.case-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 8px;
}
.case-metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
}
.case-metric-label { font-size: 0.85rem; color: var(--text-secondary); }
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.case-stack span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 4px;
}
.cases-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.case-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  font-size: 0.85rem;
}
.case-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.cases-dots { display: flex; gap: 8px; }
.cases-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--t);
  border: none;
}
.cases-dot.active {
  background: var(--accent);
  width: 20px;
}

/* === TIMELINE ==================================================== */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border-subtle));
}
.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-num {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  z-index: 1;
  transition: all var(--t);
}
.timeline-item:hover .timeline-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.timeline-body { padding-top: 12px; }
.timeline-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-body p { font-size: 0.9rem; }

/* === CTA SECTION ================================================= */
.cta-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 0;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 114, 198, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { margin-bottom: 36px; font-size: 1.05rem; }
.cta-section .btn { position: relative; z-index: 1; }

/* === ARCHITECTURE DIAGRAM ======================================== */
.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 40px;
  margin: 48px 0;
  overflow-x: auto;
}
.arch-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  min-width: 600px;
}
.arch-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: center;
  min-width: 130px;
}
.arch-node .arch-node-icon {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.arch-node.accent {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 114, 198, 0.14);
}
.arch-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  padding: 0 8px;
  opacity: 0.6;
}

/* === CAPABILITY LIST ============================================= */
.cap-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.cap-item:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}
.cap-item i {
  color: var(--accent);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.cap-item-text h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cap-item-text p { font-size: 0.85rem; }

/* === STEP LIST =================================================== */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  transition: all var(--t);
}
.step-item:hover {
  border-color: var(--border);
  transform: translateX(4px);
}
.step-n {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  opacity: 0.7;
}
.step-item h4 { font-size: 1rem; margin-bottom: 4px; }
.step-item p { font-size: 0.88rem; }

/* === METRICS BEFORE/AFTER ======================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 28px 24px;
  text-align: center;
}
.metric-before {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.metric-value-before {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--danger);
  font-family: var(--font-mono);
  margin-bottom: 4px;
  text-decoration: line-through;
  opacity: 0.5;
}
.metric-arrow { color: var(--text-muted); font-size: 1.2rem; margin: 8px 0; }
.metric-after {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.metric-value-after {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--success);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.metric-label { font-size: 0.85rem; color: var(--text-secondary); }

/* === ABOUT PAGE ================================================== */
.about-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 32px;
  text-align: center;
}
.profile-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-dim), var(--bg-secondary));
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
  margin: 0 auto 20px;
}
.profile-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.profile-title { color: var(--accent); font-size: 0.85rem; font-family: var(--font-mono); }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.stat-item {
  background: var(--bg-secondary);
  border-radius: var(--r-sm);
  padding: 14px;
  text-align: center;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.72rem; color: var(--text-muted); }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: 0.95rem; }

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent);
  transition: all var(--t);
}
.skill-tag:hover {
  background: var(--accent);
  color: #fff;
}

/* === CONTACT FORM =============================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; font-size: 0.95rem; }
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--t);
}
.contact-link-item:hover {
  border-color: var(--border);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.contact-link-item i {
  width: 20px;
  color: var(--accent);
  font-size: 1rem;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid { border-color: var(--danger) !important; }
.form-field-error {
  display: block;
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 5px;
  min-height: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .2s, opacity .2s;
}
.form-field-error.visible {
  max-height: 40px;
  opacity: 1;
}
.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.form-check-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-check-label.is-invalid input[type="checkbox"] {
  outline: 2px solid var(--danger);
  outline-offset: 1px;
  border-radius: 2px;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892a4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select.form-control option { background: var(--bg-card); }
.honeypot { display: none !important; }

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(18, 147, 106, 0.13);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--success);
  animation: successPop 0.4s ease;
}
@keyframes successPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success h3 { margin-bottom: 8px; }
.form-error-toast {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(214, 69, 80, 0.10);
  border: 1px solid rgba(214, 69, 80, 0.35);
  border-radius: var(--r);
  color: var(--danger);
  font-size: .9rem;
  line-height: 1.4;
}
.form-error-toast.show { display: flex; }
.form-error-toast i { flex-shrink: 0; font-size: 1.1rem; }
.form-error-toast span { flex: 1; }
.form-error-close {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: .7;
}
.form-error-close:hover { opacity: 1; }

/* === FOOTER ====================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--t);
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* === SCROLL REVEAL =============================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* === MISC ======================================================== */
.text-accent { color: var(--accent); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* === RESPONSIVE ================================================== */
@media (max-width: 1024px) {
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-profile { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-v: 72px; }
  .section { padding: 72px 0; }
  .nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .problems-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .case-card { flex: 0 0 calc(100% - 0px); }
  .timeline::before { left: 24px; }
  .timeline-num { width: 48px; height: 48px; font-size: 0.8rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .hero-scroll { display: none; }
  .section-header { margin-bottom: 40px; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { min-height: 100svh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* === LANGUAGE SWITCHER =========================================== */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--t);
  text-decoration: none;
}
.lang-btn:hover { color: var(--text-primary); border-color: var(--border); }
.lang-btn.active { color: var(--accent); border-color: var(--border); background: var(--accent-dim); }

/* === HERO CANVAS: Microservices Network ========================== */
#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}
body:not(.page-home) #heroCanvas {
  height: 0; /* JS sets exact height via pageHero.offsetHeight */
}

/* === PAGE-HERO: Animated grid drift + border pulse ============== */
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 64px 64px, 64px 64px; }
}

.page-hero::after {
  animation: border-pulse 3.5s ease-in-out infinite;
}

@keyframes border-pulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.65; }
}

/* === REDUCED MOTION ============================================== */
@media (prefers-reduced-motion: reduce) {
  .page-hero::before { animation: none; }
  .page-hero::after  { animation: none; }
  #heroCanvas        { display: none; }
}
