/* Netflix SPDGV Portfolio — Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #141414;
  --bg-card: #181818;
  --bg-card-hover: #252525;
  --bg-modal: #181818;
  --red: #E50914;
  --red-hover: #f6121d;
  --white: #FFFFFF;
  --gray-light: #E5E5E5;
  --gray: #B3B3B3;
  --gray-mid: #808080;
  --gray-dark: #6D6D6E;
  --gray-darker: #333;
  --shadow: rgba(0, 0, 0, 0.75);
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --row-height: 180px;
  --row-gap: 4px;
  --nav-height: 68px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* =========================================
   INTRO ANIMATION
   ========================================= */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#intro.fade-out {
  animation: introFadeOut 1s ease forwards;
}

#intro-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes introFadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    pointer-events: none;
  }
}

.intro-skip {
  position: absolute;
  bottom: 40px;
  right: 40px;
  color: var(--gray);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.5s ease 2.5s forwards;
  border: 1px solid var(--gray-dark);
  padding: 8px 16px;
  border-radius: 4px;
  transition: var(--transition);
}

.intro-skip:hover {
  color: var(--white);
  border-color: var(--white);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* =========================================
   NAVIGATION
   ========================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 4%;
  transition: background 0.4s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--red);
  margin-right: 40px;
  letter-spacing: 2px;
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex: 1;
}

.nav-links li {
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
  transition: color var(--transition);
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
}

.nav-links li:hover,
.nav-links li.active {
  color: var(--white);
}

.nav-links li.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-socials a {
  color: var(--gray);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-socials a:hover {
  color: var(--white);
}

/* =========================================
   HERO BILLBOARD
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top,
      var(--bg) 0%,
      rgba(20, 20, 20, 0.8) 30%,
      rgba(20, 20, 20, 0.4) 60%,
      transparent 100%);
}

.hero-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.6), transparent);
}

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 4%;
  max-width: 600px;
  z-index: 10;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
  font-size: 18px;
  color: var(--gray-light);
  margin-bottom: 24px;
  line-height: 1.5;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-categories span {
  font-size: 12px;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}

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

.btn-secondary {
  background: rgba(109, 109, 110, 0.7);
  color: var(--white);
}

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

.hero-dots {
  position: absolute;
  bottom: 8%;
  right: 4%;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 80px;
  background: rgba(20, 20, 20, 0.5);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  border-radius: 4px;
}

.hero:hover .hero-nav {
  opacity: 1;
}

.hero-nav:hover {
  background: rgba(20, 20, 20, 0.85);
}

.hero-nav-prev {
  left: 16px;
}

.hero-nav-next {
  right: 16px;
}

/* Hero Video Layer */
.hero-video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-layer.visible {
  opacity: 1;
}

.hero-video-layer iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--hero-iframe-w, 100vw);
  height: var(--hero-iframe-h, 100vh);
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

/* Hero Mute Button */
.hero-mute-btn {
  position: absolute;
  bottom: 8%;
  right: 12%;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(20, 20, 20, 0.6);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.hero-mute-btn:hover {
  background: rgba(20, 20, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Tile Hover Preview */
.tile-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 4px;
  overflow: hidden;
}

.tile-preview.visible {
  opacity: 1;
}

.tile-preview iframe {
  width: 200%;
  height: 200%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

/* =========================================
   CONTENT ROWS
   ========================================= */
.content {
  position: relative;
  margin-top: -80px;
  z-index: 10;
  padding-bottom: 80px;
}

.row {
  margin-bottom: 0px;
  position: relative;
}

.row-title {
  font-size: 20px;
  font-weight: 700;
  padding: 0 4% 12px;
  color: var(--gray-light);
}

.row-slider {
  display: flex;
  gap: var(--row-gap);
  padding: 0 4% 80px;
  margin-bottom: -48px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: 4%;
}

.row-slider::-webkit-scrollbar {
  display: none;
}

.row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: calc(var(--row-height) + 20px);
  background: rgba(20, 20, 20, 0.7);
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.row:hover .row-arrow {
  opacity: 1;
}

.row-arrow:hover {
  background: rgba(20, 20, 20, 0.9);
}

.row-arrow-left {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.row-arrow-right {
  right: 0;
  border-radius: 4px 0 0 4px;
}

/* =========================================
   TILES
   ========================================= */
.tile {
  flex: 0 0 auto;
  width: 320px;
  height: var(--row-height);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s 0.35s;
  scroll-snap-align: start;
  background: var(--bg-card);
}

.tile:hover {
  transform: scale(1.35);
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s;
  overflow: visible;
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition);
  border-radius: 4px;
}

.tile-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  transition: opacity var(--transition), transform var(--transition);
}

.tile-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
}

.tile-categories {
  display: none;
  gap: 4px;
  flex-wrap: wrap;
}

.tile:hover .tile-categories {
  display: flex;
}

.tile-category {
  font-size: 10px;
  color: var(--gray);
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

/* Tiles without images */
.tile-text-only {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

.tile-text-only::before {
  content: '📝';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  opacity: 0.4;
}

.tile-text-only[data-type="publishing"]::before {
  content: '📚';
}

.tile-text-only .tile-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tile-text-only .tile-tagline {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

.tile-text-only .tile-info {
  position: static;
  background: none;
  padding: 8px 0 0;
  opacity: 0;
  transform: none;
}

.tile-text-only:hover .tile-info {
  opacity: 1;
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5000;
  display: none;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 0;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-modal);
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  animation: modalSlideIn 0.4s ease;
  margin: auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141414;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-darker);
}

.modal-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.modal-banner-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}

.modal-banner-video video,
.modal-banner-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.modal-banner-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.modal-body {
  padding: 32px;
}

.modal-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-tagline {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 16px;
}

.modal-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-year {
  color: #46d369;
  font-weight: 600;
  font-size: 15px;
}

.modal-category {
  font-size: 13px;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
}

.modal-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-light);
  margin-bottom: 24px;
}

.modal-links {
  margin-bottom: 32px;
}

.modal-links h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  margin-bottom: 12px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.modal-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-gallery {
  margin-top: 24px;
}

.modal-gallery h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  margin-bottom: 12px;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.modal-gallery-img {
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  transition: transform var(--transition);
  object-fit: cover;
  aspect-ratio: 16/9;
  background: var(--bg-card);
}

.modal-gallery-img:hover {
  transform: scale(1.03);
}

/* Behind the Scenes gallery */
.bts-gallery {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bts-video {
  cursor: default;
}

.bts-video:hover {
  transform: none;
}

/* Local video in modal */
.modal-local-video {
  margin: 4px 0 20px;
}

.modal-local-video video {
  width: 100%;
  border-radius: 6px;
  background: #000;
}

/* YouTube video gallery */
.yt-gallery {
  margin: 4px 0 20px;
}

.yt-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.yt-gallery-header h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #808080;
  margin: 0;
}

.yt-gallery-counter {
  font-size: 13px;
  color: #808080;
  font-variant-numeric: tabular-nums;
}

.yt-gallery-player {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.yt-gallery-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.yt-gallery-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-gallery-title-bar {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.7);
}

.yt-gallery-now-playing {
  font-size: 14px;
  font-weight: 600;
  color: #e5e5e5;
}

.yt-gallery-nav {
  position: absolute;
  top: 0;
  width: 48px;
  height: calc(100% - 40px);
  background: rgba(20, 20, 20, 0.6);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.yt-gallery-player:hover .yt-gallery-nav {
  opacity: 1;
}

.yt-gallery-nav:hover {
  background: rgba(20, 20, 20, 0.9);
}

.yt-gallery-prev {
  left: 0;
}

.yt-gallery-next {
  right: 0;
}

.yt-gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.yt-gallery-strip::-webkit-scrollbar {
  display: none;
}

.yt-gallery-thumb {
  flex: 0 0 auto;
  width: 140px;
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
  text-align: left;
}

.yt-gallery-thumb:hover {
  opacity: 0.9;
}

.yt-gallery-thumb.active {
  border-color: #e50914;
  opacity: 1;
}

.yt-gallery-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.yt-gallery-thumb span {
  display: block;
  padding: 4px 6px;
  font-size: 10px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.5);
}

/* =========================================
   ABOUT OVERLAY
   ========================================= */
.about-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 5000;
  display: none;
  justify-content: center;
  overflow-y: auto;
  padding: 80px 20px;
  backdrop-filter: blur(8px);
}

.about-overlay.active {
  display: flex;
}

.about-content {
  max-width: 700px;
  width: 100%;
  text-align: center;
  animation: modalSlideIn 0.4s ease;
}

.about-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.about-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.about-profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.about-name {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 4px;
}

.about-headline {
  font-size: 20px;
  color: var(--red);
  font-weight: 600;
}

.about-summary {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-light);
  margin-bottom: 32px;
}

.about-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.about-link {
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 14px;
  transition: var(--transition);
}

.about-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =========================================
   WHY ME OVERLAY
   ========================================= */
.whyme-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 5000;
  display: none;
  justify-content: center;
  overflow-y: auto;
  padding: 80px 20px 40px;
  backdrop-filter: blur(8px);
}

.whyme-overlay.active {
  display: flex;
}

.whyme-content {
  max-width: 760px;
  width: 100%;
  animation: modalSlideIn 0.4s ease;
}

.whyme-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.whyme-header {
  margin-bottom: 40px;
}

.whyme-header h1 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 8px;
}

.whyme-header p {
  font-size: 16px;
  color: var(--gray);
}

.whyme-annotation {
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--red);
  transition: var(--transition);
}

.whyme-annotation:hover {
  background: rgba(255, 255, 255, 0.06);
}

.whyme-quote {
  font-size: 14px;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.6;
  padding-left: 16px;
  border-left: 2px solid var(--gray-dark);
}

.whyme-response {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-light);
}

.whyme-response strong {
  color: var(--white);
}

.whyme-project-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--red);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.whyme-project-link:hover {
  color: var(--red-hover);
  text-decoration: underline;
}

/* =========================================
   PODCAST CTA (inside Why Me overlay)
   ========================================= */
.podcast-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 10px;
  margin-bottom: 36px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.podcast-cta:hover {
  background: rgba(229, 9, 20, 0.14);
  border-color: rgba(229, 9, 20, 0.45);
  transform: translateY(-1px);
}

.podcast-cta-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
  transition: box-shadow 0.25s ease;
}

.podcast-cta:hover .podcast-cta-icon {
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.6);
}

.podcast-cta-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-light);
}

.podcast-cta-text strong {
  color: var(--white);
  font-weight: 700;
}

/* =========================================
   PODCAST FLOATING MINI-PLAYER
   ========================================= */
.podcast-mini-player {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 9000;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: podcastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 300px;
}

.podcast-mini-player.active {
  display: flex;
}

@keyframes podcastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.podcast-play-btn {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.podcast-play-btn:hover {
  background: var(--red-hover);
  transform: scale(1.08);
}

.podcast-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.podcast-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-progress-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.podcast-progress-wrap:hover {
  height: 6px;
}

.podcast-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.15s linear;
}

.podcast-time {
  font-size: 11px;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}

.podcast-close-btn {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--gray);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.podcast-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

/* =========================================
   SKILLS & TOOLS
   ========================================= */
.skills-section {
  padding: 40px 4% 48px;
}

.skills-section .row-title {
  font-size: 20px;
  font-weight: 700;
  padding: 0 0 20px;
  color: var(--gray-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 20px 12px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: transform 0.25s ease;
}

.skill-item:hover {
  transform: translateY(-4px);
}

.skill-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.skill-item:hover .skill-icon {
  opacity: 1;
}

.skill-icon img,
.skill-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* PNGs are dark shapes — invert them to match the gray tone of other icons */
.skill-icon img[src$=".png"] {
  filter: invert(0.7);
}

.skill-label {
  font-size: 10px;
  color: var(--gray);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.3;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.skill-item:hover .skill-label {
  color: var(--gray-light);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  padding: 40px 4%;
  border-top: 1px solid var(--gray-darker);
  color: var(--gray-dark);
  font-size: 13px;
  text-align: center;
}

footer a {
  color: var(--gray);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
  .tile {
    width: 280px;
  }

  .hero-content h1 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  :root {
    --row-height: 140px;
  }

  .tile {
    width: 200px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content {
    bottom: 15%;
    left: 5%;
    max-width: 85%;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links li {
    font-size: 12px;
  }

  .intro-n {
    font-size: 120px;
  }

  .intro-jw {
    font-size: 60px;
  }

  .modal-banner {
    height: 250px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --row-height: 120px;
    --nav-height: 56px;
  }

  .tile {
    width: 160px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .nav-logo {
    font-size: 22px;
    margin-right: 16px;
  }

  .nav-links li {
    font-size: 11px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   R&D BENTO GRID
   ========================================= */
.rnd-section {
  padding: 0 4% 60px;
}

.rnd-heading {
  margin-bottom: 24px;
}

.rnd-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-light);
  display: block;
  margin-bottom: 6px;
}

.rnd-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.rnd-bento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(504px, 1fr));
  gap: 16px;
}

.rnd-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rnd-card iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
}

@media (max-width: 560px) {
  .rnd-bento {
    grid-template-columns: 1fr;
  }

  .rnd-card iframe {
    width: 100%;
    max-width: 100%;
  }
}