/* ══════════════════════════════════════════════════════════════════════
   Global reset
══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* ══════════════════════════════════════════════════════════════════════
   INDEX PAGE  (body.index-body)
══════════════════════════════════════════════════════════════════════ */

.index-body {
  background: #0d0d0d;
  color: #fff;
  font-family: 'Geist Sans', 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Pill base (shared desktop + mobile) ── */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  padding: 12px 24px 14px;
  font-family: 'Geist Sans', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.18px;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pill:focus-visible,
.idx-case__image-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Dark pill variant for mobile nav */
.pill--dark {
  background: rgba(0, 0, 0, 0.30);
}

.pill--dark:hover {
  background: rgba(0, 0, 0, 0.45);
}

/* ── Desktop nav pills (fixed top-right) ── */

.nav-pills {
  position: fixed;
  top: 30px;
  right: 30px;
  display: flex;
  gap: 4px;
  z-index: 200;
}

/* ── Mobile bottom nav (hidden on desktop, shown via mobile.css) ── */

.mobile-bottom-nav {
  display: none;
}

/* ── Page content wrapper ── */

.page-content {
  padding-top: 30px;
  padding-bottom: 80px;
  padding-right: 24px;
  padding-left: 24px;
}

@media (min-width: 1001px) {
  .page-content {
    padding-left: 60px;
    padding-right: 330px;
  }
}

@media (min-width: 1200px) {
  .page-content {
    padding-left: 330px;
    padding-right: 330px;
  }
}

/* ── Profile ── */

.profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  max-width: 780px;
  margin-bottom: 75px;
}

.profile__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 549px;
  padding: 12px 0;
}

.profile__name {
  font-family: 'Geist Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
}

.profile__bio {
  font-family: 'Geist Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: #fff;
}

/* ── Cases list ── */

.index-cases {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 780px;
}

/* ── Single case ── */

.idx-case {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Image card */
.idx-case__image {
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.10);
  height: 501px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: opacity 0.2s ease;
}

/* Case 1 background layers */
.idx-case__image--case1 {
  background: #0d0d0d;
}

.idx-case__image--case2 {
  background: #0d0d0d;
}

.idx-case__image--remodel {
  background: #0d0d0d;
}

.idx-case__bg-img {
  position: absolute;
  left: -1px;
  top: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.idx-case__bg-img--remodel {
  opacity: 0.8;
}

.idx-case__rive {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.idx-case__image-link {
  display: block;
  text-decoration: none;
}

.idx-case__content {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.idx-case__image-link:hover .idx-case__content {
  transform: scale(1.06);
}

/* Phone frame inside card */
.idx-case__phone {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10.56%;
  bottom: -51.43%;
  aspect-ratio: 996 / 2160;
  border: 2px solid rgba(255, 255, 255, 0.04);
  border-radius: 40px;
  overflow: hidden;
}

.idx-case__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Interior case phone — slightly different crop */
.idx-case__phone--interior {
  top: 9.58%;
  bottom: -41.12%;
  left: 50%;
  border-radius: 40px;
}

.idx-case__phone-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 40px;
}

.idx-case__interior-img {
  position: absolute;
  top: -19.26%;
  left: -0.11%;
  width: 100.21%;
  height: 100%;
  object-fit: cover;
}

/* Meta: metrics + description */
.idx-case__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.idx-case__metrics {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.idx-metric {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.idx-metric__label {
  font-family: 'Geist Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 21.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.idx-metric__value {
  font-family: 'Geist Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 21.6px;
  color: rgba(255, 255, 255, 0.6);
}

.idx-case__desc {
  font-family: 'Geist Sans', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pill,
  .idx-case__content {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   CASE PAGES  (body.case-body)
   These styles mirror the original style.css rules the case pages depend on.
══════════════════════════════════════════════════════════════════════ */

.case-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  color: #fff;
  background-color: #e5baf5;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

.case-body .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.case-body .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(229, 186, 245, 0.08);
  z-index: 1000;
  height: 124px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.case-body .header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(229, 186, 245, 0.12) 0%,
    rgba(229, 186, 245, 0.08) 55%,
    rgba(229, 186, 245, 0) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.case-body .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  width: 100%;
}

.case-body .nav-left,
.case-body .nav-right {
  color: #fff;
  flex: 1;
}

.case-body .nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: rgba(220, 169, 239, 1);
  border-radius: 100px;
  padding: 16px 40px;
  height: 78px;
}

.case-body .nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.case-body .nav-item:hover {
  opacity: 0.7;
}

.case-body .btn-cv-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 32rem;
  height: 64px;
  padding-left: 42px;
  padding-right: 42px;
  text-decoration: none;
  color: #fff;
  background-color: #f04b23;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-body .btn-cv-pdf:hover {
  transform: scale(1.04);
}

/* Mobile pill shown in case page nav on mobile */
.mobile-nav-pill {
  display: none;
}

.mobile-nav-pill-link {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.2px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.mobile-nav-pill-link:hover {
  opacity: 0.7;
}

/* Burger button (hidden on desktop, mobile.css shows it) */
.mobile-burger {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* Case page responsive */
@media (max-width: 1000px) {
  .case-body .container {
    padding: 0 20px;
  }

  .case-body .header {
    height: 124px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .case-body .btn-cv-pdf {
    font-size: 16px;
    height: 50px;
    padding-left: 28px;
    padding-right: 28px;
  }
}
