/* =============================================
   SOULMEDIADIGITAL - Shared Components CSS
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at top left, rgba(0,240,255,0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15,118,110,0.18), transparent 26%),
    #06090e;
  color: #cbd5e1;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }
.smd-gsap-disabled [data-reveal],
.smd-gsap-disabled .navbar,
.smd-gsap-disabled .section-label,
.smd-gsap-disabled .section-title,
.smd-gsap-disabled .section-desc,
.smd-gsap-disabled .service-card,
.smd-gsap-disabled .srv-card,
.smd-gsap-disabled .p-card,
.smd-gsap-disabled .process-step,
.smd-gsap-disabled .bl-card,
.smd-gsap-disabled .cta-box,
.smd-gsap-disabled .footer-grid > * {
  clip-path: none !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: rgba(0,240,255,0.28); color: #f8fafc; }

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 650ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
  animation-name: page-transition-out;
}

::view-transition-new(root) {
  animation-name: page-transition-in;
}

@keyframes page-transition-out {
  to {
    opacity: 0;
    transform: scale(1.035);
  }
}

@keyframes page-transition-in {
  from {
    opacity: 0;
    transform: scale(0.965);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #06090e; }
::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,240,255,0.65); }

/* --- CSS Variables --- */
:root {
  --cyan:        #00f0ff;
  --cyan-hover:  #00cde0;
  --cyan-dim:    rgba(0,240,255,0.15);
  --cyan-glow:   0 0 20px rgba(0,240,255,0.4);
  --black:       #06090e;
  --dark:        #0d131c;
  --card:        #111823;
  --border:      #1b2535;
  --border-dim:  rgba(27,37,53,0.6);
  --text:        #cbd5e1;
  --text-muted:  #64748b;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  1.5rem;
  --max-w:       1280px;
}

/* --- Glow / Neon Utilities --- */
.text-glow    { text-shadow: 0 0 18px rgba(0,240,255,0.5); }
.neon-border  { border: 1px solid rgba(0,240,255,0.35); box-shadow: 0 0 20px -2px rgba(0,240,255,0.15), inset 0 0 20px -2px rgba(0,240,255,0.05); }
.cyan         { color: var(--cyan); }
.script-font  { font-family: 'Brush Script MT', cursive; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.section-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42rem;
}

/* --- Homepage talent recruitment slide --- */
.talent-join-section {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding: 5.5rem 1.5rem 4rem;
}
.talent-join-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) 1.2fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max-w);
  min-height: 360px;
  margin: 0 auto;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(0,240,255,.2);
  border-radius: 1.35rem;
  background: linear-gradient(120deg, #0b1520, #0a1019 58%, #101622);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  will-change: transform, opacity, clip-path;
}
.talent-join-card::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.85), transparent);
  content: "";
  pointer-events: none;
}
.talent-join-scan {
  position: absolute;
  z-index: 3;
  inset: -10% auto -10% 0;
  width: min(24%, 220px);
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.16), rgba(0,240,255,.45), rgba(0,240,255,.12), transparent);
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.talent-join-poster {
  position: relative;
  display: block;
  min-width: 0;
  height: 320px;
  translate: var(--pointer-x, 0px) var(--pointer-y, 0px);
  animation: talent-poster-float 6s ease-in-out infinite;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 1rem;
  background: #080d14;
}
@keyframes talent-poster-float {
  0%, 100% { translate: var(--pointer-x, 0px) var(--pointer-y, 0px); }
  50% { translate: var(--pointer-x, 0px) calc(var(--pointer-y, 0px) - 9px); }
}
.talent-join-poster::after {
  position: absolute;
  inset: 20% 0 0;
  background: linear-gradient(180deg, transparent, rgba(4,8,14,.88));
  content: "";
  pointer-events: none;
}
.talent-join-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  transition: transform .7s cubic-bezier(.2,.75,.25,1);
}
.talent-join-card:hover .talent-join-poster img { transform: scale(1.04); }
.talent-join-poster-label {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(5,10,17,.72);
  padding: .5rem .75rem;
  color: #e6fcff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  backdrop-filter: blur(8px);
}
.talent-join-poster-copy {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: #fff;
}
.talent-join-poster-kicker {
  display: block;
  margin-bottom: .25rem;
  color: #67f5ff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.talent-join-poster-title {
  display: block;
  font-size: clamp(1.3rem,2.5vw,2rem);
  font-weight: 900;
  line-height: 1.05;
}
.talent-join-copy { position: relative; z-index: 1; max-width: 600px; }
.talent-join-copy .section-label { margin-bottom: .6rem; }
.talent-join-copy .section-title { max-width: 540px; margin-bottom: .85rem; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.talent-join-copy .section-desc { margin: 0 0 1.35rem; }
.talent-join-copy .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
@media (max-width: 700px) {
  .talent-join-section { min-height: 100svh; padding: 5rem 1rem 3rem; }
  .talent-join-card { grid-template-columns: 1fr; gap: 0; padding: .7rem; border-radius: 1.15rem; }
  .talent-join-poster { height: clamp(210px,62vw,280px); border-radius: .8rem; }
  .talent-join-poster-label { top: .75rem; left: .75rem; }
  .talent-join-poster-copy { right: .85rem; bottom: .85rem; left: .85rem; }
  .talent-join-poster-title { font-size: clamp(1.35rem,6vw,1.8rem); }
  .talent-join-copy { padding: 1.25rem .55rem .55rem; }
  .talent-join-copy .section-title { max-width: 28rem; font-size: clamp(1.65rem,7vw,2.25rem); }
  .talent-join-copy .section-desc { margin-bottom: 1rem; font-size: .84rem; line-height: 1.65; }
  .talent-join-copy .btn { width: 100%; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .talent-join-poster { animation: none; translate: none; }
  .talent-join-card,.talent-join-scan { will-change: auto; }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(6,9,14,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148,163,184,0.12);
  box-shadow: 0 10px 30px rgba(2,6,23,0.18);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}
.navbar-logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-shadow: 0 0 18px rgba(255,255,255,0.12);
}
.navbar-logo-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}
.navbar-logo--image-only .navbar-logo-mark {
  width: auto;
  max-width: min(190px, 42vw);
  height: 42px;
}
.navbar-logo--image-only .navbar-logo-text { display: none; }
.navbar-logo-text > span { color: var(--cyan); text-shadow: 0 0 18px rgba(0,240,255,0.75); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.navbar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: #fff;
}
.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan);
}
.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.navbar-cta:hover { background: rgba(0,240,255,0.1); box-shadow: var(--cyan-glow); }
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none; border: none;
}
.navbar-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #94a3b8; border-radius: 2px;
  transition: all 0.3s;
}
.navbar-mobile {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  background: rgba(6,9,14,0.97);
  border-top: 1px solid var(--border-dim);
}
.navbar-mobile.open { max-height: 420px; opacity: 1; }
.navbar-mobile nav {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem; gap: 1rem;
}
.navbar-mobile nav a {
  font-size: 0.9rem; font-weight: 500; color: #94a3b8;
  transition: color 0.2s;
}
.navbar-mobile nav a:hover { color: var(--cyan); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #04060a;
  border-top: 1px solid var(--border-dim);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-brand-logo {
  font-size: 1.2rem; font-weight: 900;
  color: #fff; margin-bottom: 0.75rem; display: block;
}
.footer-brand-logo span { color: var(--cyan); text-shadow: 0 0 12px rgba(0,240,255,0.5); }
.footer-brand-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: all 0.2s;
}
.footer-social-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-social-btn svg { width: 15px; height: 15px; fill: currentColor; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.8rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cyan); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 14px; height: 14px; stroke: var(--cyan); fill: none; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom {
  max-width: var(--max-w); margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.75rem; color: var(--text-muted); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; border-radius: 999px; cursor: pointer;
  transition: all 0.2s; border: none; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan); color: #000;
  padding: 0.85rem 1.75rem; font-size: 0.875rem;
  box-shadow: 0 0 22px rgba(0,240,255,0.4);
}
.btn-primary:hover { background: var(--cyan-hover); box-shadow: 0 0 30px rgba(0,240,255,0.6); }
.btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid var(--cyan);
  padding: 0.85rem 1.75rem; font-size: 0.875rem;
}
.btn-outline:hover { background: rgba(0,240,255,0.1); box-shadow: var(--cyan-glow); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-play {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid #475569; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: #cbd5e1; transition: border-color 0.2s, color 0.2s;
}
.btn-play:hover { border-color: var(--cyan); color: var(--cyan); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); overflow: hidden;
  transition: border-color 0.25s;
}
.card:hover { border-color: rgba(0,240,255,0.4); }
.card-img { width: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,240,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--dark);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 1.75rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid var(--border-dim);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900; color: var(--cyan);
  text-shadow: 0 0 16px rgba(0,240,255,0.4);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; font-weight: 500; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .navbar-nav, .navbar-cta { display: none; }
  .navbar-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 0 0.75rem; }
}

/* =============================================
   GSAP INITIAL STATES
   Mencegah flash sebelum GSAP diinisialisasi.
   GSAP akan override opacity/transform ini.
   ============================================= */

/* Body fade-in handled by GSAP */
body { opacity: 1; }

/* Card hover transition — GSAP handles transform,
   CSS handles border-color only */
.card,
.service-preview-card,
.team-card,
.talent-card,
.b-card,
.portfolio-card,
.p-card,
.ps-item,
.why-item,
.vm-card,
.gallery-item {
  will-change: transform;
}

/* Smooth image transforms */
.gallery-item img,
.talent-card-img img,
.b-card-img img,
.portfolio-card img,
.p-card-img img {
  will-change: transform;
}

/* Scroll progress bar (injected by GSAP) */
#scroll-progress {
  transition: none;
}
