.skip-to-content {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-accent);
  color: #0f1729;
  padding: 1rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

      /* Index page custom styles */
      body[data-page="home"] {
        position: relative;
        overflow-x: hidden;
      }

      body[data-page="home"]::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          -45deg,
          rgba(59, 130, 246, 0.15) 0%,
          rgba(139, 92, 246, 0.15) 25%,
          rgba(236, 72, 153, 0.15) 50%,
          rgba(251, 146, 60, 0.15) 75%,
          rgba(59, 130, 246, 0.15) 100%
        );
        background-size: 400% 400%;
        animation: gradientWave 8s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
      }

      @keyframes gradientWave {
        0% {
          background-position: 0% 50%;
        }
        25% {
          background-position: 100% 50%;
        }
        50% {
          background-position: 100% 100%;
        }
        75% {
          background-position: 50% 0%;
        }
        100% {
          background-position: 0% 50%;
        }
      }

      body[data-page="home"] .site-header {
        display: none;
      }

      /* Scroll Progress Bar */
      .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, #60a5fa, #7c3aed, #ec4899);
        transform-origin: left;
        transform: scaleX(0);
        z-index: 1000;
        transition: transform 0.1s ease-out;
      }

      /* Scroll Reveal Animation */
      .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
      }

      .reveal.active {
        opacity: 1;
        transform: translateY(0);
      }

      .home-logo-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        text-align: center;
      }

      .home-logo {
        display: inline-block;
        background: rgba(15, 23, 42, 0.3);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 24px;
        padding: 3rem 4rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
      }

      html[data-theme="light"] .home-logo {
        background: rgba(255, 255, 255, 0.4);
        border-color: rgba(148, 163, 184, 0.3);
      }

      .home-logo:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
      }

      .home-logo h1 {
        font-size: 3rem;
        margin: 0;
        font-weight: 700;
        background: linear-gradient(135deg, #60a5fa 0%, #7c3aed 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gradientShift 2s ease infinite;
      }

      @keyframes gradientShift {
        0% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
        100% {
          background-position: 0% 50%;
        }
      }

      html[data-theme="light"] .home-logo h1 {
        animation: none;
        background-size: 100% 100%;
      }

      .home-logo p {
        margin: 0.5rem 0 0;
        font-size: 1.1rem;
        opacity: 0.8;
        color: var(--text-muted);
      }

      @media (max-width: 768px) {
        .home-logo {
          padding: 2rem 2.5rem;
        }

        .home-logo h1 {
          font-size: 2rem;
        }
      }

      /* Hide main content initially */
      body[data-page="home"] main {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
      }

      body[data-page="home"].content-visible main {
        opacity: 1;
        pointer-events: auto;
      }

      body[data-page="home"].content-visible .home-logo-container {
        position: static;
        transform: none;
        padding: 3rem 0 2rem;
      }

      body[data-page="home"].content-visible .home-logo {
        padding: 2rem 3rem;
      }

      body[data-page="home"].content-visible .home-logo h1 {
        font-size: 2rem;
      }

      .home-logo {
        cursor: pointer;
        user-select: none;
      }

      .home-hint {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-muted);
        font-size: 0.9rem;
        opacity: 0.6;
        animation: pulse 2s ease-in-out infinite;
        pointer-events: none;
        white-space: nowrap;
        width: 100%;
        text-align: center;
        backdrop-filter: blur(18px);
        background: rgba(8, 12, 21, 0.6);
        border: 1px solid rgba(148, 163, 184, 0.25);
        padding: 0.65rem 1.25rem;
        border-radius: 999px;
        max-width: 320px;
        margin: 0 auto;
        box-shadow: 0 18px 35px rgba(2, 6, 14, 0.35);
      }

      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .home-menu-button {
        position: fixed;
        top: 1.75rem;
        right: 1.75rem;
        width: 3rem;
        height: 3rem;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.55);
        border: 1px solid rgba(96, 165, 250, 0.35);
        backdrop-filter: blur(18px);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1200;
        transition: transform 0.2s ease, border-color 0.2s ease,
          background 0.2s ease, opacity 0.28s ease;
        opacity: 0;
        pointer-events: none;
      }

      .home-menu-button:hover,
      .home-menu-button:focus-visible {
        transform: translateY(-1px);
        border-color: rgba(96, 165, 250, 0.55);
        background: rgba(15, 23, 42, 0.75);
        outline: none;
      }

      body[data-page="home"].content-visible .home-menu-button {
        opacity: 1;
        pointer-events: auto;
      }

      .home-menu-button[data-active="true"] {
        border-color: rgba(96, 165, 250, 0.75);
        background: rgba(15, 23, 42, 0.8);
      }

      .home-menu-button__bars {
        display: inline-flex;
        flex-direction: column;
        gap: 6px;
        width: 22px;
        align-items: stretch;
        justify-content: center;
        transition: transform 0.2s ease;
      }

      .home-menu-button__bars span {
        display: block;
        height: 2px;
        border-radius: 999px;
        background: var(--text-main);
        transition: transform 0.25s ease, opacity 0.25s ease;
      }

      .home-menu-button[data-active="true"]
        .home-menu-button__bars
        span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
      }

      .home-menu-button[data-active="true"]
        .home-menu-button__bars
        span:nth-child(2) {
        opacity: 0;
      }

      .home-menu-button[data-active="true"]
        .home-menu-button__bars
        span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
      }

      .home-menu-panel {
        position: fixed;
        inset: 0;
        background: rgba(6, 10, 18, 0.72);
        backdrop-filter: blur(24px);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease;
        z-index: 1190;
      }

      .home-menu-panel[data-open="true"] {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }

      .home-menu-panel__inner {
        max-width: 720px;
        margin: 4.5rem auto 0;
        background: rgba(12, 18, 30, 0.85);
        border-radius: 28px;
        border: 1px solid rgba(148, 163, 184, 0.25);
        padding: 2.5rem;
        box-shadow: 0 50px 120px rgba(5, 10, 24, 0.55);
        display: flex;
        flex-direction: column;
        gap: 2rem;
      }

      .home-menu-panel__header {
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .home-menu-panel__title {
        font-size: 1.1rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-subtle);
      }

      .home-menu-nav {
        display: grid;
        gap: 1rem;
      }

      .home-menu-nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-radius: 18px;
        text-decoration: none;
        color: var(--text-main);
        background: rgba(18, 26, 42, 0.75);
        border: 1px solid rgba(148, 163, 184, 0.25);
        transition: transform 0.2s ease, border-color 0.2s ease,
          background 0.2s ease;
        font-size: 1.05rem;
      }

      .home-menu-nav__link span {
        font-size: 0.8rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--text-subtle);
      }

      .home-menu-nav__link:hover,
      .home-menu-nav__link:focus-visible {
        transform: translateY(-2px);
        border-color: rgba(96, 165, 250, 0.45);
        background: rgba(20, 30, 48, 0.9);
        outline: none;
      }

      body.home-menu-open {
        overflow: hidden;
      }

      @media (max-width: 880px) {
        .home-menu-button {
          top: 1.25rem;
          right: 1.25rem;
        }

        .home-menu-panel__inner {
          margin: 3.5rem 1rem 0;
          padding: 2rem;
        }

        .home-menu-nav__link {
          font-size: 1rem;
          flex-direction: column;
          align-items: flex-start;
          gap: 0.35rem;
        }

        .home-menu-button__bars span {
          background: #f8fafc;
        }
      }

      @media (max-width: 520px) {
        .home-menu-panel__inner {
          margin: 3.25rem 0.75rem 0;
          padding: 1.75rem;
        }

        .home-menu-button {
          width: 2.75rem;
          height: 2.75rem;
        }

        .home-menu-button__bars {
          width: 18px;
        }

        .home-menu-panel__title {
          font-size: 0.95rem;
        }
      }

      body[data-page="home"].content-visible .home-hint {
        display: none;
      }

      @keyframes pulse {
        0%,
        100% {
          opacity: 0.4;
        }
        50% {
          opacity: 0.8;
        }
      }

      /* 3D Card Tilt Effect */
      .card {
        transform-style: preserve-3d;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
      }

      /* Stats Section */
      .stats-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
        margin: 2rem 0;
      }

      .stat-item {
        text-align: center;
        padding: 1.5rem;
        background: rgba(15, 23, 42, 0.4);
        border-radius: 16px;
        border: 1px solid rgba(148, 163, 184, 0.15);
        text-decoration: none;
        display: block;
        transition: all 0.3s ease;
        cursor: pointer;
      }

      .stat-item:hover {
        transform: translateY(-5px);
        background: rgba(15, 23, 42, 0.6);
        border-color: rgba(96, 165, 250, 0.4);
        box-shadow: 0 10px 30px rgba(96, 165, 250, 0.2);
      }

      html[data-theme="light"] .stat-item {
        background: rgba(255, 255, 255, 0.6);
        border-color: rgba(148, 163, 184, 0.25);
      }

      html[data-theme="light"] .stat-item:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(96, 165, 250, 0.4);
        box-shadow: 0 10px 30px rgba(96, 165, 250, 0.15);
      }

      .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(135deg, #60a5fa, #7c3aed);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: block;
        margin-bottom: 0.5rem;
      }

      .stat-label {
        font-size: 0.9rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
      }

      /* Typing Effect */
      .typing-text {
        display: inline-block;
        border-right: 2px solid currentColor;
        animation: blink 1s step-end infinite;
      }

      @keyframes blink {
        50% {
          border-color: transparent;
        }
      }

      /* Avatar Animated Border */
      body[data-page="home"] .avatar {
        position: relative;
        padding: 8px;
        background: linear-gradient(135deg, #3b82f6, #1e40af, #1e3a8a, #3b82f6);
        background-size: 300% 300%;
        animation: gradientRotate 4s ease infinite;
        border-radius: 30px;
        box-shadow: 0 15px 40px rgba(15, 37, 84, 0.45);
      }

      @keyframes gradientRotate {
        0% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
        100% {
          background-position: 0% 50%;
        }
      }

      body[data-page="home"] .avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 22px;
      }

      /* Discover Cards */
      .discover-card {
        min-height: 320px;
        max-height: 320px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .discover-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
      }

      html[data-theme="light"] .discover-card:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
      }

      .discover-card h3 {
        margin-bottom: 0.75rem;
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .discover-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.25rem;
        pointer-events: none;
      }

      .discover-content::-webkit-scrollbar {
        width: 4px;
      }

      .discover-content::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.3);
        border-radius: 2px;
      }

      .discover-content span {
        display: block;
        padding: 0.5rem 0.75rem;
        background: rgba(15, 23, 42, 0.3);
        border-radius: 8px;
        color: var(--text-color);
        font-size: 0.85rem;
        border: 1px solid rgba(148, 163, 184, 0.1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      html[data-theme="light"] .discover-content span {
        background: rgba(255, 255, 255, 0.5);
      }

      .discover-photos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
      }

      .discover-photos img {
        width: 100%;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
      }
