/* ===================================================================
   Rosa Roubini — Custom Portfolio CSS
   ===================================================================
   - Spline 3D hero (web component positioned as background)
   - SVG draw-in effect on unique section
   - Floating 3D-inspired decorative shapes
   - Light mode overrides specific to Rosa brand
   ================================================================= */

/* ── Hero: Spline 3D fullscreen, text in corners like live site ── */
.rr-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

.rr-hero spline-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Top: ROSA ——— curved SVG line ——— ROUBINI (pulled from rosa-roubini.com) */
.rr-hero__top {
  position: absolute;
  z-index: 5;
  top: 100px;
  left: 0;
  right: 0;
  display: grid;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem) 0;
}

.rr-hero__name {
  font-family: 'Syncopate', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 50px);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1;
  color: #000;
}

.rr-hero__line {
  height: 15px;
  width: 100%;
  margin-top: 4px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1312' height='15' fill='none' viewBox='0 0 1312 15'%3E%3Cpath stroke='%23C9C9C9' d='M0 14.5h696.5L710 1h602'/%3E%3C/svg%3E") 50% center / contain no-repeat;
}

/* Bottom: subtitle centered + scroll */
.rr-hero__bottom {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem clamp(1.5rem, 3vw, 2.5rem);
  gap: 1rem;
}

.rr-hero__subtitle {
  font-size: clamp(0.65rem, 0.9vw, 0.85rem);
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

.rr-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.rr-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: rrScrollPulse 2s ease-in-out infinite;
}

@keyframes rrScrollPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(5px); }
}


/* ── Unique section: SVG draw-in ── */
.rr-unique {
  position: relative;
  overflow: hidden;
}

.rr-unique__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rr-unique__mesh canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.45;
}

.rr-unique .pf-unique__layer {
  position: relative;
  z-index: 2;
}


/* ── Floating decorative shapes ── */
.rr-float-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.rr-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  animation: rrFloat 8s ease-in-out infinite alternate;
}

@keyframes rrFloat {
  0% {
    opacity: 0.04;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0.08;
    transform: translateY(-30px) rotate(15deg);
  }
}

/* Individual shape positions and brand colours */
.rr-float--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #0030c2 0%, transparent 70%);
  top: 5%; left: -5%;
}
.rr-float--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #f29100 0%, transparent 70%);
  top: 25%; right: -3%;
}
.rr-float--3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #e94d81 0%, transparent 70%);
  top: 45%; left: 10%;
}
.rr-float--4 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, #a640b8 0%, transparent 70%);
  top: 65%; right: 15%;
}
.rr-float--5 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #009ee2 0%, transparent 70%);
  top: 80%; left: 5%;
}
.rr-float--6 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #0030c2 0%, transparent 70%);
  top: 10%; right: 8%;
}


/* ── What They Wanted: image min-height ── */
.pf-wanted .pf-wanted__img-wrap {
  min-height: 500px;
  overflow: hidden;
}

.pf-wanted .pf-wanted__img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 768px) {
  .pf-wanted .pf-wanted__img-wrap,
  .pf-wanted .pf-wanted__img-wrap img {
    min-height: 350px;
  }
}

/* ── Scope pills: gradient text (Rosa Roubini brand) ── */
.pf-scope__item {
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  -webkit-text-fill-color: transparent !important;
  background-image: linear-gradient(135deg, #F29100 0%, #E94D81 27%, #A640B8 41%, #5B32F7 53%, #0030C2 78%, #009EE2 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  font-weight: 600 !important;
}

/* Shimmer sweep uses the same gradient instead of single accent colour */
.pf-scope__item::before {
  background: linear-gradient(90deg, transparent, rgba(242, 145, 0, 0.06), rgba(233, 77, 129, 0.08), rgba(166, 64, 184, 0.06), transparent) !important;
}

/* ── Rosa light mode specific overrides ── */
.pf-light .pf-cta__bg {
  mix-blend-mode: multiply;
  opacity: 0.2;
  top: 55%;
  left: 45%;
  transform: translate(-38%, -38%) rotate(-133deg);
  height: 160%;
}

/* Brand-specific before-pseudo on overview */
.rr-hero + .pf-overview::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--pf-bg), transparent);
  pointer-events: none;
}

/* New-build callout (replaces before/after) */
.rr-new-build {
  padding: 2rem 8vw;
  background: var(--pf-bg);
  text-align: center;
}

.rr-new-build__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 48, 194, 0.2);
  background: rgba(0, 48, 194, 0.04);
  font-size: 0.85rem;
  color: #0030c2;
  font-weight: 500;
  letter-spacing: 0.04em;
}


/* ── Responsive ── */
@media (max-width: 768px) {
  .rr-hero {
    min-height: 85vh;
  }

  .rr-hero spline-viewer {
    opacity: 0.5;
  }

  .rr-hero__top {
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
    top: 80px;
  }

  .rr-hero__line {
    display: none;
  }

  .rr-hero__logo {
    width: 180px;
  }

  .rr-unique__svg-wrap {
    display: none;
  }

  .rr-float {
    display: none;
  }

  .rr-hero__scroll {
    bottom: 1.5rem;
  }
}
