/* =========================
   Global Reset & Variables
   ========================= */

/* Global reset to ensure the site truly fills the viewport */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Smooth in-page anchor scrolling */
html {
  scroll-behavior: smooth;
}

.rpmr-site {
  --bg0: #070a12;
  --bg1: #090f1e;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted2: rgba(255, 255, 255, 0.55);

  --a: #7c3aed;
  --b: #22d3ee;
  --c: #34d399;
  --d: #f472b6;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 30px rgba(0, 0, 0, 0.45);
  --r: 22px;
  --max: 1120px;

  color: var(--text);
  background:
    radial-gradient(
      1200px 600px at 15% 10%,
      rgba(124, 58, 237, 0.25),
      transparent 55%
    ),
    radial-gradient(
      1000px 500px at 85% 15%,
      rgba(34, 211, 238, 0.22),
      transparent 50%
    ),
    radial-gradient(
      900px 550px at 50% 95%,
      rgba(52, 211, 153, 0.16),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
  position: relative;
  isolation: isolate;

  /* Ensure the gradient background covers the full viewport */
  min-height: 100vh;
  width: 100%;
}

/* Ensure links inherit style inside this section */
.rpmr-site a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Layout Containers
   ========================= */

/* Container */
.rpmr-container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

/* =========================
   Background Effects
   ========================= */

/* Background effects */
.rpmr-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    closest-side at 50% 30%,
    black 0%,
    transparent 80%
  );
}
.rpmr-bg-glow {
  position: fixed;
  inset: -40vh -20vw;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      600px 600px at 30% 30%,
      rgba(244, 114, 182, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 700px at 70% 30%,
      rgba(34, 211, 238, 0.1),
      transparent 60%
    ),
    radial-gradient(
      800px 800px at 50% 70%,
      rgba(124, 58, 237, 0.12),
      transparent 60%
    );
  filter: blur(20px);
  opacity: 0.9;
  animation: rpmr-floatGlow 18s ease-in-out infinite;
}
@keyframes rpmr-floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.03);
  }
}

/* =========================
   Header & Navigation
   ========================= */

/* Header */
.rpmr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    180deg,
    rgba(7, 10, 18, 0.78),
    rgba(7, 10, 18, 0.35)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rpmr-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.rpmr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.rpmr-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(
      18px 18px at 30% 30%,
      rgba(255, 255, 255, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(34, 211, 238, 0.85));
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.rpmr-logo::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: rotate(25deg) translateX(-40%);
  animation: rpmr-sheen 5.5s ease-in-out infinite;
}
@keyframes rpmr-sheen {
  0%,
  70% {
    transform: rotate(25deg) translateX(-65%);
    opacity: 0;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: rotate(25deg) translateX(65%);
    opacity: 0;
  }
}
.rpmr-brandtext {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rpmr-brandname {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.rpmr-brandtag {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted2);
}

.rpmr-navlinks {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rpmr-navlinks a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.rpmr-navlinks a:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.rpmr-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.85),
    rgba(34, 211, 238, 0.65)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.16);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
  white-space: nowrap;
}
.rpmr-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 22px 55px rgba(34, 211, 238, 0.16);
}
.rpmr-cta:active {
  transform: translateY(0);
}

/* =========================
   Hero Section
   ========================= */

/* Hero */
.rpmr-hero {
  padding: 72px 0 36px;
  position: relative;
  z-index: 1;
}
.rpmr-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}
.rpmr-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.rpmr-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.95),
    rgba(34, 211, 238, 0.75)
  );
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.1);
}
.rpmr-hero-title {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.rpmr-grad {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.78),
    rgba(34, 211, 238, 0.9)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rpmr-hero-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 58ch;
}
.rpmr-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

/* =========================
   Buttons
   ========================= */

.rpmr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 13px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.rpmr-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow2);
}
.rpmr-btn.rpmr-primary {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.85),
    rgba(34, 211, 238, 0.55)
  );
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.18);
}
.rpmr-btn.rpmr-primary:hover {
  box-shadow: 0 24px 64px rgba(34, 211, 238, 0.16);
  filter: brightness(1.06);
}

/* =========================
   Hero Card
   ========================= */

.rpmr-hero-card {
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      400px 220px at 20% 20%,
      rgba(124, 58, 237, 0.22),
      transparent 60%
    ),
    radial-gradient(
      420px 260px at 80% 30%,
      rgba(34, 211, 238, 0.18),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.rpmr-hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 220deg,
    rgba(34, 211, 238, 0),
    rgba(34, 211, 238, 0.22),
    rgba(124, 58, 237, 0),
    rgba(244, 114, 182, 0.2),
    rgba(34, 211, 238, 0)
  );
  filter: blur(10px);
  opacity: 0.55;
  z-index: -1;
}
.rpmr-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.rpmr-card-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* =========================
   Metrics & Chips
   ========================= */

.rpmr-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.rpmr-metric {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.rpmr-metric:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}
.rpmr-metric b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.rpmr-metric small {
  color: var(--muted2);
  line-height: 1.4;
  display: block;
}

.rpmr-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.rpmr-chip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.rpmr-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

/* =========================
   Sections & Titles
   ========================= */

.rpmr-section {
  padding: 54px 0;
  position: relative;
  z-index: 1;
}
.rpmr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.rpmr-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 10px;
}
.rpmr-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.rpmr-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.65;
  font-size: 14.5px;
}

/* =========================
   Cards Grid
   ========================= */

.rpmr-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.rpmr-card {
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow2);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  will-change: transform;
}
.rpmr-card::after {
  content: "";
  position: absolute;
  inset: -60% -60%;
  background: radial-gradient(
    closest-side at 30% 40%,
    rgba(34, 211, 238, 0.18),
    transparent 60%
  );
  opacity: 0;
  transform: rotate(12deg);
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.rpmr-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}
.rpmr-card:hover::after {
  opacity: 1;
}
.rpmr-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.rpmr-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13.8px;
}

/* =========================
   Projects Section
   ========================= */

.rpmr-projects {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 16px;
}
.rpmr-project-list {
  display: grid;
  gap: 12px;
}
.rpmr-project {
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.rpmr-project:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.rpmr-pill {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.rpmr-project h5 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.rpmr-project p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13.6px;
}

/* =========================
   Side Panel
   ========================= */

.rpmr-side-panel {
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      380px 240px at 75% 20%,
      rgba(52, 211, 153, 0.14),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.04);
  padding: 18px;
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.rpmr-side-title {
  margin: 8px 0 0;
  font-size: 16px;
}
.rpmr-side-sub {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.rpmr-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.rpmr-stack-item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.rpmr-stack-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.rpmr-side-cta {
  margin-top: 14px;
}

/* =========================
   CTA Block (Contact Section)
   ========================= */

.rpmr-cta-block {
  border-radius: calc(var(--r) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(
      600px 260px at 15% 40%,
      rgba(124, 58, 237, 0.22),
      transparent 60%
    ),
    radial-gradient(
      520px 280px at 85% 45%,
      rgba(34, 211, 238, 0.18),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.04);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
}
.rpmr-cta-block::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  transform: rotate(18deg) translateX(-60%);
  opacity: 0.4;
  animation: rpmr-sweep 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rpmr-sweep {
  0%,
  70% {
    transform: rotate(18deg) translateX(-70%);
    opacity: 0;
  }
  82% {
    opacity: 0.55;
  }
  100% {
    transform: rotate(18deg) translateX(70%);
    opacity: 0;
  }
}
.rpmr-cta-block h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.rpmr-cta-block p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  max-width: 64ch;
}
.rpmr-cta-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 0;
}
.rpmr-form {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 24px 20px;
  margin: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rpmr-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .rpmr-cta-block {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
  }
  .rpmr-cta-block > div:first-child {
    flex: 1 1 0;
    max-width: 420px;
  }
  .rpmr-cta-actions {
    flex: 1 1 0;
    max-width: 520px;
    min-width: 340px;
  }
  .rpmr-form {
    max-width: 100%;
    min-width: 320px;
  }
}
@media (min-width: 1100px) {
  .rpmr-cta-block {
    gap: 80px;
  }
  .rpmr-cta-actions {
    max-width: 600px;
  }
}

/* =========================
   Footer
   ========================= */

.rpmr-footer {
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
.rpmr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rpmr-footlinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rpmr-footlinks a {
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.rpmr-footlinks a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

/* =========================
   Scroll Reveal Animations
   ========================= */
@supports (animation-timeline: view()) {
  .rpmr-reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    animation: rpmr-revealUp both ease-out;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
  .rpmr-reveal-2 {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    animation: rpmr-revealUp both ease-out;
    animation-timeline: view();
    animation-range: entry 5% cover 35%;
  }
  .rpmr-stagger > * {
    opacity: 0;
    transform: translateY(18px);
    animation: rpmr-revealUp both ease-out;
    animation-timeline: view();
    animation-range: entry 10% cover 35%;
  }
  .rpmr-stagger > *:nth-child(2) {
    animation-delay: 0.08s;
  }
  .rpmr-stagger > *:nth-child(3) {
    animation-delay: 0.16s;
  }
  .rpmr-stagger > *:nth-child(4) {
    animation-delay: 0.24s;
  }
  .rpmr-stagger > *:nth-child(5) {
    animation-delay: 0.32s;
  }
  .rpmr-stagger > *:nth-child(6) {
    animation-delay: 0.4s;
  }

  @keyframes rpmr-revealUp {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* =========================
   Motion Accessibility
   ========================= */
@media (prefers-reduced-motion: reduce) {
  .rpmr-site * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .rpmr-burger-icon {
    transition: none !important;
  }
  .rpmr-bg-glow {
    display: none;
  }
}

/* =========================
   Responsive Styles
   ========================= */
@media (max-width: 920px) {
  .rpmr-hero-grid {
    grid-template-columns: 1fr;
  }
  .rpmr-projects {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .rpmr-grid3 {
    grid-template-columns: 1fr;
  }
  .rpmr-brand {
    min-width: unset;
  }
  .rpmr-navlinks {
    gap: 10px;
  }
  .rpmr-hero {
    padding-top: 54px;
  }

  /* Mobile burger menu: links slide out to the left and fill header space */
  .rpmr-nav {
    flex-wrap: wrap;
  }
  .rpmr-navlinks {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    position: relative;
  }

  .rpmr-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  .rpmr-burger {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .rpmr-burger-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.22s ease;
  }
  .rpmr-burger[aria-expanded="true"] .rpmr-burger-icon {
    transform: rotate(90deg);
  }

  .rpmr-burger-icon span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
  }

  /* Hide menu on mobile by default; JS toggles .rpmr-menu-open on the nav */
  .rpmr-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    flex: 1 1 auto;

    max-width: 0;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;

    transition:
      max-width 0.22s ease,
      opacity 0.18s ease,
      transform 0.22s ease;
  }

  .rpmr-navlinks.rpmr-menu-open .rpmr-mobile-menu {
    max-width: 1000px;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Keep links stationary on mobile */
  .rpmr-navlinks a {
    transition: none;
    -webkit-tap-highlight-color: transparent;
  }
  .rpmr-navlinks a:hover,
  .rpmr-navlinks a:active {
    transform: none;
  }

  /* Optional: keep burger visible only on mobile */
}

/* Smallest screens: use a vertical dropdown (<= 390px) */
@media (max-width: 390px) {
  .rpmr-mobile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(320px, 100%);
    max-width: none;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    white-space: normal;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    z-index: 60;

    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    transition:
      max-height 0.22s ease,
      opacity 0.18s ease,
      transform 0.22s ease;
  }

  .rpmr-navlinks.rpmr-menu-open .rpmr-mobile-menu {
    max-height: 240px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .rpmr-mobile-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
  }
}

/* Fix: prevent nested scroll containers inside the RPMR page */

.rpmr-site {
  overflow: visible !important;
}

.rpmr-site .elementor-section,
.rpmr-site .elementor-container,
.rpmr-site .elementor-widget-wrap,
.rpmr-site .elementor-column,
.rpmr-site .elementor-widget,
.rpmr-site .e-con,
.rpmr-site .e-con-inner {
  overflow: visible !important;
  max-height: none !important;
}

/* Hide theme footer ONLY on the RPMR page */
.page-id-7 footer,
.page-id-7 #colophon,
.page-id-7 .site-footer,
.page-id-7 .elementor-location-footer {
  display: none !important;
}

/* Remove any leftover spacing some themes add */
.page-id-7 #page,
.page-id-7 #content,
.page-id-7 .site-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
@media (min-width: 1024px) {
  .rpmr-burger {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .rpmr-burger {
    display: none !important;
  }
}

/* =========================
   Contact Form
   ========================= */
.rpmr-form {
  background: var(--card2);
  border-radius: 18px;
  padding: 15px;
  box-shadow: var(--shadow2);
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rpmr-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rpmr-form label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}
.rpmr-form input,
.rpmr-form select,
.rpmr-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.18s;
}
.rpmr-form input:focus,
.rpmr-form select:focus,
.rpmr-form textarea:focus {
  outline: none;
  border-color: var(--a);
}
.rpmr-form textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 180px;
}
.rpmr-form-status {
  font-size: 0.98rem;
  color: var(--c);
  min-height: 1.2em;
}

/* =========================
   Button & Interactive Hover Animations
   ========================= */
.rpmr-btn, .rpmr-inline, .rpmr-chip, .rpmr-metric, .rpmr-card, .rpmr-project, .rpmr-stack-item, .rpmr-footlinks a, .rpmr-pill, .rpmr-side-cta a, .rpmr-form input, .rpmr-form select, .rpmr-form textarea {
  position: relative;
  overflow: hidden;
  transition: 
    background 0.22s cubic-bezier(.4,2,.6,1),
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.22s cubic-bezier(.4,2,.6,1),
    transform 0.18s cubic-bezier(.4,2,.6,1);
}

.rpmr-btn::before, .rpmr-inline::before, .rpmr-chip::before, .rpmr-metric::before, .rpmr-card::before, .rpmr-project::before, .rpmr-stack-item::before, .rpmr-footlinks a::before, .rpmr-pill::before, .rpmr-side-cta a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--b, #22d3ee) 0%, var(--a, #7c3aed) 100%);
  opacity: 0.18;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  transition: width 0.38s cubic-bezier(.4,2,.6,1), height 0.38s cubic-bezier(.4,2,.6,1), opacity 0.22s, transform 0.38s cubic-bezier(.4,2,.6,1);
  pointer-events: none;
  z-index: 1;
}

.rpmr-btn:hover::before, .rpmr-inline:hover::before, .rpmr-chip:hover::before, .rpmr-metric:hover::before, .rpmr-card:hover::before, .rpmr-project:hover::before, .rpmr-stack-item:hover::before, .rpmr-footlinks a:hover::before, .rpmr-pill:hover::before, .rpmr-side-cta a:hover::before {
  width: 220%;
  height: 220%;
  opacity: 0.32;
  transform: translate(-50%, -50%) scale(1.1);
}

.rpmr-btn:hover, .rpmr-inline:hover, .rpmr-chip:hover, .rpmr-metric:hover, .rpmr-card:hover, .rpmr-project:hover, .rpmr-stack-item:hover, .rpmr-footlinks a:hover, .rpmr-pill:hover, .rpmr-side-cta a:hover, .rpmr-form input:hover, .rpmr-form select:hover, .rpmr-form textarea:hover {
  box-shadow: 0 6px 32px 0 var(--a, #7c3aed33), 0 0 0 2px var(--b, #22d3ee33);
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
  background: linear-gradient(90deg, var(--a, #7c3aed) 0%, var(--b, #22d3ee) 100%) !important;
  color: #fff;
  border-color: var(--b, #22d3ee);
}

.rpmr-form input:focus, .rpmr-form select:focus, .rpmr-form textarea:focus {
  box-shadow: 0 0 0 3px var(--b, #22d3ee55);
  border-color: var(--a, #7c3aed);
  background: var(--card2);
}

/* For accessibility: keep transitions smooth but not too distracting */
@media (prefers-reduced-motion: reduce) {
  .rpmr-btn, .rpmr-inline, .rpmr-chip, .rpmr-metric, .rpmr-card, .rpmr-project, .rpmr-stack-item, .rpmr-footlinks a, .rpmr-pill, .rpmr-side-cta a, .rpmr-form input, .rpmr-form select, .rpmr-form textarea {
    transition: none !important;
  }
  .rpmr-btn::before, .rpmr-inline::before, .rpmr-chip::before, .rpmr-metric::before, .rpmr-card::before, .rpmr-project::before, .rpmr-stack-item::before, .rpmr-footlinks a::before, .rpmr-pill::before, .rpmr-side-cta a::before {
    transition: none !important;
  }
}

/* =========================
   Header & Navigation Hover Animations
   ========================= */
.rpmr-navlinks a, .rpmr-burger {
  position: relative;
  overflow: hidden;
  transition:
    background 0.22s cubic-bezier(.4,2,.6,1),
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.22s cubic-bezier(.4,2,.6,1),
    transform 0.18s cubic-bezier(.4,2,.6,1);
}
.rpmr-navlinks a::before, .rpmr-burger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--b, #22d3ee) 0%, var(--a, #7c3aed) 100%);
  opacity: 0.14;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  transition: width 0.32s cubic-bezier(.4,2,.6,1), height 0.32s cubic-bezier(.4,2,.6,1), opacity 0.18s, transform 0.32s cubic-bezier(.4,2,.6,1);
  pointer-events: none;
  z-index: 1;
}
.rpmr-navlinks a:hover::before, .rpmr-burger:hover::before {
  width: 120%;
  height: 120%;
  opacity: 0.22;
  transform: translate(-50%, -50%) scale(1.02);
}
.rpmr-navlinks a:hover, .rpmr-burger:hover {
  box-shadow: 0 3px 16px 0 var(--a, #7c3aed22), 0 0 0 1px var(--b, #22d3ee22);
  transform: translateY(-1px) scale(1.01) rotate(-0.5deg);
  background: linear-gradient(90deg, var(--a, #7c3aed) 0%, var(--b, #22d3ee) 100%) !important;
  color: #fff;
  border-color: var(--b, #22d3ee);
}

/* =========================
   Section Dividers / Visual Separation
   ========================= */
.rpmr-section {
  position: relative;
}

/* Soft divider line at the top of each section (except the first) */
.rpmr-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    rgba(34, 211, 238, 0.18),
    rgba(124, 58, 237, 0.18),
    rgba(255, 255, 255, 0.14),
    transparent
  );
  opacity: 0.6;
}

/* Alternating section "panel" backgrounds to clearly separate blocks */
.rpmr-section:nth-of-type(even)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
      900px 420px at 20% 30%,
      rgba(124, 58, 237, 0.14),
      transparent 60%
    ),
    radial-gradient(
      760px 380px at 85% 55%,
      rgba(34, 211, 238, 0.12),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Ensure the section content sits above the background panel */
.rpmr-section > .rpmr-container {
  position: relative;
  z-index: 1;
}

/* Add a bit more breathing room between sections */
.rpmr-section {
  padding: 74px 0;
}

@media (max-width: 760px) {
  .rpmr-section {
    padding: 56px 0;
  }
}

/* =========================
   Unique Section Header Layouts
   ========================= */

/* SERVICES: centered header with subtle underline accent */
.rpmr-section-head-services {
  justify-content: center;
  text-align: center;
}

/* Ensure Services kicker/title/description are vertically stacked */
.rpmr-section-head-services > div {
  max-width: 78ch;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* PROJECTS: reverted to default `.rpmr-section-head` layout (no custom split) */
/* (intentionally no overrides for `.rpmr-section-head-projects`) */

/* PROJECTS: restore accent bar next to kicker/title for color + definition */
.rpmr-section-head-projects > div {
  position: relative;
  padding-left: 18px;
}
.rpmr-section-head-projects > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--b), var(--a));
  opacity: 0.95;
  box-shadow:
    0 18px 40px rgba(124, 58, 237, 0.18);
}

/* PROCESS: centered "panel" header (distinct from Projects) */
.rpmr-section-head-process {
  justify-content: center;
  text-align: center;
}
/* Ensure the Process subtitle is centered (override global max-width + margins) */
.rpmr-section-head-process .rpmr-subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.rpmr-section-head-process > div {
  width: 100%;
  max-width: 740px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(
      520px 240px at 25% 35%,
      rgba(34, 211, 238, 0.12),
      transparent 60%
    ),
    radial-gradient(
      560px 260px at 80% 60%,
      rgba(124, 58, 237, 0.12),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 760px) {
  .rpmr-section-head-process {
    text-align: left;
    justify-content: flex-start;
  }
  .rpmr-section-head-process .rpmr-subtitle {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .rpmr-section-head-process > div {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}