/* ============================================================
   VELENCIA STUDIOS — Portfolio CSS
   9:16 Portrait Video Cards
   ============================================================ */

/* ---------- RESET & ROOT ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:       #060608;
  --surface:  #0e0e12;
  --card:     #13131a;
  --line:     rgba(255,255,255,0.07);
  --teal:     #16e0c4;
  --amber:    #ff8a3d;
  --purple:   #b77fff;
  --paper:    #f0ede8;
  --muted:    rgba(240,237,232,0.45);
  --font:     'Outfit', sans-serif;
  --mono:     'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--paper);
  overflow-x: hidden;
  cursor: none;
}

/* ---------- NOISE TEXTURE ---------- */
.noise {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(22,224,196,0.5); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); transition: all 0.12s ease;
}
body:has(.vcard:hover) .cursor { transform: translate(-50%,-50%) scale(2.5); background: var(--amber); }
body:has(.vcard:hover) .cursor-ring { opacity: 0; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* ---------- SELECTION ---------- */
::selection { background: var(--teal); color: #000; }

/* ---------- HEADER ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; padding: 1.4rem 3rem;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
header.scrolled {
  background: rgba(6,6,8,0.8);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.logo {
  font-family: var(--font); font-weight: 800; font-size: 1.4rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-right: auto;
}
.logo .dot { color: var(--teal); }
nav { display: flex; gap: 2.5rem; margin-right: 2.5rem; }
nav a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color 0.25s ease;
}
nav a:hover { color: var(--paper); }
.btn-hire {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #000; background: var(--teal); text-decoration: none;
  padding: 0.55rem 1.3rem; border-radius: 2rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-hire:hover { background: #0ac9b0; transform: scale(1.04); }

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 10rem 3rem 6rem;
  position: relative; overflow: hidden;
}
.hero-layout {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1400px; margin: 0 auto; gap: 4rem;
}
.hero-content {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; z-index: 2;
}
.hero-image-wrapper {
  flex: 1; position: relative; display: flex; justify-content: center; align-items: center; z-index: 1;
}
.hero-image-fx {
  width: 100%; max-width: 500px; height: auto; object-fit: contain;
  animation: floatImage 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  position: relative; z-index: 2; border-radius: 12px;
}
.hero-image-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(22,224,196,0.15) 0%, transparent 65%);
  filter: blur(40px); z-index: 1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1.5deg); }
}
@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
#hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,224,196,0.07) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: ''; position: absolute; bottom: 0; left: 20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,61,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  border: 1px solid rgba(22,224,196,0.25); padding: 0.35rem 0.9rem;
  border-radius: 2rem; margin-bottom: 2.5rem; display: inline-block;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(22,224,196,0.2); }
  50%{ box-shadow: 0 0 0 6px rgba(22,224,196,0); }
}

.hero-title {
  display: flex; flex-direction: column;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800; line-height: 0.92;
  letter-spacing: -0.03em; margin-bottom: 2rem;
}
.hero-title .line { display: block; }
.hero-title .accent {
  -webkit-text-stroke: 2px var(--teal);
  color: transparent;
  animation: strokeShift 6s ease-in-out infinite;
}
@keyframes strokeShift {
  0%,100%{ -webkit-text-stroke-color: var(--teal); }
  50%{ -webkit-text-stroke-color: var(--amber); }
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem); color: var(--muted);
  max-width: 540px; line-height: 1.75; margin-bottom: 2.8rem; font-weight: 300;
}
.hero-btns { display: flex; gap: 1.2rem; margin-bottom: 4rem; }

.btn-primary {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--teal); color: #000;
  padding: 0.9rem 2.2rem; border-radius: 2rem; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 0 rgba(22,224,196,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(22,224,196,0.3);
}
.btn-primary.big { font-size: 1rem; padding: 1.1rem 2.8rem; }

.btn-outline {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper);
  border: 1px solid var(--line); padding: 0.9rem 2.2rem;
  border-radius: 2rem; text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.hero-stats { display: flex; align-items: center; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--paper); }
.stat-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.stat-divider { width: 1px; height: 40px; background: var(--line); }

.scroll-cue {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  color: var(--muted); text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--teal), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop { 0%,100%{ opacity:0.3; } 50%{ opacity:1; } }

/* ---------- SECTIONS ---------- */
section { padding: 7rem 3rem; max-width: 1400px; margin: 0 auto; }

.eyebrow {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}
.section-header { margin-bottom: 5rem; max-width: 600px; }
.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-header p { font-size: 1rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- CATEGORY ---------- */
.category { margin-bottom: 6rem; }
.category-label {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.cat-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cat-count { margin-left: auto; }

/* ---------- VIDEO ROW ---------- */
.video-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.video-row-centered {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}
.video-row-single {
  grid-template-columns: 1fr;
  max-width: 300px;
}

/* ---------- VIDEO CARD 9:16 ---------- */
.vcard {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.45s ease, border-color 0.3s ease;
}
.vcard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(22,224,196,0.2);
  border-color: rgba(22,224,196,0.3);
}
.vcard.featured {
  /* talking head single card — slightly wider */
  max-width: 300px;
}

.vcard-inner { position: absolute; inset: 0; }

/* Gradient background before video loads */
.vcard-bg {
  position: absolute; inset: 0;
  transition: opacity 0.5s ease;
}
.grad-teal  { background: linear-gradient(155deg, #0b2e2a 0%, #050608 60%); }
.grad-amber { background: linear-gradient(155deg, #2e1a08 0%, #050608 60%); }
.grad-purple{ background: linear-gradient(155deg, #1a0f2e 0%, #050608 60%); }

/* VIDEO ELEMENT */
.vcard video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.vcard.loaded video { opacity: 1; }
.vcard.loaded .vcard-bg { opacity: 0.15; }

/* Dark gradient overlay for text readability */
.vcard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    transparent 35%,
    transparent 55%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

/* TOP BAR */
.vcard-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1rem 0;
}
.vtc {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.vrec {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 0.3rem;
}
.rdot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
  animation: blink 1.4s ease-in-out infinite;
}
.rdot.amber  { background: var(--amber); }
.rdot.purple { background: var(--purple); }
@keyframes blink { 0%,100%{ opacity:1; } 50%{ opacity:0.2; } }

/* BOTTOM CONTENT */
.vcard-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.5rem 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}

/* PLAY BUTTON */
.vcard-play {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(22,224,196,0.15);
  border: 1px solid rgba(22,224,196,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(6px);
}
.vcard-play.amber  { background: rgba(255,138,61,0.15); border-color: rgba(255,138,61,0.5); color: var(--amber); }
.vcard-play.purple { background: rgba(183,127,255,0.15); border-color: rgba(183,127,255,0.5); color: var(--purple); }
.vcard-play svg { width: 14px; height: 14px; margin-left: 2px; }
.vcard:hover .vcard-play { opacity: 1; transform: scale(1); }

.vcard-info h3 {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.03em; line-height: 1.3;
}
.vcard-info span {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.06em; color: var(--muted);
}

/* Scanline hover effect */
.vcard::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 18%;
  top: -25%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: top 1.2s ease;
  z-index: 3; pointer-events: none;
}
.vcard:hover::after { top: 115%; }

/* ---------- ABOUT ---------- */
#about { max-width: 1000px; }
.about-wrapper { display: flex; align-items: center; gap: 4rem; }
.about-image { flex-shrink: 0; width: 280px; height: 280px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.about-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.1); transition: filter 0.4s ease; }
.about-image:hover img { filter: grayscale(0) contrast(1); }
#about h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.about-text { font-size: 1.05rem; color: var(--muted); line-height: 1.8; margin-bottom: 2.5rem; font-weight: 300; }
.about-text strong { color: var(--paper); font-weight: 600; }

.skills-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem; list-style: none;
}
.skills-list li {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--muted); display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.skills-list li:hover { border-color: var(--teal); color: var(--paper); }
.skill-icon { color: var(--teal); font-size: 0.65rem; }

/* ---------- CONTACT ---------- */
#contact { text-align: center; }
#contact .eyebrow { justify-content: center; display: block; }
#contact h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.contact-sub { font-size: 1rem; color: var(--muted); margin-bottom: 3rem; font-weight: 300; }

/* ---------- FOOTER ---------- */
footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 3rem; border-top: 1px solid var(--line);
  max-width: 1400px; margin: 0 auto;
}
.logo-sm { font-size: 1rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-copy { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(12px);
  cursor: pointer;
}
.lb-box {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  transform: scale(0.9); transition: transform 0.35s ease;
}
.lightbox.open .lb-box { transform: scale(1); }

#lbVideo {
  /* show at 9:16 in lightbox too */
  max-height: 82vh;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
}
.lb-meta { text-align: center; }
.lb-meta h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.lb-meta span { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; }
.lb-close {
  position: absolute; top: -50px; right: 0;
  background: none; border: 1px solid var(--line); color: var(--paper);
  width: 38px; height: 38px; border-radius: 50%; font-size: 0.9rem;
  cursor: pointer; transition: border-color 0.25s, color 0.25s;
}
.lb-close:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .video-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  header { padding: 1.2rem 1.5rem; }
  nav { display: none; }
  #hero { padding: 8rem 1.5rem 5rem; }
  .hero-layout { flex-direction: column-reverse; gap: 3rem; text-align: center; }
  .hero-content { align-items: center; }
  .hero-title { font-size: clamp(3rem, 12vw, 4.5rem); }
  section { padding: 5rem 1.5rem; }
  .video-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .video-row-centered { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .video-row-single { max-width: 200px; }
  .skills-list { grid-template-columns: repeat(2,1fr); }
  .about-wrapper { flex-direction: column; text-align: center; gap: 2.5rem; }
  #about .eyebrow { display: flex; justify-content: center; }
  .about-image { width: 220px; height: 220px; }
  footer { flex-direction: column; gap: 0.8rem; text-align: center; }
}
@media (max-width: 520px) {
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .video-row { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-divider { display: none; }
}
