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

/* remove browser UI artifacts */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

a, p, span, h1, h2, h3, div {
  -webkit-user-select: none;
  user-select: none;
}

::selection { background: transparent; }
::-moz-selection { background: transparent; }

:root {
  --bg:        #050A14;
  --surface:   #0A1628;
  --surface2:  #0D2040;
  --border:    #1A3050;
  --border2:   #0F2035;
  --blue:      #2196F3;
  --blue-dim:  #1565C0;
  --blue-glow: rgba(33, 150, 243, 0.18);
  --text:      #EDF2FF;
  --muted:     #607D9A;
  --muted2:    #3D5A78;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── BANNER ─── */
.banner {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #030810;
}

.banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-count {
  font-family: 'Geist', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}

.banner-count em {
  color: var(--blue);
  font-style: normal;
}

.banner-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── PROFILE ─── */
.profile-wrap {
  padding: 0 20px;
  position: relative;
}

.avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -38px;
  margin-bottom: 14px;
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: linear-gradient(135deg, var(--blue-dim), #0A1628);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.avatar-placeholder { user-select: none; }

.action-btns {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.btn {
  padding: 7px 18px;
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22,1,0.36,1), border-color 0.22s ease, background 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-hire {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
}
.btn-hire:hover { background: var(--blue-dim); border-color: var(--blue-dim); }

/* ─── NAME / BIO ─── */
.display-name {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.handle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

.bio {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #B0C4DE;
}

.bio strong { color: var(--blue); font-weight: 600; }

/* ─── STATS ROW ─── */
.stats-row {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
}

.stat { font-size: 14px; }
.stat b { font-family: 'Geist', sans-serif; font-weight: 700; color: var(--text); }
.stat span { color: var(--muted); font-size: 13px; }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border2); margin: 0; }

/* ─── TABS ─── */
.tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border2);
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  padding: 14px 22px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
  user-select: none;
}

.tab.active { color: var(--text); border-bottom-color: var(--blue); }
.tab:hover:not(.active) { color: #8AADCC; background: rgba(33,150,243,0.04); }

/* ─── PANELS ─── */
.panel { display: none; padding: 24px 20px; }
.panel.active { display: block; }

.panel-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ─── WORK GRID ─── */
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.layout-toggle {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: #8AADCC;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease;
  flex-shrink: 0;
}

.layout-toggle:hover { color: var(--blue); border-color: var(--blue); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  transition: gap 0.35s cubic-bezier(0.22,1,0.36,1);
}

.work-grid.single {
  grid-template-columns: 1fr;
}

.work-card {
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.22s ease;
}

.work-card:hover { border-color: var(--blue); }

/* skeleton shimmer */
.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.work-card.loaded::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.work-card.loaded img {
  opacity: 1;
}

.work-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(5,10,20,0.85);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.work-card:hover .work-badge { opacity: 1; }

/* ─── TESTIMONIAL ─── */
.testimonial {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 16px 18px;
}

.testi-text {
  font-size: 14px;
  line-height: 1.6;
  color: #B0C4DE;
  font-style: italic;
}

.testi-author {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.testi-author span { color: var(--blue); }

/* ─── SERVICES ─── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.22s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
  margin-bottom: 10px;
}

.service-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue-glow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--blue);
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-name {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.service-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.service-cta {
  margin-left: auto;
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── CONTACT ─── */
.contact-card {
  background: linear-gradient(160deg, #0A1A2E, #050A14);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
}

.contact-title {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  border-radius: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.25s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.clink:hover { filter: brightness(1.15); transform: translateY(-1px); }

.clink-discord { background: #5865F2; color: #fff; }

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  object-fit: contain;
  animation: lbIn 0.35s cubic-bezier(0.22,1,0.36,1);
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted2);
  border-top: 1px solid var(--border2);
}

/* ─── FADE IN ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.panel.active { animation: fadeUp 0.4s cubic-bezier(0.22,1,0.36,1); }

@media (prefers-reduced-motion: reduce) {
  .panel.active { animation: none; }
}
  

/* ─── LANG SELECTOR ─── */
.lang-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(5,10,20,0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  z-index: 10;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.lang-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(5,10,20,0.75);
}

.lang-dropdown {
  position: fixed;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 9999;
  min-width: 160px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-option {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.lang-option:hover { background: var(--border2); color: var(--fg); }
.lang-option.active { color: var(--blue); }

/* i18n fade */
.i18n-fade-out { opacity: 0; transition: opacity 0.15s ease; }
.i18n-fade-in  { opacity: 1; transition: opacity 0.25s ease; }
