html {
    scroll-behavior: smooth;
}

/* how far below the top the section should land when linked */
.scroll-offset {
    scroll-margin-top: 140px; /* tweak 120–160px to taste */
}
:root {
  --ppp-bg: #020617;
  --ppp-surface: #020617;
  --ppp-surface-alt: rgba(15,23,42,0.9);
  --ppp-accent: #38bdf8;
  --ppp-accent-soft: rgba(56,189,248,0.18);
  --ppp-radius: 1.25rem;
}

/* Full-width hero background image like original site */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
}

/* Background image layer */
.hero-bg-img {
    position: absolute;
    inset: 0;
    background-image: url("/images/hero.jpg"); /* change to real image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7; /* control visibility of photo */
    filter: brightness(0.6) saturate(1.1);
    z-index: 0;
}

/* Ensure existing hero content sits above the photo */
.hero-modern {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 5rem;
}


body {
    /* Main body text */
    --bs-body-color: #e5e7eb; /* light cool grey */
    --bs-body-color-rgb: 229,231,235;
    /* Muted / secondary text (text-muted, small labels, etc.) */
    --bs-secondary-color: rgba(148,163,184,0.82); /* #94A3B8 softened */
    --bs-secondary-color-rgb: 148,163,184;
    /* Headings */
    --bs-heading-color: #f9fafb; /* almost white */
}

/* Make sure all the usual “muted” bits use that neutral */
.text-muted,
small,
p.small,
.form-text {
    color: var(--bs-secondary-color) !important;
}

/* Placeholders in inputs */
.form-control::placeholder {
    color: rgba(148,163,184,0.55);
}

body {
    --bs-secondary-color: rgba(148,163,184,0.78); /* Neutral cool grey */
    --bs-secondary-color-rgb: 148,163,184;
}

body.bg-body-modern {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 45%) fixed;
  color: #e5e7eb;
}

.text-muted,
small,
p.small,
.form-text {
    color: var(--bs-secondary-color) !important;
}

.hero-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34,197,94,0.2), transparent 50%);
  opacity: 0.5;
  z-index: -2;
}

.top-bar {
  background: linear-gradient(90deg, rgba(15,23,42,0.9), rgba(15,23,42,0.9));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148,163,184,0.25);
}

.glass-nav {
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(148,163,184,0.25);
}

.navbar-brand {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #38bdf8, #22c55e, #38bdf8);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9), 0 0 24px rgba(56,189,248,0.8);
}

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.nav-link.active, .nav-link:hover {
  color: var(--ppp-accent) !important;
}

/* Hero */

.hero-modern {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .hero-modern {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.glass-tag {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.8));
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5) !important;
  box-shadow: 0 10px 30px rgba(15,23,42,0.8);
}

.pulse-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--ppp-accent);
  box-shadow: 0 0 0 0 rgba(56,189,248,0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}

.hero-media-stack {
  position: relative;
  min-height: 260px;
}

.hero-card {
  position: absolute;
  inset-inline: 0;
  border-radius: var(--ppp-radius);
}

.hero-card.primary {
  top: 0;
  transform: translateX(6%);
  box-shadow: 0 24px 80px rgba(15,23,42,0.9);
}

.hero-card.secondary {
  top: 58%;
  left: 4%;
  right: 35%;
}

.hero-card.tertiary {
  top: 74%;
  left: 38%;
  right: 0;
}

.hero-image-blur {
  background-image: linear-gradient(135deg, rgba(15,23,42,0.8), rgba(15,23,42,0.7)),
                    radial-gradient(circle at top left, rgba(56,189,248,0.35), transparent 55%),
                    radial-gradient(circle at bottom right, rgba(34,197,94,0.3), transparent 55%);
  background-size: cover;
  background-position: center;
}

.hero-overlay-content {
  max-width: 16rem;
}

.glass-card {
  padding: 1rem 1.25rem;
  background: rgba(15,23,42,0.9);
  border-radius: var(--ppp-radius);
  border: 1px solid rgba(148,163,184,0.45);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(15,23,42,1);
}

.icon-pill {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.9), rgba(37,99,235,0.9));
  color: white;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.8), 0 10px 30px rgba(15,23,42,1);
}

.btn-accent {
  --bs-btn-bg: var(--ppp-accent);
  --bs-btn-border-color: var(--ppp-accent);
  --bs-btn-color: #0f172a;
  --bs-btn-hover-bg: #0ea5e9;
  --bs-btn-hover-border-color: #0ea5e9;
  --bs-btn-active-bg: #0ea5e9;
  --bs-btn-active-border-color: #0ea5e9;
}

.text-accent {
  color: var(--ppp-accent) !important;
}

.bg-accent-soft {
  background-color: var(--ppp-accent-soft) !important;
}

/* Sections */

.bg-surface {
  background: radial-gradient(circle at top right, rgba(15,23,42,0.9), rgba(15,23,42,1));
}

.service-tile .service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.service-tile img {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.service-tile:hover img {
    transform: scale(1.03);
    filter: brightness(0.9);
}

.service-tile:hover .service-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.75));
}


.service-card {
  padding: 1.4rem 1.4rem;
  border-radius: var(--ppp-radius);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 14px 40px rgba(15,23,42,0.9);
}

.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ppp-accent);
  box-shadow: 0 10px 24px rgba(15,23,42,1);
}

.timeline {
  list-style: none;
  padding-left: 0;
  border-left: 1px solid rgba(148,163,184,0.5);
  margin-left: 0.8rem;
}

.timeline li {
  position: relative;
  padding-left: 1.1rem;
  padding-bottom: 1rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ppp-accent);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.15);
}

.timeline li:last-child {
  padding-bottom: 0;
}

/* Cards / panels */

.glass-panel {
  padding: 1.5rem 1.6rem;
  border-radius: var(--ppp-radius);
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 18px 50px rgba(15,23,42,1);
}

.content-card {
  padding: 1.8rem 1.8rem;
  border-radius: var(--ppp-radius);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 18px 45px rgba(15,23,42,1);
}

.article-card {
  padding: 1.5rem 1.5rem;
  border-radius: var(--ppp-radius);
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 18px 45px rgba(15,23,42,1);
}

.article-thumb {
  background-image: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.95)),
                    radial-gradient(circle at top left, rgba(56,189,248,0.28), transparent 55%),
                    radial-gradient(circle at bottom right, rgba(34,197,94,0.25), transparent 55%);
  box-shadow: 0 12px 40px rgba(15,23,42,0.9);
}

/* Page header */

.page-header-modern {
  padding-top: 3rem;
  padding-bottom: 1.2rem;
}

/* Footer */

.footer-modern {
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,1));
  border-top: 1px solid rgba(148,163,184,0.25);
}

.footer-modern .text-accent {
  color: var(--ppp-accent) !important;
}

/* Forms */

.form-control, .form-select {
  background-color: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.4);
  color: #e5e7eb;
}

.form-control:focus, .form-select:focus {
  background-color: rgba(15,23,42,0.96);
  border-color: var(--ppp-accent);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.5);
}

    .form-control::placeholder {
        color: rgba(148,163,184,0.55);
    }

/* Utilities */

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.link-body {
  color: #e5e7eb;
}

.link-body:hover {
  color: var(--ppp-accent);
}

/* Responsive tweaks */

@media (max-width: 991.98px) {
  .hero-card {
    position: static;
    margin-bottom: 1rem;
  }
  .hero-media-stack {
    min-height: auto;
  }
}
