:root {
  color-scheme: dark;
  --bg: #07101c;
  --panel: rgba(17, 27, 43, 0.88);
  --panel-strong: rgba(22, 34, 53, 0.95);
  --line: rgba(186, 200, 222, 0.15);
  --text: #f7f9ff;
  --muted: #9caac1;
  --orange: #ff6b35;
  --amber: #ffb13d;
  --green: #20d49b;
  --blue: #4ca3ff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 53, 0.19), transparent 34%),
    radial-gradient(circle at 12% 22%, rgba(76, 163, 255, 0.13), transparent 26%),
    linear-gradient(135deg, #040a13 0%, var(--bg) 48%, #0c1321 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.14));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
textarea,
input {
  font: inherit;
}

.portfolio-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  width: min(1260px, calc(100% - 48px));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
  padding-right: 300px;
  pointer-events: none;
}

.portfolio-nav::before {
  position: fixed;
  inset: 0 0 auto;
  height: 88px;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(4, 10, 19, 0.92), rgba(4, 10, 19, 0));
}

.brand-link,
.portfolio-nav nav {
  pointer-events: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-link > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), #ff8b4a);
  font-weight: 900;
}

.brand-link strong {
  font-size: 20px;
  line-height: 1;
}

.brand-link strong span {
  color: var(--orange);
}

.portfolio-nav nav {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(186, 200, 222, 0.14);
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.68);
  backdrop-filter: blur(16px);
}

.portfolio-nav nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #b2bed2;
  font-size: 13px;
  font-weight: 900;
}

.portfolio-nav nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.portfolio-shell {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
  padding: 108px 0 104px;
}

.back-btn {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 107, 53, 0.28);
  border-radius: 8px;
  color: #ff9b6e;
  background: rgba(255, 107, 53, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.profile-hero,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.profile-hero {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel-strong);
}

.profile-media {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.profile-img {
  width: 220px;
  height: 220px;
  display: block;
  border: 1px solid rgba(255, 107, 53, 0.44);
  border-radius: 8px;
  object-fit: cover;
  background: #0b1524;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.profile-live {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(32, 212, 155, 0.25);
  border-radius: 999px;
  color: #bdf7e1;
  background: rgba(32, 212, 155, 0.09);
  font-size: 13px;
  font-weight: 900;
}

.profile-live::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(32, 212, 155, 0.13);
}

.profile-live.offline {
  border-color: rgba(156, 170, 193, 0.25);
  color: #c6d2e4;
  background: rgba(156, 170, 193, 0.09);
}

.profile-live.offline::before {
  background: #9caac1;
  box-shadow: 0 0 0 5px rgba(156, 170, 193, 0.13);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.verify,
.public-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.verify {
  color: #04150f;
  background: var(--green);
}

.public-pill {
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: #ff9b6e;
  background: rgba(255, 107, 53, 0.1);
}

.name,
.title,
.bio {
  margin: 0;
}

.name {
  max-width: 740px;
  color: #fff;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.title {
  margin-top: 14px;
  color: #ff9b6e;
  font-size: 19px;
  font-weight: 900;
}

.bio {
  max-width: 760px;
  margin-top: 14px;
  color: #c3cfe2;
  font-size: 16px;
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stat {
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(186, 200, 222, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.stat i {
  color: var(--orange);
}

.stat span {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.stat small {
  color: #7d8da6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover,
.back-btn:hover,
.portfolio-item:hover,
.service-list a:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.back-btn:focus-visible,
.brand-link:focus-visible,
.portfolio-nav nav a:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 177, 61, 0.42);
  outline-offset: 3px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--orange), #ff8b4a);
  box-shadow: 0 18px 46px rgba(255, 107, 53, 0.24);
}

.btn.secondary {
  color: #06101c;
  background: linear-gradient(135deg, #ffb13d, #ff8f1f);
}

.btn.ghost {
  border: 1px solid rgba(186, 200, 222, 0.2);
  color: #edf3ff;
  background: rgba(255, 255, 255, 0.045);
}

.full-width {
  width: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 16px;
  margin-top: 16px;
}

.lower-grid {
  grid-template-columns: minmax(340px, 0.58fr) minmax(0, 1.42fr);
}

.panel {
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(17, 27, 43, 0.9);
}

.section-head {
  margin-bottom: 18px;
}

.section-head span {
  color: #ff8a58;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 7px 0 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.portfolio-list,
.reviews-list,
.messages-box {
  display: grid;
  gap: 12px;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(186, 200, 222, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.portfolio-item:hover {
  border-color: rgba(255, 107, 53, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-image {
  min-height: 168px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.23), rgba(76, 163, 255, 0.16)),
    #0d1829;
  background-size: cover;
  background-position: center;
}

.portfolio-content {
  align-self: center;
  padding: 20px;
}

.portfolio-category {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ff9b6e;
  background: rgba(255, 107, 53, 0.1);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-item b,
.review-item b,
.message b {
  display: block;
  color: #fff;
  font-size: 16px;
}

.portfolio-item p,
.review-item p,
.message p {
  margin: 8px 0 0;
  color: #aebbd0;
  line-height: 1.6;
}

.portfolio-item a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: #ff9b6e;
  font-size: 13px;
  font-weight: 900;
}

.review-item,
.message {
  padding: 16px;
  border: 1px solid rgba(186, 200, 222, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.review-stars {
  margin-bottom: 9px;
  color: var(--amber);
  font-weight: 900;
}

.slot-grid {
  display: grid;
  gap: 10px;
}

.slot-card {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(32, 212, 155, 0.18);
  border-radius: 8px;
  color: #d6fff0;
  background: rgba(32, 212, 155, 0.07);
  font-weight: 900;
}

.slot-card::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(32, 212, 155, 0.11);
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(186, 200, 222, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 16, 28, 0.82);
  outline: 0;
}

textarea::placeholder {
  color: #76869f;
}

.file-upload {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 0 14px;
  border: 1px dashed rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  color: #ffba96;
  background: rgba(255, 107, 53, 0.07);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

#questionFile {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .portfolio-nav {
    padding-right: 86px;
  }

  .portfolio-nav nav {
    display: none;
  }

  .profile-hero,
  .portfolio-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    align-items: start;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portfolio-nav,
  .portfolio-shell {
    width: min(100% - 28px, 1260px);
  }

  .portfolio-nav {
    min-height: 72px;
    padding-right: 68px;
  }

  .portfolio-shell {
    padding: 88px 0 96px;
  }

  .profile-hero,
  .panel {
    padding: 20px;
  }

  .profile-media {
    justify-items: start;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .name {
    font-size: 40px;
    line-height: 1.05;
  }

  .stats,
  .portfolio-item {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    display: grid;
  }

  .portfolio-image {
    min-height: 180px;
  }
}

@media (max-width: 430px) {
  .portfolio-nav,
  .portfolio-shell {
    width: min(100% - 20px, 1260px);
  }

  .brand-link strong {
    display: none;
  }

  .name {
    font-size: 34px;
  }

  .section-head h2 {
    font-size: 22px;
  }
}
