/* ==========================================================================
   Typography Portfolio - Multi-Section Stylized Retro 8-bit Website
   ========================================================================== */

/* Offline Pixelify Sans Web Fonts */
@font-face {
  font-family: 'Pixelify Sans';
  src: url('fonts/PixelifySans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pixelify Sans';
  src: url('fonts/PixelifySans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
  background-color: #000000;
}

body {
  width: 100%;
  max-width: 100vw;
  background-color: #000000;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, -apple-system, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  text-rendering: geometricPrecision;
}


/* Background Video Container - Scoped Strictly to Page 1 Hero */
.video-background-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background-color: #000000;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65; /* +10% visibility */
  filter: brightness(0.90) contrast(1.15);
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%),
              rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

/* ==========================================================================
   TOP BAR: NotEnemyOk on Top-Left & Navigation Menu on Top-Right
/* ==========================================================================
   TOP BAR: Floating Site Header (Blurred with Rounded Corners on Scroll)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 24px 36px;
  pointer-events: none;
  transition: padding 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-header-inner {
  width: 100%;
  max-width: 1240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: 28px;
  pointer-events: auto;
  background: transparent;
  border: 1.5px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: none;
  transition: background-color 0.35s ease,
              backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              padding 0.35s ease;
}

/* Activated on Page 2 (Clients) and Page 3 (Videos) */
.site-header.is-scrolled {
  padding: 16px 28px;
}

.site-header.is-scrolled .site-header-inner {
  background: rgba(10, 8, 22, 0.76);
  backdrop-filter: blur(24px) saturate(190%) brightness(110%);
  -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(110%);
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.65),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.3),
    0 0 24px rgba(7, 89, 235, 0.14);
  padding: 8px 24px;
}

/* Top Left Creator Handle */
.brand-top-left {
  position: relative;
  cursor: pointer;
  display: inline-block;
  user-select: none;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.brand-text {
  display: inline-block;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 35%,
    #80c4ff 50%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 0px #000000) drop-shadow(2px 2px 0px #000000);
}

.brand-top-left:hover {
  transform: translateY(-3px) scale(1.08);
}

.brand-top-left:hover .brand-text {
  animation: navShine 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1 forwards;
}

@keyframes navShine {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* Top Right Navigation Menu */
.top-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.nav-link {
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: lowercase;
  padding: 3px 9px;
  border-radius: 3px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
  line-height: 1.2;
  filter: drop-shadow(1px 1px 0px #000000);
}

.nav-link:hover {
  background-color: rgba(7, 89, 235, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-link.active {
  background-color: #0759eb;
  color: #ffffff;
  font-weight: 700;
  border-radius: 3px;
}

.nav-link.hire-link {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 4px;
  background: rgba(247, 7, 142, 0.22);
  border: 1px solid rgba(247, 7, 142, 0.48);
  transition: all 0.25s ease;
}

.nav-link.hire-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 90%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.88) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.nav-link.hire-link:hover {
  background-color: #f7078e;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(247, 7, 142, 0.85), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-link.hire-link:hover::after {
  animation: hireShineSweep 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 1 forwards;
}

@keyframes hireShineSweep {
  0% { left: -140%; }
  100% { left: 160%; }
}

/* ==========================================================================
   PAGE 1: HERO SECTION
   - Large chunky fonts
   - Curved bottom corners (Image 2)
   - Stylized Figma vector bounding box with handles on MOTION. (Image 5)
   - Pure white dual-shine with 1.0s interval delay
   - Bottom animated scroll indicator (Image 1)
   ========================================================================== */

.hero-section {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  padding: 0 20px 80px 20px;
  background-color: #000000;
  /* Smoothed, soothed bottom curved edge with luminous gentle rim */
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.38);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 2px 14px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Luminous Feathered Glow along Hero Bottom Curve */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.40) 25%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.40) 75%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.stacked-typography {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  cursor: pointer;
  max-width: 100%;
  transform: rotate(-3deg);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* Container for each line */
.line-container {
  position: relative;
  display: inline-block;
  line-height: 0.78;
}

/* Top Line: "Ideas in" (Scaled Big, electric blue with subtle gradient & 3D black edge) */
.line-ideas .text-fill {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: clamp(2.4rem, 13.5vw, 12.5rem); /* Responsive on all screens */
  font-weight: 700;
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #3fa0ff 0%, #1a6eff 35%, #0759eb 70%, #033ea3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: 
    drop-shadow(1px 1px 0px #000000)
    drop-shadow(2px 2px 0px #000000)
    drop-shadow(3px 3px 0px #000000)
    drop-shadow(4px 4px 0px #000000);
}

/* Bottom Line: "MOTION." (Scaled Big, hot pink with subtle gradient & 3D black edge) */
.line-motion .text-fill {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: clamp(2.8rem, 15.5vw, 14.5rem); /* Responsive on all screens */
  font-weight: 700;
  display: block;
  text-align: center;
  margin-top: -0.04em;
  background: linear-gradient(135deg, #ff52aa 0%, #ff1c96 35%, #f7078e 70%, #bd006b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: 
    drop-shadow(1px 1px 0px #000000)
    drop-shadow(2px 2px 0px #000000)
    drop-shadow(3px 3px 0px #000000)
    drop-shadow(4px 4px 0px #000000);
}

/* ==========================================================================
   FIGMA / VECTOR SELECTION BOUNDING BOX AROUND MOTION. (Matching Image 5)
   ========================================================================== */

.motion-selection-box {
  position: absolute;
  inset: -8px -18px -12px -18px;
  border: 2px solid #3884ff;
  pointer-events: none;
  z-index: 15;
}

/* Handle squares on corners and midpoints with interactive rubber-stretch capabilities */
.box-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: #ffffff;
  border: 1.5px solid #0759eb;
  pointer-events: auto;
  z-index: 20;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

/* Expanded clickable hit area for effortless grabbing */
.box-handle::before {
  content: '';
  position: absolute;
  inset: -8px;
  cursor: inherit;
}

.box-handle:hover {
  transform: scale(1.4);
  background-color: #3884ff;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 132, 255, 0.9);
}

.box-handle.is-active {
  transform: scale(1.6) !important;
  background-color: #f7078e !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(247, 7, 142, 0.9) !important;
}

.handle-tl { top: -5px; left: -5px; cursor: nwse-resize; }
.handle-tr { top: -5px; right: -5px; cursor: nesw-resize; }
.handle-bl { bottom: -5px; left: -5px; cursor: nesw-resize; }
.handle-br { bottom: -5px; right: -5px; cursor: nwse-resize; }
.handle-tc { top: -5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.handle-bc { bottom: -5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.handle-ml { top: 50%; left: -5px; transform: translateY(-50%); cursor: ew-resize; }
.handle-mr { top: 50%; right: -5px; transform: translateY(-50%); cursor: ew-resize; }

.handle-tc:hover, .handle-bc:hover { transform: translateX(-50%) scale(1.4); }
.handle-ml:hover, .handle-mr:hover { transform: translateY(-50%) scale(1.4); }

/* Selection Pill Badge matching Image 5 (e.g. THANHT VY style) */
.selection-pill-badge {
  position: absolute;
  bottom: -32px;
  right: -10px;
  background: #3884ff;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(7, 89, 235, 0.4);
  pointer-events: none;
}

/* Small cursor arrow at bottom handle matching Image 5 */
.cursor-arrow {
  position: absolute;
  bottom: -15px;
  left: 48%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid #3884ff;
  transform: rotate(35deg);
  pointer-events: none;
}

/* Line motion and ideas containers with smooth transforms */
.line-ideas {
  transform-origin: center bottom;
  will-change: transform;
}

.line-motion {
  transform-origin: center center;
  will-change: transform;
}

/* ==========================================================================
   PURE WHITE DUAL-SHINE OVERLAY (Smooth 2-Shine Glide with 1.0s Interval)
   ========================================================================== */

.shine-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-weight: 700;
  display: block;
  text-align: center;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.45) 44%,
    rgba(255, 255, 255, 1.0) 48%,
    rgba(255, 255, 255, 0.45) 52%,
    rgba(255, 255, 255, 0.08) 56%,
    transparent 60%,
    transparent 76%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0.45) 84%,
    rgba(255, 255, 255, 1.0) 88%,
    rgba(255, 255, 255, 0.45) 92%,
    rgba(255, 255, 255, 0.08) 96%,
    transparent 100%
  );
  background-size: 380% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: background-position, opacity;
}

.line-ideas .shine-beam {
  font-size: clamp(5.2rem, 15vw, 12.5rem);
}

.line-motion .shine-beam {
  font-size: clamp(6.2rem, 17.5vw, 14.5rem);
  margin-top: -0.04em;
}

/* Pop-Up Elevation on Hover */
.stacked-typography:hover {
  transform: rotate(-3deg) translateY(-16px) scale(1.05);
}

.stacked-typography.is-stretching {
  transform: rotate(-3deg) translateY(-16px) scale(1.05) !important;
  cursor: grabbing !important;
}

/* Dual-Shine Sweep on Hover (Instant first shine on hover, 1.0s interval, exactly 2 shines) */
.stacked-typography:hover .shine-beam {
  animation: dualShineSweep 3.4s cubic-bezier(0.28, 0.1, 0.22, 1) 1 forwards;
}

.stacked-typography:hover .line-motion .shine-beam {
  animation-delay: 0.08s;
}

@keyframes dualShineSweep {
  0% {
    background-position: 100% 0;
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  98% {
    opacity: 0.1;
  }
  100% {
    background-position: -40% 0;
    opacity: 0;
  }
}

/* ==========================================================================
   BOTTOM ANIMATED SCROLL INDICATOR (Matching Image 1)
   ========================================================================== */

.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  user-select: none;
  opacity: 0.75;
}

.scroll-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #777777;
  text-transform: uppercase;
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 1.5px solid #444444;
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.mouse-dot {
  width: 5px;
  height: 5px;
  background-color: #0759eb;
  box-shadow: 0 0 6px #0759eb;
  border-radius: 50%;
  position: absolute;
  top: 6px;
  animation: scrollMouseDot 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollMouseDot {
  0% {
    top: 6px;
    opacity: 1;
    transform: scale(1);
  }
  60% {
    top: 22px;
    opacity: 0.8;
    transform: scale(0.9);
  }
  100% {
    top: 24px;
    opacity: 0;
    transform: scale(0.6);
  }
}

/* ==========================================================================
   SEAMLESS MULTI-SECTION UNIVERSE (PAGE 2: CLIENTS & PAGE 3: VIDEOS)
   - Continuous dynamic moving gradient backdrop
   - Single unified coordinate blueprint grid and film grain
   - ZERO seams, cuts, borders, or horizontal breaks between sections
   ========================================================================== */

.content-universe-wrapper {
  position: relative;
  width: 100%;
  background: #000000;
  overflow: hidden;
}

.shared-bg-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 65% 50% at 50% 28%, #0d0c14 0%, #050508 60%, #000000 100%),
    radial-gradient(ellipse 70% 55% at 50% 75%, #0f0e18 0%, #06060a 60%, #000000 100%),
    #000000;
}

.shared-vignette-fade {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 90% 75% at 50% 50%, transparent 45%, #000000 100%);
  pointer-events: none;
}

/* ==========================================================================
   PAGE 2: "WORKED WITH" (CLIENTS SECTION)
   - 1:1 Aspect Ratio square cards
   - Hover: Full 3D Pop-Out
   - Transparent section resting seamlessly on the shared universe backdrop
   ========================================================================== */

.clients-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  z-index: 2;
  background: transparent !important;
  border: none !important;
}

/* Background Backdrop - Fallback for standalone usage */
.clients-bg-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Cosmic Orbs Removed for Pure, Crisp Black Canvas */
.glow-orbs-wrapper {
  display: none !important;
}

.glow-orb {
  display: none !important;
}

/* Clean White Dots Overlay (Crisp, Simple White Dots on Black Canvas) */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='1.2' fill='rgba(255,255,255,0.30)'/%3E%3C/svg%3E");
  background-size: 36px 36px;
  pointer-events: none;
}

/* Tactile Analog Film Grain Noise Overlay (Subtle, balanced analog texture) */
.bg-noise-grain {
  position: absolute;
  inset: 0;
  background-image: url('grain.png');
  background-size: 256px 256px;
  background-repeat: repeat;
  opacity: 0.24; /* A little less noisy */
  pointer-events: none;
}

/* Front-End Mid Box: Apple Liquid Glass Container */
.clients-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 60px auto 90px auto;
  padding: 80px 48px 75px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.01) 70%, rgba(130, 80, 220, 0.06) 100%);
  backdrop-filter: blur(40px) saturate(200%) brightness(112%);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(112%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-top: 1.5px solid rgba(255, 255, 255, 0.58);
  border-left: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 30px 85px -10px rgba(0, 0, 0, 0.92),
    0 0 50px -10px rgba(255, 255, 255, 0.06),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.70),
    inset 0 -1px 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 35px rgba(255, 255, 255, 0.05);
}

/* Liquid Glass Surface Specular Sheen */
.clients-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 35%, transparent 65%);
  z-index: 1;
}

/* Image 1 Corner Sparkle Stars '✦' */
.grid-corner-sparkle {
  position: absolute;
  font-size: 15px;
  line-height: 1;
  color: #80c4ff;
  text-shadow: 0 0 8px rgba(128, 196, 255, 0.85);
  user-select: none;
  pointer-events: none;
  z-index: 10;
}

.corner-tl {
  top: 16px;
  left: 22px;
}

.corner-tr {
  top: 16px;
  right: 22px;
}

.corner-bl {
  bottom: 16px;
  left: 22px;
}

.corner-br {
  bottom: 16px;
  right: 22px;
}

/* Image 1 Retro Checkered Dither Blocks */
.dither-checker {
  position: absolute;
  width: 56px;
  height: 96px;
  background-image:
    conic-gradient(rgba(130, 195, 255, 0.45) 90deg, transparent 90deg 180deg, rgba(130, 195, 255, 0.45) 180deg 270deg, transparent 270deg);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.checker-left {
  top: 36px;
  left: 32px;
}

.checker-right {
  top: 36px;
  right: 32px;
}

/* Image 1 Graphic Design Blueprint Floating Tool Icons */
.grid-tool-icon {
  position: absolute;
  color: rgba(130, 195, 255, 0.42);
  pointer-events: none;
  user-select: none;
  z-index: 3;
  filter: drop-shadow(0 0 4px rgba(100, 180, 255, 0.3));
}

.tool-text {
  top: 140px;
  left: 60px;
  font-family: 'Pixelify Sans', monospace, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.tool-dropper {
  top: 135px;
  left: 30%;
}

.tool-pen {
  top: 135px;
  right: 30%;
}

.tool-brush {
  top: 140px;
  right: 60px;
}

.tool-move {
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
}

/* Image 1 Technical Blueprint Footer Bar */
.technical-grid-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(130, 195, 255, 0.16);
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 13px;
  color: rgba(180, 215, 255, 0.7);
  letter-spacing: 0.08em;
  user-select: none;
}

.footer-meta-left,
.footer-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-sparkle {
  color: #80c4ff;
  font-size: 13px;
}

.footer-center-crosshair {
  font-size: 16px;
  color: rgba(130, 195, 255, 0.5);
}

.clients-header {
  text-align: center;
  margin-bottom: 50px;
}

.clients-title {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #dbe8ff 50%, #80c4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0px #000000);
}

.clients-subtitle {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 14px;
  color: #0759eb;
  background: rgba(7, 89, 235, 0.12);
  padding: 4px 14px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 12px;
  border: 1px solid rgba(7, 89, 235, 0.3);
  letter-spacing: 0.05em;
}

/* 1:1 Aspect Ratio Client Grid (3x2 Bento Layout for 6 Clients) */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 960px;
}

/* 1:1 Square Card */
.client-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(14, 10, 26, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.52);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.client-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Client Name Badge at Bottom Center (Reveals ONLY on hover popup, Image 4) */
.client-name-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(8, 6, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.70);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

/* HOVER: POP OUT COMPLETELY with White Outline & Softened Deep Shadow */
.client-card:hover {
  transform: scale(1.22) translateY(-10px);
  z-index: 50;
  border-color: #ffffff;
  border-width: 2px;
  box-shadow: 0 24px 55px 4px rgba(0, 0, 0, 0.70), 0 8px 20px rgba(0, 0, 0, 0.40);
}

.client-card:hover .client-img {
  transform: scale(1.04);
}

.client-card:hover .client-name-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments for tablet */
@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
  }

  .site-header.is-scrolled {
    padding: 12px 18px;
  }

  .site-header-inner {
    padding: 6px 16px;
  }

  .top-nav {
    gap: 10px;
  }

  .nav-link {
    font-size: 12px;
    padding: 2px 6px;
  }

  .hero-section {
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
  }

  .motion-selection-box {
    inset: -6px -12px -8px -12px;
  }

  .selection-pill-badge {
    bottom: -26px;
    font-size: 10px;
    padding: 2px 8px;
  }
}

@media (max-width: 580px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .client-card {
    border-radius: 18px;
  }

  .client-name-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .site-header {
    padding: 12px 12px;
  }

  .site-header.is-scrolled {
    padding: 10px 12px;
  }

  .site-header-inner {
    padding: 5px 12px;
  }

  .brand-text {
    font-size: 13px;
  }

  .top-nav {
    gap: 6px;
  }

  .nav-link {
    font-size: 11px;
    padding: 2px 4px;
    letter-spacing: 0.02em;
  }
}

/* ==========================================================================
   PAGE 3: "VIDEOS" (FEATURED VIDEO SHOWCASE SECTION)
   - Matching Page 2 Cyber Apple Liquid Glass & Moving Backdrop
   - 6 YouTube Video Cards in Framer-Inspired Draggable Horizontal Slider
   - Custom Floating Pill Controls Matching User Reference (Image 2)
   - 3D Hover Pop-Out Elevation Matching Page 2
   - YouTube Cinema Modal Player
   ========================================================================== */

.videos-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  z-index: 2;
  background: transparent !important;
  border: none !important;
}

/* ==========================================================================
   PAGE 3: "VIDEOS" (FEATURED VIDEOS 3x2 BENTO SHOWCASE GRID)
   - 3 Videos Up, 3 Videos Down (6 Videos Total)
   - Large Prominent 16:9 Cards with 3D Holographic Tilt & Specular Sheen
   - Cyber-HUD Framing, Live REC Badges, and Ambient Colored Auras
   - Interactive In-Video Floating Controls & Cinema Spotlight Focus
   ========================================================================== */

.videos-section {
  position: relative;
  width: 100%;
  min-height: auto;
  overflow: visible;
  z-index: 2;
  background: transparent !important;
  border: none !important;
}

.videos-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 70px 48px 60px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header with Cyber-HUD Reel Badge & Pixel Gradient */
.videos-header {
  text-align: center;
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.videos-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(247, 7, 142, 0.12);
  border: 1px solid rgba(247, 7, 142, 0.38);
  border-radius: 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 16px rgba(247, 7, 142, 0.2);
}

.live-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f7078e;
  box-shadow: 0 0 8px #f7078e;
  animation: recPulse 1.2s ease-in-out infinite alternate;
}

@keyframes recPulse {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.2); }
}

.badge-tag {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffd4ea;
  letter-spacing: 0.08em;
}

.videos-title {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #ffd4ea 45%, #f7078e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0px #000000);
  line-height: 1.05;
}

.videos-subtitle-desc {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 15px;
  color: rgba(220, 235, 255, 0.85);
  margin-top: 14px;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 #000000;
}

/* ==========================================================================
   3x2 BENTO VIDEO GRID (3 Videos Up, 3 Videos Down)
   ========================================================================== */

.videos-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  perspective: 1200px;
  margin-bottom: 0;
}

/* Cinema Spotlight Effect: subtle dimming on unhovered cards */
.videos-bento-grid:hover .video-card:not(:hover) {
  opacity: 0.62;
  filter: brightness(0.72) saturate(80%);
  transform: scale(0.985);
}

/* Video Card (Large Prominent 16:9 Aspect Ratio with Deep Visible Shadows & Liquid Glass) */
.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #100e1c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.40);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 26px 65px -8px rgba(0, 0, 0, 0.96),
    0 12px 28px -4px rgba(0, 0, 0, 0.88),
    0 0 35px -5px rgba(255, 255, 255, 0.05),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.32s ease,
              border-color 0.32s ease,
              opacity 0.32s ease,
              filter 0.32s ease;
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Liquid Glass Surface Specular Sheen across Card */
.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
  z-index: 3;
}

/* Ambient Colored Aura Bloom behind each card */
.card-ambient-glow {
  position: absolute;
  inset: -20px;
  border-radius: 36px;
  background: radial-gradient(circle at center, var(--glow-color, rgba(247, 7, 142, 0.45)) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  filter: blur(32px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  transform: scale(0.92);
}

.video-card:hover .card-ambient-glow {
  opacity: 0.85;
  transform: scale(1.12);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Specular Light Sheen Layer */
.card-specular-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  transition: opacity 0.3s ease;
}

/* Card Hover Elevation: Elevated 3D Pop Out & Deep Shadows */
.video-card:hover {
  transform: translateY(-14px) scale(1.06);
  z-index: 50;
  border-color: rgba(255, 255, 255, 0.75);
  border-top-color: #ffffff;
  box-shadow: 
    0 42px 100px -10px rgba(0, 0, 0, 0.98), 
    0 20px 45px -4px rgba(0, 0, 0, 0.92),
    0 0 35px var(--glow-color, rgba(247, 7, 142, 0.35)),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.50);
}

.video-card:hover .video-thumb-img {
  transform: scale(1.06);
}

/* Page 3 Technical Blueprint Footer Clean Margin */
.videos-section .technical-grid-footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  width: 100%;
}

/* In-Video Floating Pill Controls Bottom Right */
.video-pill-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10, 8, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  z-index: 5;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, border-color 0.25s ease;
}

.video-card:hover .video-pill-controls {
  background: rgba(12, 10, 22, 0.96);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.12);
}

/* Circular Play Button */
.control-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s ease,
              border-color 0.2s ease;
}

.control-play-btn svg {
  width: 13px;
  height: 13px;
  fill: #ffffff;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.control-play-btn:hover {
  background-color: #f7078e;
  border-color: #ffffff;
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(247, 7, 142, 0.85);
}



/* YouTube Cinema Modal */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-dialog {
  position: relative;
  width: 92%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.95);
  background: #000000;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal-backdrop.is-open .video-modal-dialog {
  transform: scale(1);
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Modal Top Bar (Floating Header) */
.video-modal-top-bar {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.modal-volume-pill,
.modal-top-actions {
  pointer-events: auto;
}

/* Modal Persistent Volume Pill */
.modal-volume-pill {
  background: rgba(10, 8, 20, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-volume-pill:hover {
  border-color: rgba(255, 51, 119, 0.6);
  box-shadow: 0 6px 22px rgba(255, 51, 119, 0.25);
}

.modal-speaker-btn {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.modal-speaker-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.modal-speaker-btn .speaker-icon-muted {
  display: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.modal-speaker-btn.is-muted .speaker-icon-active {
  display: none;
}

.modal-speaker-btn.is-muted .speaker-icon-muted {
  display: block;
}

.modal-speaker-btn:hover {
  color: #ff3377;
  transform: scale(1.15);
}

/* Modal Slider Track (Pink Glow) */
.modal-slider-track {
  position: relative;
  width: 95px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  cursor: pointer;
  touch-action: none;
}

.modal-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #ff3377;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 51, 119, 0.85);
}

.modal-slider-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff3377;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 10px #ff3377;
  transition: transform 0.15s ease;
  pointer-events: none;
}

.modal-slider-track:hover .modal-slider-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}

.modal-slider-percent {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  min-width: 32px;
  text-align: right;
  user-select: none;
}

/* Modal Top Right Actions */
.modal-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-direct-yt-btn {
  background: rgba(10, 8, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 6px 14px;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.modal-direct-yt-btn svg {
  color: #ff0000;
  transition: transform 0.2s ease;
}

.modal-direct-yt-btn:hover {
  background-color: rgba(255, 0, 0, 0.22);
  border-color: #ff0000;
  transform: scale(1.06);
}

.video-modal-close-btn {
  position: static;
  background: rgba(10, 8, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 6px 16px;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-modal-close-btn:hover {
  background-color: #f7078e;
  border-color: #ffffff;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(247, 7, 142, 0.8);
}

/* Fallback Cinema Preview Card for Offline / Local file:// Usage */
.modal-offline-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  background-color: #0d0a14;
}

.offline-preview-backdrop {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.38) saturate(1.3);
  transform: scale(1.08);
}

.offline-preview-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
  padding: 36px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(10, 8, 16, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 0, 0, 0.15);
}

.offline-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: rgba(255, 170, 0, 0.18);
  border: 1px solid rgba(255, 170, 0, 0.45);
  border-radius: 20px;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffb833;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.offline-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffaa00;
  box-shadow: 0 0 8px #ffaa00;
  animation: badgeDotPulse 1.8s ease-in-out infinite alternate;
}

@keyframes badgeDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; }
}

.offline-preview-title {
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.offline-preview-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
}

.offline-preview-desc code,
.offline-hint-text code {
  background: rgba(255, 255, 255, 0.12);
  color: #ff3377;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

.offline-preview-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.offline-watch-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.45), 0 0 16px rgba(255, 0, 0, 0.3);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background 0.2s ease;
}

.offline-watch-yt-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.7), 0 0 24px rgba(255, 0, 0, 0.5);
  background: linear-gradient(135deg, #ff2222, #e60000);
}

.offline-hint-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 680px) {
  .video-modal-top-bar {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }
  .modal-volume-pill {
    padding: 4px 10px;
    gap: 8px;
  }
  .modal-slider-track {
    width: 60px;
  }
  .modal-direct-yt-btn span {
    display: none;
  }
  .modal-direct-yt-btn {
    padding: 6px 10px;
  }
  .video-modal-close-btn span {
    display: none;
  }
  .video-modal-close-btn {
    padding: 6px 12px;
  }
}

/* Responsive adjustments for 3x2 bento video grid */
@media (max-width: 1180px) {
  .videos-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .videos-content-wrapper {
    padding: 60px 20px 90px 20px;
  }

  .videos-bento-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .videos-category-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .control-slider-track {
    width: 60px;
  }
}

/* ==========================================================================
   PAGE 4: FINAL SECTION - FOLDER TAB PRESENTATION CARD & FIERY HIRE ME CTA
   - Recreates Image 1: Blue Folder Card with Protruding Tabs, Guidelines,
     Figma Dashed Bounding Box, Pixel Cursor, Pills, Pixel Stars, Top/Bottom Bars
   - Infused with Image 2: Fiery Aesthetics, Rising Flame Tongues, Embers Canvas,
     Luminous Specular Shine Sweep, and Click-to-X Redirection
   ========================================================================== */

.hire-portfolio-section {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 100px 24px;
  z-index: 2;
  overflow: visible;
}

/* Studio Presentation Canvas (Matching Image 1 Aesthetic Soft-Grey Backdrop) */
.presentation-canvas {
  position: relative;
  width: 100%;
  max-width: 1240px;
  background: #d5d8dc;
  border-radius: 38px;
  padding: 38px 46px 36px 46px;
  box-shadow: 
    0 35px 95px -10px rgba(0, 0, 0, 0.90),
    0 12px 35px rgba(0, 0, 0, 0.45),
    0 0 45px rgba(255, 255, 255, 0.05),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #16181b;
  display: flex;
  flex-direction: column;
  gap: 26px;
  user-select: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Top Designer & URL Header Bar (Matching Image 1) */
.canvas-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'Pixelify Sans', -apple-system, sans-serif;
  padding: 0 4px;
}

.designer-credit {
  font-size: 17px;
  font-weight: 700;
  color: #181b1e;
  letter-spacing: 0.02em;
}

.canvas-url-pill {
  background: #ffffff;
  color: #636b74;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 24px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  display: inline-flex;
  align-items: center;
}

.canvas-url-pill:hover {
  transform: translateY(-2px);
  color: #0759eb;
  box-shadow: 0 4px 12px rgba(7, 89, 235, 0.18);
}

.canvas-plus-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #181b1e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.canvas-plus-btn:hover {
  transform: rotate(90deg) scale(1.15);
  background: rgba(0, 0, 0, 0.06);
}

/* Main Folder Card Outer Wrapper */
.folder-card-outer {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Protruding Folder Tabs (Matching Image 1) */
.folder-tabs-header {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding-left: 24px;
  z-index: 10;
  margin-bottom: -1px;
}

.folder-tab {
  position: relative;
  height: 44px;
  padding: 0 24px;
  border: none;
  background: #1859ff;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.55);
  border-left: 1.5px solid rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  user-select: none;
  box-shadow: 0 -6px 16px rgba(24, 89, 255, 0.35);
  z-index: 5;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.folder-tab.is-fire-active {
  background: #1a1524;
  color: #ffe8b3;
  border-top-color: rgba(255, 185, 50, 0.85);
  box-shadow: 0 -6px 18px rgba(255, 120, 0, 0.3);
}

.single-combined-tab {
  letter-spacing: 0.03em;
}

.tab-sparkle-icon {
  font-size: 15px;
  color: #f7c948;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(247, 201, 72, 0.8));
  animation: sparkleTabPulse 2s ease-in-out infinite alternate;
}

@keyframes sparkleTabPulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.25) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 10px #ffe600); }
  100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
}

/* Main Folder Card Body - Blue by default (Image 1), Morphs to Fiery Dark on Hover */
.blue-folder-card {
  position: relative;
  width: 100%;
  min-height: 420px;
  background: linear-gradient(145deg, #1b5eff 0%, #1652e8 50%, #0d42cc 100%);
  border-radius: 30px;
  border-top-left-radius: 0;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 
    0 26px 70px -8px rgba(16, 60, 180, 0.48),
    0 12px 28px rgba(0, 0, 0, 0.25),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: box-shadow 0.5s ease, border-color 0.5s ease, transform 0.3s ease;
}

/* Dark Fiery Background Layer - Fades in on hover */
.card-fire-bg-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 105%, rgba(45, 16, 6, 0.98) 0%, rgba(18, 12, 24, 0.98) 55%, #0a0710 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.blue-folder-card.is-fire-active .card-fire-bg-layer {
  opacity: 1;
}

.blue-folder-card.is-focused {
  transform: scale(1.02);
  box-shadow: 
    0 35px 95px -8px rgba(16, 60, 180, 0.65),
    0 0 45px rgba(24, 89, 255, 0.35);
}

/* Ambient Fiery Outer/Inner Glow Layer */
.card-fire-glow {
  position: absolute;
  inset: -25px;
  background: radial-gradient(ellipse at 50% 95%, rgba(255, 80, 0, 0.65) 0%, rgba(255, 140, 0, 0.35) 50%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 2;
}

.blue-folder-card.is-fire-active {
  box-shadow: 
    0 30px 90px -8px rgba(255, 65, 0, 0.65),
    0 0 60px rgba(255, 115, 0, 0.35);
  border-color: rgba(255, 160, 40, 0.65);
}

/* Top Right: Circular Expand Button */
.card-expand-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #1652e8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 15;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.card-expand-btn:hover {
  transform: scale(1.18) rotate(45deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.blue-folder-card.is-fire-active .card-expand-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffdf99;
}

/* 3 Horizontal Design Guidelines Across the Card */
.guideline-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.guideline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.guideline-top {
  top: 36%;
}

.guideline-mid {
  top: 50%;
}

.guideline-bot {
  top: 64%;
}

/* Centerpiece: Display Typography with Figma Dashed Selection Box */
.portfolio-centerpiece {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
}

/* THE REAL SHOWSTOPPER HIRE ME BUTTON */
.hire-me-centerpiece-btn {
  position: relative;
  display: inline-block;
  padding: 14px 46px 18px 46px;
  border: 2px solid #3884ff;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  color: #ffffff;
  user-select: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease, border-color 0.32s ease, background-color 0.32s ease;
  z-index: 20;
}

/* HOVER & FOCUS: 3D POP UP, AMBER GLOW & SPECULAR SHINE */
.hire-me-centerpiece-btn:hover,
.hire-me-centerpiece-btn:focus {
  transform: translateY(-6px) scale(1.04);
  border-color: #ffd000;
  background: rgba(255, 120, 0, 0.14);
  box-shadow: 0 0 32px rgba(255, 140, 0, 0.4);
}

/* 8 Handles Matching Motion Text Bounding Box */
.hire-me-centerpiece-btn .box-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: #ffffff;
  border: 1.5px solid #0759eb;
  pointer-events: none;
  z-index: 25;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hire-me-centerpiece-btn:hover .box-handle,
.hire-me-centerpiece-btn:focus .box-handle {
  transform: scale(1.35);
  background-color: #ffd000;
  border-color: #ffffff;
  box-shadow: 0 0 10px #ffd000;
}

.hire-me-centerpiece-btn .handle-tl { top: -5px; left: -5px; }
.hire-me-centerpiece-btn .handle-tr { top: -5px; right: -5px; }
.hire-me-centerpiece-btn .handle-bl { bottom: -5px; left: -5px; }
.hire-me-centerpiece-btn .handle-br { bottom: -5px; right: -5px; }
.hire-me-centerpiece-btn .handle-tc { top: -5px; left: 50%; transform: translateX(-50%); }
.hire-me-centerpiece-btn .handle-bc { bottom: -5px; left: 50%; transform: translateX(-50%); }
.hire-me-centerpiece-btn .handle-ml { top: 50%; left: -5px; transform: translateY(-50%); }
.hire-me-centerpiece-btn .handle-mr { top: 50%; right: -5px; transform: translateY(-50%); }

.hire-me-centerpiece-btn:hover .handle-tc,
.hire-me-centerpiece-btn:hover .handle-bc {
  transform: translateX(-50%) scale(1.35);
}
.hire-me-centerpiece-btn:hover .handle-ml,
.hire-me-centerpiece-btn:hover .handle-mr {
  transform: translateY(-50%) scale(1.35);
}

/* Bottom Cursor Arrow */
.hire-me-centerpiece-btn .cursor-arrow {
  position: absolute;
  bottom: -15px;
  left: 48%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid #3884ff;
  transform: rotate(35deg);
  pointer-events: none;
  z-index: 25;
  transition: border-bottom-color 0.2s ease, transform 0.2s ease;
}

.hire-me-centerpiece-btn:hover .cursor-arrow,
.hire-me-centerpiece-btn:focus .cursor-arrow {
  border-bottom-color: #ffd000;
  transform: rotate(35deg) scale(1.2);
}

/* Selection Pill Badge: ENEMY + */
.hire-me-centerpiece-btn .selection-pill-badge {
  position: absolute;
  bottom: -28px;
  right: -8px;
  background: #3884ff;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(7, 89, 235, 0.4);
  pointer-events: none;
  z-index: 25;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hire-me-centerpiece-btn:hover .selection-pill-badge,
.hire-me-centerpiece-btn:focus .selection-pill-badge {
  background: #ff7700;
  box-shadow: 0 4px 14px rgba(255, 120, 0, 0.7);
}

/* Display Wordmark "hire me." - Clean, Crisp Typography without Blurry Glow Bomb */
.portfolio-wordmark {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(4.2rem, 9.5vw, 8.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  display: block;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  transition: text-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hire-me-centerpiece-btn:hover .portfolio-wordmark,
.hire-me-centerpiece-btn:focus .portfolio-wordmark {
  color: #ffffff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), 0 0 8px rgba(255, 190, 60, 0.45);
}

/* Isolated Specular Shine Clipper */
.wordmark-shine-clipper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wordmark-specular-shine {
  position: absolute;
  top: 0;
  left: -140%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.hire-me-centerpiece-btn:hover .wordmark-specular-shine,
.hire-me-centerpiece-btn:focus .wordmark-specular-shine {
  animation: wordmarkShineSweep 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes wordmarkShineSweep {
  0% { left: -140%; }
  100% { left: 170%; }
}



/* ==========================================================================
   BIG 2D GAME VFX FIRE (@ducvu_fx Spine 2D / YouTube Shorts Flame Loop)
   ========================================================================== */
.ducvu-fire-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  border-radius: inherit;
}

.blue-folder-card.is-fire-active .ducvu-fire-stage {
  opacity: 1;
}

.ducvu-flame-entity {
  position: absolute;
  bottom: -75px;
  width: clamp(340px, 36vw, 500px);
  height: clamp(420px, 46vw, 650px);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 20px rgba(255, 90, 0, 0.45));
}

.ducvu-flame-entity.flame-left {
  left: calc(50% - 430px);
  transform: rotate(-6deg);
  animation: flameSwayLeft 3.6s ease-in-out infinite alternate;
}

.ducvu-flame-entity.flame-right {
  right: calc(50% - 430px);
  transform: scaleX(-1) rotate(-6deg);
  animation: flameSwayRight 3.6s ease-in-out infinite alternate;
}

@keyframes flameSwayLeft {
  0% { transform: rotate(-7deg) translateY(0); }
  100% { transform: rotate(-3deg) translateY(-8px); }
}

@keyframes flameSwayRight {
  0% { transform: scaleX(-1) rotate(-7deg) translateY(0); }
  100% { transform: scaleX(-1) rotate(-3deg) translateY(-8px); }
}

.ducvu-flame-entity video,
.ducvu-flame-entity img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Cartoon Fire Canvas - Completely hidden in normal mode, active only on hover */
.fire-embers-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.blue-folder-card.is-fire-active .fire-embers-canvas {
  opacity: 1;
}

/* Bottom Row: Pixel Diamond Stars "❖ ❖ ❖" (Image 1 Style, Centered) */
.card-bottom-row {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.pixel-stars-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 20px;
  user-select: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.65));
}

.pixel-diamond-glyph {
  display: inline-block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.pixel-stars-cluster:hover .pixel-diamond-glyph {
  transform: rotate(45deg) scale(1.25);
  filter: drop-shadow(0 0 12px #ffd000);
}

/* ==========================================================================
   BOTTOM FOOTER BAR BELOW CARD (Matching Image 1)
   ========================================================================== */

.canvas-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'Pixelify Sans', monospace, sans-serif;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 4px;
}

/* Left: Mail Envelope + Click-to-Copy Email (Matching Image 1) */
.footer-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: #181b1e;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.footer-email-btn:hover {
  color: #0759eb;
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.email-icon {
  color: currentColor;
}

.email-text {
  letter-spacing: 0.03em;
}

/* Click-to-Copy Toast Popup */
.copy-toast {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #181b1e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Right: Discord ID Click-to-Copy Button & On-Screen Toast */
.footer-discord-action {
  position: relative;
  display: flex;
  align-items: center;
}

.discord-copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(88, 101, 242, 0.35);
  border-radius: 22px;
  padding: 7px 18px;
  color: #181b1e;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
  user-select: none;
}

.discord-copy-btn:hover {
  transform: translateY(-2px);
  border-color: #5865F2;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.28);
  color: #5865F2;
}

.discord-icon {
  color: #5865F2;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.discord-copy-btn:hover .discord-icon {
  transform: scale(1.18) rotate(-6deg);
}

.discord-id-label {
  letter-spacing: 0.02em;
}

.discord-id-text {
  font-weight: 800;
  color: #5865F2;
  transition: color 0.2s ease;
}

/* Copied State Flash */
.discord-copy-btn.is-copied {
  background: #5865F2;
  color: #ffffff;
  border-color: #5865F2;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
  transform: scale(1.04);
}

.discord-copy-btn.is-copied .discord-icon {
  color: #ffffff;
  transform: scale(1.2);
}

.discord-copy-btn.is-copied .discord-id-text {
  color: #ffffff;
}

/* On-Screen Toast Notification */
.discord-copy-toast {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #181b1e;
  color: #ffffff;
  border: 1px solid #5865F2;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.discord-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR PAGE 4 FINAL SECTION
   ========================================================================== */

@media (max-width: 900px) {
  .presentation-canvas {
    padding: 30px 28px 28px 28px;
    border-radius: 28px;
  }

  .blue-folder-card {
    padding: 36px 32px 32px 32px;
    min-height: 360px;
  }

  .portfolio-wordmark {
    font-size: clamp(3.2rem, 8vw, 5.5rem);
  }

  .selection-bounding-box {
    padding: 10px 28px 14px 28px;
  }
}

@media (max-width: 680px) {
  /* Hero Section Responsiveness */
  .stacked-typography {
    width: 94vw;
    max-width: 94vw;
    margin: 0 auto;
    transform: rotate(-2.5deg);
  }

  .line-ideas .text-fill {
    font-size: clamp(2.2rem, 12.5vw, 4.2rem);
    letter-spacing: -0.01em;
  }

  .line-motion .text-fill {
    font-size: clamp(2.5rem, 14.5vw, 4.8rem);
    letter-spacing: -0.01em;
  }

  .motion-selection-box {
    inset: -4px -8px -6px -8px;
  }

  .box-handle {
    width: 7px;
    height: 7px;
  }

  .selection-pill-badge {
    font-size: 8.5px;
    padding: 1.5px 6px;
    bottom: -18px;
    right: -2px;
  }

  /* Page 4: Hire Me Section Mobile */
  .hire-portfolio-section {
    padding: 24px 14px 60px 14px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .presentation-canvas {
    padding: 22px 14px 22px 14px;
    border-radius: 26px;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .canvas-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .designer-credit {
    font-size: 12px;
    font-weight: 700;
  }

  .canvas-url-pill {
    font-size: 10px;
    padding: 4px 10px;
  }

  .canvas-plus-btn {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .folder-card-outer {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
  }

  .folder-tabs-header {
    padding-left: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
    z-index: 10;
  }

  .folder-tabs-header::-webkit-scrollbar {
    display: none;
  }

  .folder-tab {
    padding: 0 14px;
    font-size: 11px;
    height: 33px;
    gap: 5px;
    flex: 0 0 auto;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  .single-combined-tab {
    white-space: nowrap;
  }

  .tab-sparkle-icon {
    font-size: 12px;
  }

  .blue-folder-card {
    padding: 36px 14px 32px 14px;
    min-height: 270px;
    border-radius: 20px;
    border-top-left-radius: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .ducvu-flame-entity {
    width: 240px;
    height: 350px;
    bottom: -45px;
  }
  .ducvu-flame-entity.flame-left {
    left: calc(50% - 225px);
  }
  .ducvu-flame-entity.flame-right {
    right: calc(50% - 225px);
  }



  .card-expand-btn {
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
  }

  .card-expand-btn svg {
    width: 12px;
    height: 12px;
  }

  .portfolio-centerpiece {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .portfolio-wordmark {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  .hire-me-centerpiece-btn {
    padding: 10px 24px 14px 24px;
    max-width: 94%;
    box-sizing: border-box;
  }

  .hire-me-centerpiece-btn .box-handle {
    width: 7px;
    height: 7px;
  }

  .hire-me-centerpiece-btn .selection-pill-badge {
    font-size: 9.5px;
    padding: 1.5px 8px;
    bottom: -23px;
    right: -4px;
  }

  .hire-me-centerpiece-btn .cursor-arrow {
    bottom: -12px;
    left: 47%;
    transform: rotate(35deg) scale(0.85);
  }

  .card-bottom-row {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
  }

  .pixel-stars-cluster {
    align-self: center;
    font-size: 14px;
    gap: 8px;
  }

  .canvas-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2px 0 0 0;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-email-btn {
    font-size: 11.5px;
    padding: 4px 12px;
    gap: 6px;
    width: auto;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
    color: #4b525a;
  }

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

  .email-text {
    font-size: 11px;
  }

  .footer-discord-action {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .discord-copy-btn {
    padding: 8px 18px;
    font-size: 12px;
    border-radius: 20px;
    gap: 7px;
    width: 100%;
    max-width: 290px;
    justify-content: center;
    box-sizing: border-box;
  }

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

  .discord-copy-toast {
    font-size: 10.5px;
    padding: 4px 10px;
    top: -34px;
  }
}

/* Extra Small Devices (< 400px, e.g. iPhone SE, compact phones) */
@media (max-width: 400px) {
  .line-ideas .text-fill {
    font-size: clamp(1.8rem, 11vw, 3.2rem);
  }

  .line-motion .text-fill {
    font-size: clamp(2.1rem, 13vw, 3.6rem);
  }

  .hire-portfolio-section {
    padding: 18px 10px 50px 10px;
  }

  .presentation-canvas {
    padding: 16px 10px 18px 10px;
    border-radius: 20px;
    gap: 14px;
  }

  .blue-folder-card {
    padding: 28px 10px 24px 10px;
    min-height: 250px;
    border-radius: 16px;
    border-top-left-radius: 0;
  }

  .portfolio-wordmark {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .hire-me-centerpiece-btn {
    padding: 8px 16px 12px 16px;
  }


}

