/* ═══════════════════════════════════════════
   Grownika — Portfolio Page
═══════════════════════════════════════════ */

/* ── Hero ── */
.port-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 130px 40px 70px;
  overflow: hidden;
}

.port-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,200,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.port-hero > * { position: relative; z-index: 1; }

.port-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(0,212,200,0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  background: rgba(0,212,200,0.06);
}

.port-tag span { animation: blink 2s infinite; }
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.port-h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.port-h1 .glow-word {
  background: linear-gradient(135deg, var(--cyan) 0%, #fff 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.port-sub {
  font-size: 16px;
  color: var(--lgray);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── Stats row ── */
.port-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,212,200,0.15);
  border-radius: 100px;
  overflow: hidden;
}

.stat-chip {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  border-right: 1px solid rgba(0,212,200,0.12);
  white-space: nowrap;
}
.stat-chip:last-child { border-right: none; }
.stat-chip .stat-num { color: var(--cyan); }

/* ══════════════════════════════════════════
   FEATURED SECTION
══════════════════════════════════════════ */
.port-featured {
  position: relative;
  z-index: 1;
  padding: 0 40px 70px;
  max-width: 1200px;
  margin-inline: auto;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,212,200,0.4), transparent);
}
.eyebrow-line.right {
  background: linear-gradient(270deg, rgba(0,212,200,0.4), transparent);
}
.eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}

/* Featured grid — 2 large cards centred */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 340px);
  gap: 32px;
  justify-content: center;
}

.featured-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(0,212,200,0.35);
  box-shadow: 0 0 40px rgba(0,212,200,0.12), 0 12px 40px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.25,1,0.5,1), box-shadow 0.4s ease;
  background: #0a0a0a;
}
.featured-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 0 80px rgba(0,212,200,0.3), 0 30px 80px rgba(0,0,0,0.6);
}

/* Rotating glow border on hover */
.featured-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: conic-gradient(from 0deg, transparent 0%, var(--cyan) 20%, transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: spin-border 3s linear infinite;
}
.featured-card:hover::before { opacity: 1; }

@keyframes spin-border {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Featured badge */
.featured-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #080808;
  box-shadow: 0 0 20px rgba(0,212,200,0.5);
  animation: badge-pulse 2.5s ease infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 20px rgba(0,212,200,0.5); }
  50%      { box-shadow: 0 0 35px rgba(0,212,200,0.9); }
}

/* 9:16 video wrap */
.port-vid-wrap {
  position: relative;
  width: 100%;
  padding-top: 177.78%;
  background: #060606;
  overflow: hidden;
}
.port-vid-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Hover play overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}
.port-vid-wrap:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,212,200,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 40px rgba(0,212,200,0.6);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}
.port-vid-wrap:hover .play-btn { transform: scale(1); }

/* Card footer */
.port-card-foot {
  padding: 14px 18px 18px;
  background: rgba(0,212,200,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.port-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.port-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 3px 10px;
  border: 1px solid rgba(0,212,200,0.3);
  border-radius: 100px;
}

/* ══════════════════════════════════════════
   MORE VIDEOS GRID
══════════════════════════════════════════ */
.port-more {
  position: relative;
  z-index: 1;
  padding: 0 40px 80px;
  max-width: 1200px;
  margin-inline: auto;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.more-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0a;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.more-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,200,0.35);
  box-shadow: 0 0 40px rgba(0,212,200,0.15), 0 16px 40px rgba(0,0,0,0.5);
}

.more-card-num {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 10;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(0,212,200,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
}

.more-card-foot {
  padding: 10px 14px 12px;
  background: rgba(255,255,255,0.02);
}
.more-card-foot span {
  font-size: 12px;
  font-weight: 600;
  color: var(--lgray);
}

/* ══════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════ */
.port-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 40px 100px;
}
.port-cta-box {
  display: inline-block;
  padding: 48px 60px;
  border-radius: 24px;
  background: rgba(0,212,200,0.04);
  border: 1px solid rgba(0,212,200,0.15);
  backdrop-filter: blur(20px);
  max-width: 560px;
  width: 100%;
}
.port-cta-box h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}
.port-cta-box p {
  color: var(--lgray);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .more-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .port-hero     { padding: 100px 20px 50px; }
  .port-featured,
  .port-more     { padding-inline: 16px; }
  .port-cta      { padding-inline: 16px; }
  .port-cta-box  { padding: 32px 24px; }
  .featured-grid { grid-template-columns: 1fr; gap: 20px; }
  .more-grid     { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .port-stats    { flex-direction: column; border-radius: 16px; gap: 0; }
  .stat-chip     { border-right: none; border-bottom: 1px solid rgba(0,212,200,0.12); }
  .stat-chip:last-child { border-bottom: none; }
}

/* Nav active */
.nav-active { color: var(--cyan) !important; }

/* ══════════════════════════════════════════
   HOMEPAGE PORTFOLIO PREVIEW SECTION
══════════════════════════════════════════ */
.port-preview-section {
  position: relative;
  z-index: 1;
  padding: 90px 40px 80px;
  max-width: 1200px;
  margin-inline: auto;
}

/* 3-column grid for the 3 preview videos */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .port-preview-section { padding-inline: 20px; }
}
@media (max-width: 560px) {
  .preview-grid { grid-template-columns: 1fr; gap: 20px; }
  .port-preview-section { padding: 60px 16px; }
}

/* ════════════════════════════════════════════
   REEL GRID — Instagram-style video experience
════════════════════════════════════════════ */

/* ── Filter chips ── */
.rg-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.rg-chip {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.rg-chip:hover { border-color: rgba(0,212,200,0.4); color: rgba(255,255,255,0.7); }
.rg-chip--active {
  border-color: var(--cyan);
  background: rgba(0,212,200,0.12);
  color: var(--cyan);
}

/* ── Grid layouts ── */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  transition: opacity 0.2s ease;
}
.rg-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transition: opacity 0.2s ease;
}

/* ── Card ── */
.rg-card {
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rg-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 40px rgba(0,212,200,0.22), 0 2px 12px rgba(0,0,0,0.5);
  border-color: rgba(0,212,200,0.45);
}
.rg-card--large .rg-thumb { /* taller card for featured */ }

/* ── Thumbnail ── */
.rg-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0a0a0a;
}
.rg-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rg-card:hover .rg-thumb img { transform: scale(1.04); }

/* ── Overlay ── */
.rg-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  transition: background 0.3s ease;
}
.rg-card:hover .rg-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%); }

.rg-play-ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,212,200,0.15);
  border: 2px solid rgba(0,212,200,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--cyan);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rg-card--large .rg-play-ring { width: 56px; height: 56px; font-size: 20px; }
.rg-card:hover .rg-play-ring { opacity: 0; transform: scale(0.7); }

.rg-watch-pill {
  position: absolute;
  background: var(--cyan);
  color: #111;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,212,200,0.45);
  pointer-events: none;
}
.rg-card:hover .rg-watch-pill { opacity: 1; transform: translateY(0); }

/* ── Badges ── */
.rg-featured-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(245,183,0,0.15);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  color: var(--gold);
}
.rg-num-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px; font-weight: 800;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

/* ── Card footer ── */
.rg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 12px;
  background: rgba(0,212,200,0.03);
}
.rg-foot-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7); }
.rg-foot-city {
  font-size: 10px; font-weight: 600;
  color: var(--cyan);
  background: rgba(0,212,200,0.1);
  border: 1px solid rgba(0,212,200,0.25);
  border-radius: 4px;
  padding: 2px 7px;
}

.rg-empty { color: rgba(255,255,255,0.3); font-size: 14px; text-align: center; padding: 40px 0; grid-column: 1/-1; }

/* ── Portfolio featured row ── */
.rg-featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
  transition: opacity 0.2s ease;
}
.rg-featured-row .rg-card { }
.rg-section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 22px;
}
.rg-section-divider::before,
.rg-section-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07); }
.rg-section-divider span { font-size: 10px; color: rgba(255,255,255,0.3); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }

/* ══════════════════════════
   LIGHTBOX
══════════════════════════ */
#rgLightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.rg-lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(14px);
}
.rg-lb-close {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 2;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: white; font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.rg-lb-close:hover { background: rgba(255,255,255,0.16); }

.rg-lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.rg-lb-arrow {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white; font-size: 26px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  line-height: 1;
}
.rg-lb-arrow:hover { background: rgba(255,255,255,0.16); transform: scale(1.08); }

.rg-lb-main { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.rg-lb-iframe-wrap {
  width: min(300px, 42vw);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 0 60px rgba(0,212,200,0.18);
  border: 1px solid rgba(0,212,200,0.2);
  animation: rgScaleIn 0.25s ease;
}
.rg-lb-iframe-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

@keyframes rgScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.rg-lb-counter {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* ── Thumbnail strip ── */
.rg-lb-strip-wrap {
  position: relative;
  z-index: 1;
  width: min(520px, 90vw);
  overflow: hidden;
}
.rg-lb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,200,0.3) transparent;
}
.rg-lb-strip::-webkit-scrollbar { height: 3px; }
.rg-lb-strip::-webkit-scrollbar-thumb { background: rgba(0,212,200,0.3); border-radius: 3px; }
.rg-lb-thumb {
  flex-shrink: 0;
  width: 52px;
  aspect-ratio: 9 / 16;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  background-color: #111;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s, transform 0.2s;
}
.rg-lb-thumb:hover { border-color: rgba(0,212,200,0.4); }
.rg-lb-thumb--active { border-color: var(--cyan) !important; transform: scale(1.1); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .rg-grid   { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rg-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rg-featured-row { grid-template-columns: 1fr 1fr; }
  .rg-lb-iframe-wrap { width: min(240px, 55vw); }
}
@media (max-width: 560px) {
  .rg-grid   { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rg-grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rg-featured-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rg-lb-inner { gap: 10px; }
  .rg-lb-arrow { width: 36px; height: 36px; font-size: 20px; }
  .rg-lb-iframe-wrap { width: min(200px, 58vw); }
  .rg-watch-pill { font-size: 11px; padding: 6px 14px; }
}
