/* =============================================
   LEMONADA LABS — FUTURISTIC
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07080F;
  --bg-2:      #0D0E1A;
  --hotpink:   #E20074;
  --pink-glow: rgba(226, 0, 116, 0.65);
  --pink-soft: rgba(226, 0, 116, 0.18);
  --cyan:      #00D4FF;
  --cyan-soft: rgba(0, 212, 255, 0.15);
  --yellow:    #FFE500;
  --yellow-soft: rgba(255, 229, 0, 0.13);
  --white:     #FFFFFF;
  --off-white: #FFFEF5;
  --muted:     rgba(255, 255, 255, 0.45);
  --border:    rgba(255, 255, 255, 0.07);

  --font-brand: 'Pacifico', cursive;
  --font-body:  'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* nav removed — legal pages keep their own minimal nav */

/* =============================================
   HERO — two-column, full viewport
   ============================================= */
.hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 3rem;
  padding: 3rem 4rem 3rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Subtle grid */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Neon aurora blobs */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
}

.b1 {
  width: 700px; height: 700px;
  background: var(--hotpink);
  opacity: 0.14;
  top: -200px; right: -150px;
  animation: bdrift1 28s ease-in-out infinite;
}
.b2 {
  width: 600px; height: 600px;
  background: var(--cyan);
  opacity: 0.11;
  bottom: -200px; left: -100px;
  animation: bdrift2 22s ease-in-out infinite;
}
.b3 {
  width: 450px; height: 450px;
  background: var(--yellow);
  opacity: 0.08;
  top: 40%; left: 35%;
  animation: bdrift3 34s ease-in-out infinite;
}

@keyframes bdrift1 {
  0%,100% { transform: translate(0,0);        }
  33%      { transform: translate(-60px,50px); }
  66%      { transform: translate(40px,-40px); }
}
@keyframes bdrift2 {
  0%,100% { transform: translate(0,0);        }
  33%      { transform: translate(70px,-50px); }
  66%      { transform: translate(-30px,60px); }
}
@keyframes bdrift3 {
  0%,100% { transform: translate(0,0);        }
  50%      { transform: translate(-80px,-60px); }
}

/* Left column */
.hero-left {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Right column */
.hero-right {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
}

/* ---- Headline ---- */
.headline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.line-lemonada {
  font-family: var(--font-brand);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.0;
  color: var(--hotpink);
  display: block;
  animation: titleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both,
             titleGlow 4s ease-in-out 1.5s infinite;
  text-shadow:
    0 0 30px rgba(226, 0, 116, 0.7),
    0 0 80px rgba(226, 0, 116, 0.3);
}

.line-labs {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 3.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  line-height: 1;
  animation: titleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

/* ---- Divider ---- */
.divider {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, var(--hotpink), transparent);
  box-shadow: 0 0 10px var(--hotpink);
  animation: fadeIn 0.6s ease 0.7s both;
}

/* =============================================
   TERMINAL BLOCK
   ============================================= */
.terminal {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(226,0,116,0.08), 0 28px 70px rgba(0,0,0,0.5);
  animation: fadeIn 0.6s ease 0.85s both;
}

/* title bar */
.t-bar {
  background: rgba(255,255,255,0.045);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.td-red    { background: #FF5F57; }
.td-yellow { background: #FEBC2E; }
.td-green  { background: #28C840; }
.t-title {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.03em;
}

/* scrollable body — fills most of viewport height */
.t-body {
  padding: 1.3rem 1.6rem 1.5rem;
  height: calc(100vh - 10rem);
  max-height: 520px;
  overflow-y: auto;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
}
.t-body::-webkit-scrollbar { width: 3px; }
.t-body::-webkit-scrollbar-track { background: transparent; }
.t-body::-webkit-scrollbar-thumb { background: rgba(226,0,116,0.35); border-radius: 2px; }

/* line types */
.tl-cmd  { display: flex; align-items: baseline; }
.tl-out  { color: rgba(255,255,255,0.7); }
.tl-prog { display: flex; align-items: center; white-space: pre; }
.tl-resp { color: rgba(255,255,255,0.65); padding-left: 0; margin: 0.1rem 0; }
.tl-hint { color: rgba(255,255,255,0.28); font-size: 0.82em; }

/* prompt $ */
.t-prompt-char {
  color: var(--hotpink);
  text-shadow: 0 0 10px var(--pink-glow);
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
}

/* progress bar pieces */
.t-lbl { font-weight: 700; }
.t-bar { letter-spacing: -0.5px; }
.t-ok  { font-weight: 700; }

/* help table */
.t-hr  { display: flex; padding-left: 2ch; }
.t-hk  { color: var(--hotpink); text-shadow: 0 0 8px var(--pink-glow); min-width: 9ch; }
.t-hd  { color: rgba(255,255,255,0.45); }

/* misc */
.t-link { color: var(--hotpink); text-decoration: none; }
.t-link:hover { text-decoration: underline; }
.t-err   { color: rgba(255,80,80,0.85); }
.t-muted { color: rgba(255,255,255,0.3); }
.t-input-text { color: rgba(255,255,255,0.9); }

/* neon colour helpers */
.col-pink   { color: var(--hotpink); text-shadow: 0 0 8px var(--pink-glow); }
.col-teal   { color: var(--cyan);    text-shadow: 0 0 8px rgba(0,212,255,0.5); }
.col-yellow { color: var(--yellow);  text-shadow: 0 0 8px rgba(255,229,0,0.4); }

/* pill callouts (used inline in typed text + command responses) */
.pill {
  display: inline;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.05em 0.4em 0.1em;
  border-width: 1px;
  border-style: solid;
  background: none;
}
.pill-pink   { color: var(--hotpink); background: var(--pink-soft);   border-color: rgba(226,0,116,0.35);  text-shadow: 0 0 8px rgba(226,0,116,0.4); }
.pill-teal   { color: var(--cyan);    background: var(--cyan-soft);   border-color: rgba(0,212,255,0.3);   text-shadow: 0 0 8px rgba(0,212,255,0.3); }
.pill-yellow { color: var(--yellow);  background: var(--yellow-soft); border-color: rgba(255,229,0,0.28);  text-shadow: 0 0 8px rgba(255,229,0,0.22); }

/* cursor */
.t-cursor { display: inline-block; color: var(--hotpink); text-shadow: 0 0 8px var(--pink-glow); margin-left: 1px; }
.t-cursor.blink { animation: cursorBlink 1.1s step-end infinite; }
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 0 40px rgba(226,0,116,0.7), 0 0 100px rgba(226,0,116,0.3);
  }
  50% {
    text-shadow: 0 0 60px rgba(226,0,116,0.9), 0 0 140px rgba(226,0,116,0.45);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   BOTTOM BAR (minimal)
   ============================================= */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem 2rem;
  background: rgba(7, 8, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.bottom-bar a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}
.bottom-bar a:hover { color: rgba(255,255,255,0.75); }

.bottom-bar span {
  margin-left: auto;
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
}

/* =============================================
   INNER PAGES (Privacy / Terms)
   ============================================= */
.page-hero {
  min-height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--hotpink);
  text-shadow: 0 0 40px var(--pink-glow);
  margin-bottom: 0.6rem;
}

.page-hero .page-sub {
  font-size: 1rem;
  color: var(--muted);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 2.5rem 0 0.8rem;
  letter-spacing: 0.02em;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  line-height: 1.85;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: rgba(255,255,255,0.6);
}
.legal-content ul li { margin-bottom: 0.4rem; line-height: 1.85; }
.legal-content a { color: var(--hotpink); text-decoration: underline; }

.legal-updated {
  display: inline-block;
  background: var(--pink-soft);
  border: 1px solid rgba(226,0,116,0.3);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hotpink);
  margin-bottom: 2.5rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    padding: 4rem 2rem 3rem;
    gap: 2.5rem;
  }
  .hero-left { align-items: flex-start; }
  .t-body { height: 300px; max-height: 300px; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-links { flex-wrap: wrap; gap: 0.8rem; }
}

/* =============================================
   PORTFOLIO OVERLAY
   ============================================= */
.portfolio-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 8, 15, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.portfolio-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.portfolio-panel {
  width: 100%;
  max-width: 920px;
  max-height: 86vh;
  overflow-y: auto;
  background: rgba(11, 12, 22, 0.97);
  border: 1px solid rgba(226, 0, 116, 0.18);
  border-radius: 20px;
  padding: 2rem 2rem 2.5rem;
  box-shadow:
    0 0 0 1px rgba(226, 0, 116, 0.06),
    0 0 80px rgba(226, 0, 116, 0.1),
    0 40px 100px rgba(0, 0, 0, 0.65);
  transform: translateY(28px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay.active .portfolio-panel {
  transform: translateY(0);
}

.portfolio-panel::-webkit-scrollbar { width: 3px; }
.portfolio-panel::-webkit-scrollbar-track { background: transparent; }
.portfolio-panel::-webkit-scrollbar-thumb { background: rgba(226,0,116,0.35); border-radius: 2px; }

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.portfolio-header-left {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.portfolio-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hotpink);
  text-shadow: 0 0 16px var(--pink-glow);
}

.portfolio-count {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.22);
}

.portfolio-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.38);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1;
}

.portfolio-close:hover {
  border-color: rgba(226, 0, 116, 0.55);
  color: var(--hotpink);
  box-shadow: 0 0 12px rgba(226, 0, 116, 0.28);
}

/* 6-column grid: first 2 cards span 3 (featured row), rest span 2 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: default;
  border: 1px solid rgba(255,255,255,0.07);
  background: #000;
  aspect-ratio: 16 / 9;
  display: block;
  transition: border-color 0.22s, box-shadow 0.22s;
}

/* first 2 = large featured; rest = smaller supporting clips */
.video-card:nth-child(1),
.video-card:nth-child(2) { grid-column: span 3; }

.video-card:nth-child(n+3) { grid-column: span 2; }

.video-card:hover {
  border-color: rgba(226, 0, 116, 0.28);
  box-shadow: 0 0 18px rgba(226, 0, 116, 0.1);
}

/* featured "famous person" card — always-on pink glow */
.video-card.video-star {
  border-color: rgba(226, 0, 116, 0.38);
  box-shadow: 0 0 28px rgba(226, 0, 116, 0.16);
}
.video-card.video-star:hover {
  border-color: rgba(226, 0, 116, 0.6);
  box-shadow: 0 0 40px rgba(226, 0, 116, 0.25);
}

/* thumbnail fills card */
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* blocks all interaction */
.video-block {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  cursor: default;
}

/* featured badge for the star card */
.video-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 20;
  background: rgba(226, 0, 116, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 0, 116, 0.5);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(226,0,116,0.5);
}

@media (max-width: 600px) {
  .portfolio-overlay { padding: 1rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card:nth-child(1),
  .video-card:nth-child(2),
  .video-card:nth-child(n+3) { grid-column: span 1; }
}
