html, body {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
  }

  body {
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #050505 60%);
    background-attachment: fixed;
    color: #ffffff;
  }

  * { box-sizing: border-box; }

  .container { max-width: 100%; }

  p, h1, h2, h3, h4, h5, h6, li, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Back to Top Button */
  #backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #6265F0;
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #backToTop.show {
    opacity: 1;
    visibility: visible;
  }

  #backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  }

  *:focus-visible {
    outline: 2px solid #6265F0;
    outline-offset: 2px;
  }

  /* Custom Scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #050505; }
  ::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #6265F0; }

  /* Glassmorphism Classes */
  .glass-card {
    height: 100%;
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.5s ease;
  }

  .glass-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-0.25rem);
    box-shadow: 0 0 30px -5px rgba(99, 102, 241, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
  }

  .glass-pill {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Infinite Marquee Animation */
  .marquee {
    --gap: 1.5rem;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }

  .marquee__content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: var(--gap);
    animation: scroll 25s linear infinite;
  }

  .marquee:hover .marquee__content {
    animation-play-state: paused;
  }

  .marquee--reverse .marquee__content {
    animation-direction: reverse;
  }

  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - var(--gap))); }
  }

  /* Mobile Optimizations */
  @media (max-width: 768px) {
    .glass-card { padding: 1.25rem; }
    .glass-card:hover { transform: translateY(0); }
    #backToTop { bottom: 20px; right: 20px; width: 45px; height: 45px; }
  }

  #mobile-menu {
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
  }
  
  #mobile-menu.show {
    max-height: 400px;
    overflow-y: auto;
  }