:root {
  --bg: #080808;
  --bg-card: #111111;
  --text: #ffffff;
  --text-muted: #808080;
  --primary: #e50914;
  --primary-hover: #ff111d;
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.15);
  --header-bg: rgba(8, 8, 8, 0);
  --header-bg-scrolled: rgba(8, 8, 8, 0.98);
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 4px;
  --max: 1240px;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

body.kids-mode {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --primary: #e50914;
  --primary-hover: #ff111d;
  --border: rgba(0, 0, 0, 0.05);
  --border-hover: rgba(0, 0, 0, 0.12);
  --header-bg: rgba(245, 245, 247, 0);
  --header-bg-scrolled: rgba(245, 245, 247, 0.98);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

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

button, input, textarea {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Custom Morphing Cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  translate: -50% -50%;
  display: none;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--primary);
  transition: background-color 0.3s;
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s, 
              opacity 0.3s;
}

.cursor-label {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.cursor-ring.is-hovering {
  width: 48px;
  height: 48px;
  border-color: var(--text);
  opacity: 0.9;
}

.cursor-ring.is-hovering .cursor-label {
  opacity: 1;
}

body.kids-mode .cursor-ring {
  color: #1d1d1f;
}

@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: flex;
  }
  body {
    cursor: none;
  }
  a, button, .netflix-card, .row__nav, .netflix-modal__close {
    cursor: none;
  }
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  height: 2px;
  width: 0%;
  background-color: var(--primary);
}

/* Cinematic Wipe Overlay */
.netflix-wipe {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background-color: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__orb {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(229, 9, 20, 0.1);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.25rem;
}

.loader p {
  font-family: var(--font-heading);
  letter-spacing: 3px;
  font-size: 0.95rem;
  color: var(--primary);
  text-transform: uppercase;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  background: var(--header-bg);
  transform: translateY(0);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom: 1px solid var(--border);
}

.site-header.hide {
  transform: translateY(-100%);
}

.site-header__left, .site-header__right {
  display: flex;
  align-items: center;
}

.brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-right: 3rem;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
  letter-spacing: 0.2px;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.icon-dropdown {
  width: 16px;
  height: 16px;
}

/* Header Right */
.site-header__right {
  gap: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  position: relative;
  height: 32px;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  z-index: 2;
}

.icon-search {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

#netflix-search {
  width: 0;
  opacity: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 0 4px 28px;
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition);
  position: absolute;
  left: -170px;
  z-index: 1;
  border-radius: 2px;
}

.search-box.is-active #netflix-search {
  width: 200px;
  opacity: 1;
  padding-left: 32px;
}

/* Notifications */
.notifications {
  position: relative;
}

.notifications-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  position: relative;
}

.icon-bell {
  width: 18px;
  height: 18px;
}

.notification-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notifications-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  width: 300px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
}

.notifications-dropdown.is-open {
  display: flex;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s;
}

.notification-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

body.kids-mode .notification-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.notification-dot {
  width: 5px;
  height: 5px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.notification-item strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 1px;
}

.notification-item span {
  color: var(--text-muted);
}

/* Profile Menu */
.profile-menu {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  overflow: hidden;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  width: 170px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: none;
  flex-direction: column;
  padding: 6px 0;
  box-shadow: var(--shadow);
  z-index: 100;
}

.profile-dropdown.is-open {
  display: flex;
}

.profile-list {
  display: flex;
  flex-direction: column;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  transition: var(--transition);
}

.profile-item:hover, .profile-item.active {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.04);
}

body.kids-mode .profile-item:hover, body.kids-mode .profile-item.active {
  background-color: rgba(0, 0, 0, 0.04);
}

.profile-item img {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
}

.profile-dropdown hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

.profile-action {
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.profile-action:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.04);
}

body.kids-mode .profile-action:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Billboard (Hero) */
.billboard {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 6% 60px;
}

.billboard__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.billboard__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--bg) 18%, rgba(8, 8, 8, 0.4) 60%, transparent 100%),
                    linear-gradient(to top, var(--bg) 0%, transparent 40%),
                    linear-gradient(to bottom, var(--bg) 0%, transparent 15%);
  z-index: 1;
  transition: background-image 0.4s ease;
  pointer-events: none;
}

body.kids-mode .billboard__backdrop::after {
  background-image: linear-gradient(to right, var(--bg) 18%, rgba(245, 245, 247, 0.4) 60%, transparent 100%),
                    linear-gradient(to top, var(--bg) 0%, transparent 40%),
                    linear-gradient(to bottom, var(--bg) 0%, transparent 15%);
}

.billboard__slide {
  position: absolute;
  inset: 0;
  background-image: var(--bg-desk);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.billboard__slide.active {
  opacity: 0.65;
  animation: kenBurns 6s linear forwards;
}

body.kids-mode .billboard__slide.active {
  opacity: 0.55;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.billboard__content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.billboard__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 3px 6px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  width: max-content;
  color: var(--text-muted);
}

body.kids-mode .billboard__badge {
  background-color: rgba(0, 0, 0, 0.05);
}

.badge-top10 {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 900;
  padding: 1px 4px;
  font-size: 0.65rem;
  border-radius: 1px;
}

.billboard__title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Split character reveal styling */
.char-reveal {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

.char-reveal span {
  display: inline-block;
  transform: translateY(100%);
}

.billboard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.meta-match {
  color: #46d369;
}

.meta-rating {
  border: 1px solid var(--border-hover);
  padding: 1px 6px;
  font-size: 0.65rem;
  border-radius: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.billboard__description {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
}

.billboard__actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.55rem 1.5rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.25s, background-color 0.25s, color 0.25s;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background-color: #ffffff;
  color: #000000;
}

.btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

body.kids-mode .btn--primary {
  background-color: var(--primary);
  color: #ffffff;
}

body.kids-mode .btn--primary:hover {
  background-color: var(--primary-hover);
}

.btn--secondary {
  background-color: rgba(109, 109, 110, 0.4);
  color: #ffffff;
}

.btn--secondary:hover {
  background-color: rgba(109, 109, 110, 0.2);
}

body.kids-mode .btn--secondary {
  background-color: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

body.kids-mode .btn--secondary:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.btn--large {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.billboard__rating-tag {
  position: absolute;
  right: 0;
  bottom: 22%;
  background-color: rgba(20, 20, 20, 0.5);
  border-left: 2px solid var(--text-muted);
  padding: 4px 28px 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

/* Rows (Sections) */
.section {
  padding: 3rem 6%;
  overflow: visible;
  position: relative;
}

.row__title {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.2px;
  transition: color 0.4s ease;
}

/* Row Scroll Carousel Slider wrapper */
.row__wrapper {
  position: relative;
  width: 100%;
}

.row__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4%;
  z-index: 100;
  background-color: rgba(8, 8, 8, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  border: none;
}

body.kids-mode .row__nav {
  background-color: rgba(245, 245, 247, 0.7);
  color: #1d1d1f;
}

.row__wrapper:hover .row__nav {
  opacity: 1;
}

.row__nav:hover {
  background-color: rgba(8, 8, 8, 0.95);
}

body.kids-mode .row__nav:hover {
  background-color: rgba(245, 245, 247, 0.95);
}

.row__nav--left {
  left: -4%;
  border-radius: 4px 0 0 4px;
}

.row__nav--right {
  right: -4%;
  border-radius: 0 4px 4px 0;
}

.row__nav svg {
  width: 22px;
  height: 22px;
}

.row__grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 0.75rem 0 1.25rem;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.row__grid::-webkit-scrollbar {
  display: none;
}

/* Minimal Netflix Card */
.netflix-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  max-width: 380px;
  scroll-snap-align: start;
}

/* Card gradient glow outline mask */
.netflix-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}

.netflix-card:hover::before {
  opacity: 1;
}

.netflix-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
  z-index: 10;
}

.netflix-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000000;
}

.netflix-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}

.netflix-card:hover .netflix-card__media img {
  transform: scale(1.03);
  opacity: 1;
}

.netflix-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 1px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.netflix-card__details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.card-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
}

.control-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.control-btn:hover {
  border-color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

body.kids-mode .control-btn:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.control-btn svg {
  width: 14px;
  height: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-meta__match {
  color: #46d369;
}

.card-meta__spec {
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 1px;
}

.netflix-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-features {
  list-style: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.card-features li {
  position: relative;
  padding-left: 12px;
}

.card-features li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.card-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 2px;
}

body.kids-mode .card-tags span {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Skills is a Static grid, NOT a carousel slider */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* About Creator */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.glass-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.glass-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.about__grid .stats-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card strong {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text);
}

.stat-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signal-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.signal-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.signal-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(229, 9, 20, 0.05);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  flex-shrink: 0;
}

body.kids-mode .signal-icon {
  background-color: rgba(229, 9, 20, 0.05);
  border-color: rgba(229, 9, 20, 0.15);
}

.signal-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.signal-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Technical Skills (Netflix Progress) */
.skill-card {
  padding: 1.25rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-percentage {
  color: #46d369;
  font-weight: 700;
  font-size: 0.85rem;
}

.netflix-progress {
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  margin-top: 10px;
  overflow: hidden;
}

body.kids-mode .netflix-progress {
  background-color: rgba(0, 0, 0, 0.06);
}

.netflix-progress__bar {
  height: 100%;
  width: 0%;
  background-color: var(--primary);
}

/* Episode List (Experience) */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-card {
  display: grid;
  grid-template-columns: 50px 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.episode-card:hover {
  border-color: var(--border-hover);
}

.episode-card__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.8;
}

.episode-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  background-color: #000000;
}

.episode-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.episode-card:hover .episode-card__image img {
  opacity: 1;
}

.episode-card__play {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.episode-card:hover .episode-card__play {
  opacity: 1;
}

.episode-card__play svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.episode-card__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.episode-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.episode-card__header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.episode-card__duration {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.episode-card__sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.episode-card__details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Certifications (Reviews) Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cert-kicker {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.cert-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Why Hire Me (Production Grid) */
.hire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.hire-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  padding-left: 32px;
  transition: var(--transition);
}

.hire-grid span:hover {
  border-color: var(--border-hover);
}

.hire-grid span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-60%) rotate(45deg);
}

/* Contact Box (Membership Underline Card) */
.contact-box {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.section-heading {
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-lede {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

/* Underline Input Style for Minimal look */
.floating-label input,
.floating-label textarea {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-hover);
  padding: 20px 4px 6px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.floating-label input:focus,
.floating-label textarea:focus {
  border-bottom-color: var(--primary);
}

.floating-label label {
  position: absolute;
  left: 4px;
  top: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: transform 0.25s ease, font-size 0.25s ease, color 0.25s ease;
  pointer-events: none;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-20px);
  font-size: 0.72rem;
  color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-status {
  min-height: 20px;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

/* Contact Social Buttons */
.contact-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn .social-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  color: var(--text);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn:hover .social-icon {
  transform: scale(1.1);
}

/* Specific Social Brand Colors on Hover */
.social-btn.linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
  background: rgba(0, 119, 181, 0.05);
}

.social-btn.github:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

body.kids-mode .social-btn.github:hover {
  border-color: #000000;
  color: #000000;
  background: rgba(0, 0, 0, 0.05);
}

.social-btn.instagram:hover {
  border-color: #e1306c;
  color: #e1306c;
  background: rgba(225, 48, 108, 0.05);
}

.social-btn.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.05);
}

.social-btn.leetcode:hover {
  border-color: #f89f1b;
  color: #f89f1b;
  background: rgba(248, 159, 27, 0.05);
}

/* Footer */
.site-footer {
  padding: 3rem 6% 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-top: 4rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Netflix Dynamic Details Modal Overlay Styling */
.netflix-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.netflix-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.netflix-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.netflix-modal__wrapper {
  position: relative;
  width: min(calc(100% - 32px), 820px);
  max-height: 85vh;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-y: auto;
  z-index: 2200;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.netflix-modal__wrapper::-webkit-scrollbar {
  display: none;
}

.netflix-modal.is-open .netflix-modal__wrapper {
  transform: scale(1);
}

.netflix-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-hover);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: var(--transition);
}

.netflix-modal__close:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.netflix-modal__close svg {
  width: 14px;
  height: 14px;
}

.netflix-modal__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

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

.netflix-modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, rgba(24, 24, 24, 0.1) 60%, transparent 100%);
}

.netflix-modal__hero-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
}

.netflix-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.netflix-modal__actions {
  display: flex;
  gap: 12px;
}

.netflix-modal__body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
}

.netflix-modal__col-left, .netflix-modal__col-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.netflix-modal__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.netflix-modal__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.netflix-modal__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.netflix-modal__info-item .info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.netflix-modal__info-item .info-value {
  font-size: 0.85rem;
  color: var(--text);
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
}

.modal-features li {
  position: relative;
  padding-left: 12px;
}

.modal-features li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Search filtering animations and states */
.netflix-card.filtered-out {
  display: none !important;
}

/* Animations Reveal Layer */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .site-header {
    height: 64px;
  }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.75rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
    display: flex;
  }

  body.kids-mode .nav__links {
    background-color: rgba(245, 245, 247, 0.96);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__toggle {
    display: flex;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .episode-card {
    grid-template-columns: 30px 140px 1fr;
    gap: 1.25rem;
  }

  .episode-card__number {
    font-size: 1.8rem;
  }
  
  .netflix-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
  
  .row__nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .billboard {
    min-height: 70vh;
    align-items: flex-end;
    padding-top: 120px;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 40px;
  }

  .billboard__title {
    font-size: 2.8rem;
  }

  .billboard__slide {
    background-image: var(--bg-mob);
    background-position: right center;
  }

  .billboard__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .episode-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .episode-card__number {
    display: none;
  }

  .episode-card__image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .episode-card__header h3 {
    font-size: 1.05rem;
  }
  
  .netflix-modal__body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .netflix-card {
    flex: 0 0 85%;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
  }

  .cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
  }

  .hire-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  /* Responsive Popovers to prevent viewport escape */
  .notifications-dropdown {
    position: fixed;
    top: 64px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 320px;
  }

  .profile-dropdown {
    position: fixed;
    top: 64px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 200px;
  }

  /* Search adjustment to fit smaller header */
  .search-box.is-active #netflix-search {
    width: 130px;
  }
  #netflix-search {
    left: -110px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.6rem;
    margin-right: 1.25rem;
  }

  .site-header {
    padding: 0 16px;
  }

  .site-header__right {
    gap: 0.85rem;
  }

  .billboard__title {
    font-size: 2.3rem;
  }

  .billboard__description {
    font-size: 0.9rem;
  }

  .about__grid .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .netflix-modal__wrapper {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .netflix-modal__hero-content {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .netflix-modal__title {
    font-size: 1.8rem;
  }

  .netflix-modal__body {
    padding: 16px;
  }

  .netflix-modal__close {
    top: 12px;
    right: 12px;
  }
}
