/*
Modern portfolio polish for Rob Scarcella Jr.
Loaded after the legacy theme styles so the uplift stays isolated.
*/
:root {
  --rsjr-ink: #101820;
  --rsjr-muted: #5d6875;
  --rsjr-panel: #ffffff;
  --rsjr-soft: #f4f7fb;
  --rsjr-line: rgba(16, 24, 32, 0.12);
  --rsjr-green: #07cb79;
  --rsjr-cyan: #20b8d7;
  --rsjr-gold: #f0b84a;
}

body {
  background: var(--rsjr-soft);
  color: var(--rsjr-ink);
}

p {
  color: var(--rsjr-muted);
}

.content-scroller {
  background: var(--rsjr-soft);
}

.header {
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.96), rgba(25, 39, 52, 0.98)),
    url("../images/bg/01.jpg") center/cover;
  box-shadow: 18px 0 50px rgba(16, 24, 32, 0.18);
}

.navbar-brand > img {
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.navbar-default .navbar-nav > li > a {
  letter-spacing: 0;
}

.navbar-default .navbar-nav > li > a.active,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
  color: #ffffff;
  background: rgba(7, 203, 121, 0.12);
  box-shadow: 5px 0 0 0 var(--rsjr-green) inset;
  border-right: 0;
}

.rsjr-hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #101820;
  isolation: isolate;
}

.rsjr-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.78) 0%, rgba(16, 24, 32, 0.64) 42%, rgba(16, 24, 32, 0.18) 100%),
    url("../images/hero-tech-workspace.png") center/cover;
  transform: scale(1.02);
  z-index: -2;
}

.rsjr-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0), rgba(244, 247, 251, 1));
  z-index: -1;
}

.rsjr-hero__content {
  width: min(1040px, calc(100% - 80px));
  margin: 0 auto;
  padding: 96px 0 120px;
}

.rsjr-eyebrow {
  margin: 0 0 18px;
  color: var(--rsjr-green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.rsjr-eyebrow--dark {
  color: #047d54;
}

.rsjr-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.rsjr-hero__lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
  line-height: 1.55;
}

.rsjr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.rsjr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid transparent;
  letter-spacing: 0;
}

.rsjr-button:hover,
.rsjr-button:focus {
  color: #ffffff;
  transform: translateY(-2px);
}

.rsjr-button--primary {
  background: linear-gradient(135deg, var(--rsjr-green), var(--rsjr-cyan));
  box-shadow: 0 16px 35px rgba(7, 203, 121, 0.24);
}

.rsjr-button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.rsjr-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}

.rsjr-hero__stats div {
  min-height: 130px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.rsjr-hero__stats strong {
  display: block;
  color: #ffffff;
  font-size: 21px;
  margin-bottom: 8px;
}

.rsjr-hero__stats span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.white-bg {
  background: #ffffff;
}

.page-section,
.page-section-pt {
  padding-top: 72px;
  padding-bottom: 72px;
}

.rsjr-section-heading {
  max-width: 920px;
  margin: 0 0 42px;
}

.rsjr-section-heading--compact {
  margin-bottom: 34px;
}

.rsjr-section-heading h2 {
  margin: 0;
  color: var(--rsjr-ink);
  font-family: "Raleway", sans-serif;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 900;
}

.rsjr-section-heading p:not(.rsjr-eyebrow) {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.about.white-bg,
.resume.white-bg,
.portfolio.white-bg,
.my-skill.white-bg,
.testimonials.white-bg {
  margin: 0;
}

.contact-block,
.resume-block,
.testimonials-block,
.portfolio-item .item {
  border: 1px solid var(--rsjr-line);
  background: var(--rsjr-panel);
  box-shadow: 0 18px 45px rgba(16, 24, 32, 0.08);
}

.contact-block {
  padding: 8px 28px 28px;
}

.my-contact {
  min-height: 92px;
  padding: 18px 0;
  margin-top: 22px;
}

.my-contact .contact-icon span {
  color: var(--rsjr-green);
}

.my-contact .contact-info h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--rsjr-muted);
}

.my-contact .contact-info p,
.my-contact .contact-info p a {
  color: var(--rsjr-ink);
  word-break: break-word;
}

.about-block p {
  font-style: normal;
}

.about-carousel,
.about-carousel .item img {
  border-radius: 6px;
  overflow: hidden;
}

.about-social {
  border-radius: 0 0 6px 6px;
  background: linear-gradient(135deg, var(--rsjr-green), var(--rsjr-cyan));
}

.btn.btn-success {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--rsjr-green), var(--rsjr-cyan));
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(7, 203, 121, 0.2);
}

.section-title {
  margin-bottom: 56px;
}

.title-name-gray {
  left: 120px;
}

.title-name-gray strong {
  color: rgba(16, 24, 32, 0.055);
}

.rsjr-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.rsjr-proof-grid div,
.rsjr-process-grid div,
.rsjr-skill-summary div,
.rsjr-project-card {
  border: 1px solid var(--rsjr-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(16, 24, 32, 0.07);
}

.rsjr-proof-grid div {
  padding: 18px;
}

.rsjr-proof-grid strong,
.rsjr-process-grid strong,
.rsjr-skill-summary strong {
  display: block;
  color: var(--rsjr-ink);
  font-size: 16px;
  margin-bottom: 7px;
}

.rsjr-proof-grid span,
.rsjr-process-grid span {
  display: block;
  color: var(--rsjr-muted);
  line-height: 1.55;
}

.resume-block {
  padding: 32px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.resume-block:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--rsjr-green), var(--rsjr-cyan));
}

.resume-block + .resume-block {
  margin-top: 24px;
}

.resume-name h3,
.resume-info h3,
.knowledge h3,
.rsjr-service-card h3 {
  letter-spacing: 0;
}

.knowledge ul {
  padding-left: 0;
}

.knowledge ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.knowledge ul li span {
  color: #047d54;
}

.rsjr-project-panel {
  padding: 34px;
  border: 1px solid var(--rsjr-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(16, 24, 32, 0.08);
}

.rsjr-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.rsjr-project-card {
  min-height: 220px;
  padding: 26px;
}

.rsjr-project-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 22px;
  background: var(--rsjr-ink);
}

.rsjr-project-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.rsjr-project-card p {
  margin: 0;
  line-height: 1.65;
}

.rsjr-services {
  background:
    linear-gradient(135deg, rgba(244, 247, 251, 0.96), rgba(255, 255, 255, 0.96)),
    url("../images/bg/02.jpg") center/cover;
}

.rsjr-services h2 {
  max-width: 820px;
  margin: 0;
  color: var(--rsjr-ink);
  font-family: "Raleway", sans-serif;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 900;
}

.rsjr-services__intro {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.7;
}

.rsjr-service-grid {
  margin-top: 38px;
}

.rsjr-service-card {
  min-height: 292px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--rsjr-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(16, 24, 32, 0.09);
}

.rsjr-service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--rsjr-green), var(--rsjr-cyan));
}

.rsjr-service-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
}

.rsjr-service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.rsjr-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 28px;
}

.rsjr-process-grid div {
  padding: 22px;
}

.rsjr-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 6px;
  background: var(--rsjr-ink);
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.18);
}

.rsjr-cta-band strong,
.rsjr-cta-band span {
  display: block;
}

.rsjr-cta-band strong {
  color: #ffffff;
  font-size: 22px;
}

.rsjr-cta-band span {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 5px;
}

.portfolio-item .item-hover {
  border-radius: 6px;
  overflow: hidden;
}

.portfolio-item .item-info {
  background: rgba(16, 24, 32, 0.9);
}

.portfolio .isotope {
  margin-top: 18px;
}

.my-skill .knowledge > .row:first-child h2 {
  margin-top: 0;
}

.rsjr-skill-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.rsjr-skill-summary div {
  min-height: 210px;
  padding: 24px;
}

.rsjr-skill-summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--rsjr-green), var(--rsjr-cyan));
}

.rsjr-skill-summary p {
  margin: 8px 0 0;
  line-height: 1.65;
}

.rsjr-skill-list {
  padding: 30px;
  border: 1px solid var(--rsjr-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(16, 24, 32, 0.06);
}

.rsjr-skill-list h3 {
  margin-top: 26px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rsjr-line);
  font-size: 18px;
  font-weight: 800;
}

.testimonials-block {
  border-radius: 6px;
  padding-bottom: 1px;
  min-height: 230px;
}

.testimonials-comment {
  border-left-color: var(--rsjr-green);
}

@media (max-width: 992px) {
  .menu-responsive {
    background: rgba(16, 24, 32, 0.96);
    box-shadow: 0 12px 30px rgba(16, 24, 32, 0.18);
  }

  .rsjr-hero {
    min-height: auto;
  }

  .rsjr-hero__content {
    width: calc(100% - 40px);
    padding: 108px 0 80px;
  }

  .rsjr-hero__stats {
    grid-template-columns: 1fr;
  }

  .rsjr-proof-grid,
  .rsjr-project-grid,
  .rsjr-process-grid,
  .rsjr-skill-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-section,
  .page-section-pt {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .rsjr-hero__lead {
    font-size: 18px;
  }

  .rsjr-hero__actions {
    display: grid;
  }

  .rsjr-button {
    width: 100%;
  }

  .contact-block,
  .resume-block {
    padding: 24px;
  }

  .rsjr-services h2 {
    font-size: 32px;
  }

  .rsjr-section-heading h2 {
    font-size: 32px;
  }

  .rsjr-proof-grid,
  .rsjr-project-grid,
  .rsjr-process-grid,
  .rsjr-skill-summary {
    grid-template-columns: 1fr;
  }

  .rsjr-project-panel,
  .rsjr-skill-list {
    padding: 22px;
  }

  .rsjr-cta-band {
    display: block;
  }

  .rsjr-cta-band .rsjr-button {
    margin-top: 20px;
  }
}
