/* =========================================================
   Inner pages — shared hero, about, services
   ========================================================= */

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  padding-top: clamp(144px, 17vh, 196px);
  padding-bottom: clamp(42px, 6vw, 70px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(38px, 6vw, 80px);
  align-items: center;
}

.page-hero__title {
  margin: 18px 0 22px;
  font-size: clamp(2.9rem, 6.4vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.page-hero__lead {
  max-width: 610px;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.75;
  color: var(--muted);
}

.page-hero__meta {
  display: flex;
  margin-top: 28px;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.page-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-hero__meta .icon {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.page-hero__aside {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
}

.page-hero__orb--1 {
  top: -36px;
  right: 8%;
  width: 240px;
  height: 240px;
  background: rgba(139, 92, 246, 0.22);
}

.page-hero__orb--2 {
  bottom: -26px;
  left: 2%;
  width: 200px;
  height: 200px;
  background: rgba(34, 211, 238, 0.13);
}

/* ---------- Mini profile ---------- */

.mini-profile {
  width: min(100%, 385px);
  overflow: hidden;
  padding: 11px;
  border-radius: 32px;
}

.mini-profile__image {
  display: flex;
  height: 315px;
  overflow: hidden;
  align-items: flex-end;
  justify-content: center;
  border-radius: 23px;
  background:
    radial-gradient(80% 65% at 50% 15%, rgba(139, 92, 246, 0.38), transparent 66%),
    radial-gradient(70% 55% at 80% 80%, rgba(34, 211, 238, 0.16), transparent 70%),
    linear-gradient(165deg, #171b30 0%, #0a0c17 100%);
}

.mini-profile__image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.5));
}

.mini-profile__body {
  display: flex;
  padding: 18px 13px 11px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.mini-profile__body > strong {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.mini-profile__body > span:not(.chip) {
  font-size: 0.7rem;
  color: var(--muted);
}

.mini-profile__stats {
  display: grid;
  width: 100%;
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-profile__stats div {
  text-align: center;
}

.mini-profile__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mini-profile__stats span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.about-media {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.about-media__note {
  position: absolute;
  right: -34px;
  bottom: -30px;
  z-index: 3;
  display: flex;
  width: min(300px, 88%);
  padding: 16px;
  align-items: flex-start;
  gap: 11px;
  border-radius: 18px;
  transform: rotate(2deg);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}

.about-media__note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet-soft);
}

.about-media__note-icon .icon {
  width: 16px;
  height: 16px;
}

.about-media__note strong {
  display: block;
  font-size: 0.72rem;
}

.about-media__note span {
  display: block;
  margin-top: 2px;
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--muted);
}

.about-media__ring {
  position: absolute;
  inset: -34px;
  z-index: -1;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.about-copy .section-title {
  margin: 14px 0 20px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.about-copy .lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.72;
  color: var(--text);
}

.about-copy > p + p {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

.about-copy strong {
  color: var(--text-soft);
}

.about-copy__signature {
  display: flex;
  margin-top: 30px;
  padding-top: 24px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-copy__signature img {
  width: auto;
  height: 34px;
}

.about-copy__signature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}

.about-copy__signature span {
  display: block;
  margin-top: 2px;
  font-size: 0.65rem;
  color: var(--muted);
}

/* ---------- Facts ---------- */

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

.fact {
  display: flex;
  padding: 19px;
  align-items: center;
  gap: 13px;
  border-radius: 18px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.fact:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.fact__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.11);
  color: var(--violet-soft);
}

.fact__icon .icon {
  width: 17px;
  height: 17px;
}

.fact__label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact__value {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.3s;
}

a.fact__value:hover {
  color: var(--cyan);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding-left: 44px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 20px;
  width: 1px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.65), rgba(34, 211, 238, 0.3) 55%, transparent);
}

.timeline__item {
  position: relative;
  padding: 25px 28px;
  border-radius: 22px;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}

.timeline__item + .timeline__item {
  margin-top: 16px;
}

.timeline__item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.timeline__marker {
  position: absolute;
  top: 25px;
  left: -44px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 50%;
  background: #0a0c17;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.18);
  color: var(--violet-soft);
}

.timeline__marker .icon {
  width: 16px;
  height: 16px;
}

.timeline__phase {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
}

.timeline__content h3 {
  margin: 6px 0 7px;
  font-size: 1.15rem;
}

.timeline__content p {
  max-width: 700px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Skills ---------- */

.skills-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.skills-panel {
  padding: 32px;
  border-radius: 28px;
}

.skill-row + .skill-row {
  margin-top: 23px;
}

.skill-row__top {
  display: flex;
  margin-bottom: 8px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.skill-row__top span {
  font-size: 0.84rem;
  font-weight: 700;
}

.skill-row__top small {
  margin-left: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
}

.skill-row__top strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
}

.skill-row__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.skills-panel__footer {
  display: flex;
  margin-top: 30px;
  padding-top: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
}

.skills-panel__footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.skills-panel__footer .icon {
  width: 13px;
  height: 13px;
  color: var(--cyan);
}

.skills-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skills-aside__card {
  padding: 26px;
  border-radius: 24px;
}

.skills-aside__icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 13px;
}

.skills-aside__icon .icon {
  width: 19px;
  height: 19px;
}

.skills-aside__card h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
}

.mini-list li {
  position: relative;
  padding-left: 17px;
  font-size: 0.77rem;
  line-height: 1.55;
  color: var(--muted);
}

.mini-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

/* ---------- Values & hobbies ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.value-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.value-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.11);
  color: var(--violet-soft);
}

.value-card__icon .icon {
  width: 20px;
  height: 20px;
}

.value-card__number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.24);
}

.value-card h3 {
  margin-bottom: 7px;
  font-size: 1.12rem;
}

.value-card p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.hobby-card {
  padding: 24px;
  border-radius: 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.hobby-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.hobby-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.09);
  color: var(--cyan);
}

.hobby-card__icon .icon {
  width: 18px;
  height: 18px;
}

.hobby-card h3 {
  margin-bottom: 5px;
  font-size: 0.96rem;
}

.hobby-card p {
  font-size: 0.76rem;
  line-height: 1.58;
  color: var(--muted);
}

/* ---------- Services page ---------- */

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-detail {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 32px;
  flex-direction: column;
  border-radius: 28px;
  scroll-margin-top: 120px;
  transition: transform 0.45s var(--ease), border-color 0.4s;
}

.service-detail:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.service-detail__head {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-detail__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
}

.service-detail__icon .icon {
  width: 23px;
  height: 23px;
}

.service-detail__number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.22);
}

.service-detail h2 {
  margin-bottom: 5px;
  font-size: 1.55rem;
}

.service-detail__tagline {
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.service-detail__description {
  margin-bottom: 22px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.feature-list {
  display: flex;
  margin-bottom: 24px;
  flex-direction: column;
  gap: 9px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.feature-list__icon {
  display: grid;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  color: var(--emerald);
}

.feature-list__icon .icon {
  width: 11px;
  height: 11px;
}

.service-detail__footer {
  display: flex;
  margin-top: auto;
  padding-top: 19px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ---------- Code card ---------- */

.code-card {
  width: min(100%, 445px);
  overflow: hidden;
  border-radius: 22px;
  background: rgba(6, 8, 15, 0.88);
  box-shadow: var(--shadow-lg);
}

.code-card__bar {
  display: flex;
  padding: 12px 16px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.code-card__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.code-card__bar span:nth-child(1) { background: #f87171; }
.code-card__bar span:nth-child(2) { background: #fbbf24; }
.code-card__bar span:nth-child(3) { background: #34d399; }

.code-card__bar em {
  overflow: hidden;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-card__code {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  line-height: 1.8;
  color: #cbd5e1;
  white-space: pre;
}

.code-key { color: #c4b5fd; }
.code-fn { color: #67e8f9; }
.code-str { color: #86efac; }

.code-card__footer {
  display: flex;
  padding: 12px 18px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--muted);
}

.code-card__cursor {
  width: 6px;
  height: 11px;
  margin-left: auto;
  background: var(--cyan);
  animation: blink 1.1s steps(2) infinite;
}

/* ---------- Process ---------- */

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.35), transparent);
  z-index: 0;
}

.process-card {
  position: relative;
  z-index: 1;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(9, 11, 21, 0.48);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.process-card__top {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.process-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: #0a0c17;
  box-shadow: 0 0 0 6px rgba(5, 6, 11, 0.75);
  color: var(--violet-soft);
}

.process-card__icon .icon {
  width: 19px;
  height: 19px;
}

.process-card__number {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
}

.process-card h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.process-card p {
  font-size: 0.76rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- Toolbox panel ---------- */

.toolbox-panel {
  display: grid;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 30px;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.toolbox-panel__copy p {
  max-width: 420px;
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.toolbox-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
