/* ================== THEME ================== */
:root {
  --brand: #7b5cff;
  --brand-2: #00d2ff;
  --surface: #121831;
  --text: #e9efff;
  --muted: #a2aec7;
  --shadow-dark: rgba(0, 0, 0, .55);
  --shadow-light: rgba(255, 255, 255, .06);
  --radius: 18px;
  --maxw: 880px;
}

/* Base reset */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #0a0f21;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ---------- FIXED BACKGROUND ---------- */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.bg-vignette {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(123, 92, 255, .25), transparent 60%),
    radial-gradient(1000px 700px at 90% 110%, rgba(0, 210, 255, .22), transparent 60%),
    radial-gradient(900px 700px at -10% 100%, rgba(255, 83, 137, .16), transparent 60%),
    radial-gradient(60% 80% at 50% 50%, rgba(255, 255, 255, .03), transparent 70%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'>\
  <filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/></filter>\
  <rect width='128' height='128' filter='url(%23n)'/></svg>");
}

/* Tagline under company name */
.tagline {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--muted);
}

/* (optional) make it slimmer on tiny screens */
@media (max-width:360px) {
  .tagline {
    font-size: 12px
  }
}


/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px clamp(14px, 3.5vw, 24px) calc(160px + env(safe-area-inset-bottom, 0));
  position: relative;
}

/* Neumorphic base */
.neo {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, .05);
}

/* Glass across big blocks */
.hero.neo,
.card.neo,
.dock .bar.neo,
.modal .modal-box.neo,
.img-modal .box.neo {
  background: rgba(18, 24, 49, .10);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-color: rgba(255, 255, 255, .09);
}

/* Light theme */
body.light {
  --surface: #f2f6ff;
  --text: #121a2c;
  --muted: #58627a;
  --shadow-dark: rgba(0, 0, 0, .12);
  --shadow-light: #fff;
}

body.light .hero.neo,
body.light .card.neo,
body.light .dock .bar.neo,
body.light .modal .modal-box.neo,
body.light .img-modal .box.neo {
  background: rgba(242, 246, 255, .85);
  border-color: rgba(0, 0, 0, .06);
}

/* Inset tiles */
.neo-inset {
  background: rgba(18, 24, 49, .12);
  border-radius: 14px;
  box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, .03);
}

/* Buttons */
.neo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(123, 92, 255, .22), rgba(0, 210, 255, .20));
  box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
  transition: transform .15s ease, box-shadow .15s ease;
}

.neo-btn:hover {
  transform: translateY(-1px)
}

.neo-btn:active {
  transform: translateY(0);
  box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light)
}

.neo-btn.sm {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px
}

.neo-btn.close {
  position: absolute;
  top: 10px;
  right: 10px
}

/* Gradient headline text */
.gradient-text {
  font-family: 'Nunito Sans', sans-serif;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 26px 16px
}

.toggler {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 2
}

.toggler.left {
  left: 10px;
  right: auto
}

/* Views button */
#viewsBtn {
  display: inline-flex;
  gap: 6px
}

#viewsBtn i {
  font-size: 14px
}

#viewsCount {
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: right;
}

body.light #viewsCount {
  background: rgba(0, 0, 0, .08);
  color: #121a2c
}

.profile.logo-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center
}

.avatar.logo {
  width: 120px;
  height: 120px;
  border-radius: 10%;
  background: #ffffff center / cover no-repeat;
  position: relative;
  /* border: 2px solid rgba(255, 255, 255, .18); */
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 8px rgba(255, 255, 255, .03), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.avatar.logo::after {
  display: none !important
}

.profile.logo-layout #company {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: clamp(18px, 6vw, 28px);
  line-height: 1.1;
}

.profile.logo-layout .full {
  font-weight: 800;
  font-size: clamp(16px, 4.8vw, 22px);
  margin-top: 6px
}

.profile.logo-layout .role {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px
}

.profile.logo-layout .badges {
  justify-content: center;
  margin-top: 10px
}

/* Quick actions */
.qactions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px
}

@media (min-width:480px) {
  .qactions {
    grid-template-columns: repeat(4, 1fr)
  }
}

.qactions a {
  justify-content: center;
  white-space: nowrap
}

/* ---------- CARDS ---------- */
.card {
  margin-top: 16px;
  padding: 16px
}

.card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  font-family: 'Nunito Sans', sans-serif
}

.about {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7
}

/* ---------- SOCIAL ---------- */
.socials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding-block: 6px
}

.socials-grid a {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, rgba(123, 92, 255, .22), rgba(0, 210, 255, .20));
  box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
}

@media (max-width:360px) {
  .socials-grid a {
    width: 58px;
    height: 58px;
    font-size: 24px
  }
}

/* ---------- SMART LINKS ---------- */
.links {
  display: grid;
  gap: 10px;
  margin-top: 10px
}

.links a.link {
  color: var(--text);
  text-decoration: none
}

.links a.link:visited {
  color: var(--text)
}

.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}

.link .l {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.link .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(123, 92, 255, .25), rgba(0, 210, 255, .25))
}

.link .title {
  font-weight: 800;
  font-size: clamp(12px, 3.8vw, 14px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.link .sub {
  font-size: clamp(10px, 3.2vw, 12px);
  color: var(--muted)
}

.link .go {
  font-weight: 800;
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: clamp(11px, 3.6vw, 13px);
  border-radius: 12px
}

@media (max-width:390px) {
  .link {
    padding: 10px;
    gap: 8px
  }

  .link .icon {
    width: 34px;
    height: 34px
  }

  .link .go {
    padding: 7px 10px
  }
}

@media (max-width:350px) {
  .link {
    padding: 9px
  }

  .link .title {
    font-size: clamp(12px, 4.2vw, 13px)
  }

  .link .sub {
    display: none
  }

  .link .go {
    font-size: 12px;
    padding: 7px 9px
  }
}

@media (max-width:320px) {
  .link .icon {
    width: 30px;
    height: 30px
  }

  .link .go {
    font-size: 11px;
    padding: 6px 8px
  }
}

/* ---------- PHOTO CARDS ---------- */
.photos-head {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.cat-nav {
  position: sticky;
  top: 8px;
  z-index: 12;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  overflow: auto;
}

.cat-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(123, 92, 255, .22), rgba(0, 210, 255, .18));
}

.cat-nav a.active {
  outline: 2px solid rgba(255, 255, 255, .5)
}

body.light .cat-nav {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .08)
}

body.light .cat-nav a.active {
  outline: 2px solid rgba(0, 0, 0, .25)
}

.photo-sections .psec {
  margin-top: 14px;
  position: relative;
  text-align: center
}

.psec-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  font-family: 'Nunito Sans', sans-serif;
  background: linear-gradient(135deg, rgba(123, 92, 255, .28), rgba(0, 210, 255, .24));
  border: 1px solid rgba(255, 255, 255, .08);
  position: sticky;
  top: 8px;
  z-index: 1;
  margin-inline: auto;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.psec-title i {
  font-size: 14px
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px
}

@media (max-width:360px) {
  .gallery {
    grid-template-columns: 1fr
  }
}

.photo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(18, 24, 49, .10);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
  transition: transform .15s ease;
}

.photo-card:hover {
  transform: translateY(-2px)
}

.pc-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #0b0d14;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  cursor: pointer
}

.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.pc-media.r-9-16 {
  aspect-ratio: 9/16
}

.pc-media.r-3-4 {
  aspect-ratio: 3/4
}

.pc-media.r-1-1 {
  aspect-ratio: 1/1
}

.pc-media.r-16-9 {
  aspect-ratio: 16/9
}

.pc-meta {
  display: block;
  padding: 12px 12px 14px
}

.pc-title {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  white-space: normal;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: .2px
}

@media (min-width:480px) {
  .pc-title {
    font-size: 18px
  }
}

.pc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center
}

@media (max-width:360px) {
  .pc-actions .neo-btn {
    padding: 8px 10px;
    font-size: 12px
  }
}

/* ---------- CONTACT LIST ---------- */
.cols {
  display: grid;
  gap: 10px
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px
}

.row i {
  width: 22px;
  text-align: center;
  opacity: .9
}

.row span {
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere
}

/* Footer */
.copyline {
  opacity: .85;
  font-size: 15px;
  text-align: center;
  margin-top: 16px;
  color: #e9efff
}

body.light .copyline {
  color: #ffffff
}

/* ---------- Dock ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding-top: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  padding-left: max(12px, env(safe-area-inset-left, 0));
  padding-right: max(12px, env(safe-area-inset-right, 0));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(7, 10, 18, .75) 20%, rgba(7, 10, 18, .85) 100%);
  display: flex;
  justify-content: center;
}

.dock .bar {
  width: min(760px, calc(100vw - 24px - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0)));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px;
  flex-wrap: wrap;
}

.dock .bar .neo-btn {
  width: 72px;
  height: 56px;
  padding: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  min-width: 0
}

.dock .bar .neo-btn i {
  font-size: 26px
}

.dock .bar .neo-btn span {
  display: none
}

@media (max-width:390px) {
  .dock .bar .neo-btn {
    width: 58px;
    height: 54px
  }

  .dock .bar .neo-btn i {
    font-size: 24px
  }
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom, 0));
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 25;
}

.back-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto
}

/* ---------- Tiny devices ---------- */
@media (max-width:360px) {
  .toggler .neo-btn.sm {
    padding: 6px 8px;
    font-size: 11px
  }

  .qactions a span {
    display: none
  }

  .qactions a i {
    font-size: 16px
  }

  .profile.logo-layout #company {
    font-size: clamp(16px, 5.5vw, 22px)
  }

  .profile.logo-layout .full {
    font-size: clamp(14px, 4.5vw, 18px)
  }
}

/* Short-height screens */
@media (max-height:700px) {
  .wrap {
    padding-bottom: calc(200px + env(safe-area-inset-bottom, 0))
  }
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(123, 92, 255, .22), rgba(0, 210, 255, .20));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 8px 8px 16px rgba(0, 0, 0, .25), -4px -4px 12px rgba(255, 255, 255, .07);
  white-space: nowrap;
}

.badge i {
  font-size: 12px;
  opacity: .95
}

body.light .badge {
  background: rgba(255, 255, 255, .9);
  color: #121a2c;
  border-color: rgba(0, 0, 0, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 6px 6px 12px rgba(0, 0, 0, .10), -3px -3px 10px rgba(255, 255, 255, .75);
}

/* ---------- Modals ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .55);
  align-items: center;
  justify-content: center;
  padding: 20px
}

.modal-box {
  position: relative;
  padding: 18px
}

.modal-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Nunito Sans', sans-serif
}

.modal-title.center {
  text-align: center
}

.modal-body {
  display: grid;
  gap: 14px
}

.modal-body.centered {
  place-items: center
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.modal-actions.centered {
  justify-content: center
}

.qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  padding: 10px
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px
}

.qr-tip {
  font-size: 12px;
  color: var(--muted)
}

/* Image modal */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: radial-gradient(1200px 800px at 50% 60%, rgba(0, 0, 0, .88), rgba(0, 0, 0, .75));
  align-items: center;
  justify-content: center;
  padding: 18px
}

.img-modal .box {
  position: relative;
  padding: 12px
}

.img-modal .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 10px;
  flex-wrap: wrap
}

.img-modal .t {
  font-weight: 800;
  font-family: 'Nunito Sans', sans-serif
}

.img-modal .btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center
}

.img-modal img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  background: #0b0d14
}
