/* ============================================================
   Figa Media — Global Stylesheet
   Palette: Midnight #0F032D · Purple Heart #4E2BCC · Lavender #905BF4
            Seashell #EFEFEF · Logo #524c8e · Green accent #58b46e
   Font: Plus Jakarta Sans
   ============================================================ */

:root {
  --midnight: #0F032D;
  --midnight-2: #170a3f;
  --purple: #4E2BCC;
  --lavender: #905BF4;
  --seashell: #EFEFEF;
  --logo-purple: #524c8e;
  --green: #58b46e;
  --text: #EFEFEF;
  --text-dim: rgba(239, 239, 239, 0.65);
  --text-faint: rgba(239, 239, 239, 0.45);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(144, 91, 244, 0.22);
  --radius: 18px;
  --nav-h: 76px;
  --grad: linear-gradient(120deg, #905BF4, #4E2BCC 55%, #58b46e 130%);
  --grad-text: linear-gradient(95deg, #EFEFEF 10%, #905BF4 55%, #58b46e 105%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--midnight);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, iframe, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 92%); margin-inline: auto; }

::selection { background: var(--purple); color: #fff; }

/* ---------- Background blobs ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.blob-1 { width: 560px; height: 560px; top: -180px; left: -120px; background: radial-gradient(circle, #4E2BCC, transparent 70%); }
.blob-2 { width: 480px; height: 480px; top: 32%; right: -160px; background: radial-gradient(circle, #905BF4, transparent 70%); opacity: 0.35; }
.blob-3 { width: 420px; height: 420px; bottom: -140px; left: 24%; background: radial-gradient(circle, #524c8e, transparent 70%); opacity: 0.4; }
.blob-4 { width: 300px; height: 300px; bottom: 18%; right: 12%; background: radial-gradient(circle, #58b46e, transparent 70%); opacity: 0.14; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 3, 45, 0.55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(144, 91, 244, 0.14);
  transition: background 0.3s ease;
}
.navbar.scrolled { background: rgba(15, 3, 45, 0.85); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo-img { height: 40px; width: auto; display: block; }
footer .logo-img { height: 44px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #524c8e, #4E2BCC);
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  box-shadow: 0 0 18px rgba(78, 43, 204, 0.55);
}
.logo-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); position: absolute; transform: translate(11px, -11px); }
.logo span em { font-style: normal; color: var(--lavender); }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 600; }
.nav-links a { color: var(--text-dim); transition: color 0.25s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--seashell); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width 0.3s;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex; align-items: center; border: 1px solid var(--glass-border);
  border-radius: 999px; overflow: hidden; font-size: 0.8rem; font-weight: 700;
}
.lang-switch a { padding: 6px 12px; color: var(--text-faint); transition: 0.25s; }
.lang-switch a.on { background: var(--purple); color: #fff; }
.lang-switch a:not(.on):hover { color: var(--seashell); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; width: 42px; height: 42px; position: relative; z-index: 110; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--seashell);
  margin: 5px auto; border-radius: 2px; transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: none; transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 28px rgba(78, 43, 204, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(144, 91, 244, 0.55); }
.btn-ghost {
  background: var(--glass); color: var(--seashell);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--lavender); background: rgba(144, 91, 244, 0.12); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.02rem; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.hero-lead { color: var(--text-dim); font-size: 1.1rem; max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; }
.stat strong span { color: var(--green); }
.stat small { color: var(--text-faint); font-size: 0.85rem; font-weight: 600; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5;
  background-color: #1c0d4d;
  background-image: url('../img/showreel-cover.jpg');
  background-size: cover; background-position: center;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: grid; place-items: center;
  transition: transform 0.4s ease;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,3,45,0.15), rgba(15,3,45,0.55));
}
.hero-frame:hover { transform: translateY(-6px); }
.hero-frame .play-btn, .hero-frame figcaption { position: relative; z-index: 2; }
.play-btn {
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid; place-items: center; transition: 0.3s;
  animation: pulse 2.6s ease-in-out infinite;
}
.play-btn svg { width: 30px; height: 30px; fill: #fff; margin-left: 5px; }
.hero-frame:hover .play-btn { background: var(--purple); border-color: var(--lavender); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(144, 91, 244, 0.45); }
  50% { box-shadow: 0 0 0 26px rgba(144, 91, 244, 0); }
}
.hero-frame figcaption {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.hero-chip {
  position: absolute; z-index: 5; padding: 9px 16px; border-radius: 999px;
  background: rgba(23, 10, 63, 0.82); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.hero-chip.green::before { background: var(--green); }
.chip-1 { top: 6%;  left: -10%; animation: float 5.0s ease-in-out infinite; }
.chip-2 { top: 20%; right: -12%; animation: float 6.2s ease-in-out 0.6s infinite; }
.chip-3 { top: 52%; left: -14%; animation: float 5.6s ease-in-out 1.1s infinite; }
.chip-4 { bottom: 16%; right: -10%; animation: float 6.6s ease-in-out 0.3s infinite; }
.chip-5 { bottom: 3%; left: 8%; animation: float 5.4s ease-in-out 1.4s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Cards / Services ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at 50% 0%, rgba(144, 91, 244, 0.16), transparent 65%);
}
.card:hover { transform: translateY(-8px); border-color: rgba(144, 91, 244, 0.55); box-shadow: 0 24px 50px rgba(0,0,0,0.35); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(78,43,204,0.35), rgba(144,91,244,0.2));
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--lavender); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.92rem; }
.badge {
  position: absolute; top: 18px; right: 18px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(88, 180, 110, 0.14); color: var(--green);
  border: 1px solid rgba(88, 180, 110, 0.45);
}
.card.featured { border-color: rgba(88, 180, 110, 0.35); }
.card.featured .card-icon { background: linear-gradient(135deg, rgba(88,180,110,0.28), rgba(78,43,204,0.25)); }
.card.featured .card-icon svg { stroke: var(--green); }

/* ---------- Showreel ---------- */
.showreel { padding: 0 0 96px; }
.showreel-frame {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 80px rgba(78, 43, 204, 0.25);
  background: #0a0220;
}
.video-embed { position: relative; padding-top: 56.25%; background: #0a0220; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Showreel click-to-play poster (shows custom cover, loads Vimeo on click) */
.reel-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
  background-color: #0a0220; background-size: cover; background-position: center;
  display: grid; place-items: center; padding: 0;
}
.reel-poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,3,45,0.1), rgba(15,3,45,0.45));
}
.reel-poster .play-btn { position: relative; z-index: 2; }
.reel-poster:hover .play-btn { background: var(--purple); border-color: var(--lavender); }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-item {
  border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.work-item:hover { transform: translateY(-6px); border-color: rgba(144, 91, 244, 0.55); box-shadow: 0 20px 45px rgba(0,0,0,0.4); }
.work-meta { padding: 16px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-meta h3 { font-size: 0.98rem; font-weight: 700; }
.work-tag {
  flex: none; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--lavender); background: rgba(144, 91, 244, 0.12);
  border: 1px solid rgba(144, 91, 244, 0.35);
  padding: 4px 10px; border-radius: 999px;
}
.work-more { text-align: center; margin-top: 44px; }

/* ---------- Filters (projects page) ---------- */
.page-hero { padding: calc(var(--nav-h) + 80px) 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: var(--text-dim); max-width: 560px; margin-inline: auto; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0 48px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: var(--glass); color: var(--text-dim);
  border: 1px solid var(--glass-border); transition: 0.25s;
}
.filter-btn:hover { color: var(--seashell); border-color: var(--lavender); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(78,43,204,0.4); }
.projects-count { text-align: center; color: var(--text-faint); font-size: 0.85rem; margin-bottom: 28px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-copy p { color: var(--text-dim); margin-bottom: 18px; }
.about-quote {
  margin: 26px 0; padding: 22px 26px; border-radius: var(--radius);
  background: rgba(88, 180, 110, 0.07); border-left: 3px solid var(--green);
  font-weight: 600; font-size: 1.05rem; color: var(--seashell); font-style: italic;
}
.about-points { display: grid; gap: 16px; }
.about-point {
  display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}
.about-point:hover { transform: translateX(6px); border-color: rgba(144,91,244,0.5); }
.about-point .dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(144,91,244,0.8); }
.about-point strong { display: block; margin-bottom: 4px; }
.about-point p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: transform 0.3s, border-color 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--lavender); }
.contact-card .ci {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(78,43,204,0.4), rgba(144,91,244,0.2));
  border: 1px solid var(--glass-border); display: grid; place-items: center;
}
.contact-card .ci svg { width: 21px; height: 21px; stroke: var(--lavender); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card small { display: block; color: var(--text-faint); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-card strong { font-size: 1rem; }

.contact-form {
  padding: 34px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 7px; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(15, 3, 45, 0.55); border: 1px solid var(--glass-border);
  color: var(--seashell); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select option { background: var(--midnight-2); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px rgba(144, 91, 244, 0.18);
}
.form-note { font-size: 0.78rem; color: var(--text-faint); margin-top: 12px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(144, 91, 244, 0.14);
  background: rgba(10, 2, 32, 0.6);
  padding: 56px 0 28px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid p { color: var(--text-dim); font-size: 0.9rem; max-width: 320px; margin-top: 14px; }
.footer-grid h4 { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.25s; }
.footer-grid li a:hover { color: var(--lavender); }
.footer-bottom {
  border-top: 1px solid rgba(144, 91, 244, 0.1);
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint); font-size: 0.82rem;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .play-btn, .hero-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(15, 3, 45, 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    font-size: 1.25rem;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-chip { font-size: 0.74rem; padding: 7px 13px; }
  .chip-1 { top: 3%; left: -2%; }
  .chip-2 { top: 16%; right: -2%; }
  .chip-3 { top: 50%; left: -4%; }
  .chip-4 { bottom: 12%; right: -2%; }
  .chip-5 { bottom: 1%; left: 22%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .cards-grid, .work-grid, .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
