/* ============================================================
   CINEMA.CSS — Editorial × Data-Cyber aesthetic upgrade
   Applied frontend-design skill principles:
     · Distinctive type (Fraunces + Manrope + JetBrains Mono)
     · Bold display sizing, controlled density
     · Film grain texture overlay
     · Editorial moments (FACT callouts, big marquees)
     · Atmospheric backgrounds, layered depth
   ============================================================ */

:root {
  --ck-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --ck-body:    'Manrope', 'Quicksand', system-ui, sans-serif;
  --ck-mono:    'JetBrains Mono', 'Courier New', monospace;

  --ck-ink:     #0a0a14;
  --ck-cream:   #faf6ef;
  --ck-cyan:    #00b4d8;
  --ck-blue:    #0066ff;
  --ck-amber:   #ffb24d;
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 1. TYPE SYSTEM — distinctive display + body + mono      ║
   ╚═════════════════════════════════════════════════════════╝ */

/* Bodywide default font swap (excludes legacy template areas where it breaks) */
body,
.colorlib-narrow-content,
.colorlib-about p,
.about-desc p,
.intro-tagline,
.shv-side p,
.shv-mobile-intro p,
.ctc-card-value,
.ctc-field input,
.ctc-field textarea,
.fancy-collapse-panel .panel-body,
.colorlib-skills .progress-wrap h3,
.colorlib-services .services p {
  font-family: var(--ck-body) !important;
  font-feature-settings: "ss01", "cv11";   /* Manrope stylistic alternates */
}

/* DISPLAY — Fraunces with optical sizing + character (SOFT, WONK) */
.intro-name,
.colorlib-heading,
.brand-name,
.colorlib-about .hire h2,
.colorlib-work .project h3,
.shv-side h2,
.shv-mobile-intro h2,
.intro-name span,
.ck-display,
.ctc-header .colorlib-heading,
.colorlib-services .services h3,
.fx-marquee-item {
  font-family: var(--ck-display) !important;
  font-variation-settings: "opsz" 120, "SOFT" 50, "WONK" 0;
  font-feature-settings: "ss01", "ss03";
  letter-spacing: -0.025em !important;
}

/* Fraunces shines bigger — give it room */
.intro-name {
  font-size: clamp(64px, 9.5vw, 144px) !important;
  font-weight: 700 !important;
  line-height: 0.92 !important;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1 !important;
}
.colorlib-heading {
  font-size: clamp(44px, 5.5vw, 88px) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  font-variation-settings: "opsz" 100, "SOFT" 100, "WONK" 1 !important;
}
.shv-side h2 {
  font-variation-settings: "opsz" 80, "SOFT" 0, "WONK" 1 !important;
  font-weight: 700 !important;
}
.shv-mobile-intro h2 {
  font-size: clamp(32px, 7.5vw, 44px) !important;
}

/* Gradient accent spans inside display headings — Fraunces with italic flavor */
.intro-name span,
.brand-name em,
.shv-side h2 .accent {
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1 !important;
  font-style: italic;
}

/* MONO — JetBrains Mono for technical accents */
.heading-meta,
.nav-role,
.shv-side .shv-meta,
.brand-logo,
.shv-mobile-greeting,
.timeline-label h2 span,
#colorlib-counter .colorlib-counter-label,
.colorlib-counter,
.ctc-field span,
.ctc-card-label,
.shv-side li,
.intro-greeting,
.shv-mobile-tags span,
.hk-status-item,
.cr-boot-line,
.fx-num,
.ck-mono {
  font-family: var(--ck-mono) !important;
  font-feature-settings: "calt", "ss01";
}

/* Refine the brand monogram tile typography */
.brand-logo {
  letter-spacing: 0 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

/* Section-number digits (01–07) — make them DOMINANT */
.fx-num {
  font-family: var(--ck-display) !important;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1 !important;
  font-weight: 900 !important;
  font-size: clamp(140px, 22vw, 320px) !important;
  -webkit-text-stroke: 1.5px rgba(0, 100, 255, 0.06) !important;
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.10), rgba(0, 100, 255, 0.04)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 2. FILM GRAIN TEXTURE — fixed overlay across the page   ║
   ╚═════════════════════════════════════════════════════════╝ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99990;          /* below cursor (1000005) and boot (1000000) */
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 3. EDITORIAL FACT CALLOUTS                              ║
   ╚═════════════════════════════════════════════════════════╝ */
.ck-fact {
  padding: 100px 0 !important;
  position: relative;
  overflow: hidden;
  background: var(--ck-cream);
  border-top: 1px solid rgba(0, 100, 255, 0.06);
  border-bottom: 1px solid rgba(0, 100, 255, 0.06);
}
.ck-fact::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(800px 400px at 80% 0%, rgba(0, 120, 255, 0.06), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(0, 180, 255, 0.05), transparent 60%);
  pointer-events: none;
}
.ck-fact-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.ck-fact-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ck-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ck-blue);
  margin-bottom: 28px;
}
.ck-fact-label::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--ck-blue);
}
.ck-fact-quote {
  font-family: var(--ck-display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ck-ink);
  margin: 0 0 28px;
}
.ck-fact-quote em {
  font-style: italic;
  background: linear-gradient(135deg, var(--ck-blue), var(--ck-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.ck-fact-quote strong {
  font-weight: 700;
  position: relative;
}
.ck-fact-quote strong::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 14px;
  background: rgba(0, 180, 255, 0.22);
  z-index: -1;
}
.ck-fact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 36px;
  border-top: 1px solid rgba(0, 100, 255, 0.10);
  padding-top: 36px;
}
.ck-fact-meta > div {
  display: flex; flex-direction: column; gap: 4px;
}
.ck-fact-meta strong {
  font-family: var(--ck-display);
  font-variation-settings: "opsz" 100, "SOFT" 100, "WONK" 1;
  font-size: 44px;
  font-weight: 800;
  color: var(--ck-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ck-fact-meta em {
  font-style: normal;
  font-family: var(--ck-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(10, 10, 20, 0.55);
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 4. 3D SKILL ORB CONTAINER                               ║
   ╚═════════════════════════════════════════════════════════╝ */
.ck-skill3d {
  position: relative;
  width: 100%;
  height: 480px;
  margin: 0 0 60px;
  border-radius: 24px;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(0, 180, 255, 0.10), transparent 70%),
    linear-gradient(135deg, var(--ck-cream) 0%, #ffffff 100%);
  border: 1px solid rgba(0, 100, 255, 0.10);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 30, 90, 0.08);
}
.ck-skill3d canvas { display: block; width: 100% !important; height: 100% !important; }

.ck-skill3d-label {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ck-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ck-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 100, 255, 0.15);
}
.ck-skill3d-label::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--ck-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ck-cyan);
}
.ck-skill3d-caption {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  pointer-events: none;
}
.ck-skill3d-caption h3 {
  font-family: var(--ck-display);
  font-variation-settings: "opsz" 100, "SOFT" 50, "WONK" 1;
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ck-ink);
  margin: 0;
  line-height: 1;
}
.ck-skill3d-caption em {
  font-style: italic;
  background: linear-gradient(135deg, var(--ck-blue), var(--ck-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ck-skill3d-caption p {
  font-family: var(--ck-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(10, 10, 20, 0.55);
  margin: 0;
  text-align: right;
  max-width: 200px;
  line-height: 1.5;
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 5. REFINED ACCENTS                                      ║
   ╚═════════════════════════════════════════════════════════╝ */

/* Cream tone on certain sections for visual rhythm */
.colorlib-services {
  background: linear-gradient(180deg, var(--ck-cream) 0%, #ffffff 100%) !important;
}
.colorlib-work {
  background: linear-gradient(180deg, #ffffff 0%, var(--ck-cream) 100%) !important;
}

/* Stronger heading underline */
.colorlib-heading::after {
  width: 96px !important;
  height: 5px !important;
  background: linear-gradient(90deg, var(--ck-blue), var(--ck-cyan)) !important;
  border-radius: 0 !important;
  margin-top: 22px !important;
}

/* Refined nav brand */
.brand-name {
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 1;
  font-weight: 700 !important;
}
.brand-name em {
  font-style: italic;
}

/* Big marquee text uses Fraunces — much more editorial */
.fx-marquee-item {
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}
.fx-marquee-item.alt {
  font-style: italic;
}

/* Counter labels — JetBrains Mono with brackets refined */
#colorlib-counter .colorlib-counter-label {
  letter-spacing: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
#colorlib-counter .colorlib-counter {
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1 !important;
  font-weight: 900 !important;
}

/* Refined timeline labels (cert/achievement) */
.timeline-label h2 {
  font-family: var(--ck-display) !important;
  font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 0 !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: -0.01em !important;
}
.timeline-label h2 span {
  font-family: var(--ck-mono) !important;
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 6. RESPONSIVE                                           ║
   ╚═════════════════════════════════════════════════════════╝ */
@media (max-width: 768px) {
  .ck-skill3d { height: 360px; }
  .ck-fact { padding: 70px 0 !important; }
  .ck-fact-quote { font-size: clamp(32px, 8vw, 56px); }
  .ck-fact-meta strong { font-size: 32px; }
  .fx-num { font-size: clamp(96px, 18vw, 160px) !important; }
}
