/* =====================================================================
   NETFLIX-STYLE PORTFOLIO — Mohd Akram
   ===================================================================== */
:root {
  --red: #e50914;
  --red-dark: #b20710;
  --black: #000;
  --bg: #141414;
  --bg-2: #181818;
  --bg-3: #222;
  --text: #fff;
  --muted: #b3b3b3;
  --muted-2: #808080;
  --green: #46d369;
  --accent: #e50914;
  --font-head: 'Bebas Neue', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --pad: 4%;
  --ease: cubic-bezier(.2,.8,.2,1);
  --card-radius: 6px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
::-webkit-scrollbar-track { background: #111; }

/* ---------- Netflix-style intro ---------- */
.intro-screen {
  position: fixed; inset: 0; z-index: 1000; background: #000;
  display: grid; place-items: center; overflow: hidden;
  animation: introOut .6s ease 3.2s forwards;
}
.intro-logo { position: relative; width: 240px; height: 300px; display: grid; place-items: center; }
.intro-letter {
  font-family: var(--font-head); font-size: 300px; line-height: 1; color: var(--red);
  text-shadow: 0 0 40px rgba(229,9,20,.6);
  animation: letterIn 1.4s var(--ease) forwards, letterZoom 1s ease 2.4s forwards;
  transform: scale(.4); opacity: 0;
}
.intro-beams { position: absolute; inset: 0; display: flex; justify-content: center; gap: 6px; opacity: 0; animation: beamsIn .4s ease 1.6s forwards; }
.intro-beams i {
  width: 14px; height: 100%; border-radius: 10px; transform-origin: bottom;
  background: linear-gradient(to top, var(--red), #ff6b6b, transparent);
  animation: beamRise 1.4s var(--ease) 1.6s both;
  filter: blur(.5px);
}
.intro-beams i:nth-child(2){ animation-delay: 1.7s; opacity:.8 } .intro-beams i:nth-child(3){ animation-delay: 1.8s; opacity:.6 }
.intro-beams i:nth-child(4){ animation-delay: 1.9s; opacity:.4 } .intro-beams i:nth-child(5){ animation-delay: 2s; opacity:.25 }
@keyframes letterIn { to { transform: scale(1); opacity: 1 } }
@keyframes letterZoom { to { transform: scale(12); opacity: 0 } }
@keyframes beamsIn { to { opacity: 1 } }
@keyframes beamRise { 0% { transform: scaleY(0) } 60% { transform: scaleY(1) } 100% { transform: scaleY(0) translateY(-120%); opacity: 0 } }
@keyframes introOut { to { opacity: 0; visibility: hidden; pointer-events: none } }

/* ---------- Who's watching ---------- */
.profile-screen {
  position: fixed; inset: 0; z-index: 900; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  padding: 20px; text-align: center; opacity: 0; animation: fadeIn .8s ease 3.4s forwards;
  transition: opacity .5s ease, transform .5s ease;
}
.profile-screen.leaving { opacity: 0; transform: scale(1.1); pointer-events: none; }
.profile-title { font-weight: 400; font-size: clamp(28px, 4vw, 56px); letter-spacing: .5px; }
.profile-list { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.5vw, 32px); }
.profile-item { cursor: pointer; width: clamp(96px, 14vw, 170px); transition: transform .3s var(--ease); }
.profile-avatar {
  width: 100%; aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center;
  font-size: clamp(42px, 6vw, 84px); border: 3px solid transparent; transition: border-color .3s, box-shadow .3s;
  background: linear-gradient(145deg, var(--c, #e50914), #000 140%);
}
.profile-item:hover, .profile-item:focus-within { transform: scale(1.08); }
.profile-item:hover .profile-avatar { border-color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.profile-item span { display: block; margin-top: 12px; color: var(--muted-2); font-size: clamp(13px, 1.3vw, 18px); transition: color .3s; }
.profile-item:hover span { color: #fff; }
.profile-hint { color: var(--muted-2); font-size: 14px; }
@keyframes fadeIn { to { opacity: 1 } }

/* ---------- App shell ---------- */
.app { opacity: 0; transition: opacity .8s ease; }
.app.visible { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
  transition: background .4s ease;
}
.site-header.scrolled { background: var(--bg); box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.nav { display: flex; align-items: center; gap: 36px; padding: 14px var(--pad); }
.brand {
  font-family: var(--font-head); font-size: 34px; color: var(--red); letter-spacing: 2px; line-height: 1;
  text-shadow: 0 0 20px rgba(229,9,20,.4);
}
.nav-links { display: flex; gap: 20px; font-size: 14px; color: #e5e5e5; }
.nav-links a { position: relative; transition: color .3s; padding: 4px 0; }
.nav-links a:hover { color: var(--muted); }
.nav-links a.active { font-weight: 600; color: #fff; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .3s var(--ease); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { font-size: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.menu-btn { display: none; }
.avatar-btn { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(145deg, var(--c,#e50914), #000 140%); transition: transform .3s; }
.avatar-btn:hover { transform: scale(1.1); }

.search-box { display: flex; align-items: center; border: 1px solid transparent; border-radius: 4px; transition: all .3s; }
.search-box input { width: 0; opacity: 0; padding: 0; border: 0; background: transparent; color: #fff; font-size: 14px; outline: none; transition: all .35s var(--ease); }
.search-box.open { background: rgba(0,0,0,.75); border-color: #fff; padding-right: 10px; }
.search-box.open input { width: 220px; opacity: 1; padding: 6px; }
.search-results {
  position: absolute; top: 100%; right: var(--pad); width: min(420px, 92vw); max-height: 60vh; overflow: auto;
  background: var(--bg-2); border: 1px solid #333; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.7); padding: 8px;
}
.search-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 4px; cursor: pointer; transition: background .2s; }
.search-item:hover { background: #2a2a2a; }
.search-item i { color: var(--red); width: 20px; text-align: center; }
.search-item small { display: block; color: var(--muted-2); font-size: 12px; }
.search-empty { padding: 16px; color: var(--muted-2); text-align: center; font-size: 14px; }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px); z-index: 490; background: #0b0b0b;
  display: flex; flex-direction: column; padding: 90px 32px; gap: 8px; transform: translateX(100%); transition: transform .4s var(--ease);
  box-shadow: -10px 0 40px rgba(0,0,0,.6);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-size: 20px; padding: 12px 0; border-bottom: 1px solid #1f1f1f; transition: color .3s, padding-left .3s; }
.mobile-menu a:hover { color: var(--red); padding-left: 8px; }

/* ---------- Billboard / Hero ---------- */
.billboard { position: relative; min-height: min(100vh, 920px); min-height: min(100svh, 920px); display: flex; align-items: center; overflow: hidden; }
.billboard-media { position: absolute; inset: 0; }
.billboard-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(229,9,20,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(229,9,20,.08) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift { to { background-position: 60px 60px } }
.billboard-photo {
  position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; object-position: top center;
  animation: kenBurns 18s ease-in-out infinite alternate;
  mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
}
@keyframes kenBurns { from { transform: scale(1) } to { transform: scale(1.08) } }
.billboard-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(20,20,20,.9) 30%, rgba(20,20,20,.3) 60%, transparent 100%); }
.billboard-bottom-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--bg)); }

.float-chip {
  position: absolute; padding: 10px 16px; border-radius: 40px; font-size: 13px; font-weight: 600;
  background: rgba(20,20,20,.75); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(10px);
  display: flex; gap: 8px; align-items: center; animation: floatY 6s ease-in-out infinite; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.float-chip i { color: var(--red); }
.chip-1 { top: 16%; right: 10%; animation-delay: 0s; }
.chip-2 { top: 44%; right: 5%; animation-delay: 1.5s; }
.chip-3 { top: 66%; right: 40%; animation-delay: 3s; }
@keyframes floatY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

.billboard-content { position: relative; z-index: 2; padding: 120px var(--pad) 80px; max-width: 760px; }
.billboard-content > * { opacity: 0; transform: translateY(24px); animation: riseIn .8s var(--ease) forwards; }
.billboard-content > *:nth-child(1){ animation-delay: .1s } .billboard-content > *:nth-child(2){ animation-delay: .2s }
.billboard-content > *:nth-child(3){ animation-delay: .3s } .billboard-content > *:nth-child(4){ animation-delay: .4s }
.billboard-content > *:nth-child(5){ animation-delay: .5s } .billboard-content > *:nth-child(6){ animation-delay: .6s }
.billboard-content > *:nth-child(7){ animation-delay: .7s } .billboard-content > *:nth-child(8){ animation-delay: .8s }
.billboard-content > *:nth-child(9){ animation-delay: .9s }
@keyframes riseIn { to { opacity: 1; transform: none } }

.billboard-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 3px; color: var(--muted); font-weight: 600; }
.n-badge { display: inline-grid; place-items: center; width: 22px; height: 30px; background: var(--red); color: #fff; font-family: var(--font-head); font-size: 24px; border-radius: 2px; }
.billboard-title {
  font-family: var(--font-head); font-size: clamp(56px, 9vw, 128px); line-height: .92; letter-spacing: 2px; margin: 14px 0 4px;
  background: linear-gradient(180deg, #fff 30%, #c8c8c8); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.6));
}
.billboard-subtitle { font-size: clamp(18px, 2.2vw, 28px); font-weight: 600; color: var(--red); letter-spacing: 1px; }
.billboard-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; font-size: 14px; color: var(--muted); }
.match { color: var(--green); font-weight: 700; }
.maturity, .hd { border: 1px solid #777; padding: 0 6px; font-size: 12px; border-radius: 2px; }
.billboard-headline { font-size: clamp(18px, 2vw, 24px); font-weight: 700; margin-bottom: 10px; }
.billboard-synopsis { font-size: clamp(14px, 1.3vw, 17px); line-height: 1.6; color: #ddd; max-width: 640px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.typewriter-line { margin: 18px 0 22px; font-size: 16px; color: var(--muted); }
.typewriter { color: #fff; font-weight: 700; }
.cursor { color: var(--red); animation: blink 1s steps(1) infinite; font-weight: 700; }
@keyframes blink { 50% { opacity: 0 } }

.billboard-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 16px;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: #e6e6e6; box-shadow: 0 10px 30px rgba(255,255,255,.15); }
.btn-info { background: rgba(109,109,110,.7); color: #fff; backdrop-filter: blur(6px); }
.btn-info:hover { background: rgba(109,109,110,.5); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-icon-round { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-icon-round:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.billboard-tags { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 22px; font-size: 13px; color: var(--muted); }
.billboard-tags li + li::before { content: '•'; margin: 0 10px; color: var(--muted-2); }

/* ---------- Stats ---------- */
.stats-strip { padding: 10px var(--pad) 30px; position: relative; z-index: 3; margin-top: -40px; }
.stats-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
  background: linear-gradient(160deg, #1c1c1c, #121212); border: 1px solid #262626; border-radius: 8px; padding: 22px 18px; text-align: center;
  position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s;
}
.stat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top, rgba(229,9,20,.25), transparent 60%); opacity: 0; transition: opacity .3s; }
.stat:hover { transform: translateY(-6px); border-color: rgba(229,9,20,.6); }
.stat:hover::before { opacity: 1; }
.stat strong { display: block; font-family: var(--font-head); font-size: 46px; line-height: 1; letter-spacing: 1px; position: relative; }
.stat span { color: var(--muted); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; position: relative; }

/* ---------- Rows (Netflix sliders) ---------- */
.row-section { padding: 26px 0; position: relative; }
.row-title { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; padding: 0 var(--pad); margin-bottom: 14px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.row-sub { font-size: 13px; font-weight: 400; color: var(--muted-2); letter-spacing: .3px; }
.row-wrap { position: relative; }
.row-wrap:hover .row-arrow { opacity: 1; }
.row-slider {
  display: flex; gap: 10px; padding: 20px var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.row-slider::-webkit-scrollbar { display: none; }
.row-slider > * { scroll-snap-align: start; flex: 0 0 auto; }
.row-arrow {
  position: absolute; top: 0; bottom: 0; width: calc(var(--pad) - 2px); z-index: 5; background: rgba(20,20,20,.6); font-size: 26px;
  opacity: 0; transition: opacity .3s, background .3s; display: grid; place-items: center;
}
.row-arrow:hover { background: rgba(20,20,20,.85); }
.row-arrow.left { left: 0; } .row-arrow.right { right: 0; }
.row-arrow i { transition: transform .3s; } .row-arrow:hover i { transform: scale(1.3); }

/* Skill card — Top 10 style with big number */
.skill-card {
  width: 300px; display: flex; align-items: flex-end; gap: 0; cursor: pointer; transition: transform .35s var(--ease);
}
.skill-card:hover { transform: scale(1.05); z-index: 2; }
.skill-rank {
  font-family: var(--font-head); font-size: 160px; line-height: .8; color: var(--bg); -webkit-text-stroke: 3px #555;
  width: 90px; flex: 0 0 90px; text-align: right; margin-right: -14px; transition: -webkit-text-stroke-color .3s;
}
.skill-card:hover .skill-rank { -webkit-text-stroke-color: var(--sc, #e50914); }
.skill-body {
  flex: 1; aspect-ratio: 2/3; border-radius: var(--card-radius); padding: 20px 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, #2a2a2a, #111); border: 1px solid #2c2c2c; position: relative; overflow: hidden; min-height: 300px;
}
.skill-body::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, var(--sc, #e50914), transparent 60%); opacity: .35; transition: opacity .4s; }
.skill-card:hover .skill-body::before { opacity: .6; }
.skill-body i { font-size: 44px; color: var(--sc, #e50914); margin-bottom: auto; position: relative; filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)); }
.skill-body h3 { font-size: 20px; line-height: 1.2; position: relative; margin-bottom: 8px; }
.skill-body p { font-size: 12px; color: var(--muted); line-height: 1.5; position: relative; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skill-bar { height: 4px; background: #333; border-radius: 4px; margin-top: 12px; overflow: hidden; position: relative; }
.skill-bar b { display: block; height: 100%; width: 0; background: var(--sc, #e50914); border-radius: 4px; transition: width 1.4s var(--ease) .2s; }
.skill-bar-label { font-size: 11px; color: var(--muted); margin-top: 6px; position: relative; display: flex; justify-content: space-between; }
.in-view .skill-bar b { width: var(--w); }

/* Case card — landscape poster with hover expand */
.case-card {
  width: 340px; aspect-ratio: 16/9; border-radius: var(--card-radius); position: relative; overflow: hidden; cursor: pointer;
  background: var(--g); transition: transform .4s var(--ease), box-shadow .4s; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.case-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.4) 50%, transparent 100%); }
.case-card:hover { transform: scale(1.08) translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.7); z-index: 3; }
.case-bg-icon { position: absolute; right: -10px; top: -10px; font-size: 140px; opacity: .18; transform: rotate(-12deg); transition: transform .5s var(--ease), opacity .5s; }
.case-card:hover .case-bg-icon { transform: rotate(0) scale(1.1); opacity: .28; }
.case-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 1; }
.case-industry { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.75); font-weight: 600; }
.case-content h3 { font-size: 18px; line-height: 1.2; margin: 4px 0 8px; }
.case-kpis { display: flex; gap: 14px; }
.case-kpis div strong { display: block; font-family: var(--font-head); font-size: 22px; letter-spacing: 1px; }
.case-kpis div small { font-size: 10px; color: rgba(255,255,255,.7); text-transform: uppercase; }
.case-hover { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s; display: flex; gap: 8px; align-items: center; }
.case-card:hover .case-hover { max-height: 50px; opacity: 1; margin-top: 10px; }
.mini-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 12px; transition: all .2s; }
.mini-btn.play { background: #fff; color: #000; border-color: #fff; }
.mini-btn:hover { border-color: #fff; transform: scale(1.1); }
.case-match { margin-left: auto; color: var(--green); font-weight: 700; font-size: 12px; }
.case-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 2; }
.case-progress b { display: block; height: 100%; background: var(--red); width: var(--p, 60%); }

/* Service card */
.service-card {
  width: 280px; min-height: 230px; border-radius: var(--card-radius); padding: 24px; background: var(--bg-2); border: 1px solid #262626;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--red); background: #1f1f1f; }
.service-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover::after { transform: scaleX(1); }
.service-badge { position: absolute; top: 14px; right: 14px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: var(--red); padding: 4px 8px; border-radius: 3px; font-weight: 700; }
.service-card i { font-size: 34px; color: var(--red); }
.service-card h3 { font-size: 19px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.service-card .link { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.service-card .link i { font-size: 12px; transition: transform .3s; } .service-card:hover .link i { transform: translateX(6px); }

/* Cert card */
.cert-card {
  width: 250px; padding: 22px; border-radius: var(--card-radius); background: linear-gradient(160deg, #1d1d1d, #101010); border: 1px solid #2a2a2a;
  display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .35s var(--ease), border-color .3s;
}
.cert-card:hover { transform: translateY(-6px) rotate(-1deg); border-color: #f5a623; }
.cert-card i { font-size: 36px; color: #f5a623; }
.cert-card h3 { font-size: 16px; line-height: 1.3; }
.cert-card small { color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.cert-card .ribbon { position: absolute; top: 12px; right: -4px; background: #f5a623; color: #000; font-size: 10px; font-weight: 800; padding: 3px 8px; letter-spacing: 1px; }

/* ---------- Experience / Episodes ---------- */
.section { padding: 40px var(--pad); }
.episodes { display: flex; flex-direction: column; gap: 8px; max-width: 1000px; }
.episode {
  display: grid; grid-template-columns: 50px 180px 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: 6px; border: 1px solid transparent;
  transition: background .3s, border-color .3s, transform .3s var(--ease); cursor: pointer; opacity: 0; transform: translateX(-20px);
}
.episode.in-view { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease), background .3s, border-color .3s; }
.episode:hover { background: #1f1f1f; border-color: #333; }
.ep-num { font-size: 28px; color: var(--muted-2); text-align: center; font-weight: 300; }
.ep-thumb { height: 100px; border-radius: 4px; background: linear-gradient(135deg, #2b2b2b, #111); display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid #333; }
.ep-thumb i { font-size: 30px; color: var(--red); }
.ep-thumb::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 70%); background: var(--red); }
.ep-thumb .play-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; }
.ep-thumb .play-over span { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: 14px; }
.episode:hover .play-over { opacity: 1; }
.ep-info header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ep-info h3 { font-size: 17px; }
.ep-info .ep-period { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ep-info .ep-company { color: var(--red); font-size: 14px; font-weight: 600; margin: 2px 0 8px; }
.ep-info ul { color: var(--muted); font-size: 14px; line-height: 1.6; display: grid; gap: 2px; }
.ep-info ul li::before { content: '▸ '; color: var(--red); }
.ep-type { font-size: 10px; border: 1px solid #555; padding: 2px 6px; border-radius: 2px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-left: 8px; }

/* ---------- Tools marquee ---------- */
.tools-section { padding-left: 0; padding-right: 0; }
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; padding: 10px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%) } }
.tool-chip { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--bg-2); border: 1px solid #2a2a2a; border-radius: 50px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: border-color .3s, transform .3s; }
.tool-chip:hover { border-color: var(--red); transform: translateY(-3px); }
.tool-chip i { color: var(--red); font-size: 20px; }

/* ---------- Testimonials ---------- */
.testimonial-stage { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.testimonial-card {
  background: linear-gradient(160deg, #1d1d1d, #121212); border: 1px solid #2a2a2a; border-radius: 10px; padding: 40px; text-align: center; position: relative;
  min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 16px; overflow: hidden;
}
.testimonial-card::before { content: '\201C'; position: absolute; top: -30px; left: 20px; font-family: Georgia, serif; font-size: 200px; color: rgba(229,9,20,.15); line-height: 1; }
.testimonial-card.switching { animation: tSwap .5s var(--ease); }
@keyframes tSwap { 0% { opacity: 0; transform: translateX(30px) } 100% { opacity: 1; transform: none } }
.t-stars { color: #f5a623; letter-spacing: 3px; }
.t-quote { font-size: clamp(16px, 1.6vw, 21px); line-height: 1.6; font-weight: 500; font-style: italic; }
.t-author strong { display: block; } .t-author span { color: var(--muted-2); font-size: 13px; }
.t-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #444; display: grid; place-items: center; transition: all .3s; }
.t-arrow:hover { background: var(--red); border-color: var(--red); }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.t-dots button { width: 8px; height: 8px; border-radius: 50%; background: #444; transition: all .3s; }
.t-dots button.active { background: var(--red); width: 26px; border-radius: 10px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; max-width: 1100px; }
.about-photo { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.6); transform: perspective(1000px) rotateY(6deg); transition: transform .6s var(--ease); }
.about-photo:hover { transform: perspective(1000px) rotateY(0); }
.about-photo img { aspect-ratio: 3/4; object-fit: cover; }
.about-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.9)); display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.about-text .row-title { padding: 0; }
.about-text p { color: #ddd; line-height: 1.75; font-size: 16px; margin-bottom: 22px; }
.about-facts { display: grid; gap: 10px; margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.about-facts i { color: var(--red); width: 22px; }

/* ---------- Contact ---------- */
.contact-section { background: radial-gradient(ellipse at top, rgba(229,9,20,.18), transparent 60%), var(--bg); border-top: 1px solid #222; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1100px; align-items: start; }
.contact-title { font-family: var(--font-head); font-size: clamp(42px, 5vw, 72px); line-height: .95; letter-spacing: 1px; margin: 14px 0 18px; }
.contact-title span { color: var(--red); }
.contact-copy p { color: #ccc; line-height: 1.7; margin-bottom: 24px; }
.contact-list { display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.contact-list i { color: var(--red); width: 24px; } .contact-list a:hover { color: #fff; }
.contact-form { background: rgba(0,0,0,.6); border: 1px solid #2a2a2a; border-radius: 10px; padding: 30px; display: grid; gap: 16px; backdrop-filter: blur(10px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: #333; border: 1px solid #444; border-radius: 4px; padding: 12px 14px; color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color .3s, background .3s;
}
.contact-form select option { background: #222; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); background: #3a3a3a; }
.btn-submit { justify-content: center; background: var(--red); color: #fff; }
.btn-submit:hover { background: var(--red-dark); }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: 14px; min-height: 20px; text-align: center; }
.form-status.ok { color: var(--green); } .form-status.err { color: #ff6b6b; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px var(--pad); border-top: 1px solid #222; color: var(--muted-2); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #444; display: grid; place-items: center; transition: all .3s; }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.back-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; z-index: 400; display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: all .3s var(--ease); box-shadow: 0 10px 30px rgba(229,9,20,.4); }
.back-top.show { opacity: 1; transform: none; } .back-top:hover { transform: translateY(-4px); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 800; display: grid; place-items: start center; overflow-y: auto; padding: 40px 16px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); animation: fadeIn .3s ease forwards; }
.modal-card { position: relative; width: min(900px, 100%); background: var(--bg-2); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.8); animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.96) } to { opacity: 1; transform: none } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 18px; transition: transform .3s; }
.modal-close:hover { transform: rotate(90deg); }
.modal-hero { position: relative; min-height: 320px; background: var(--g, linear-gradient(135deg,#333,#111)); display: flex; align-items: flex-end; overflow: hidden; }
.modal-hero .big-icon { position: absolute; right: 30px; top: 20px; font-size: 180px; opacity: .2; animation: floatY 7s ease-in-out infinite; }
.modal-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2) 0%, rgba(24,24,24,.4) 40%, transparent 100%); }
.modal-hero-content { position: relative; padding: 40px; width: 100%; }
.modal-hero-content h2 { font-family: var(--font-head); font-size: clamp(32px, 5vw, 60px); line-height: 1; letter-spacing: 1px; margin-bottom: 18px; text-shadow: 0 10px 30px rgba(0,0,0,.6); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-body { padding: 10px 40px 40px; display: grid; gap: 28px; }
.modal-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); align-items: center; }
.modal-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.modal-kpis div { background: #222; border-radius: 6px; padding: 16px; text-align: center; border: 1px solid #2c2c2c; }
.modal-kpis strong { display: block; font-family: var(--font-head); font-size: 36px; color: var(--green); letter-spacing: 1px; }
.modal-kpis small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.modal-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
.modal-body h4 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.modal-body p { color: #ddd; line-height: 1.7; }
.modal-list { display: grid; gap: 8px; color: #ddd; font-size: 15px; line-height: 1.5; }
.modal-list li { display: flex; gap: 10px; } .modal-list li i { color: var(--green); margin-top: 4px; }
.chart-wrap { height: 280px; background: #111; border-radius: 8px; padding: 16px; border: 1px solid #2a2a2a; }
.tag-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pills span { padding: 6px 12px; border-radius: 30px; border: 1px solid #444; font-size: 12px; color: var(--muted); }
.more-like { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.more-like .case-card { width: auto; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 80px); background: #fff; color: #000; padding: 12px 22px; border-radius: 6px; font-weight: 600; font-size: 14px; z-index: 950; opacity: 0; transition: all .4s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .about-grid { grid-template-columns: 280px 1fr; gap: 30px; }
  .modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --pad: 5%; }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .search-box.open input { width: 140px; }
  .billboard { min-height: auto; align-items: flex-end; padding-top: 70px; }
  .billboard-photo { width: 100%; height: 72vw; max-height: 520px; position: relative; mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); object-position: top center; animation: none; }
  .billboard-media { position: relative; }
  .billboard-shade { background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%); }
  .billboard-bottom-fade { display: none; }
  .billboard { flex-direction: column; align-items: stretch; }
  .billboard-content { padding: 0 var(--pad) 30px; margin-top: -120px; max-width: none; }
  .billboard-title { font-size: clamp(54px, 15vw, 80px); }
  .billboard-synopsis { font-size: 14px; }
  .float-chip { font-size: 11px; padding: 8px 12px; }
  .chip-1 { top: 12%; right: auto; left: 5%; } .chip-2 { top: 30%; right: 5%; } .chip-3 { top: 48%; left: 8%; right: auto; }
  .stats-strip { margin-top: 0; }
  .stats-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat strong { font-size: 36px; }
  .row-arrow { display: none; }
  .row-slider { padding: 14px var(--pad); }
  .skill-card { width: 230px; } .skill-rank { font-size: 110px; width: 60px; flex-basis: 60px; -webkit-text-stroke-width: 2px; }
  .skill-body { min-height: 250px; }
  .case-card { width: 280px; }
  .service-card { width: 250px; }
  .episode { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .ep-num { text-align: left; font-size: 16px; }
  .ep-num::before { content: 'Episode '; } 
  .ep-thumb { height: 80px; }
  .testimonial-stage { grid-template-columns: 1fr; }
  .t-arrow { display: none; }
  .testimonial-card { padding: 30px 22px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; transform: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .modal { padding: 0; }
  .modal-card { border-radius: 0; min-height: 100vh; }
  .modal-hero { min-height: 240px; } .modal-hero .big-icon { font-size: 120px; }
  .modal-hero-content, .modal-body { padding-left: 20px; padding-right: 20px; }
  .modal-hero-content { padding-bottom: 20px; }
  .modal-body { padding-bottom: 30px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .back-top { right: 16px; bottom: 16px; }
}
@media (max-width: 420px) {
  .stats-list { grid-template-columns: repeat(2, 1fr); }
  .billboard-actions .btn { padding: 11px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro-screen { display: none; }
  .profile-screen { opacity: 1; }
}
