/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #c8dff5 50%, #304D6B 100%);
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  perspective: 1000px;
}

/* ── Background canvas ── */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Ripple canvas — on top of everything ── */
#ripple-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 35, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #DBEDFF;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.2) rotate(90deg);
}

/* ── Floating Panel Wrapper ── */
.panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: calc(100vw - 24px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform-style: preserve-3d;
  border-radius: 8px;
  overflow: hidden;
}

/* ── Header Bar ── */
.panel-header {
  background-color: #304D6B;
  display: flex;
  gap: 4px;
  padding: 0 12px;
  flex-shrink: 0;
}

.tab {
  background: none;
  border: none;
  color: #DBEDFF;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.tab.active {
  border-bottom: 2px solid #DBEDFF;
  background-color: rgba(219, 237, 255, 0.1);
}

.tab:hover {
  background-color: rgba(219, 237, 255, 0.08);
}

/* ── Tab Content Panels ── */
.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* ── Main Card Body ── */
.panel-body {
  background-color: #DBEDFF;
  border-radius: 0 0 8px 8px;
  padding: 0;
  gap: 0;
  max-height: 78vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Hero Row — flush to walls ── */
.hero-row {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

/* ── Hero Block (left side) ── */
.hero-block {
  background-color: #304D6B;
  color: #DBEDFF;
  padding: 24px 20px;
  flex: 1;
  border-right: 3px solid #1a2e42;
}

.hero-block h1 {
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subtitle {
  font-size: 0.85rem;
  margin-top: 6px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status {
  font-size: 0.7rem;
  margin-top: 8px;
  opacity: 0.6;
  letter-spacing: 0.12em;
}

/* ── About Block (right side) ── */
.about-block {
  background-color: #c8dff5;
  padding: 16px;
  flex: 1;
}

.about-block h2 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #304D6B;
  margin-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid #304D6B;
  padding-bottom: 4px;
}

.about-block p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #1a2e42;
}

/* ── Profile Card — flush to walls ── */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #c8dff5;
  padding: 14px 20px;
  flex-shrink: 0;
  border-top: 2px solid #304D6B;
}

.profile-pic-wrapper {
  flex-shrink: 0;
}

.profile-pic {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #304D6B;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
  transform: translateY(-6px) rotate(3deg) scale(1.08);
  box-shadow: 0 12px 28px rgba(48, 77, 107, 0.35);
}

.profile-name {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #1a2e42;
  margin-bottom: 4px;
}

.profile-bio {
  font-size: 0.78rem;
  color: #304D6B;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border: 1px solid #304D6B;
  border-radius: 3px;
  color: #304D6B;
  background: transparent;
  cursor: default;
  transition: background 0.2s ease,
              color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

.tag:hover {
  background-color: #304D6B;
  color: #DBEDFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(48, 77, 107, 0.3);
}

.tag.highlight {
  background-color: #304D6B;
  color: #DBEDFF;
}

.tag.highlight:hover {
  background-color: #1a2e42;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(48, 77, 107, 0.4);
}

/* ── Note Block ── */
.note-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(48, 77, 107, 0.08);
  padding: 12px 16px;
  margin: 16px 20px 0 20px;
  border-radius: 4px;
  border-left: 3px solid #304D6B;
}

.note-label {
  background-color: #304D6B;
  color: #DBEDFF;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

.note-block p {
  font-size: 0.82rem;
  color: #1a2e42;
  font-style: italic;
  line-height: 1.5;
}

/* ── Two Column Section ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.two-col h2 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #304D6B;
  margin-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid #304D6B;
  padding-bottom: 4px;
}

.two-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.two-col li,
.two-col p {
  font-size: 0.82rem;
  color: #1a2e42;
  line-height: 1.6;
}

/* ── Work Tab ── */
.work-header {
  background-color: #304D6B;
  color: #DBEDFF;
  padding: 16px 20px;
  border-bottom: 3px solid #1a2e42;
  flex-shrink: 0;
}

.work-header h2 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.work-header p {
  font-size: 0.72rem;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ── Work Image Grid ── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.work-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  border: 1px solid rgba(48, 77, 107, 0.15);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(48, 77, 107, 0.75);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-overlay span {
  color: #DBEDFF;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.8);
}

.work-item:hover .work-overlay {
  opacity: 1;
}

/* ── Prices Tab ── */
.prices-image-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

.prices-image {
  width: 100%;
  display: block;
  object-fit: contain;
}

/* ────────────────────────────────────────
   RESPONSIVE — Tablet (max 600px)
──────────────────────────────────────── */
@media (max-width: 600px) {

  body {
    overflow-y: auto;
    perspective: none;
  }

  .panel {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important; /* disables 3D tilt on mobile */
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .panel-body {
    max-height: none;
    overflow-y: visible;
  }

  /* Stack hero row vertically */
  .hero-row {
    flex-direction: column;
  }

  .hero-block {
    border-right: none;
    border-bottom: 3px solid #1a2e42;
    padding: 20px 16px;
  }

  .hero-block h1 {
    font-size: 1.3rem;
  }

  .about-block {
    padding: 14px 16px;
  }

  /* Profile card smaller */
  .profile-card {
    padding: 12px 16px;
    gap: 12px;
  }

  .profile-pic {
    width: 56px;
    height: 56px;
  }

  .profile-name {
    font-size: 0.95rem;
  }

  .profile-bio {
    font-size: 0.72rem;
  }

  /* Note block fits smaller screens */
  .note-block {
    margin: 12px 12px 0 12px;
  }

  /* Stack two column vertically */
  .two-col {
    grid-template-columns: 1fr;
    padding: 14px 16px;
    gap: 16px;
  }

  /* Work grid single column on very small screens */
  .work-grid {
    grid-template-columns: 1fr;
  }

  /* Tabs smaller text */
  .tab {
    font-size: 0.7rem;
    padding: 10px 12px;
    letter-spacing: 0.04em;
  }
}

/* ────────────────────────────────────────
   RESPONSIVE — Small tablet (601–768px)
──────────────────────────────────────── */
@media (min-width: 601px) and (max-width: 768px) {

  .panel {
    width: calc(100vw - 32px);
    max-width: 100%;
  }

  .hero-block h1 {
    font-size: 1.3rem;
  }

  .two-col {
    gap: 14px;
    padding: 16px;
  }
}