/* ============================================================
   Design tokens
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0a0f18;
  --panel: #0d1320;
  --line: rgba(135, 156, 194, 0.18);
  --text: #eef3fb;
  --muted: #9ea8bf;
  --accent: #7f6cff;
  --accent-soft: #a59aff;
  --radius-lg: 22px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(74, 89, 135, 0.16), transparent 28%),
    linear-gradient(180deg, #08101b 0%, #0a1018 100%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   Global transitions
   ============================================================ */
button,
a,
.project-card,
.skill-chip,
.profile-photo,
.project-media img,
.sidebar-socials a,
.download-button,
.message-button {
  transition:
    box-shadow 340ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    background-color 280ms ease,
    opacity 280ms ease,
    color 280ms ease,
    filter 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Layout shell
   ============================================================ */
.site-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.site-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* ============================================================
   Panels
   ============================================================ */
.sidebar-panel,
.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 22, 35, 0.98), rgba(9, 15, 25, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sidebar-panel::before,
.intro-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(127, 108, 255, 0.16), transparent 22%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 72%, rgba(127, 108, 255, 0.08));
  opacity: 0;
  animation: panel-glow 1400ms ease-out both;
}

.panel { padding: 26px 28px; }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar { position: sticky; top: 20px; }
.sidebar-panel { padding: 22px 18px; }

.mobile-details-panel { display: none; }
.mobile-contact-details { display: none; }
.mobile-contact-socials { display: none !important; }

.profile-photo-wrap { width: 264px; margin-bottom: 18px; }

.profile-photo {
  width: 264px;
  height: 263px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  background: #121827;
  max-width: none;
  bottom: 7px;
  position: relative;
  box-shadow: 0 18px 35px rgba(4, 8, 18, 0.28);
}

.profile-photo:hover {
  filter: saturate(1.05);
  box-shadow: 0 20px 38px rgba(4, 8, 18, 0.32);
}

.profile-photo--fallback {
  display: grid;
  place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sidebar-intro h1 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.sidebar-role {
  margin: 10px 0 0;
  color: var(--accent-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(120, 104, 255, 0.36);
}

.sidebar-meta { display: grid; gap: 12px; }

.sidebar-meta > div {
  display: grid;
  gap: 2px;
}

.sidebar-meta span,
.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-meta p,
.sidebar-meta a,
.stack-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.sidebar-meta a {
  display: block;
}

/* Download CV / message buttons */
.download-button,
.message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border: 1px solid rgba(131, 113, 255, 0.8);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(86, 68, 200, 0.18), rgba(112, 88, 255, 0.24));
  color: #ddd9ff;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.download-button:hover,
.download-button:focus-visible,
.message-button:hover,
.message-button:focus-visible {
  box-shadow: 0 14px 28px rgba(85, 71, 188, 0.22);
}

/* Tech stack */
.skill-block h2 {
  margin: 0;
  margin-bottom: 10%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stack-group + .stack-group { margin-top: 16px; }

.stack-group h3 {
  margin: 0 0 4px;
  color: #d9e0f0;
  font-size: 0.96rem;
  font-weight: 600;
}

/* Certifications list */
.sidebar-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.sidebar-list li + li { margin-top: 8px; }

/* Social links */
.sidebar-socials { display: flex; gap: 12px; }

.sidebar-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(150, 167, 198, 0.2);
  color: #d7dff3;
  font-size: 0.78rem;
  font-weight: 700;
}

.social-icon { width: 17px; height: 17px; display: block; }

.sidebar-socials a:hover,
.sidebar-socials a:focus-visible {
  border-color: rgba(165, 154, 255, 0.5);
  background: rgba(126, 108, 255, 0.08);
  box-shadow: 0 8px 18px rgba(18, 26, 43, 0.24);
}

/* ============================================================
   Main column
   ============================================================ */
.main-column { display: grid; gap: 18px; }

/* Shared heading styles */
.hero-panel h2,
.timeline-body h3,
.project-body h3,
.additional-work h3,
.contact-panel h3,
.service-card h3 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
}

/* ============================================================
   Hero panel
   ============================================================ */
.hero-panel h2 {
  max-width: 47ch;
  font-size: 37px;
  line-height: 1.16;
}

.hero-highlight { color: var(--accent); }

.hero-divider {
  width: 100%;
  height: 1px;
  margin: 22px 0 18px;
  background: linear-gradient(90deg, rgba(126, 108, 255, 0.35), rgba(126, 108, 255, 0.04));
}

.hero-copy { display: grid; gap: 16px; max-width: 72ch; }

.hero-copy p,
.contact-panel p,
.additional-work p,
.timeline-company,
.timeline-body li {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================================================
   Intro fade animations
   ============================================================ */
.intro-fade {
  opacity: 0.001;
  filter: blur(10px);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .intro-fade { opacity: 1; filter: blur(0); }

.intro-delay-1 { transition-delay: 80ms; }
.intro-delay-2 { transition-delay: 180ms; }
.intro-delay-3 { transition-delay: 300ms; }
.intro-delay-4 { transition-delay: 420ms; }
.intro-delay-5 { transition-delay: 540ms; }

/* ============================================================
   Skill chips
   ============================================================ */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(144, 159, 191, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f7;
}

.skill-chip-mark { color: var(--accent-soft); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   Proof strip
   ============================================================ */
.proof-strip {
  display: flex;
  align-items: center;
  padding: 22px 28px;
  gap: 0;
}

.proof-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.proof-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: -0.02em;
  line-height: 1;
}

.proof-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.proof-divider {
  width: 1px;
  height: 44px;
  background: var(--line);
  flex-shrink: 0;
}

/* ============================================================
   Section header
   ============================================================ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head .eyebrow { margin-bottom: 0; }

.inline-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-soft);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
}

.inline-action:hover { color: var(--text); }

/* ============================================================
   Project grid & cards
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  border: 1px solid rgba(143, 159, 194, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

.project-card:hover {
  border-color: rgba(165, 154, 255, 0.28);
  box-shadow: 0 16px 34px rgba(5, 10, 20, 0.28);
}

.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-media {
  aspect-ratio: 1.5;
  background: linear-gradient(180deg, rgba(39, 48, 69, 0.95), rgba(18, 23, 36, 0.95));
  overflow: hidden;
}

.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card:hover .project-media img { filter: saturate(1.06); }

.project-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.project-media--logo .project-media-logo {
  width: 100%;
  height: 100%;
  max-width: 193px;
  max-height: 92px;
  object-fit: contain;
}

.project-media--baksis {
  background-color: #030303;
  background-image: url("/assets/images/projects/baksis/background-mobile.png");
  background-position: center 72%;
  background-repeat: no-repeat;
  background-size: cover;
}

.project-media--gibbys {
  background: #ffffff;
  background-image: none;
}

.project-media--bitesize {
  background: #1a0f2e;
  background-image: radial-gradient(ellipse at 40% 55%, rgba(138, 43, 160, 0.22), transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(100, 30, 120, 0.14), transparent 55%);
}

.project-media--bitesize .project-media-logo {
  max-width: 195px;
  position: relative;
  bottom: 3%;
}

.project-media--launchpack {
  background: linear-gradient(145deg, #b8cfe8 0%, #c8daf0 50%, #a8c4e0 100%);
}

.project-media--launchpack .project-media-logo {
  width: 127%;
  height: 136%;
  max-width: 287px;
  max-height: 314px;
  position: relative;
  top: 1px;
}

.project-media--gibbys .project-media-logo {
  max-width: 178px;
  max-height: 124px;
  position: relative;
  right: 1%;
}

.project-media--gradjevinar {
  background: #ffffff;
}

.project-media--gradjevinar .project-media-logo {
  width: 127%;
  height: 102%;
  max-width: 269px;
  max-height: 96px;
  object-fit: contain;
  position: relative;
  left: 11px;
}

.project-media--lexmind {
  background-color: #060d1a;
  background-image: radial-gradient(circle at 30% 50%, rgba(26, 92, 180, 0.18), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(14, 58, 138, 0.14), transparent 50%);
}

.project-media--lexmind .project-media-logo {
  width: 71%;
  height: auto;
  max-width: clamp(235px, 19.5vw, 331px);
  max-height: none;
  object-fit: contain;
  flex: 0 0 auto;
}

.project-media--lexmind picture {
  display: contents;
}

.project-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #edf2fb;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1.1rem; line-height: 1.2; }
.project-category,
.project-role { margin: 5px 0 0; color: var(--muted); font-size: 0.82rem; }
.project-summary { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.58; flex: 1; }

.project-status {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(126, 108, 255, 0.12);
  color: #d7ceff;
  font-size: 0.78rem;
  align-self: flex-start;
}

.additional-work {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(150, 167, 198, 0.14);
}

.additional-work h3 { font-size: 1rem; margin-bottom: 8px; }

/* ============================================================
   What I Help With — service cards
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 22px 20px;
  border: 1px solid rgba(144, 159, 191, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.service-card h3 { font-size: 1.08rem; line-height: 1.2; margin-bottom: 10px; color: var(--text); }
.service-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* ============================================================
   Timeline / experience
   ============================================================ */
.timeline-list { display: grid; gap: 28px; }

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
}

.timeline-period { color: #8ba1ff; font-weight: 700; font-size: 0.9rem; padding-top: 4px; }
.timeline-body h3 { font-size: 1.4rem; line-height: 1.15; }

.timeline-body ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.timeline-body li + li { margin-top: 8px; }

/* ============================================================
   Contact CTA panel
   ============================================================ */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr) 180px;
  gap: 24px;
  align-items: center;
}

.contact-panel h3 { font-size: 2rem; line-height: 1.1; }
.contact-panel > div:first-child > p { margin: 10px 0 0; }
.contact-meta { display: grid; gap: 12px; }
.contact-meta a, .contact-meta p { margin: 0; color: #d9e1f4; font-size: 0.95rem; }
.contact-meta a:hover { color: var(--accent-soft); }

/* ============================================================
   Page intro (projects / resume headers)
   ============================================================ */
.page-intro { max-width: 62ch; }

.page-intro h2 {
  margin: 0 0 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.page-intro p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.68; }

/* ============================================================
   Project detail — back link
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 2px;
}

.back-link:hover { color: var(--accent-soft); }
.back-link::before { content: '←'; }

/* ============================================================
   Project detail — hero panel
   ============================================================ */
.project-hero-panel { padding: 32px 34px 30px; }

.project-hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-hero-title {
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.project-hero-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.58;
  max-width: 60ch;
}

@media (min-width: 781px) {
  .project-hero-sub {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.58;
    max-width: 94ch;
  }
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.project-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }

.project-hero-meta-label {
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-hero-meta-value { color: var(--text); font-size: 0.92rem; }

.project-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.project-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(127, 108, 255, 0.3);
  background: rgba(127, 108, 255, 0.08);
  color: #c8c0ff;
  font-size: 0.82rem;
}

.project-hero-live { margin-top: 20px; }

.project-live-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(165, 154, 255, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(127, 108, 255, 0.07);
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.project-live-link:hover {
  background: rgba(127, 108, 255, 0.14);
  border-color: rgba(165, 154, 255, 0.6);
}

/* ============================================================
   Project detail — case study body
   ============================================================ */
.case-panel { padding: 0; overflow: hidden; }

.case-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
}

.case-row:last-child { border-bottom: none; }

.case-label {
  padding-top: 3px;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.case-content p { margin: 0 0 14px; color: var(--muted); font-size: 0.98rem; line-height: 1.74; }
.case-content p:last-child { margin-bottom: 0; }
.case-content ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.98rem; line-height: 1.74; }
.case-content li + li { margin-top: 10px; }
.case-content strong { color: var(--text); font-weight: 600; }

.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.case-tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(127, 108, 255, 0.28);
  background: rgba(127, 108, 255, 0.07);
  color: #c8c0ff;
  font-size: 0.82rem;
}

/* ============================================================
   Project detail — screenshots
   ============================================================ */
.screenshots-panel { padding: 0; }
.screenshots-panel .section-head { margin-bottom: 18px; }

.confidentiality-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

.confidentiality-notice__icon {
  color: rgba(165, 154, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1;
}

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

.screenshot-slot {
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(127, 108, 255, 0.25);
  background: rgba(255, 255, 255, 0.018);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.screenshot-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.screenshot-slot-label {
  color: rgba(165, 154, 255, 0.38);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.baksis-showcase {
  display: grid;
  gap: 14px;
}

.launchpack-visual {
  display: grid;
  gap: 14px;
}

.baksis-showcase-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.baksis-showcase-logo {
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
}

.baksis-showcase-card {
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(127, 108, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 16px 34px rgba(5, 10, 20, 0.22);
}

.launchpack-visual-card {
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(127, 108, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 16px 34px rgba(5, 10, 20, 0.22);
}

.baksis-showcase-card picture {
  display: block;
}

.launchpack-visual-card picture {
  display: block;
}

.baksis-showcase-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.launchpack-visual-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.lexmind-mobile-panel {
  display: none;
}

.lexmind-mobile-shell {
  padding: 16px 12px 20px;
  border-radius: 14px;
  background-color: #060d1a;
  background-image: radial-gradient(circle at 30% 50%, rgba(26, 92, 180, 0.18), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(14, 58, 138, 0.14), transparent 50%);
}

.lexmind-mobile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.lexmind-mobile-logo {
  width: min(320px, 85%);
  height: auto;
  object-fit: contain;
}

.lexmind-mobile-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  font-weight: 400;
}

.lexmind-mobile-tagline-accent {
  color: #208dff;
}

.lexmind-mobile-grid {
  display: grid;
  gap: 12px;
}

.lexmind-mobile-frame {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(127, 108, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.lexmind-mobile-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

.lexmind-mobile-phone-frame {
  border: none;
  background: transparent;
  width: min(73vw, 290px);
  margin: 0 auto;
}

.lexmind-mobile-doc-frame {
  overflow: hidden;
}

.lexmind-mobile-doc-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

.lexmind-desktop-only .screenshot-slot {
  background: rgba(8, 14, 26, 0.92);
  overflow: visible;
}

.lexmind-desktop-only .screenshots-grid {
  padding: 9px;
}

.lexmind-desktop-only .screenshot-slot img {
  object-fit: contain;
  background: rgba(8, 14, 26, 0.92);
}

.lexmind-desktop-only .lexmind-phone-slot {
  aspect-ratio: 580 / 1200;
  height: clamp(384px, 50.4vw, 551px);
  width: clamp(186px, 24.3vw, 267px);
  justify-self: center;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lexmind-desktop-only .lexmind-phone-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: transparent;
}

.gibbys-screenshots .screenshot-slot {
  border: 1px solid rgba(127, 108, 255, 0.16);
  background: rgba(8, 14, 26, 0.92);
}

.gibbys-screenshots {
  padding: 0;
  padding-bottom: 11px;
}

.gibbys-screenshots .screenshot-slot img {
  object-fit: contain;
  background: rgba(8, 14, 26, 0.92);
}

.gibbys-screenshots .gibbys-phone-slot {
  aspect-ratio: 2 / 3;
  width: clamp(240px, 31vw, 330px);
  justify-self: center;
  align-self: start;
  border: 0;
  background: transparent;
  overflow: visible;
}

.gibbys-screenshots .gibbys-phone-slot img {
  width: 85%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  background: transparent;
}

.gibbys-screenshots .screenshot-slot:not(.gibbys-phone-slot) {
  aspect-ratio: 3024 / 1648;
  width: 94%;
  justify-self: center;
}

@media (min-width: 781px) {
  .gibbys-screenshots {
    padding: 0;
    padding-bottom: 0px;
  }

  .gibbys-screenshots .screenshot-slot:not(.gibbys-phone-slot) {
    aspect-ratio: 3024 / 1648;
    width: 100%;
    justify-self: center;
  }

  .gibbys-screenshots .screenshots-grid {
    padding: 9px;
    gap: 9px;
  }

  .gibbys-screenshots .gibbys-phone-slot {
    width: clamp(255px, 33vw, 350px);
  }

  .launchpack-screenshots {
    padding: 10px;
  }

  .launchpack-screenshots .screenshots-grid {
    gap: 10px;
  }

  .launchpack-overview { display: block; }
  .launchpack-mobile-gallery-logo { display: none; }
}

.gibbys-mobile-gallery-logo {
  display: none;
}

.launchpack-mobile-gallery-logo {
  display: none;
}

.baksis-mobile-showcase {
  display: none;
}

.baksis-mobile-showcase__frame {
  width: min(78vw, 346px);
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
}

.baksis-mobile-showcase__frame:nth-child(2) {
  width: min(86.5vw, 384px);
}

.baksis-mobile-showcase__frame:nth-child(3) {
  width: min(88vw, 390px);
}

.baksis-mobile-showcase__frame:nth-child(4) {
  width: min(82.8vw, 367px);
}

.baksis-mobile-showcase__frame:nth-child(5) {
  width: min(83.5vw, 370px);
}

.baksis-mobile-showcase__screen {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes panel-glow {
  0%   { opacity: 0; }
  35%  { opacity: 0.9; }
  100% { opacity: 0.35; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .intro-fade { opacity: 1 !important; filter: none !important; }

  .sidebar-panel::before,
  .intro-panel::before { opacity: 0.35; }
}

/* ============================================================
  Responsive — tablet ≤1024px
  ============================================================ */
@media (max-width: 1024px) {
  .site-grid,
  .contact-panel { grid-template-columns: 1fr; }

  .sidebar { position: static; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 781px) and (max-width: 1024px) {
  .home-page .sidebar-panel > .skill-block { display: none; }
  .home-page .mobile-details-panel { display: block; }
  .home-page .mobile-details-panel .sidebar-block {
    margin-top: 22px;
    padding-top: 22px;
    border-top: none;
  }
  .home-page .mobile-details-panel .sidebar-block:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  .home-page .mobile-details-panel .sidebar-block:first-child h2 {
    margin: 0;
    margin-bottom: 4%;
  }
  .home-page .mobile-details-panel .sidebar-block:nth-child(2) {
    margin-top: 3%;
    padding-top: 0;
  }
  .home-page .mobile-details-panel .sidebar-block:nth-child(2) h2 {
    margin: 0;
    margin-bottom: 2%;
  }
}

/* ============================================================
   Responsive — mobile ≤780px
   ============================================================ */
@media (max-width: 780px) {
  .site-shell { width: min(100% - 20px, 1360px); padding-top: 10px; }
  .panel, .sidebar-panel { padding: 20px; }
  .home-page .sidebar-panel > .skill-block,
  .home-page .sidebar-panel > .sidebar-socials,
  .home-page .sidebar-panel > .sidebar-meta { display: none; }
  .home-page .mobile-details-panel { display: block; }
  .home-page .mobile-details-panel .sidebar-block { border-top: 0; }
  .home-page .mobile-details-panel .sidebar-block:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  .home-page .mobile-contact-details { display: block; }
  .home-page .contact-meta { display: none; }
  .home-page .mobile-contact-socials { display: flex !important; }
  .is-projects-route .mobile-contact-socials { display: flex !important; }
  .is-projects-route .message-button { display: none; }
  .is-projects-route .sidebar { display: none; }
  .is-projects-route .sidebar-panel { display: none; }
  .hero-panel h2 { max-width: 100%; font-size: clamp(1.7rem, 6.8vw, 2.35rem); }
  .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid, .service-grid { grid-template-columns: 1fr; }
  .project-media--lexmind .project-media-logo {
    width: 100%;
    height: auto;
    max-width: 211px;
    max-height: none;
    object-fit: contain;
    flex: 0 0 auto;
  }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .profile-photo-wrap { width: 100%; }
  .profile-photo { width: 100%; height: 220px; }
  .proof-strip { flex-direction: column; gap: 20px; text-align: center; }
  .proof-divider { width: 60px; height: 1px; }
  .contact-panel { grid-template-columns: 1fr; }
  .message-button { width: auto; padding: 0 24px; align-self: flex-start; }
  /* Project detail pages */
  .project-hero-panel { padding: 22px 20px; }
  .case-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
  .screenshots-panel { padding: 0; }
  .gibbys-screenshots { padding-bottom: 13px; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .launchpack-screenshots .screenshots-grid { margin: 9px; }
  .launchpack-overview { display: none; }
  .launchpack-mobile-gallery-logo { display: flex; }
  .project-media--launchpack .project-media-logo {
    width: 343px;
    max-width: 329px;
    top: auto;
  }
  .project-media--bitesize .project-media-logo { bottom: auto; }
  .gibbys-showcase-section { display: none; }
  .gibbys-mobile-gallery-logo {
    display: flex;
    justify-content: center;
    background: #ffffff;
    margin-bottom: 25px;
    padding: 17px 0 14px;
  }
  .gibbys-mobile-gallery-logo img {
    width: min(100%, 260px);
    height: auto;
    object-fit: contain;
  }
  .launchpack-mobile-gallery-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #c6d5eb;
    margin-bottom: 25px;
    padding: 17px 0 14px;
  }
  .launchpack-mobile-gallery-logo img {
    width: 70%;
    height: auto;
    object-fit: contain;
  }
  .launchpack-mobile-gallery-logo p {
    margin: 0;
    padding-top: 8px;
    font-size: 0.875rem;
    text-align: center;
    color: #3a4a6b;
  }
  .launchpack-mobile-gallery-logo p strong {
    display: block;
    font-size: 1.1rem;
    color: #002469;
    margin-bottom: 4px;
  }
  .gibbys-screenshots .gibbys-phone-slot { width: min(100%, 420px); }
  .lexmind-desktop-only { display: none; }
  .lexmind-mobile-panel { display: block; }
  .baksis-showcase-logo-wrap { justify-content: center; }
  .baksis-showcase-card--desktop { display: none; }
  .baksis-mobile-showcase {
    display: grid;
    row-gap: 24px;
    column-gap: 0;
    padding: 177px 12px 30px;
    border-radius: 18px;
    overflow: hidden;
    background-color: #030303;
    background-image: url("/assets/images/projects/baksis/background-mobile.png");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
  }
  .baksis-mobile-showcase__frame:nth-child(3) {
    margin-top: -28px;
  }
  .baksis-mobile-showcase__frame:nth-child(4) {
    margin-top: -48px;
  }
  .baksis-mobile-showcase__frame:nth-child(5) {
    margin-top: -15px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .baksis-showcase-card--desktop { display: block; }
  .baksis-mobile-showcase { display: none; }
}

@media (max-width: 480px) {
  .chip-grid, .service-grid { grid-template-columns: 1fr; }

  .project-media--gradjevinar .project-media-logo {
    width: 137%;
    height: 100%;
    max-width: 346px;
    max-height: 104px;
    object-fit: contain;
    position: relative;
    left: 5%;
  }
}

/* ============================================================
   Responsive — 2K desktop only, 2400px–2800px
   ============================================================ */
@media (min-width: 2400px) and (max-width: 2800px),
  (min-width: 781px) and (min-device-width: 2400px) and (max-device-width: 2800px) {
  html { font-size: 125%; }

  .site-shell {
    width: min(1700px, calc(100% - 40px));
    padding-top: 25px;
    padding-bottom: 35px;
  }

  .site-grid {
    grid-template-columns: 375px minmax(0, 1fr);
    gap: 25px;
  }

  .sidebar { top: 25px; }
  .sidebar-panel { padding: 27px 22px; }
  .profile-photo-wrap,
  .profile-photo { width: 330px; }
  .profile-photo { height: 329px; }
  .sidebar-block { margin-top: 27px; padding-top: 27px; }
  .panel { padding: 32px 35px; }
  .screenshots-panel { padding: 0; }
  .main-column { gap: 22px; }
  .hero-panel h2 { max-width: 47ch; font-size: 46px; }
  .hero-divider { margin: 27px 0 22px; }
  .hero-copy { gap: 20px; }
  .chip-grid { gap: 15px; margin-top: 32px; }
  .skill-chip { gap: 12px; min-height: 65px; padding: 17px 20px; }
  .proof-strip { padding: 27px 35px; }
  .proof-item { gap: 6px; }
  .proof-divider { height: 55px; }
  .section-head { gap: 25px; margin-bottom: 27px; }
  .project-hero-panel { padding: 40px 43px 38px; }
  .project-hero-title { font-size: clamp(2.5rem, 3.8vw, 3.75rem); }
  .project-hero-meta { gap: 12px 35px; padding: 22px 0; margin-bottom: 30px; }
  .project-tag-list { gap: 10px; }
  .project-tag { padding: 6px 15px; }
  .project-hero-live { margin-top: 25px; }
  .project-live-link { padding: 12px 25px; }
  .download-button,
  .message-button { min-height: 60px; margin-top: 25px; }
  .case-row { grid-template-columns: 213px minmax(0, 1fr); gap: 35px; padding: 38px 43px; }
  .project-grid,
  .service-grid { gap: 20px; }
  .service-card { padding: 27px 25px; }
  .project-media--logo { padding: 20px; }
  .project-body { padding: 20px; }
  .project-status { margin-top: 15px; padding: 6px 12px; }
  .timeline-list { gap: 35px; }
  .timeline-item { grid-template-columns: 188px minmax(0, 1fr); gap: 25px; }
  .timeline-body ul { margin-top: 17px; }
  .contact-panel {
    grid-template-columns: minmax(0, 1.4fr) minmax(325px, 1.125fr) 225px;
    gap: 30px;
  }
  .back-link { gap: 10px; }
  .screenshots-grid { gap: 18px; }

  .gibbys-screenshots .gibbys-phone-slot {
    width: 438px;
  }

  .sidebar-intro h1 { font-size: 1.6rem; }
  .skill-block h2 { font-size: 0.736rem; }
  .hero-panel h2 { font-size: 36.8px; }
  .project-hero-title { font-size: clamp(2rem, 3.04vw, 3rem); }
  .project-body h3 { font-size: 0.88rem; }
  .timeline-body h3 { font-size: 1.12rem; }
  .additional-work h3 { font-size: 0.8rem; }
  .service-card h3 { font-size: 0.864rem; }
  .contact-panel h3 { font-size: 1.6rem; }

  .lexmind-desktop-only .lexmind-phone-slot {
    width: 334px;
    height: 689px;
  }

  .project-media--logo .project-media-logo {
    max-width: 241px;
    max-height: 115px;
  }

  .project-media--bitesize .project-media-logo { max-width: 244px; }
  .project-media--gibbys .project-media-logo { max-width: 223px; max-height: 155px; }
  .project-media--gradjevinar .project-media-logo { max-width: 336px; max-height: 120px; }
  .project-media--lexmind .project-media-logo { max-width: clamp(235px, 19.5vw, 331px); }
  .project-media--launchpack .project-media-logo { max-width: 359px; max-height: 393px; }
  .project-media--lexmind .project-media-logo { position: relative; bottom: -1px; }
}

/* ============================================================
   Responsive — 4K desktop only, 3600px–4200px
   ============================================================ */
@media (min-width: 3600px) and (max-width: 4200px) {
  html { font-size: 187.5%; }

  .site-shell {
    width: min(2550px, calc(100% - 60px));
    padding-top: 38px;
    padding-bottom: 53px;
  }

  .site-grid {
    grid-template-columns: 563px minmax(0, 1fr);
    gap: 38px;
  }

  .sidebar { top: 38px; }
  .sidebar-panel { padding: 41px 33px; }
  .profile-photo-wrap,
  .profile-photo { width: 495px; }
  .profile-photo { height: 494px; }
  .sidebar-block { margin-top: 41px; padding-top: 41px; }
  .panel { padding: 48px 53px; }
  .screenshots-panel { padding: 0; }
  .main-column { gap: 33px; }
  .hero-panel h2 { max-width: 47ch; font-size: 69px; }
  .hero-divider { margin: 41px 0 33px; }
  .hero-copy { gap: 30px; }
  .chip-grid { gap: 23px; margin-top: 48px; }
  .skill-chip { gap: 18px; min-height: 98px; padding: 26px 30px; }
  .proof-strip { padding: 41px 53px; }
  .proof-item { gap: 9px; }
  .proof-divider { height: 83px; }
  .section-head { gap: 38px; margin-bottom: 41px; }
  .project-hero-panel { padding: 60px 65px 57px; }
  .project-hero-title { font-size: clamp(2.4rem, 3.648vw, 3.6rem); }
  .project-body h3 { font-size: 0.704rem; }
  .project-hero-meta { gap: 18px 53px; padding: 33px 0; margin-bottom: 45px; }
  .project-tag-list { gap: 15px; }
  .project-tag { padding: 9px 18px; }
  .project-hero-live { margin-top: 38px; }
  .project-live-link { padding: 18px 30px; }
  .download-button,
  .message-button { min-height: 90px; margin-top: 38px; }
  .case-row { grid-template-columns: 320px minmax(0, 1fr); gap: 53px; padding: 57px 65px; }
  .project-grid,
  .service-grid { gap: 30px; }
  .service-card { padding: 41px 38px; }
  .project-media--logo { padding: 30px; }
  .project-body { padding: 30px; }
  .project-status { margin-top: 23px; padding: 9px 18px; }
  .timeline-list { gap: 53px; }
  .timeline-item { grid-template-columns: 282px minmax(0, 1fr); gap: 38px; }
  .timeline-body ul { margin-top: 26px; }
  .contact-panel {
    grid-template-columns: minmax(0, 1.4fr) minmax(488px, 1.6875fr) 338px;
    gap: 45px;
  }
  .back-link { gap: 15px; }
  .screenshots-grid { gap: 27px; }

  .lexmind-desktop-only .lexmind-phone-slot {
    width: 501px;
    height: 1034px;
  }

  .project-media--logo .project-media-logo {
    max-width: 362px;
    max-height: 173px;
  }

  .project-media--bitesize .project-media-logo { max-width: 366px; }
  .project-media--gibbys .project-media-logo { max-width: 335px; max-height: 233px; }
  .project-media--gradjevinar .project-media-logo { max-width: 504px; max-height: 180px; }
  .project-media--lexmind .project-media-logo { max-width: clamp(353px, 29.25vw, 497px); }
  .project-media--launchpack .project-media-logo { max-width: 539px; max-height: 590px; }
}
