body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f8f9fa;
    color: #333;
    font-family: 'Jost', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== SCROLLING BANNER BORDER SYSTEM ===== */
:root {
  --banner-size: 32px;
  --banner-bg: #5237ff;
  --banner-color: #ffffff;
  --banner-font: 'Share Tech Mono', monospace;
  --banner-speed: 8s; /* Speed for each banner (fast) */
  --cascade-delay: 0.4s; /* Delay between each banner starting */
}

.moving-banner {
  position: fixed;
  background-color: var(--banner-bg);
  color: var(--banner-color);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--banner-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Horizontal banners (top & bottom) - on top layer for corner overlap */
.banner-top,
.banner-bottom {
  left: 0;
  right: 0;
  height: var(--banner-size);
  display: flex;
  align-items: center;
  z-index: 10000;
}

.banner-top {
  top: 0;
}

.banner-bottom {
  bottom: 0;
}

/* Vertical banners (left & right) - extend full height, behind horizontal at corners */
.banner-left,
.banner-right {
  top: 0;
  bottom: 0;
  width: var(--banner-size);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 9999;
}

.banner-left {
  left: 0;
  text-orientation: mixed;
}

.banner-right {
  right: 0;
  text-orientation: mixed;
}

/* Banner content base styles */
.banner-content {
  display: inline-flex;
}

.banner-content span {
  padding: 0 30px;
  flex-shrink: 0;
}

/* Cascading animations - all run continuously with staggered start times */

/* LEFT BANNER - scrolls UP, starts first */
.banner-left .banner-content {
  animation: scroll-up var(--banner-speed) linear infinite;
  animation-delay: 0s;
}

/* TOP BANNER - scrolls RIGHT, starts when left's text reaches top corner */
.banner-top .banner-content {
  animation: scroll-right var(--banner-speed) linear infinite;
  animation-delay: var(--cascade-delay);
}

/* RIGHT BANNER - scrolls DOWN, starts when top's text reaches right corner */
.banner-right .banner-content {
  animation: scroll-down var(--banner-speed) linear infinite;
  animation-delay: calc(var(--cascade-delay) * 2);
}

/* BOTTOM BANNER - scrolls LEFT, starts when right's text reaches bottom corner */
.banner-bottom .banner-content {
  animation: scroll-left var(--banner-speed) linear infinite;
  animation-delay: calc(var(--cascade-delay) * 3);
}

/* Continuous keyframes for each direction - seamless loop with 8 repeated spans */

@keyframes scroll-up {
  0% { transform: translateY(0%); }
  100% { transform: translateY(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

@keyframes scroll-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0%); }
}

@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Page container adjustment for things page */
.things-page-container {
  position: fixed;
  top: var(--banner-size);
  left: var(--banner-size);
  right: var(--banner-size);
  bottom: var(--banner-size);
  margin: 0;
  padding: 0;
}

/* Adjust home-link for things page to match other pages */
.things-page-container .home-link {
  position: fixed;
  top: 40px;
  left: 50px;
}

/* ===== END BANNER SYSTEM ===== */

.pablo-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 80vh;
    width: 100%;
    position: relative;
}

.pablo-stack {
    position: relative;
    z-index: 20;
    text-align: center;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: #666;
    text-transform: uppercase;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -50px;
    margin-left: 100px;
}

.click-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

 .click-canvas .click-image {
    position: absolute;
    width: clamp(140px, 16vw, 220px);
    height: auto;
    will-change: transform;
    transition: transform 0.25s ease, opacity 0.4s ease;
}

.name-letters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1em;
}

.letter {
    display: inline-block;
    transition: all 0.3s ease;
    animation: fontCycle 2s infinite;
    font-weight: 700;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.4s; }
.letter:nth-child(4) { animation-delay: 0.6s; }
.letter:nth-child(5) { animation-delay: 0.8s; }
.letter:nth-child(6) { animation-delay: 1s; }
.letter:nth-child(7) { animation-delay: 1.2s; }
.letter:nth-child(8) { animation-delay: 1.4s; }
.letter:nth-child(9) { animation-delay: 1.6s; }
.letter:nth-child(10) { animation-delay: 1.8s; }

@keyframes fontCycle {
    0%, 20% {
        font-family: 'Jost', sans-serif;
        color: #666;
        transform: scale(1);
    }
    20%, 40% {
        font-family: 'Orbitron', monospace;
        color: #1976d2;
        transform: scale(1.02);
    }
    40%, 60% {
        font-family: 'Chakra Petch', monospace;
        color: #388e3c;
        transform: scale(1.04);
    }
    60%, 80% {
        font-family: 'Share Tech Mono', monospace;
        color: #f57c00;
        transform: scale(1.02);
    }
    80%, 100% {
        font-family: 'VT323', monospace;
        color: #c2185b;
        transform: scale(1);
    }
}

.pablo-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 20;
}

.pablo-container:hover .pablo-nav {
    opacity: 1;
}

.pablo-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pablo-nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Jost', sans-serif;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.pablo-nav ul li a:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .pablo-stack {
        font-size: 2.5rem;
    }
    .name-letters {
        gap: 0.05em;
    }
    .pablo-nav ul {
        gap: 1rem;
    }
    .home-link {
        font-size: 1.8rem;
        left: 20px;
        top: 20px;
    }
}

/* Styling for additional instances */
.pablo-stack.instance-2,
.pablo-stack.instance-3,
.pablo-stack.instance-4 {
    animation: fadeIn 0.5s ease-in;
    pointer-events: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@keyframes navColorCycle {
    0%, 20% {
        background: rgba(102, 102, 102, 0.1);
    }
    20%, 40% {
        background: rgba(25, 118, 210, 0.1);
    }
    40%, 60% {
        background: rgba(56, 142, 60, 0.1);
    }
    60%, 80% {
        background: rgba(245, 124, 0, 0.1);
    }
    80%, 100% {
        background: rgba(194, 24, 91, 0.1);
    }
}

/* Ensure proper positioning context */
.pablo-container {
    overflow: visible;
}

/* c styles */
.blog-listing {
    border: 1px solid red;
    margin-bottom: 3rem;
}

.blog-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-intro p {
    font-family:'BitCount Grid Double' !important;
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.blog-categories ul {
    list-style: none; /* Removes default bullets/numbers */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.blog-categories ul li {
    font-family:'BitCount Grid Double' !important;
    display: inline-block; /* Makes list items display inline */
    margin-right: 10px; /* Adds space between items */
    font-weight: 50px !important;
    padding: 5px;
    border:  1px solid black;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-categories ul li.category-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.blog-categories ul li.category-tab.active {
    background: rgba(0, 0, 0, 0.1);
    font-weight: 700 !important;
}

.blog-posts {
    font-family:'BitCount Grid Double' !important;
    /* border: 1px solid red; */
    display: grid;
    gap: 2rem;
}

.blog-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-posts .blog-post-item {
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    border: 1px black solid;
    /* border-radius: 10px; */
}

.blog-posts .blog-post-item a {
    color: #333;
    text-decoration: none;
    font-family:'BitCount Grid Double' !important;
    transition: all 0.2s ease;
    display: inline-block;
    margin-left: 1rem;
}

.blog-posts .blog-post-item a:hover {
    color: #000;
    transform: translateX(5px);
}

.blog-post-item:hover {
    background:#ffc067;
} 

.blog-post-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}


.blog-header h1 {
    font-family:'BitCount Grid Double', system-ui !important;
    font-variation-settings:
    "slnt" -8,
    "CRSV" 0.5,
    "ELSH" 0,
    "ELXP" 0;
}

.post-header {
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family:'BitCount Grid Double' !important;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-date {
    color: #777;
    font-size: 0.9rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    
}

.read-more {
    color: #1976d2;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Individual blog post styles */
.blog-post {
    max-width: 100%;
    
}

.back-button {
    /* background: rgba(0, 0, 0, 0.05); */
    color: #666;
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    /* padding: 0.75rem 1.5rem; */
    /* border-radius: 8px; */
    cursor: pointer;
    font-family: 'BitCount Grid Double', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 2rem;
    text-decoration: none;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    border-color: rgba(0, 0, 0, 0.2);
}

.post-content {
    line-height: 1.8;
    color: #555;
    
    
}

.post-content h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.post-content h2 {
    color: #333;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    color: #333;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #555;
    font-family: 'Momo Trust Display', serif !important;
    
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.post-content code {
    background: rgba(0, 0, 0, 0.05);
    color: #1976d2;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #555;
}

.post-content blockquote {
    border-left: 4px solid #1976d2;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #777;
}

.post-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-post-card {
        padding: 1.5rem;
    }
    
    .post-content h1 {
        font-size: 2rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
}


/* Page layout styles */
.page-container {
    min-height: 100vh;
    /* display: flex;
    flex-direction: column; */
    padding-top: 100px;
}

.page-container-bp{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 2%;
    font-family:'BitCount Grid Double' !important;
}

/* .page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top:15px;
} */

.home-link {
    position: absolute;
    top: 40px;
    left: 50px;
    z-index: 1000;
    font-weight: 900;
    font-size: 2rem;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.05em;
    font-family: 'Jost', sans-serif;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.home-link:hover {
    color: #333;
    /* background: rgba(0, 0, 0, 0.05); */
    transform: translateY(-2px);
}

.home-link:hover.projects.html {
    cursor: url('wii-pointer.png') 0 0, auto;
}

.home-link img {
    width: 25%;
    height: 50;
    overflow: contain;
}

.page-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.page-nav ul li a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Jost', sans-serif;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.page-nav ul li a:hover,
.page-nav ul li a.active {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.page-content {
    flex: 1;
    /* max-width: 800px; */
    margin: 2rem auto;
    margin-left: 10rem ;
    margin-right: 10rem;
    padding: 0 1rem;
    line-height: 1.6;
}

.page-content img {
    width: 50%;
    height: auto;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
}

.page-content h3 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Jost', sans-serif;
}

.page-content p {
    margin-bottom: 1rem;
    color: #555;
    font-family: 'Jost', sans-serif;
}

.date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
}

.experience-item,
.project-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.things-list {
    list-style: none;
    padding: 0;
}

.things-list li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #ddd;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin: 1rem 0;
    color: #555;
}

.work-stuff {
    /* border: 2px blue dashed; */
    margin: 0 auto;
    display:flex;
    justify-content: space-between;
}

.work-stuff ul {
    text-decoration: none;
    list-style-type: none;
}

.work-stuff h1 {
    position: relative;
    float: top;
}

.work-company {
     /* border: 2px red dashed; */
     float: left;     
     margin-right: 20px;
     margin-left: 0;
     
}

.work-dashes {
    float: left;
    margin-right: 20px;
}

.work-role {
    /* border: 2px red dashed; */
    float: left;
    margin-right: 20px;
    text-align: right;
}

.work-time {
    /* border: 2px red dashed; */
    margin-right: 20px;
    float: right;
    color: grey;
    text-align:center;
}

.playlist {
    border: 2px gray solid ;
    border-radius: 12px;
    padding: 10px;
    margin: 10px;
    float: left;
}

.playlist iframe{
    height: 400px;
    width: auto;
    
}

.movies {
    /* border: 2px gray solid ; */
    /* border-radius: 12px; */
    padding: 10px;
    margin: 10px;
    float: right;
    background-color: white;
}

.movies ul li p {
    font-family:'Orbitron' !important;
    text-decoration: none !important;
    text-decoration: none !important;

}

.books {
    /* border: 2px gray solid ;
    border-radius: 12px; */
    margin: 10px;
    padding: 10px;
    float:right;
    background-color: white;
    font-family:'Orbitron' !important;
}

/* Wii Projects Page */
.wii-page {
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: auto;
}

.wii-container {
  max-width: 100%;
  width: 100%;
  text-align: center;
  padding: 20px 40px;
}

.wii-title {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 20px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.page-title {
  font-weight: 500;
  margin-bottom: 20px;
}

/* Channel Grid - 4 columns x 3 rows */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: repeat(3, auto);
  row-gap: 20px;
  column-gap: 30px;
  justify-content: center;
  margin: -195px auto 0 auto;
}

/* Individual Channel */
.channel {
  background: #ffffff;
  border: 3px solid #d0d0d0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 0;
  width: 260px;
  height: 130px;
  cursor: url('wii-pointer.png') 0 0, pointer;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  animation: channelFadeIn 0.4s forwards;
  animation-delay: calc(0.05s * var(--i));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.channel-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.channel-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.channel-icon {
  font-size: 2.5rem;
}

.channel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TV Static/Flicker Effect */
.tv-static {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.15) 1px,
      rgba(0, 0, 0, 0.15) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.03) 3px,
      rgba(255, 255, 255, 0.03) 6px
    );
  animation: staticFlicker 0.08s infinite, staticNoise 0.5s infinite;
}

.tv-static::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 5%,
    transparent 95%,
    rgba(0, 0, 0, 0.1) 100%
  );
  animation: scanline 8s linear infinite;
}

.tv-static::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.channel:hover .tv-static {
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.2) 1px,
      rgba(0, 0, 0, 0.2) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.05) 3px,
      rgba(255, 255, 255, 0.05) 6px
    );
}


@keyframes staticFlicker {
  0%, 100% {
    opacity: 0.9;
    background-position: 0 0;
  }
  20% {
    opacity: 1;
    background-position: 0 1px;
  }
  40% {
    opacity: 0.85;
    background-position: 0 -1px;
  }
  60% {
    opacity: 0.95;
    background-position: 0 2px;
  }
  80% {
    opacity: 0.88;
    background-position: 0 0;
  }
}

@keyframes staticNoise {
  0%, 100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-1px);
  }
  30% {
    transform: translateX(1px);
  }
  50% {
    transform: translateX(-0.5px);
  }
  70% {
    transform: translateX(0.5px);
  }
  90% {
    transform: translateX(-1px);
  }
}

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

.channel:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(135, 206, 250, 0.6);
  border-color: #87CEFA;
}

.channel:active {
  transform: translateY(-1px) scale(1.01);
}

/* Disabled channel (no project data) */
.channel.channel-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

.channel.channel-disabled .tv-static {
  opacity: 0.3;
}

.channel.channel-disabled:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

@keyframes channelFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Project Dialog - Shadcn/Flat UI Style */
.project-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  background: #ffffff;
  box-shadow: 
    0 16px 70px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: dialogSlideIn 0.2s ease-out;
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: backdropFadeIn 0.2s ease-out;
}

@keyframes dialogSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog-content {
  padding: 24px;
  position: relative;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  transition: all 0.15s ease;
}

.dialog-close:hover {
  background: #f4f4f5;
  color: #18181b;
}

.dialog-header {
  margin-bottom: 16px;
}

.dialog-title {
  font-family: 'Jost', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #18181b;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.dialog-badge {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #71717a;
  background: #f4f4f5;
  padding: 4px 10px;
  border-radius: 9999px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dialog-body {
  margin-bottom: 24px;
}

.dialog-description {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #52525b;
  margin: 0;
}

.dialog-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.dialog-button {
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: none;
}

.dialog-button-primary {
  background: #18181b;
  color: #ffffff;
}

.dialog-button-primary:hover {
  background: #27272a;
}

.dialog-button-secondary {
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e4e4e7;
}

.dialog-button-secondary:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}

/* Responsive adjustments for channel grid */
@media (max-width: 850px) {
  .channel-grid {
    grid-template-columns: repeat(3, 150px);
    gap: 14px;
  }
  
  .channel {
    width: 150px;
    height: 110px;
  }
  
  .channel-icon {
    font-size: 2rem;
  }
  
  .channel-image {
    width: 75%;
    height: 75%;
  }
}

@media (max-width: 550px) {
  .channel-grid {
    grid-template-columns: repeat(2, 140px);
    gap: 12px;
  }
  
  .channel {
    width: 140px;
    height: 100px;
  }
  
  .channel-icon {
    font-size: 1.8rem;
  }
  
  .channel-image {
    width: 70%;
    height: 70%;
  }
  
  .wii-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
  
  .wii-container {
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
    .page-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .page-nav ul {
        gap: 1rem;
    }
    
    .page-content {
        margin: 2rem auto;
        padding: 0 1rem;
    }
}

/* Wii Time and Date Display */
.wii-datetime {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 0 20px;
}

.wii-time {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.wii-time-hours,
.wii-time-minutes {
  font-family: 'Orbitron', 'Share Tech Mono', monospace;
  font-size: 48px;
  font-weight: 400;
  color: #b8b8b8;
  letter-spacing: 4px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.wii-time-colon {
  font-family: 'Orbitron', 'Share Tech Mono', monospace;
  font-size: 48px;
  font-weight: 400;
  color: #b8b8b8;
  margin: 0 4px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.wii-time-period {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #a0a0a0;
  margin-left: 8px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.wii-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wii-date-day,
.wii-date-numbers {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  color: #909090;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments for datetime */
@media (max-width: 850px) {
  .wii-datetime {
    bottom: 30px;
  }
  
  .wii-time-hours,
  .wii-time-minutes,
  .wii-time-colon {
    font-size: 36px;
  }
  
  .wii-time-period {
    font-size: 16px;
  }
  
  .wii-date-day,
  .wii-date-numbers {
    font-size: 28px;
  }
}

@media (max-width: 550px) {
  .wii-datetime {
    bottom: 25px;
  }
  
  .wii-time-hours,
  .wii-time-minutes,
  .wii-time-colon {
    font-size: 28px;
  }
  
  .wii-time-period {
    font-size: 12px;
  }
  
  .wii-date-day,
  .wii-date-numbers {
    font-size: 22px;
  }
}

/* ===== FLOATING GLASS MUSIC PLAYER ===== */
.glass-player {
  position: fixed;
  top: 44px;
  right: 50px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotify-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1DB954;
  text-decoration: none;
  transition: all 0.2s ease;
}

.spotify-link svg {
  width: 24px;
  height: 24px;
}

.spotify-link:hover {
  color: #1ed760;
  transform: scale(1.1);
}

.spotify-link:active {
  transform: scale(0.95);
}

.glass-player-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: #e8e8e8;
  border-radius: 14px;
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.12),
    inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.glass-cover {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #d8d8d8, #c8c8c8);
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.1),
    inset -1px -1px 3px rgba(255, 255, 255, 0.6);
}

.glass-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
}

.glass-cover-placeholder svg {
  width: 14px;
  height: 14px;
}

.glass-info {
  width: 90px;
  overflow: hidden;
  position: relative;
}

.glass-title-wrapper {
  display: flex;
  width: max-content;
  animation: marqueeScroll 6s linear infinite;
}

.glass-title {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  padding-right: 40px;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.glass-controls {
  display: flex;
  align-items: center;
  gap: 1px;
}

.glass-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.15s ease;
}

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

.glass-btn:hover {
  background: rgba(200, 200, 200, 0.5);
  color: #444;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.1),
    inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

.glass-btn:active {
  background: rgba(180, 180, 180, 0.5);
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.15),
    inset -1px -1px 3px rgba(255, 255, 255, 0.4);
}

.glass-btn-play {
  width: 26px;
  height: 26px;
  background: transparent;
  color: #555;
  margin: 0 2px;
  border-radius: 6px;
}

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

.glass-btn-play:hover {
  background: rgba(200, 200, 200, 0.5);
  color: #444;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.1),
    inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

.glass-btn-play:active {
  background: rgba(180, 180, 180, 0.5);
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.15),
    inset -1px -1px 3px rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .glass-player {
    top: 45px;
    right: 40px;
  }
  
  .glass-player-inner {
    padding: 6px 12px 6px 6px;
    gap: 10px;
  }
  
  .glass-cover {
    width: 32px;
    height: 32px;
  }
  
  .glass-info {
    width: 70px;
  }
  
  .glass-title {
    font-size: 10px;
    padding-right: 30px;
  }
  
  .glass-btn {
    width: 24px;
    height: 24px;
  }
  
  .glass-btn-play {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 550px) {
  .glass-player {
    display: none;
  }
}

/* ===== INDENTED MUSIC PLAYER WIDGET ===== */
.music-player-indent {
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 195px;
  background: #efefef;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.1),
    inset -4px -4px 8px rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  z-index: 100;
}

/* Main content area - cover art + info/controls */
.music-player-main {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Cover art - square on the left - neumorphic inset */
.music-cover-art {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.15),
    inset -2px -2px 4px rgba(255, 255, 255, 0.7);
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #dcdcdc, #cacaca);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-placeholder::after {
  content: '♪';
  font-size: 20px;
  color: #a0a0a0;
}

.music-cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info and controls section - right side, centered */
.music-info-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}

.music-track-info {
  overflow: hidden;
  text-align: center;
  width: 100%;
  margin-top: 2px;
}

.track-title {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Control buttons - glass/translucent effect */
.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.music-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.15s ease;
}

.music-btn svg {
  width: 20px;
  height: 20px;
}

.music-btn:hover {
  background: rgba(200, 200, 200, 0.5);
  color: #444;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.12),
    inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

.music-btn:active {
  background: rgba(180, 180, 180, 0.5);
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.18),
    inset -1px -1px 3px rgba(255, 255, 255, 0.4);
}

.music-btn.btn-play {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #555;
}

.music-btn.btn-play svg {
  width: 20px;
  height: 20px;
}

.music-btn.btn-play:hover {
  background: rgba(200, 200, 200, 0.5);
  color: #444;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.12),
    inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

.music-btn.btn-play:active {
  background: rgba(180, 180, 180, 0.5);
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.18),
    inset -1px -1px 3px rgba(255, 255, 255, 0.4);
}


/* Responsive */
@media (max-width: 768px) {
  .music-player-indent {
    width: 175px;
    right: 40px;
    bottom: 40px;
    padding: 10px;
    border-radius: 14px;
  }
  
  .music-cover-art {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  
  .track-title {
    font-size: 11px;
  }
}

@media (max-width: 550px) {
  .music-player-indent {
    display: none;
  }
}

