/* Enhanced Service Page - Original Colors with Better Typography */

/* Color palette: Navy primary with sophisticated teal accent (ORIGINAL) */
:root {
  --primary-navy: #1a2a47;
  --accent-teal: #4a7c9e;
  --light-teal: #6ba3c3;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --gray-100: #e9ecef;
  --gray-700: #495057;
  --gray-900: #212529;
}

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

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
}

/* Subtle grain texture for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
}

/* Navbar - Simple version for subpages */
.navbar {
  background: white;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: inline-block;
  max-width: 180px;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.navbar-choose-language {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.navbar-choose-language__item + .navbar-choose-language__item {
  margin-left: 1rem; /* 16px gap between flags to match homepage */
}

.navbar-choose-language__item {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
}

.navbar-choose-language__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hamburger Menu Button */
.navbar-hamburger {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 20px;
  transition: all 0.3s ease;
}

.navbar-hamburger:hover {
  opacity: 0.7;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--primary-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.navbar-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Overlay */
.navbar-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

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

/* Sidebar Menu */
.navbar-menu-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 85vw;
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.navbar-menu-sidebar.active {
  right: 0;
}

/* Menu Header */
.navbar-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 3px solid var(--accent-teal);
  background: var(--primary-navy);
}

.navbar-menu-header h3 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.navbar-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.navbar-menu-close:hover {
  color: var(--accent-teal);
}

/* Menu Navigation */
.navbar-menu-nav {
  padding: 20px 0;
}

.navbar-menu-link {
  display: block;
  padding: 16px 28px;
  color: var(--gray-900);
  text-decoration: none;
  font-size: 1.0625rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.navbar-menu-link:hover {
  background: var(--light-bg);
  color: var(--accent-teal);
  border-left-color: var(--accent-teal);
}

.navbar-menu-section {
  margin: 20px 0;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}

.navbar-menu-title {
  padding: 12px 28px;
  color: var(--primary-navy);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar-menu-link--sub {
  padding-left: 48px;
  font-size: 1rem;
  font-weight: 400;
}

.navbar-menu-link--sub:hover {
  padding-left: 52px;
}

/* Responsive navbar */
@media (max-width: 768px) {
  .navbar-brand {
    max-width: 140px;
  }

  .navbar-choose-language__item {
    width: 28px;
    height: 28px;
  }
}

/* Breadcrumb and Navigation Wrapper */
.breadcrumb-nav-wrapper {
  background: white;
  padding: 20px 0 16px 0;
  margin-bottom: 0;
}

.breadcrumb-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.breadcrumb-side {
  flex: 1;
}

.service-nav-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Breadcrumb - Enhanced */
.breadcrumb-section {
  background: white;
  padding: 20px 0 16px 0;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  letter-spacing: 0.02em;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.breadcrumb-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-teal);
  transition: width 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-navy);
}

.breadcrumb-item a:hover::after {
  width: 100%;
}

.breadcrumb-item.active {
  color: var(--primary-navy);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--gray-100);
  margin: 0 4px;
  font-weight: 300;
}

/* Service Hero - Enhanced */
.service-hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #0f3460 100%);
  padding: 80px 0;
  margin-bottom: 0;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 280px; /* Reasonable minimum for typical hero content */
  display: flex;
  align-items: center;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/static/images/temp/datacenter.jpg') center/cover;
  opacity: 0.06;
  z-index: 1;
}

/* Geometric grid overlay */
.service-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 124, 158, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 124, 158, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 1;
}

.service-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 0 20px;
}

.service-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.service-hero .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--accent-teal);
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'IBM Plex Mono', monospace;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.service-hero p {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 840px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Service Section - Enhanced */
.service-section {
  margin-bottom: 64px;
  padding: 56px 48px;
  background: white;
  border-radius: 0;
  border-left: 5px solid var(--accent-teal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-section:hover {
  box-shadow: 0 8px 24px rgba(74, 124, 158, 0.15);
}

.service-section h2 {
  color: var(--primary-navy);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 28px;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-section h3 {
  color: var(--gray-900);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-top: 40px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 20px;
}

.service-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--accent-teal);
  border-radius: 50%;
}

.service-section p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 18px;
  max-width: 85ch;
}

.service-section p strong {
  color: var(--gray-900);
  font-weight: 600;
}

.service-section ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.service-section li {
  padding: 14px 0;
  padding-left: 40px;
  position: relative;
  color: var(--gray-700);
  font-size: 1.0625rem;
  line-height: 1.75;
  transition: all 0.2s ease;
}

.service-section li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 600;
  font-size: 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  transition: all 0.2s ease;
}

.service-section li:hover {
  padding-left: 48px;
  color: var(--gray-900);
}

.service-section li:hover:before {
  left: 8px;
}

/* Credentials Grid - Enhanced */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.credential-box {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-teal) 100%);
  padding: 40px 28px;
  border-radius: 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(74, 124, 158, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.credential-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(74, 124, 158, 0.35);
}

.credential-box .number {
  font-size: clamp(2.75rem, 6vw, 3.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: -0.02em;
  line-height: 1;
}

.credential-box .label {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Architecture Diagram - Enhanced */
.architecture-diagram {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 64px 48px;
  border-radius: 0;
  margin: 64px 0;
  text-align: center;
  position: relative;
}

.architecture-diagram h3 {
  color: var(--primary-navy);
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  margin-bottom: 48px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.architecture-diagram h3::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-teal);
  margin: 20px auto 0;
  border-radius: 2px;
}

.diagram-svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.08));
}

/* Leadership Grid - Single Column */
.leadership-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 48px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.leader-card {
  background: white;
  padding: 48px;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.leader-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  border: 4px solid var(--gray-100);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-family: 'IBM Plex Mono', monospace;
  object-fit: cover;
}

.leader-info {
  flex: 1;
  text-align: left;
}

.leader-card h3 {
  color: var(--primary-navy);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.leader-card .title {
  color: var(--accent-teal);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

.leader-card .bio {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 16px 0;
}

.leader-card .linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-teal);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: 'IBM Plex Mono', monospace;
  transition: all 0.2s ease;
}

.leader-card .linkedin-link:hover {
  color: var(--primary-navy);
}

.leader-card .linkedin-link svg {
  width: 16px;
  height: 16px;
}

/* Feature Grid - Enhanced */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.feature-card {
  background: white;
  padding: 36px 28px;
  border-radius: 0;
  border-left: 3px solid var(--accent-teal);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  background: white;
  box-shadow: 0 8px 28px rgba(74, 124, 158, 0.15);
  transform: translateX(4px);
}

.feature-card h4 {
  color: var(--primary-navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-card p {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

/* Call to Action - Enhanced */
.cta-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #0f3460 100%);
  color: white;
  padding: 80px 56px;
  border-radius: 0;
  text-align: center;
  margin: 64px 0;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--accent-teal);
  border-bottom: 3px solid var(--accent-teal);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/static/images/temp/datacenter.jpg') center/cover;
  opacity: 0.06;
  z-index: 1;
}

.cta-section > * {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: white;
  margin-top: 0;
  font-size: clamp(1.875rem, 4.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cta-section p {
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  margin-bottom: 28px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section a {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.cta-section a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-teal);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.cta-section a:hover {
  color: white;
}

.cta-section a:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* Footer styling - Enhanced */
.footer {
  background: var(--primary-navy) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-top: 3px solid var(--accent-teal);
  padding-top: 64px !important;
  padding-bottom: 48px !important;
}

.footer h5 {
  color: white !important;
  font-weight: 700 !important;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: 20px !important;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s ease;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9375rem;
}

.footer a:hover {
  color: var(--accent-teal) !important;
  transform: translateX(4px);
  display: inline-block;
}

.footer__address {
  font-style: normal;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* LinkedIn social link in footer */
.footer__social {
  margin-top: 24px;
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.footer__linkedin:hover {
  color: var(--accent-teal) !important;
  transform: translateX(4px);
}

.footer__linkedin-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer__linkedin:hover .footer__linkedin-icon {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .breadcrumb {
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .breadcrumb-section {
    padding: 16px 0 12px 0;
  }

  .service-hero {
    padding: 60px 0;
    min-height: 220px; /* Reasonable minimum for mobile hero content */
  }

  .service-section {
    padding: 40px 32px;
    margin-bottom: 48px;
  }

  .service-section h3 {
    margin-top: 32px;
  }

  .credentials {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .architecture-diagram {
    padding: 48px 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .leader-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
  }

  .leader-info {
    text-align: center;
  }

  .leader-photo {
    width: 160px;
    height: 160px;
  }

  .cta-section {
    padding: 64px 32px;
    margin: 48px 0;
  }
}

@media (max-width: 480px) {
  .service-section {
    padding: 32px 24px;
  }

  .service-section li {
    font-size: 1rem;
  }

  .architecture-diagram {
    padding: 40px 20px;
  }

  .cta-section {
    padding: 48px 24px;
  }
}

/* Service Navigation - Previous/Next Links (Horizontal with Pipe) */
.service-navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.service-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(73, 80, 87, 0.5);  /* Faded grey */
  font-size: 0.875rem;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: all 0.3s ease;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.service-nav-link:hover {
  color: var(--accent-teal);  /* Smoothly stronger on hover */
  background: rgba(74, 124, 158, 0.05);
}

/* Pipe separator between links with equal spacing */
.service-nav-separator {
  color: var(--gray-100);
  margin: 0 12px;
  font-weight: 300;
  user-select: none;
}

.service-nav-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.service-nav-prev:hover .service-nav-arrow {
  transform: translateX(-4px);
}

.service-nav-next:hover .service-nav-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .breadcrumb-nav-container {
    flex-direction: column;
    gap: 16px;
  }

  .service-nav-side {
    align-items: flex-start;
    width: 100%;
  }

  .service-navigation {
    align-items: flex-start;
  }

  .service-nav-link {
    font-size: 0.8125rem;
  }

  .service-nav-label {
    display: none;  /* Hide text on mobile, show arrows only */
  }
}
