/* ==========================================================================
   VakhifyDigital — Phase 3: My Projects portfolio + concept demo pages
   ========================================================================== */

/* ---------- Project cards ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proj-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.proj-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.35);
}

/* Browser-style thumbnail */
.proj-thumb {
  --pa: #0ea5e9;
  --pa2: #0369a1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 14px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--pa) 22%, #0a1f3c), var(--navy-950));
}
.thumb-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px 9px 0 0;
}
.thumb-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.thumb-url {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.thumb-body {
  position: relative;
  height: calc(100% - 30px);
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0 0 9px 9px;
  overflow: hidden;
}
.thumb-body::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pa) 35%, transparent);
}
.tb-hero {
  height: 26%;
  border-radius: 6px;
  background: linear-gradient(120deg, var(--pa), var(--pa2));
  margin-bottom: 9px;
}
.tb-lines { display: grid; gap: 5px; margin-bottom: 9px; }
.tb-lines b {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #dbe4ee;
}
.tb-lines b:nth-child(1) { width: 78%; background: color-mix(in srgb, var(--pa) 45%, #dbe4ee); }
.tb-lines b:nth-child(2) { width: 92%; }
.tb-lines b:nth-child(3) { width: 64%; }
.tb-btns { display: flex; gap: 7px; }
.tb-btns u {
  width: 46px;
  height: 12px;
  border-radius: 6px;
  background: var(--pa);
  text-decoration: none;
}
.tb-btns u.ghost { background: #e2e9f2; }
.tb-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.tb-grid i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: color-mix(in srgb, var(--pa) 22%, #eef3f9);
  border: 1px solid color-mix(in srgb, var(--pa) 35%, transparent);
}
.thumb-mark {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: color-mix(in srgb, var(--pa) 70%, #0a1f3c);
  opacity: 0.85;
  transition: transform 0.35s var(--ease);
}
.proj-card:hover .thumb-mark { transform: scale(1.12) rotate(-4deg); }
.proj-card:hover .thumb-body { transform: scale(1.02); }
.thumb-body { transition: transform 0.35s var(--ease); }

/* Per-project accents */
.th-hospital { --pa: #14b8a6; --pa2: #0f766e; }
.th-hotel    { --pa: #a78bfa; --pa2: #7c3aed; }
.th-school   { --pa: #60a5fa; --pa2: #2563eb; }
.th-local    { --pa: #fbbf24; --pa2: #f59e0b; }
.th-shop     { --pa: #34d399; --pa2: #059669; }

.proj-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 24px 26px;
  flex: 1;
}
.proj-cat {
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--pa, #f97316) 14%, transparent);
  color: color-mix(in srgb, var(--pa, #f97316) 75%, #0a1f3c);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proj-body h3 { font-size: 1.14rem; }
.proj-body > p { font-size: 0.93rem; color: var(--muted); }

.proj-features {
  display: grid;
  gap: 7px;
}
.proj-features li {
  position: relative;
  padding-left: 23px;
  font-size: 0.88rem;
  color: var(--body);
}
.proj-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--orange-500);
  border-bottom: 2px solid var(--orange-500);
  transform: rotate(-45deg);
}

.proj-tech {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.proj-body .card-link { margin-top: auto; padding-top: 6px; }

/* ---------- Concept demo pages ---------- */
.demo-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 9px;
}
.demo-bar strong { color: var(--yellow-400); font-weight: 700; }
.demo-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-bar a:hover { color: var(--orange-400); }
.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border-radius: var(--pill);
  background: rgba(255, 197, 61, 0.14);
  border: 1px solid rgba(255, 197, 61, 0.35);
  color: var(--yellow-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Demo page shell */
.demo-page {
  --pa: #0ea5e9;
  --pa2: #0369a1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.demo-hotel  { --pa: #a78bfa; --pa2: #7c3aed; }
.demo-school { --pa: #60a5fa; --pa2: #2563eb; }
.demo-local  { --pa: #fbbf24; --pa2: #f59e0b; }
.demo-shop   { --pa: #34d399; --pa2: #059669; }

.demo-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(700px 400px at 85% 10%, color-mix(in srgb, var(--pa) 34%, transparent), transparent 62%),
    linear-gradient(158deg, var(--navy-900), var(--navy-950));
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}
.demo-hero .badge { margin-inline: auto; }
.demo-hero h1 { color: #fff; margin-bottom: 16px; }
.demo-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--pa), var(--pa2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.demo-hero .lead { margin-inline: auto; }
.demo-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--pa), var(--pa2));
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pa) 40%, transparent);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.demo-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--pa) 50%, transparent); }
.demo-btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.demo-section {
  padding-block: clamp(44px, 6vw, 76px);
  flex: 1;
}
.demo-section.alt { background: #f5f8fc; }
.demo-head { max-width: 700px; margin: 0 auto clamp(26px, 4vw, 40px); text-align: center; }
.demo-head h2 { margin-bottom: 10px; }
.demo-head p { color: var(--muted); margin-inline: auto; }
.demo-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--pa) 80%, #0a1f3c);
}

.demo-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.demo-feat {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.demo-feat-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--pa) 16%, #fff);
  color: color-mix(in srgb, var(--pa) 80%, #0a1f3c);
}
.demo-feat h3 { font-size: 1.04rem; margin-bottom: 7px; }
.demo-feat p { font-size: 0.91rem; color: var(--muted); }

.demo-note {
  max-width: 780px;
  margin: clamp(30px, 4vw, 44px) auto 0;
  padding: 20px 24px;
  background: rgba(255, 197, 61, 0.12);
  border: 1px dashed rgba(234, 156, 41, 0.55);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--body);
  text-align: center;
}

.demo-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.87rem;
}
.demo-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 20px;
}
.demo-footer a { color: #fff; font-weight: 600; }
.demo-footer a:hover { color: var(--orange-400); }

/* ---------- Projects responsive ---------- */
@media (max-width: 1024px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .proj-grid, .demo-feat-grid { grid-template-columns: 1fr; }
  .demo-hero-actions .btn, .demo-hero-actions .demo-btn { width: 100%; justify-content: center; }
  .demo-bar-inner { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Pre-Phase-7 — real preview images, demo chip, dual CTAs, section surface
   ========================================================================== */

/* Tinted premium surface behind the grid */
.section-work {
  background:
    radial-gradient(700px 420px at 86% 0%, rgba(36, 114, 216, 0.07), transparent 62%),
    radial-gradient(620px 420px at 2% 100%, rgba(249, 115, 22, 0.06), transparent 60%),
    linear-gradient(180deg, #f7fafd, #eef4fb);
}

/* Glass card surface over the tinted section */
.proj-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Real preview image inside the browser frame */
.thumb-body { padding: 0; }
.thumb-body::after { display: none; }
.thumb-body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.proj-card:hover .thumb-body img { transform: scale(1.06); }
/* image zoom takes over from the old wireframe body zoom */
.proj-card:hover .thumb-body { transform: none; }

/* Floating demo chip on the preview (hospital = fictional demo) */
.proj-demo-chip {
  position: absolute;
  top: 54px;
  right: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--pill);
  background: rgba(255, 197, 61, 0.96);
  color: var(--navy-950);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(5, 16, 31, 0.35);
  transition: transform 0.25s var(--ease);
}
.proj-card:hover .proj-demo-chip { transform: translateY(-2px); }

/* Dual CTA row: View Demo + Discuss Similar Project */
.proj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.proj-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.85rem;
}
.proj-actions .btn:active { transform: translateY(1px) scale(0.99); }
