/* ==========================================================================
   Hanif Rahman Hakim - Portfolio Design System
   Dark-blue modern glassmorphic aesthetic, upgraded from Canva layout
   ========================================================================== */

:root {
  --bg-base: #04070f;
  --bg-elevated: #0a1020;
  --bg-card: rgba(11, 18, 35, 0.78);
  --bg-card-hover: rgba(16, 26, 50, 0.92);
  --border-subtle: rgba(56, 189, 248, 0.16);
  --border-strong: rgba(56, 189, 248, 0.42);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --cyan: #38bdf8;
  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --indigo: #1e3a8a;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;

  --gradient-accent: linear-gradient(90deg, #5eead4 0%, #38bdf8 35%, #3b82f6 100%);
  --gradient-pill: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  --gradient-card: linear-gradient(180deg, rgba(22, 36, 71, 0.55) 0%, rgba(8, 13, 27, 0.9) 100%);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.22);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);

  --container-max: 1180px;
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient royal-blue glows matching Hanif's Canva dark-blue aesthetic */
.bg-glows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glows::before,
.bg-glows::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}

.bg-glows::before {
  width: 760px;
  height: 760px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.36) 0%, rgba(14, 30, 82, 0.08) 60%, transparent 75%);
}

.bg-glows::after {
  width: 820px;
  height: 820px;
  bottom: -240px;
  left: -200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.26) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 72%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Sticky Top Navbar (High-contrast pill navigation + EN/ID toggle)
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 7, 15, 0.78);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo span:first-child {
  color: var(--cyan);
}

.nav-pill-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.12);
}

.nav-link.active {
  color: #ffffff;
  background: var(--gradient-pill);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.42);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--gradient-pill);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.85);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(6, 10, 22, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px 24px;
  z-index: 49;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: 12px;
}

/* ==========================================================================
   Hero / Overview Section
   ========================================================================== */

.hero {
  padding: 64px 0 48px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.1vw, 1.55rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.3;
}

.hero-bio {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #060a14;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.24);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.icon-circle:hover {
  color: #ffffff;
  border-color: var(--cyan);
  background: rgba(37, 99, 235, 0.28);
  transform: translateY(-2px);
}

/* Signature Glowing Circle Portrait */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.portrait-ring {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #38bdf8, #2563eb, #0f172a);
  box-shadow: 0 0 70px rgba(37, 99, 235, 0.45), inset 0 0 30px rgba(56, 189, 248, 0.3);
}

.portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #38bdf8 0%, #1d4ed8 55%, #0c1838 100%);
  position: relative;
}

.portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.06);
}

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(8, 13, 27, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.floating-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.badge-top-right { top: 14px; right: -16px; }
.badge-bottom-left { bottom: 20px; left: -24px; }

/* Stats Strip (Canva signature glass pill bar) */
.stats-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Collaborated With Strip */
.collab-strip {
  margin-top: 28px;
  text-align: center;
}

.collab-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.collab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.collab-sep {
  color: rgba(56, 189, 248, 0.45);
}

/* ==========================================================================
   Section Common Headers & Filters
   ========================================================================== */

.section {
  padding: 72px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  position: relative;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 650px;
  margin-top: 10px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--cyan);
  color: #ffffff;
}

.filter-pill.active {
  background: var(--gradient-pill);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Section 2: Paid Ads, SEO & GEO Case Studies
   ========================================================================== */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  box-shadow: var(--shadow-card);
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.case-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(16, 31, 66, 0.85) 0%, rgba(8, 13, 27, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.32);
}

.case-card.hidden {
  display: none;
}

.case-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.badge-blue {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.badge-green {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.badge-slate {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

.case-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.case-client {
  font-size: 0.88rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 4px;
}

.case-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Featured Meta Ads layout */
.featured-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi-box {
  background: rgba(6, 11, 24, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 13px;
  padding: 13px 14px;
}

.kpi-box.highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(56, 189, 248, 0.12));
  border-color: rgba(56, 189, 248, 0.45);
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.kpi-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.proof-thumb-btn {
  margin-top: 12px;
  width: 100%;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: #0c1428;
  position: relative;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.proof-thumb-btn:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.proof-thumb-btn img {
  width: 100%;
  height: auto;
}

.proof-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(6, 11, 24, 0.92);
}

/* Funnel & Budget split bar */
.split-bar {
  display: flex;
  height: 12px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
  gap: 2px;
}

.split-seg { height: 100%; }
.seg-cyan { background: #38bdf8; }
.seg-blue { background: #3b82f6; }
.seg-emerald { background: #34d399; }
.seg-amber { background: #fbbf24; }

.split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.case-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  transition: all 0.2s ease;
}

.btn-card:hover {
  background: var(--gradient-pill);
  border-color: transparent;
  color: #ffffff;
}

.btn-card-ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--text-secondary);
}

.btn-card-ghost:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--cyan);
  color: #ffffff;
}

/* ==========================================================================
   Section 3: Email Marketing & Copywriting
   ========================================================================== */

.process-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 26px;
}

.process-step {
  flex: 1;
  min-width: 0;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.process-step:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
}

.step-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  opacity: 0.85;
  flex-shrink: 0;
}

.nda-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.email-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.email-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-card);
}

.email-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.email-card.hidden {
  display: none;
}

.email-preview-wrap {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #0b1120;
  cursor: pointer;
}

.email-preview-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.email-card:hover .email-preview-wrap img {
  transform: translateY(-18px);
}

.email-preview-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to top, rgba(6, 10, 22, 0.98) 10%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
}

.zoom-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #e0f2fe;
}

.email-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.email-angle {
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* Social copy mini-card */
.threads-banner {
  margin-top: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
}

.threads-img-btn {
  max-height: 240px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  position: relative;
}

.threads-img-btn img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* ==========================================================================
   Section 4: AI Content Creation (Dedicated Tab with HTML5 Video Players)
   ========================================================================== */

.ai-banner {
  background: linear-gradient(135deg, rgba(14, 30, 68, 0.78), rgba(8, 13, 27, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.ai-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.video-card.hidden {
  display: none;
}

.video-stage {
  position: relative;
  aspect-ratio: 9 / 14;
  background: #02040a;
  overflow: hidden;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  pointer-events: none;
}

.video-expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(4, 7, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.video-expand-btn:hover {
  background: var(--blue);
}

.video-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.video-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.video-tech {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
}

.rd-disclaimer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(148, 163, 184, 0.24);
}

/* ==========================================================================
   Section 5: Video & Graphic Design (Clean Archive, Zero Broken Embeds)
   ========================================================================== */

.creative-proofs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  position: relative;
  cursor: pointer;
}

.mini-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.mini-thumb span {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(4, 7, 15, 0.84);
  color: #ffffff;
}

.corporate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}

.corp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.corp-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.corp-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0b1736 0%, #050a18 100%);
  overflow: hidden;
}

.corp-player img.embed-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.corp-card:hover .corp-player img.embed-thumb {
  opacity: 0.88;
  transform: scale(1.03);
}

.corp-player iframe,
.social-embed-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.corp-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.corp-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.corp-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.corp-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

/* Social Media Video Embed Grid */
.video-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.video-mode-tab {
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.video-mode-tab:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.12);
}

.video-mode-tab.active {
  background: var(--gradient-pill);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.42);
}

.video-panel.hidden {
  display: none;
}

.social-embed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.social-embed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}

.social-embed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.social-embed-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.social-embed-card.hidden {
  display: none;
}

.social-embed-stage {
  position: relative;
  aspect-ratio: 9 / 15;
  background: radial-gradient(circle at 50% 28%, rgba(37, 99, 235, 0.32) 0%, #050a18 72%);
  overflow: hidden;
}

.social-embed-stage img.embed-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.social-embed-card:hover .social-embed-stage img.embed-thumb {
  opacity: 0.94;
  transform: scale(1.03);
}

.embed-cover-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.2) 0%, rgba(4, 7, 15, 0.72) 100%);
  color: #ffffff;
  transition: background 0.2s ease;
}

.embed-cover-btn:hover {
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.1) 0%, rgba(16, 36, 84, 0.76) 100%);
}

.play-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-pill);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.embed-cover-btn:hover .play-orb {
  transform: scale(1.08);
}

.embed-cover-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(6, 11, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #e0f2fe;
}

.social-embed-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.social-embed-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.social-embed-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.ext-link {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
}

.ext-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.design-item {
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0a1020;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.design-item:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.design-item.hidden {
  display: none;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.design-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.design-label {
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(6, 10, 22, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   Section 6: Tools & Certifications
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.tool-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.tool-group-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-group-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(6, 11, 24, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tool-row:hover {
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(12, 22, 46, 0.85);
}

.tool-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.tool-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
}

.tool-usage {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.cert-card.award {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.24), rgba(11, 18, 35, 0.92));
}

.cert-thumb-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #060b18;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.cert-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-thumb-btn img {
  transform: scale(1.04);
}

.cert-thumb-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(4, 7, 15, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #e0f2fe;
}

.cert-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
}

.cert-card.award .cert-issuer {
  color: var(--amber);
}

.cert-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.cert-desc {
  font-size: 0.81rem;
  color: var(--text-muted);
}

.cert-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   Section 7: Contact
   ========================================================================== */

.contact-section {
  padding: 84px 0 96px;
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.contact-sub {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 38px;
  font-size: 0.98rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 780px;
  margin: 0 auto 28px;
}

.contact-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.32);
}

.contact-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.icon-circle-svg {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.icon-circle-svg img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px 4px 7px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.platform-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  border-radius: 3px;
}

.filter-pill-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-pill-icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  border-radius: 3px;
}

/* Home Overview Hub Cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  box-shadow: var(--shadow-card);
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: var(--bg-card-hover);
}

.hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hub-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
}

.hub-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.hub-link {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Subpage top padding & Next/Prev Page Bar */
.subpage-main {
  min-height: calc(100vh - var(--nav-height) - 70px);
}

.subpage-section {
  padding: 46px 0 64px;
  border-top: none;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.page-pager {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.contact-val {
  font-size: 0.82rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.copy-email-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.copy-email-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #ffffff;
}

.contact-cta-row {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-cta-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #e0f2fe;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.contact-card:hover .contact-cta-pill,
.contact-cta-pill:hover {
  background: var(--gradient-pill);
  border-color: transparent;
  color: #ffffff;
}

.location-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Modals (Case Study Breakdown + Image Lightbox + Video Cinema)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 5, 14, 0.86);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: #0a1122;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-panel.modal-narrow {
  max-width: 520px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.7);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.35);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-body img.lightbox-img {
  margin: 0 auto;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}

.modal-video-wrap {
  display: flex;
  justify-content: center;
  background: #02040a;
  border-radius: 14px;
  overflow: hidden;
}

.modal-video-wrap video {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
}

/* Modal Data Tables */
.data-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  text-align: left;
}

.data-table th {
  background: rgba(30, 58, 138, 0.45);
  color: #e0f2fe;
  font-weight: 700;
  padding: 11px 14px;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.42);
}

.status-good { color: #6ee7b7; font-weight: 700; }
.status-warn { color: #fde68a; font-weight: 700; }
.status-bad { color: #fda4af; font-weight: 700; }

/* Scorecard bars inside GEO modal */
.score-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-row {
  display: grid;
  grid-template-columns: 220px 1fr 48px;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
}

.score-track {
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--gradient-pill);
}

.score-fill.mid { background: #fbbf24; }
.score-fill.low { background: #94a3b8; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  padding: 12px 18px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid var(--cyan);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1060px) {
  .nav-pill-group { display: none; }
  .mobile-menu-btn { display: inline-flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-bio { margin: 0 auto 24px; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }

  .portrait-ring { width: 250px; height: 250px; }
  .badge-top-right { right: -6px; top: 6px; }
  .badge-bottom-left { left: -6px; bottom: 8px; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .process-strip { flex-direction: column; gap: 6px; }
  .process-arrow { transform: rotate(90deg); height: 22px; }
  .email-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .social-embed-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .design-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero { padding: 36px 0 32px; }
  .section { padding: 52px 0; }

  .featured-body,
  .case-grid,
  .creative-proofs,
  .corporate-grid,
  .tools-grid,
  .threads-banner,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .social-embed-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 140px 1fr 40px; }
  .floating-badge { display: none; }
}

@media (max-width: 480px) {
  .stats-strip,
  .email-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
