/* ============================================================
   codexrelic.com — Design System
   Stack: Vanilla CSS | Fonts: Space Grotesk + Inter + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* 1. DESIGN TOKENS */

:root {
  --c-bg:            #07151e;
  --c-surface:       #0b2431;
  --c-card:          #0e2e3f;
  --c-card-hover:    #143d54;
  --c-border:        #194a64;
  --c-border-accent: #5dd1c5;
  --c-text:          #e2f0f5;
  --c-text-secondary:#8bb1c4;
  --c-text-muted:    #557d91;
  --c-accent:        #5dd1c5;
  --c-accent-hover:  #7ce5db;
  --c-accent-dim:    rgba(93, 209, 197, 0.10);
  --c-accent-glow:   0 0 24px rgba(93, 209, 197, 0.20);
  --c-green:         #10b981;
  --c-green-dim:     rgba(16, 185, 129, 0.10);
  --c-red:           #ef4444;
  --c-amber:         #f59e0b;
  --sidebar-w:       350px;
  --content-max:     860px;
  --logo-watermark:  url('../images/logo-dark.png');
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-full: 9999px;
  --t-fast: 0.15s ease; --t-base: 0.25s ease;
}

[data-theme="light"] {
  --c-bg:            #ecf1f0;
  --c-surface:       #f7faf9;
  --c-card:          #ffffff;
  --c-card-hover:    #f2f6f5;
  --c-border:        #d2deda;
  --c-border-accent: #087a6e;
  --c-text:          #0a282b;
  --c-text-secondary:#405f63;
  --c-text-muted:    #829c9f;
  --c-accent:        #087a6e;
  --c-accent-hover:  #065e55;
  --c-accent-dim:    rgba(8, 122, 110, 0.07);
  --c-accent-glow:   0 0 24px rgba(8, 122, 110, 0.12);
  --logo-watermark:  url('../images/logo-light.png');
}

/* ── Theme Palettes Overrides ── */

/* 1. Cyber Emerald */
html[data-palette="cyber"] {
  --c-border-accent: #10b981;
  --c-accent:        #10b981;
  --c-accent-hover:  #34d399;
  --c-accent-dim:    rgba(16, 185, 129, 0.08);
  --c-accent-glow:   0 0 24px rgba(16, 185, 129, 0.15);
}
html[data-theme="light"][data-palette="cyber"] {
  --c-border-accent: #059669;
  --c-accent:        #059669;
  --c-accent-hover:  #047857;
  --c-accent-dim:    rgba(5, 150, 105, 0.07);
  --c-accent-glow:   0 0 24px rgba(5, 150, 105, 0.12);
}

/* 2. Cosmic Violet */
html[data-palette="cosmic"] {
  --c-bg:            #090714;
  --c-surface:       #100d1f;
  --c-card:          #16132b;
  --c-card-hover:    #211d3d;
  --c-border:        #29254c;
  --c-border-accent: #8b5cf6;
  --c-accent:        #8b5cf6;
  --c-accent-hover:  #a78bfa;
  --c-accent-dim:    rgba(139, 92, 246, 0.08);
  --c-accent-glow:   0 0 24px rgba(139, 92, 246, 0.15);
}
html[data-theme="light"][data-palette="cosmic"] {
  --c-bg:            #f7f6f9;
  --c-surface:       #ffffff;
  --c-card:          #f0eff4;
  --c-card-hover:    #e5e3eb;
  --c-border:        #d4d1df;
  --c-border-accent: #6d28d9;
  --c-accent:        #6d28d9;
  --c-accent-hover:  #5b21b6;
  --c-accent-dim:    rgba(109, 40, 217, 0.07);
  --c-accent-glow:   0 0 24px rgba(109, 40, 217, 0.12);
}

/* 3. Ancient Codex */
html[data-palette="codex"] {
  --c-bg:            #0c0a09;
  --c-surface:       #161412;
  --c-card:          #24201d;
  --c-card-hover:    #322c27;
  --c-border:        #3b342e;
  --c-border-accent: #f59e0b;
  --c-accent:        #f59e0b;
  --c-accent-hover:  #fbbf24;
  --c-accent-dim:    rgba(245, 158, 11, 0.08);
  --c-accent-glow:   0 0 24px rgba(245, 158, 11, 0.15);
}
html[data-theme="light"][data-palette="codex"] {
  --c-bg:            #fafaf9;
  --c-surface:       #ffffff;
  --c-card:          #f5f5f4;
  --c-card-hover:    #e7e5e4;
  --c-border:        #d6d3d1;
  --c-border-accent: #b45309;
  --c-accent:        #b45309;
  --c-accent-hover:  #92400e;
  --c-accent-dim:    rgba(180, 83, 9, 0.07);
  --c-accent-glow:   0 0 24px rgba(180, 83, 9, 0.12);
}

/* 4. Steel SRE */
html[data-palette="steel"] {
  --c-bg:            #090d16;
  --c-surface:       #0f172a;
  --c-card:          #1e293b;
  --c-card-hover:    #334155;
  --c-border:        #334155;
  --c-border-accent: #3b82f6;
  --c-accent:        #3b82f6;
  --c-accent-hover:  #60a5fa;
  --c-accent-dim:    rgba(59, 130, 246, 0.08);
  --c-accent-glow:   0 0 24px rgba(59, 130, 246, 0.15);
}
html[data-theme="light"][data-palette="steel"] {
  --c-bg:            #f8fafc;
  --c-surface:       #ffffff;
  --c-card:          #f1f5f9;
  --c-card-hover:    #e2e8f0;
  --c-border:        #cbd5e1;
  --c-border-accent: #1d4ed8;
  --c-accent:        #1d4ed8;
  --c-accent-hover:  #1e40af;
  --c-accent-dim:    rgba(29, 78, 216, 0.07);
  --c-accent-glow:   0 0 24px rgba(29, 78, 216, 0.12);
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--t-base), color var(--t-base);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
}
p { color: var(--c-text-secondary); line-height: 1.8; }

/* 4. LAYOUT */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  padding: var(--sp-6) var(--sp-4);
  overflow-y: auto;
  z-index: 100;
  transition: background var(--t-base), border-color var(--t-base);
}

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: var(--sp-10) var(--sp-8) var(--sp-16);
}

.content-wrap { max-width: var(--content-max); margin: 0 auto; }

/* 5. SIDEBAR COMPONENTS */
.sidebar-brand {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-8); text-decoration: none; flex-shrink: 0;
}

/* Palette selector swatches */
.palette-selector-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2);
  display: block;
}
.palette-selector {
  display: flex;
  gap: 10px;
  margin-bottom: var(--sp-6);
  align-items: center;
}
.palette-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast);
  padding: 0;
  outline: none;
}
.palette-swatch:hover {
  transform: scale(1.25);
}
.palette-swatch.active {
  border-color: var(--c-text);
  transform: scale(1.15);
  box-shadow: 0 0 10px var(--c-accent);
}
.sidebar-brand img {
  height: 128px !important;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-mark {
  width: 30px; height: 30px;
  background: var(--c-accent);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700; color: #fff;
  letter-spacing: -0.03em; flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600; color: var(--c-text);
}
.brand-tld { color: var(--c-accent); }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-group-label {
  font-family: var(--font-mono);
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--c-text-muted);
  padding: var(--sp-5) var(--sp-4) var(--sp-2);
}

.nav-link {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: 0.95rem; color: var(--c-text-secondary);
  transition: all var(--t-fast); position: relative; text-decoration: none;
}
.nav-link:hover { background: var(--c-accent-dim); color: var(--c-text); }
.nav-link.active { background: var(--c-accent-dim); color: var(--c-accent); font-weight: 500; }
.nav-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 16px; background: var(--c-accent); border-radius: 2px;
}
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.6; transition: opacity var(--t-fast); }
.nav-link.active .nav-icon, .nav-link:hover .nav-icon { opacity: 1; }
.nav-sep { height: 1px; background: var(--c-border); margin: var(--sp-3) 0; }

.sidebar-footer {
  margin-top: auto; padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: var(--sp-3);
}

.sidebar-status {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.72rem; color: var(--c-text-muted);
  padding: var(--sp-1) var(--sp-2);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-green);
  animation: pulse-dot 2s ease infinite; flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

.sidebar-socials { display: flex; gap: var(--sp-2); padding: 0 var(--sp-2); flex-wrap: wrap; }
.social-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  color: var(--c-text-muted); font-size: 0.75rem; text-decoration: none;
  transition: all var(--t-fast);
}
.social-btn:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-accent-dim); }

.theme-toggle {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-size: 0.78rem; color: var(--c-text-muted);
  transition: all var(--t-fast); width: 100%; text-align: left;
}
.theme-toggle:hover { border-color: var(--c-accent); color: var(--c-text); background: var(--c-accent-dim); }
.toggle-icon { width: 13px; height: 13px; }

/* 6. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 500; font-family: var(--font-sans);
  transition: all var(--t-fast); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-primary:hover {
  background: var(--c-accent-hover); border-color: var(--c-accent-hover);
  transform: translateY(-1px); box-shadow: var(--c-accent-glow);
}
.btn-outline { border-color: var(--c-border); color: var(--c-text-secondary); }
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-accent-dim); }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: 0.8rem; }
.btn-icon { width: 14px; height: 14px; }

/* 7. PAGE HEADER */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--sp-4);
  margin-bottom: var(--sp-10); padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
}
.page-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-accent); margin-bottom: var(--sp-2);
}
.page-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.page-subtitle { font-size: 0.9rem; color: var(--c-text-muted); }

/* 8. RESUME COMPONENTS */
.resume-identity {
  display: flex; align-items: center; gap: var(--sp-6);
  padding: var(--sp-6); background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  margin-bottom: var(--sp-8);
}
.resume-avatar {
  width: 72px; height: 72px; border-radius: var(--r-md);
  background: var(--c-accent-dim); border: 2px solid var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--c-accent); flex-shrink: 0;
}
.resume-identity-info { flex: 1; }
.resume-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--c-text); margin-bottom: var(--sp-1);
}
.resume-role { font-size: 0.9rem; color: var(--c-accent); font-weight: 500; margin-bottom: var(--sp-3); }
.resume-contacts { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.resume-contact-item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.78rem; color: var(--c-text-muted);
  text-decoration: none; transition: color var(--t-fast);
}
.resume-contact-item:hover { color: var(--c-accent); }
.resume-contact-icon { width: 12px; height: 12px; flex-shrink: 0; }

.resume-section { margin-bottom: var(--sp-10); }
.resume-section-header {
  display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6);
}
.resume-section-line { flex: 1; height: 1px; background: var(--c-border); }
.resume-section-title {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-accent); white-space: nowrap;
}

.resume-overview {
  font-size: 0.95rem; line-height: 1.85; color: var(--c-text-secondary);
  padding: var(--sp-5); background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  border-left: 3px solid var(--c-accent);
}

.education-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); padding: var(--sp-5); background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.education-item:hover { border-color: var(--c-accent); }
.education-degree {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  color: var(--c-text); margin-bottom: var(--sp-1);
}
.education-institution { font-size: 0.85rem; color: var(--c-accent); margin-bottom: var(--sp-1); }
.education-detail { font-size: 0.78rem; color: var(--c-text-muted); }
.education-meta { text-align: right; flex-shrink: 0; }

/* Timeline */
.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 12px; bottom: 0;
  width: 1px; background: var(--c-border);
}
.timeline-item { position: relative; margin-bottom: var(--sp-8); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: calc(-1 * var(--sp-6) + 2px); top: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-accent); border: 2px solid var(--c-bg); z-index: 1;
}
.timeline-item.current .timeline-dot {
  background: var(--c-green); box-shadow: 0 0 0 3px var(--c-green-dim);
}
.timeline-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-5);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.timeline-card:hover { border-color: var(--c-border-accent); transform: translateX(3px); }
.timeline-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-3);
}
.timeline-role {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--c-text); margin-bottom: 2px;
}
.timeline-company { font-size: 0.85rem; color: var(--c-accent); display: flex; align-items: center; gap: var(--sp-2); }
.timeline-company-loc { color: var(--c-text-muted); font-size: 0.78rem; }
.timeline-period {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--c-text-muted); white-space: nowrap; text-align: right;
}
.current-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px var(--sp-2); border-radius: var(--r-full);
  font-size: 0.65rem; font-weight: 600; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--c-green-dim); color: var(--c-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.current-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c-green);
}
.timeline-bullets {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-top: var(--sp-3); border-top: 1px solid var(--c-border);
}
.timeline-bullet { display: flex; gap: var(--sp-3); font-size: 0.84rem; color: var(--c-text-secondary); line-height: 1.6; }
.bullet-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--c-accent);
  flex-shrink: 0; margin-top: 7px; opacity: 0.6;
}

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); }
.skill-group {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-5); transition: border-color var(--t-fast);
}
.skill-group:hover { border-color: var(--c-accent); }
.skill-group-title {
  font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-accent); margin-bottom: var(--sp-4);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.skill-tag {
  padding: 3px var(--sp-3); border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 500;
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text-secondary); transition: all var(--t-fast);
}
.skill-tag:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-accent-dim); }
.skill-tag.highlight { background: var(--c-accent-dim); border-color: rgba(124,58,237,0.25); color: var(--c-accent); }

.latex-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--c-text-muted); border: 1px solid var(--c-border); background: var(--c-surface);
}

/* Footer */
.page-footer {
  margin-top: var(--sp-16); padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
  font-size: 0.78rem; color: var(--c-text-muted);
}
.footer-links { display: flex; gap: var(--sp-5); }
.footer-links a { color: var(--c-text-muted); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--c-accent); }

/* Animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding: var(--sp-2) var(--sp-4); z-index: 200;
}
.mobile-nav-items { display: flex; justify-content: space-around; }
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--sp-2); border-radius: var(--r-sm); text-decoration: none;
  color: var(--c-text-muted); font-size: 0.58rem; font-weight: 500;
  transition: color var(--t-fast); min-width: 44px;
}
.mobile-nav-item.active { color: var(--c-accent); }
.mobile-nav-item-icon { width: 20px; height: 20px; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
::selection { background: var(--c-accent-dim); color: var(--c-accent); }

/* Print */
@media print {
  .sidebar, .mobile-nav, .theme-toggle, .btn, .page-footer { display: none !important; }
  .main { margin-left: 0; padding: 0; }
  .layout { display: block; }
  body { background: white; color: black; }
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { margin-left: 0; max-width: 100%; padding: var(--sp-6) var(--sp-5) 80px; }
  .mobile-nav { display: block; }
  .resume-identity { flex-direction: column; text-align: center; }
  .resume-contacts { justify-content: center; }
  .education-item { flex-direction: column; }
  .page-header { flex-direction: column; gap: var(--sp-4); }
}
@media (max-width: 520px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   16. NETFLIX-STYLE MOVIE CARDS
   ============================================================ */

.netflix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.netflix-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  aspect-ratio: 2 / 3;
  cursor: pointer;
}

.netflix-card:hover {
  transform: scale(1.03);
  border-color: var(--c-accent);
  box-shadow: var(--c-accent-glow);
}

.netflix-poster-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.netflix-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.netflix-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(9, 9, 14, 0.95) 75%, rgba(9, 9, 14, 0.4) 100%);
  padding: var(--sp-4);
  transform: translateY(100%);
  transition: transform var(--t-base);
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.netflix-card:hover .netflix-overlay {
  transform: translateY(0);
}

.netflix-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
}

.netflix-meta {
  font-size: 0.7rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.netflix-rating {
  font-family: var(--font-mono);
  color: var(--c-accent);
  font-weight: 600;
}

.netflix-desc {
  font-size: 0.72rem;
  color: var(--c-text-secondary);
  line-height: 1.5;
}

.netflix-sre-box {
  margin-top: var(--sp-2);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--r-sm);
  padding: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.netflix-sre-box strong {
  color: var(--c-accent);
  display: block;
  margin-bottom: 2px;
}

/* ============================================================
   17. SUBTLE WATERMARK BACKGROUND
   ============================================================ */
body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 300vw;
  height: 300vh;
  transform: translate(-50%, -50%) rotate(-25deg);
  background-image: var(--logo-watermark);
  background-size: 280px 140px; /* Elegant tiled size */
  background-repeat: repeat;
  background-position: 0 0;
  opacity: 0.022; /* Clean, subtle anti-copy watermark */
  pointer-events: none;
  z-index: -1;
}
