/* ==========================================================================
   1. CUSTOM FONTS & IMPORTS
   ========================================================================== */
@font-face {
  font-family: 'Pixelta';
  src: url('fonts/PixeltaRegular-lxoDw.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Silkscreen';
  src: url('fonts/Silkscreen-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ==========================================================================
   2. GLOBAL VARIABLES & THEME SETUP
   ========================================================================== */
:root {
  --bg-color: #0b0b0b;
  --card-bg: #141414;
  --accent-gold: #F7DB87;
  --text-muted: #c9b982;
  --border-gold: rgba(247, 219, 135, 0.25);
  --border-gold-bright: #F7DB87;
  --max-width: 900px;
  --transition-speed: 0.2s ease;

  /* Typography */
  --font-pixel: 'Press Start 2P', monospace;
  --font-silkscreen: 'Silkscreen', monospace;
  --font-gothic: 'Pixelta', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ==========================================================================
   3. BASE RESETS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--accent-gold);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: opacity var(--transition-speed);
}

a:hover {
  opacity: 0.85;
}

/* ==========================================================================
   4. SECTION HEADERS & PROJECT TITLES (DESKTOP)
   ========================================================================== */
h2,
.section-title-main {
  font-family: var(--font-pixel) !important;
  font-size: 0.85rem !important;
  font-weight: normal !important;
  color: var(--accent-gold) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--border-gold) !important;
  padding-bottom: 0.6rem !important;
  margin-bottom: 1.75rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}

h2::before, h2::after,
.section-title-main::before, .section-title-main::after {
  content: "✦" !important;
  font-family: sans-serif !important;
  font-size: 0.85rem !important;
  color: var(--accent-gold) !important;
}

/* Project Titles */
h3,
.project-header h3,
.project-card h3 {
  font-family: var(--font-silkscreen), var(--font-pixel), monospace !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: var(--accent-gold) !important;
  text-transform: uppercase !important;
  margin-top: 0 !important;
  margin-bottom: 0.35rem !important;
}

/* Stills & Subsection Titles */
h4,
.stills-heading,
.carousel-group h4 {
  font-family: var(--font-pixel) !important;
  font-size: 0.78rem !important;
  color: var(--accent-gold) !important;
  letter-spacing: 0.05em !important;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ==========================================================================
   5. HEADER & AMBIENT STAR BANNER
   ========================================================================== */
.site-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 0 !important;
}

.banner-container {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.hero-banner {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  line-height: 0;
  text-align: center;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.twinkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.twinkle-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 245, 200, 0.7) 0%,
    rgba(247, 219, 135, 0.3) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
  animation: starBreathe infinite ease-in-out;
}

.twinkle-spot.moon-flare { top: 39.8%; left: 50.1%; width: 28px; height: 28px; animation-duration: 7.2s; }
.twinkle-spot.star-l1 { top: 47.5%; left: 4.8%;  width: 14px; height: 14px; animation-duration: 5.6s; animation-delay: 0.8s; }
.twinkle-spot.star-l2 { top: 67.5%; left: 4.2%;  width: 16px; height: 16px; animation-duration: 6.8s; animation-delay: 2.1s; }
.twinkle-spot.star-l4 { top: 39.5%; left: 13.5%; width: 12px; height: 12px; animation-duration: 5.2s; animation-delay: 3.2s; }
.twinkle-spot.star-r2 { top: 49.5%; left: 93.8%; width: 14px; height: 14px; animation-duration: 5.8s; animation-delay: 2.6s; }
.twinkle-spot.star-r3 { top: 64.5%; left: 92.2%; width: 16px; height: 16px; animation-duration: 7.0s; animation-delay: 1.8s; }
.twinkle-spot.star-r4 { top: 40.5%; left: 70.8%; width: 12px; height: 12px; animation-duration: 5.5s; animation-delay: 3.8s; }

/* ==========================================================================
   6. SUB-NAV BAR (SINGLE ROW ON DESKTOP)
   ========================================================================== */
.sub-nav {
  position: relative !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 1.75rem !important;
  margin: -0.65rem auto 7rem auto !important; /* Pushes the About section down into a relaxed, airy position */
  padding: 0 1rem !important;
  max-width: 1100px !important;
  white-space: nowrap !important;
}

.nav-row {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.75rem !important;
}

.sub-nav a {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.85rem !important;
  line-height: 1.2 !important;
  color: var(--accent-gold) !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  outline: none !important;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease !important;
}

.sub-nav a:focus,
.sub-nav a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.sub-nav a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(247, 219, 135, 0.85) !important;
  transform: translateY(-2px) !important;
}

.sub-nav .nav-star {
  font-size: 0.8rem !important;
  color: var(--accent-gold) !important;
  opacity: 0.75 !important;
  user-select: none;
  animation: pulseStar 2.5s infinite ease-in-out;
}

/* Diamonds display by default in the desktop single line */
.nav-diamond {
  color: var(--accent-gold);
  font-size: 0.75rem;
  user-select: none;
}

.mobile-diamond {
  display: none !important; /* Hidden on desktop so it doesn't double up */
}

.desktop-divider {
  display: inline-block !important; /* Visible between ACTIVE PRODUCTIONS and PERSONAL PROJECTS on desktop */
}

/* ==========================================================================
   7. MAIN CONTAINER & PROJECT CARDS
   ========================================================================== */
.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0; /* Pushes the About Me card down to mirror the banner gap */
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-gold);
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

section {
  scroll-margin-top: 2rem;
}

#about p {
  line-height: 1.8;
  font-size: 1rem;
}

#about strong {
  color: var(--accent-gold);
}

.project-header {
  margin-bottom: 0.75rem;
}

.project-role {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
}

.project-tagline {
  margin-bottom: 0.75rem;
}

.project-desc {
  margin-bottom: 1rem;
}

.project-bullet-list {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.project-bullet-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.project-bullet-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 0.75rem;
  top: 0.15rem;
}

/* ==========================================================================
   BUTTONS & PROJECT LOGO BADGES
   ========================================================================== */
.project-links {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem !important;
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

/* KEEP THIS: Styles the button tags */
.project-links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel, monospace);
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(247, 219, 135, 0.05);
  border: 1px solid var(--border-gold);
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* KEEP THIS: Button hover states */
.project-links a:hover {
  background: var(--accent-gold);
  color: var(--bg-color);
  border-color: var(--border-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 219, 135, 0.25);
  opacity: 1;
}

/* ==========================================================================
   PROJECT LINKS ROW & EMBEDDED LOGO BADGES (TIGHT LOCKUP)
   ========================================================================== */
.project-links-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important; /* Pulls logos right beside the buttons */
  gap: 1.5rem !important;                 /* Same spacing as the Whirlygig lockup */
  margin: 1.5rem 0 !important;
  flex-wrap: wrap !important;
}

.project-links-row .project-links {
  margin: 0 !important;
}

.project-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.project-logo-badge .card-logo-img {
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
  opacity: 0.9;
}

/* 1. TDI: Natural authentic yellow/brown colors, no heavy filter */
.tdi-badge .card-logo-img {
  max-height: 48px;
  max-width: 150px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}
.project-links-row:hover .tdi-badge .card-logo-img {
  opacity: 1;
  transform: scale(1.07);
}

/* 2. Ninja Girl: Authentic yellow graffiti colors, scaled to full optical presence */
.ng-badge .card-logo-img {
  max-height: 76px !important;            /* Substantially enlarged */
  max-width: 200px !important;
  mix-blend-mode: screen;                 /* Seamlessly knocks out the black background */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  opacity: 0.95;
}
.project-links-row:hover .ng-badge .card-logo-img {
  opacity: 1;
  transform: scale(1.07);
}

/* 3. Bellemint: Rich, warm celestial gold (no silver/white cast) */
.bellemint-badge .card-logo-img {
  max-height: 24px;
  max-width: 150px;
  object-fit: contain;
  /* Shifted from silver-ivory to solid, warm antique gold */
  filter: invert(1) sepia(1) saturate(3.8) hue-rotate(5deg) brightness(1);
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.project-links-row:hover .bellemint-badge .card-logo-img {
  opacity: 1;
  transform: scale(1.04);
  filter: invert(1) sepia(1) saturate(4.2) hue-rotate(5deg) brightness(1.1) drop-shadow(0 0 6px rgba(247, 219, 135, 0.4));
}

/* 4. TRU LUV: Neutralized to grayscale, then identical Whirlygig vintage gold formula */
.truluv-badge .card-logo-img {
  max-height: 30px;
  max-width: 140px;
  object-fit: contain;
  /* Neutralizes pastel lines completely, then applies pure Whirlygig gold */
  filter: grayscale(1) invert(1) sepia(0.85) saturate(2.2) hue-rotate(5deg) brightness(0.95);
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

/* Shared Hover States: Identical subtle lift and soft celestial gold glow */
.project-links-row:hover .bellemint-badge .card-logo-img {
  opacity: 0.95;
  transform: scale(1.04);
  filter: invert(1) sepia(0.9) saturate(2.8) hue-rotate(5deg) brightness(1.05) drop-shadow(0 0 6px rgba(247, 219, 135, 0.35));
}

.project-links-row:hover .truluv-badge .card-logo-img {
  opacity: 0.95;
  transform: scale(1.04);
  filter: grayscale(1) invert(1) sepia(0.9) saturate(2.8) hue-rotate(5deg) brightness(1.05) drop-shadow(0 0 6px rgba(247, 219, 135, 0.35));
}



/* About Me Bottom Row: Clustered side-by-side */
.about-footer-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important; /* Pulls both together on the left */
  gap: 1.5rem !important;                 /* Controlled, elegant breathing room */
  margin-top: 1.5rem !important;
  padding-top: 0.5rem !important;
}

.about-footer-row .about-links {
  margin: 0 !important;
}

.whirlygig-crest-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.whirlygig-crest-img {
  width: 52px;                           /* Slightly dialed back to complement button height */
  height: 52px;
  object-fit: contain;
  mix-blend-mode: screen;
  /* Subdued antique gold: lower saturation and balanced brightness */
  filter: invert(1) sepia(0.85) saturate(2.2) hue-rotate(5deg) brightness(0.95);
  opacity: 0.7;                          /* Blends softly into the card background */
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
  user-select: none;
  pointer-events: none;
}

/* Subtle glow only when actively hovering the row */
.about-footer-row:hover .whirlygig-crest-img {
  opacity: 0.95;
  transform: scale(1.05);
  filter: invert(1) sepia(0.9) saturate(2.8) hue-rotate(5deg) brightness(1.05) drop-shadow(0 0 6px rgba(247, 219, 135, 0.3));
}

/* ==========================================================================
   8. ACTIVE PRODUCTIONS (TDI & NINJA GIRL DESKTOP LAYOUTS)
   ========================================================================== */
.featured-hero-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  display: block;
}

/* Desktop: 2-Column Split Layout with Poster on the Right */
.project-split-layout {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 2rem !important;
  align-items: start !important;
  margin-bottom: 1.5rem !important;
}

.project-split-layout .project-info {
  display: flex !important;
  flex-direction: column !important;
}

.project-split-layout .featured-media {
  order: initial !important;
  width: 100% !important;
}

.project-split-layout .featured-hero-img {
  width: 100% !important;
  max-height: 440px !important;
  object-fit: contain !important;
  border-radius: 4px !important;
}

#ninja-girl .project-links,
#tdi .project-links {
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
}

/* ==========================================================================
   9. CAROUSELS & BELLEMINT GALLERIES (DESKTOP)
   ========================================================================== */
.carousels-container {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 1.5rem;
}

.carousel-wrapper {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  padding: 1.25rem 1rem;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.carousel-track {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: flex !important;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track img {
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #101010;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
  height: 260px;
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.carousel-track img:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold-bright);
}

.landscape-carousel .carousel-track img {
  height: 200px;
  aspect-ratio: 16 / 9;
}

.carousel-btn {
  background: var(--card-bg);
  color: var(--accent-gold);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  border: 1px solid var(--border-gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0 !important;
  transition: var(--transition-speed);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-color);
  box-shadow: 0 0 10px rgba(247, 219, 135, 0.3);
}

.carousel-btn.is-hidden {
  display: none;
}

/* Feature Callout (Hair Highlight Desktop) */
.feature-callout {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--border-gold) !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 4px !important;
}

.feature-badge {
  font-family: var(--font-pixel) !important;
  font-size: 0.7rem !important;
  color: var(--accent-gold) !important;
  text-transform: uppercase !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
}

.feature-gallery {
  display: flex !important;
  align-items: stretch !important;
  gap: 0.75rem !important;
  width: 100% !important;
  margin-top: 1.25rem !important;
  overflow-x: auto !important;
}

.feature-gallery img {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 240px !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 6px !important;
  border: 1px solid rgba(247, 219, 135, 0.25) !important;
  background-color: #121216 !important;
  display: block !important;
  transition: transform 0.25s ease, border-color 0.25s ease !important;
}

.feature-gallery img:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(247, 219, 135, 0.65) !important;
}

/* Bellemint Static 5-Card Rows: Centered Edge-to-Edge */
.carousel-wrapper.bellemint-static-row {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 1.25rem 1rem !important;
}

.carousel-wrapper.bellemint-static-row .carousel-track {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem !important;
  width: 100% !important;
  margin: 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: visible !important;
  padding: 0 !important;
}

.carousel-wrapper.bellemint-static-row .carousel-track img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: cover !important;
  flex: none !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   10. #SELFCARE APP SCREENSHOTS ROW
   ========================================================================== */
.app-screenshots-grid {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin-top: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 219, 135, 0.4) rgba(255, 255, 255, 0.04);
}

.app-screenshots-grid::-webkit-scrollbar {
  height: 5px;
}

.app-screenshots-grid::-webkit-scrollbar-track {
  background: rgba(14, 14, 18, 0.7);
  border-radius: 999px;
  border: 1px solid rgba(247, 219, 135, 0.1);
  margin: 0 4rem;
}

.app-screenshots-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg, 
    rgba(247, 219, 135, 0.3), 
    rgba(247, 219, 135, 0.75), 
    rgba(247, 219, 135, 0.3)
  );
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(247, 219, 135, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.app-screenshots-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(247, 219, 135, 0.7);
}

.app-screenshots-grid img {
  flex: 0 0 auto;
  height: 320px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(247, 219, 135, 0.2);
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.app-screenshots-grid img:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 219, 135, 0.6);
}

/* ==========================================================================
   11. WITCHY WIDGET SHOWCASE (DESKTOP: 3 IN A ROW)
   ========================================================================== */
.widget-showcase {
  text-align: center;
}

.centered-header {
  text-align: center;
  margin-bottom: 1rem;
}

.widget-intro-blurb {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.centered-links {
  display: flex;
  justify-content: center;
  margin-bottom: 2.2rem;
}

.desktop-mockup-wrapper {
  margin: 1.5rem auto 2.5rem;
  max-width: 820px;
}

.mockup-label {
  display: block;
  font-family: var(--font-pixel, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.desktop-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.desktop-frame:hover {
  border-color: var(--border-gold-bright);
}

.desktop-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Strictly 3 columns on Desktop */
.widget-grid-trio {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
  margin-top: 2rem !important;
}

.widget-card-item {
  background: rgba(18, 18, 22, 0.65);
  border: 1px solid rgba(247, 219, 135, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.widget-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(247, 219, 135, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(247, 219, 135, 0.12);
}

.widget-img-box {
  width: 100%;
  height: 340px !important;            /* Reduced from 480px to eliminate dead space on desktop */
  background: #0d0d11;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  box-sizing: border-box;
}

.widget-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
  display: block;
}

.widget-caption {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.widget-caption h4 {
  font-family: var(--font-pixel, monospace);
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  min-height: 2.4em; 
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.widget-caption p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a8a8b2;
  margin: 0;
}

/* ==========================================================================
   12. FOOTER & ANIMATIONS
   ========================================================================== */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border-gold);
  background-color: var(--bg-color);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-gold);
  background: rgba(247, 219, 135, 0.05);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links a:hover {
  background: var(--accent-gold);
  color: var(--bg-color);
}

@keyframes starBreathe {
  0%, 100% {
    opacity: 0.05;
    transform: translate(-50%, -50%) scale(0.7);
  }
  50% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes pulseStar {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ==========================================================================
   13. DEDICATED RESPONSIVE / MOBILE MEDIA QUERIES (ONLY UNDER 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    padding-top: 1rem !important;
  }

.sub-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    padding: 0 0.5rem !important;
    margin: 0 auto 2rem auto !important;
    gap: 0.75rem !important;
  }

  .nav-row {
    width: 100% !important;
    justify-content: center !important;
  }

.sub-nav a {
    font-family: 'Press Start 2P', monospace !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    padding: 0.2rem 0.3rem !important;
  }

  .sub-nav .nav-star {
    font-size: 0.65rem !important;
    display: inline-block !important;
  }

  /* Show the second star for symmetrical Personal Projects flanking on mobile */
  .mobile-nav-star {
    display: inline-block !important;
  }

  /* Mobile 3-tier navigation toggles */
  .desktop-divider {
    display: none !important; /* Hide end-of-row-1 diamond so mobile doesn't dangle a trailing star */
  }

  .mobile-diamond {
    display: inline-block !important; /* Re-enables the left star for PERSONAL PROJECTS on mobile */
  }

  /* Tighten Ninja Girl spacing on mobile */
  #ninja-girl .project-bullet-list {
    margin-bottom: 0.5rem !important;
  }

  #ninja-girl .project-links {
    margin-top: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Stack Ninja Girl Layout vertically for mobile screens */
  .project-split-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .project-split-layout .featured-media {
    order: 2 !important;
    width: 100% !important;
  }

  .project-split-layout .featured-hero-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Stack Widgets into Single Column on mobile */
  .widget-grid-trio {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .widget-img-box {
    height: 380px !important;
  }

  /* Bellemint Hair Feature: Single Row with Gold Scrollbar on mobile */
  .feature-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 0.85rem !important;
    width: 100% !important;
    padding-bottom: 0.85rem !important;
    margin-top: 1.25rem !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(247, 219, 135, 0.6) rgba(14, 14, 18, 0.7) !important;
  }

  .feature-gallery::-webkit-scrollbar {
    height: 5px !important;
    display: block !important;
  }

  .feature-gallery::-webkit-scrollbar-track {
    background: rgba(14, 14, 18, 0.7) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(247, 219, 135, 0.1) !important;
  }

  .feature-gallery::-webkit-scrollbar-thumb {
    background: rgba(247, 219, 135, 0.6) !important;
    border-radius: 999px !important;
    box-shadow: 0 0 6px rgba(247, 219, 135, 0.35) !important;
  }

  .feature-gallery img {
    flex: 0 0 auto !important;
    width: 130px !important;
    height: 230px !important;
    aspect-ratio: 9 / 16 !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 6px !important;
    scroll-snap-align: start !important;
  }

  /* Bellemint Daily Challenges & Stylist Edits: Scrollable with Gold Scrollbar on mobile */
  .carousel-wrapper.bellemint-static-row {
    padding: 0.75rem !important;
  }

  .carousel-wrapper.bellemint-static-row .carousel-track {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    gap: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(247, 219, 135, 0.6) rgba(14, 14, 18, 0.7) !important;
  }

  .carousel-wrapper.bellemint-static-row .carousel-track::-webkit-scrollbar {
    height: 5px !important;
    display: block !important;
  }

  .carousel-wrapper.bellemint-static-row .carousel-track::-webkit-scrollbar-track {
    background: rgba(14, 14, 18, 0.7) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(247, 219, 135, 0.1) !important;
  }

  .carousel-wrapper.bellemint-static-row .carousel-track::-webkit-scrollbar-thumb {
    background: rgba(247, 219, 135, 0.6) !important;
    border-radius: 999px !important;
    box-shadow: 0 0 6px rgba(247, 219, 135, 0.35) !important;
  }

  .carousel-wrapper.bellemint-static-row .carousel-track img {
    height: 250px !important;
    width: auto !important;
    aspect-ratio: 9 / 16 !important;
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }

  .project-card {
    padding: 1.25rem !important;
    margin-bottom: 2rem !important;
  }

  h2, .section-title-main {
    font-size: 0.75rem !important;
  }

  h3, .project-header h3, .project-card h3 {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .sub-nav a {
    font-size: 0.65rem !important;
  }

  .project-links {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .project-links a {
    width: 100% !important;
    text-align: center;
  }

  .carousel-track img {
    height: 220px !important;
  }

  .landscape-carousel .carousel-track img {
    height: 160px !important;
  }

  .app-screenshots-grid img {
    height: 260px !important;
  }

  .app-screenshots-grid::-webkit-scrollbar-track {
    margin: 0 1rem !important;
 
 }

.about-footer-row {
    justify-content: flex-start !important;
    gap: 1rem !important;
  }
  
  .whirlygig-crest-img {
    width: 44px !important;
    height: 44px !important;
  }
}