/* work.css */

.page-hero {
  padding: 160px 0 6rem;
  text-align: center;
}
.page-title {
  font-size: 64px; font-weight: 800; color: var(--text);
  line-height: 1.05; letter-spacing: -2px;
  margin: 12px 0 18px;
}
.page-sub {
  font-size: 17px; color: var(--muted); line-height: 1.85;
  max-width: 500px; margin: 0 auto;
}

.work-section { padding: 2rem 0 7rem; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  margin-bottom: 14px;
}
.work-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.work-card:hover { border-color: var(--y-border); transform: translateY(-4px); }
.work-card:first-child { grid-column: 1 / -1; }

.work-img {
  height: 320px; position: relative; overflow: hidden;
  cursor: pointer;
}
.work-card-sm .work-img { height: 240px; }

.work-img-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(9,9,9,0.92) 0%, rgba(9,9,9,0.15) 50%, rgba(9,9,9,0.0) 100%);
  transition: opacity 0.5s ease;
}
.work-card:hover .work-img-overlay { opacity: 0.7; }

/* Full page iframe preview */
.work-iframe-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.work-iframe {
  width: 200%;
  height: 500%;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
  transition: transform 12s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.work-card:hover .work-iframe {
  transform: scale(0.5) translateY(-55%);
}
.work-img-content {
  position: absolute; bottom: 0; left: 0; padding: 1.5rem;
  z-index: 2;
}
.work-tag {
  display: inline-block; font-size: 10px; padding: 4px 10px;
  border: 1px solid var(--y-border); border-radius: 20px;
  color: var(--y); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px; background: rgba(245,200,66,0.1);
}
.work-img-title {
  font-size: 24px; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px;
}

.honey-bg {
  background: url('../assets/honey-img.jpg') center center / cover no-repeat;
}
.work-card:hover .honey-bg { transform: scale(1.03); }

.argan-bg {
  background: url('../assets/argan.jpg') center center / cover no-repeat;
}
.work-card:hover .argan-bg { transform: scale(1.03); }

.rose-bg {
  background: linear-gradient(135deg, #1a0d0d, #2b1016);
}

.honey-bg::before, .argan-bg::before, .rose-bg::before {
  content: ''; position: absolute; inset: 0;
}
.honey-bg::before {
  background: linear-gradient(to bottom, rgba(9,9,9,0.1) 0%, rgba(9,9,9,0.6) 100%);
}
.argan-bg::before {
  background: linear-gradient(to bottom, rgba(9,9,9,0.05) 0%, rgba(9,9,9,0.55) 100%);
}
.rose-bg::before {
  background: radial-gradient(circle at 70% 50%, rgba(244,63,94,0.3) 0%, transparent 60%);
  opacity: 0.15;
}

.work-body { padding: 1.5rem 1.8rem 2rem; }
.work-meta {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap;
}
.work-type { font-size: 12px; color: var(--y); letter-spacing: 0.5px; }
.work-location { font-size: 12px; color: var(--dim); }
.work-location::before { content: '·'; margin-right: 12px; }
.work-desc { font-size: 14px; color: var(--muted); line-height: 1.8; }

.work-stats {
  display: flex; gap: 2rem; margin-top: 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.ws-n { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--y); margin-bottom: 2px; }
.ws-l { font-size: 11px; color: var(--dim); }

.work-coming {
  background: var(--dark2); border: 1px solid var(--y-border);
  border-radius: var(--radius-lg); padding: 5rem 2rem;
  text-align: center; position: relative; overflow: hidden;
}
.coming-orbit {
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px dashed var(--y-border);
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: rotate 15s linear infinite; pointer-events: none;
}
.coming-inner { position: relative; z-index: 1; }
.coming-title {
  font-size: 38px; font-weight: 800; color: var(--text);
  letter-spacing: -1px; line-height: 1.1;
  margin: 12px 0 14px;
}
.coming-sub {
  font-size: 16px; color: var(--muted); line-height: 1.8;
  max-width: 400px; margin: 0 auto 28px;
}

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card:first-child { grid-column: auto; }
  .page-hero { padding: 100px 0 3.5rem; }
  .page-title { font-size: 34px; letter-spacing: -1px; }
  .page-sub { font-size: 15px; }
  .work-body { padding: 1.25rem 1.4rem 1.75rem; }
  .work-stats { gap: 1.25rem; }
  .work-img { height: 260px; }
  .work-card-sm .work-img { height: 220px; }
}

@media (max-width: 380px) {
  .page-hero { padding: 90px 0 3rem; }
  .page-title { font-size: 28px; }
  .work-stats { gap: 1rem; }
  .ws-n { font-size: 19px; }
}

/* ---- SCROLL POP ANIMATION ---- */
.pop-card {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s ease;
}
.pop-card.popped {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---- CLICK HINT ---- */
.work-card { cursor: pointer; }
.click-hint {
  position: absolute; top: 1rem; right: 1rem;
  z-index: 2;
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--text);
  background: rgba(9,9,9,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px; padding: 6px 12px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(6px);
  letter-spacing: 0.3px;
}
.work-card:hover .click-hint {
  opacity: 1; transform: translateY(0);
}
/* Touch devices can't hover — show the hint so tappability is clear */
@media (hover: none) and (pointer: coarse) {
  .click-hint { opacity: 1; transform: translateY(0); }
}

/* ---- LIGHTBOX ---- */
.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(6px);
}
.lightbox-backdrop.open {
  opacity: 1; pointer-events: all;
}

.lightbox {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open {
  opacity: 1; pointer-events: all;
}

.lb-inner {
  background: #111111;
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 28px;
  width: 100%; max-width: 820px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}
.lightbox.open .lb-inner {
  transform: scale(1) translateY(0);
}

.lb-close {
  position: fixed; top: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(17,17,17,0.9); border: 1px solid rgba(255,255,255,0.1);
  color: #F0F0F0; cursor: pointer; z-index: 2001;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.lb-close:hover { background: #222; border-color: rgba(245,200,66,0.4); }

.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(17,17,17,0.85); border: 1px solid rgba(255,255,255,0.1);
  color: #F0F0F0; cursor: pointer; z-index: 2001;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.lb-arrow:hover { border-color: rgba(245,200,66,0.4); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

/* SLIDES */
.lb-slides {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.lb-slide {
  flex: 0 0 100%; min-width: 0;
  overflow-y: auto; max-height: 90vh;
}

.slide-visual {
  height: 320px; position: relative; overflow: hidden;
}
.slide-visual-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(17,17,17,0.95) 100%);
}
.slide-visual-label {
  position: absolute; bottom: 1.5rem; left: 2rem;
}
.slide-visual-tag {
  display: inline-block; font-size: 10px; padding: 4px 10px;
  border: 1px solid rgba(245,200,66,0.35); border-radius: 20px;
  color: #F5C842; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px; background: rgba(245,200,66,0.1);
}
.slide-visual-title {
  font-family: 'Syne', sans-serif;
  font-size: 32px; font-weight: 800; color: #F0F0F0;
  letter-spacing: -1px;
}

.slide-body { padding: 2rem 2.5rem 2.5rem; }
.slide-meta {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
.slide-type { font-size: 12px; color: #F5C842; }
.slide-location { font-size: 12px; color: #444; }
.slide-location::before { content: '·'; margin-right: 10px; }

.slide-desc {
  font-size: 15px; color: #888; line-height: 1.85;
  margin-bottom: 2rem;
}

.slide-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 2rem;
}
.slide-feature {
  background: #181818; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 14px 16px;
}
.sf-label { font-size: 11px; color: #444; margin-bottom: 4px; letter-spacing: 0.5px; }
.sf-value { font-size: 14px; color: #F0F0F0; font-weight: 500; }

.slide-stats {
  display: flex; gap: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ss-n {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 800; color: #F5C842;
  margin-bottom: 2px;
}
.ss-l { font-size: 11px; color: #444; }

/* DOTS */
.lb-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 1rem 0 1.2rem;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.lb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #333; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lb-dot.active { background: #F5C842; transform: scale(1.3); }

@media (max-width: 600px) {
  .lb-arrow { display: none; }
  .slide-visual { height: 220px; }
  .slide-body { padding: 1.5rem; }
  .slide-features { grid-template-columns: 1fr; }
  .slide-visual-title { font-size: 24px; }
}

/* ---- LIGHTBOX REDESIGN — real project preview ---- */

.lightbox { align-items: flex-start; padding: 1.5rem; overflow-y: auto; }

.lb-inner {
  background: #111111;
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 24px;
  width: 100%; max-width: 1060px;
  margin: auto;
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.lightbox.open .lb-inner { transform: scale(1) translateY(0); }

/* Two-col layout */
.lb-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 520px;
}
.lb-layout.no-preview { grid-template-columns: 1fr 1fr; }

/* Left — info panel */
.lb-info {
  padding: 2rem 1.8rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 1.4rem;
  overflow-y: auto;
}
.lb-project-tag {
  display: inline-block; font-size: 10px; padding: 4px 10px;
  border: 1px solid rgba(245,200,66,0.3); border-radius: 20px;
  color: #F5C842; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(245,200,66,0.08); margin-bottom: 8px;
}
.lb-project-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800; color: #F0F0F0;
  letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 6px;
}
.lb-project-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-type { font-size: 12px; color: #F5C842; }
.lb-location { font-size: 12px; color: #444; }
.lb-location::before { content: '·'; margin-right: 8px; }

.lb-desc { font-size: 13.5px; color: #888; line-height: 1.85; }

.lb-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.lb-feature {
  background: #181818; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; padding: 10px 12px;
}
.lbf-label { font-size: 10px; color: #444; margin-bottom: 3px; letter-spacing: 0.5px; text-transform: uppercase; }
.lbf-value { font-size: 13px; color: #F0F0F0; font-weight: 500; }

.lb-stats { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
.lbs-n {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800; color: #F5C842; margin-bottom: 2px;
}
.lbs-l { font-size: 11px; color: #444; }

.lb-visit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; background: #F5C842; color: #090909;
  border-radius: 50px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; margin-top: auto;
  text-decoration: none; width: fit-content;
}
.lb-visit-btn:hover { background: #FFD96B; transform: translateY(-1px); }

.lb-coming {
  font-size: 12px; color: #444; margin-top: auto;
  padding: 10px 14px; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; text-align: center;
}

/* Right — browser preview */
.lb-preview-wrap {
  display: flex; flex-direction: column;
  background: #0D0D0D;
}
.lb-browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: #1A1A1A; border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.lb-browser-dots { display: flex; gap: 6px; }
.lb-browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.lb-browser-dots span:nth-child(1) { background: #FF5F57; }
.lb-browser-dots span:nth-child(2) { background: #FFBD2E; }
.lb-browser-dots span:nth-child(3) { background: #28CA41; }
.lb-browser-url {
  font-size: 11px; color: #555; letter-spacing: 0.3px;
  background: rgba(255,255,255,0.04); border-radius: 6px;
  padding: 4px 12px; flex: 1; text-align: center;
}

.lb-iframe-wrap {
  flex: 1; position: relative; min-height: 460px;
}
.lb-iframe {
  width: 200%; height: 100%;
  border: none; display: block;
  transform: scale(0.5); transform-origin: top left;
  position: absolute; top: 0; left: 0;
  pointer-events: none;
}
.lb-iframe-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: rgba(9,9,9,0.3);
  transition: background 0.2s;
}
.lb-iframe-overlay:hover { background: rgba(9,9,9,0.1); }
.lb-iframe-hint {
  font-size: 12px; color: rgba(255,255,255,0.7);
  background: rgba(9,9,9,0.7); border-radius: 20px;
  padding: 7px 16px; border: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.3px;
}

/* No preview fallback */
.lb-no-preview {
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; position: relative; overflow: hidden;
}
.lb-no-preview-inner {
  text-align: center; position: relative; z-index: 1;
}
.lb-np-tag {
  font-size: 10px; color: #F5C842; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 12px;
}
.lb-np-title {
  font-family: 'Syne', sans-serif;
  font-size: 32px; font-weight: 800; color: #F0F0F0;
  letter-spacing: -0.5px; margin-bottom: 8px;
}
.lb-np-sub { font-size: 13px; color: #555; }

@media (max-width: 760px) {
  .lb-layout, .lb-layout.no-preview { grid-template-columns: 1fr; }
  .lb-info { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 1.4rem; }
  .lb-iframe-wrap { min-height: 220px; }
  .lb-project-title { font-size: 22px; }
  .lb-features { grid-template-columns: 1fr; }
  .lb-stats { gap: 1.25rem; }
}
