:root {
  /* Softer blues for a calmer style */
  --primary: #2a4e7f;
  --secondary: #159ed6;
  --primary-hover: #234369;    /* subtle darker primary */
  --secondary-hover: #128ec1;  /* subtle darker secondary */
  --accent: #ff6b35;
  --light: #f5f7fa;
  --dark: #2c3e50;
  --text: #333333;
  --text-light: #7f8c8d;
  --white: #ffffff;
  --gray: #f0f4f8;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

/* Slightly lighter weights for subheadings */
h2, h3, h4, h5, h6 { font-weight: 600; }

h1 {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.7rem, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: #e05a2a;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0; /* slightly reduced height */
}

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

.logo {
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 24px; /* slightly smaller logo */
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.25rem; /* tighter spacing */
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem; /* slightly smaller text */
  transition: var(--transition);
  padding: 0.4rem 0; /* slightly reduced vertical padding */
  position: relative;
}

.nav-links a:hover { color: inherit; }



/* Base underline element for nav links */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

/* Hover shows underline */
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Active link stays underlined and highlighted */
.nav-links a.active { color: inherit; }
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Keyboard accessibility: underline on focus */
.nav-links a:focus-visible::after { transform: scaleX(1); }

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
  color: var(--white);
  padding: clamp(2rem, 4vw + 1rem, 4.5rem) 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Section Styles */
section {
  padding: clamp(1.75rem, 3vw + 1rem, 4rem) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  position: relative;
  padding-bottom: 1.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  /* 75% of previous size */
  font-size: 2.625rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray);
  border-radius: 8px;
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  /* 75% of previous size */
  font-size: 1.35rem;
  color: var(--secondary);
  min-width: 40px;
  padding-top: 0.3rem;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e1e5eb;
  border-radius: 6px;
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

/* Required asterisk behavior */
.form-group label.required .asterisk {
  color: #e74c3c;
  margin-left: 4px;
  visibility: hidden;
}
.form-group label.required.invalid .asterisk { visibility: visible; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.footer-column p {
  color: #bdc3c7;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.footer-column ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
  font-size: 0.95rem;
}

.social-links a:hover {
  background: var(--secondary-hover);
  transform: translateY(-5px);
}

/* Subtle icon hover adjustments */
.service-card:hover .service-icon { color: var(--secondary-hover); }
.contact-item:hover .contact-icon { color: var(--secondary-hover); }

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem); }
  
  .hero { padding: clamp(2rem, 4vw + 1rem, 4.5rem) 0; }
  
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-content > div:first-child,
  .contact-container > div:first-child {
    order: 2;
  }
  
  .about-content > div:last-child,
  .contact-container > div:last-child {
    order: 1;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem); }
  h3 { font-size: clamp(1.2rem, 1.5vw + 0.7rem, 1.5rem); }
  
  .navbar {
    position: relative;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-links li {
    margin: 0.75rem 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .services-grid {
    gap: 2rem;
  }
  
  .service-card {
    padding: 2rem;
  }
}

/* Diagram helpers */
.diagram-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.diagram-caption {
  margin-top: 0.75rem;
  color: var(--text-light);
  text-align: center;
}

/* (Removed mini modal styles) */

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 0.5rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray);
  color: var(--dark);
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.95rem;
}
.legend-item i { color: var(--secondary); }

/* Use case meta list (readable, left-aligned, low-chroma) */
.meta-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}
.service-card .meta-list { text-align: left; }
.meta-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  grid-template-areas:
    "icon label"
    "icon text";
  column-gap: 0.5rem;
  align-items: start;
}
.meta-list i { grid-area: icon; color: var(--text-light); margin-top: 0.25rem; }
.meta-label { grid-area: label; font-weight: 700; }
.meta-text { grid-area: text; }

/* Auto-apply meta-list styling to future enumerations in content sections */
section ul:not([class]) {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}
section ul:not([class]) li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
section ul:not([class]) i {
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Text link-styled button */
/* (Removed .link-button styles — no longer used) */
.copy-btn {
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  margin-left: 0.5rem;
  padding: 2px;
  }
.copy-btn:hover { color: var(--secondary-hover); text-decoration: underline; }

/* Toast feedback */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 3000;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Utilities */
.bg-gray { background-color: var(--gray); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-1-25 { margin-top: 1.25rem; }
.mt-2 { margin-top: 2rem; }
.unstyled-link { text-decoration: none; color: inherit; display: block; }

/* Services page helpers */
.summary-accent { cursor: pointer; font-weight: 600; color: var(--secondary); }
.process-steps { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 0 auto; }
.process-step { display: flex; gap: 20px; }
.process-number { background: var(--secondary); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
