/* ===== Custom Properties ===== */
:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --white: #ffffff;

  --primary: var(--blue-700);
  --primary-dark: var(--blue-900);
  --primary-light: var(--blue-500);
  --accent: var(--orange-500);
  --accent-hover: var(--orange-400);
  --text: var(--slate-800);
  --text-light: var(--slate-500);
  --text-lighter: var(--slate-400);
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --border: var(--slate-200);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --section-py: 6rem;
  --container-max: 1200px;
  --container-px: 1.5rem;

  --transition: 0.3s ease;
  --radius: 8px;
  --radius-lg: 16px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--slate-900);
}

h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p + p {
  margin-top: 1rem;
}

.text-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-light);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label i {
  font-size: 1.1em;
}

/* ===== Layout ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container--narrow {
  max-width: 800px;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  font-size: 1.125rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-500);
  padding: 0.5rem 0;
  margin: 0 0.875rem;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--slate-900);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--slate-900);
  font-weight: 600;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-700);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-content {
  position: relative;
  max-width: 780px;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 3.75rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: hero-up 0.8s ease forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: hero-up 0.8s 0.15s ease forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: hero-up 0.8s 0.3s ease forwards;
  opacity: 0;
}

@keyframes hero-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Particle Mesh --- */
.hero--particles {
  background: #0b1120;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ===== Page Header (Inner Pages) ===== */
.page-header {
  position: relative;
  padding: 10rem 0 4.5rem;
  background: #0b1120;
  overflow: hidden;
}

.page-header canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background var(--transition), color var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  transition: gap var(--transition);
}

.card-link:hover {
  gap: 0.625rem;
}

.card-link i {
  font-size: 1.125em;
  transition: transform var(--transition);
}

.card-link:hover i {
  transform: translateX(2px);
}

/* ===== Statement Section ===== */
.statement {
  text-align: center;
  padding: var(--section-py) 0;
}

.statement .container {
  max-width: 800px;
}

.statement-bar {
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 2rem;
}

.statement h2 {
  margin-bottom: 1.5rem;
}

.statement p {
  font-size: 1.25rem;
  line-height: 1.85;
  color: var(--text-light);
}

/* ===== Values Grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--primary);
  font-size: 1.375rem;
  margin: 0 auto 1.25rem;
}

.value-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

/* ===== Services Page Sections ===== */
.service-block {
  padding: var(--section-py) 0;
}

.service-block:nth-child(even) {
  background: var(--bg-alt);
}

.service-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-block-header .service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--primary);
  font-size: 1.375rem;
  flex-shrink: 0;
}

.service-block .container--narrow p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.service-block .container--narrow p:last-child {
  margin-bottom: 0;
}

.pmo-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.service-block:nth-child(even) .pmo-section {
  background: var(--white);
}

.pmo-section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pmo-section h3 i {
  color: var(--accent);
  font-size: 1.25rem;
}

.pmo-section p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.pmo-section p:last-child {
  margin-bottom: 0;
}

.service-delivery {
  text-align: center;
  padding: 4rem 0;
  background: var(--blue-50);
}

.service-delivery p {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary-dark);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group--full {
  grid-column: 1 / -1;
}

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

.form-label .optional {
  font-weight: 400;
  color: var(--text-lighter);
  margin-left: 0.25rem;
}

.form-input,
.form-textarea,
.form-file {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

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

.form-file {
  cursor: pointer;
  color: var(--text-light);
  padding: 0.3rem;
}

.form-file::file-selector-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  margin-right: 0.75rem;
  transition: all var(--transition);
}

.form-file::file-selector-button:hover {
  background: var(--blue-50);
  border-color: var(--primary);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-lighter);
  margin-top: 0.375rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.form-status--error {
  color: #dc2626;
}

.form-success {
  padding: 3rem 0;
}

.form-success h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-success h3 i {
  font-size: 1.5rem;
  color: #16a34a;
}

.form-success p {
  color: var(--text-light);
}

/* ===== Contact Layout ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  padding: 2.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

.contact-info-item a {
  color: var(--primary);
  transition: color var(--transition);
}

.contact-info-item a:hover {
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer .logo-text {
  color: var(--white);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--slate-400);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-contact a[aria-label="LinkedIn"] {
  font-size: 1.25rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-group.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-group.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.fade-in-group.visible > *:nth-child(3) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.fade-in-group.visible > *:nth-child(4) { transition-delay: 0.36s; opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --section-py: 5rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-py: 4rem;
    --container-px: 1.25rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  body {
    font-size: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
  }

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

  .nav-links .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }

  .nav {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--border);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  .hero {
    min-height: auto;
    padding: 10rem 0 5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header {
    padding: 8rem 0 3rem;
  }

  .page-header h1 {
    font-size: 2.25rem;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .statement p {
    font-size: 1.1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .pmo-section {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 1.875rem;
  }

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

  .card {
    padding: 2rem;
  }
}
