@keyframes sparkle {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 1; }
      }

      @keyframes fadeInDown {
        from {
          opacity: 0;
          transform: translateY(-30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: fadeInDown 0.8s ease-out;
      }

      .hero-subtitle {
        font-size: 1.5em !important;
        color: #ffffff;
        text-align: center;
        margin: 0.6rem 0 0;
        line-height: 1.45;
        font-weight: 400;
        text-transform: none;
      }

      .glitter-note {
        position: relative;
        overflow: hidden;
      }

      .glitter-note::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
          radial-gradient(1px 1px at 20% 30%, rgba(201, 168, 232, 0.8), transparent),
          radial-gradient(1px 1px at 60% 70%, rgba(255, 224, 110, 0.6), transparent),
          radial-gradient(1px 1px at 50% 50%, rgba(255, 224, 110, 0.8), transparent),
          radial-gradient(1px 1px at 80% 10%, rgba(201, 168, 232, 0.6), transparent),
          radial-gradient(1px 1px at 90% 60%, rgba(255, 192, 203, 0.7), transparent),
          radial-gradient(1px 1px at 30% 80%, rgba(255, 224, 110, 0.7), transparent),
          radial-gradient(1px 1px at 10% 90%, rgba(201, 168, 232, 0.7), transparent);
        background-size: 200% 200%;
        background-repeat: repeat;
        pointer-events: none;
        animation: sparkle 3s ease-in-out infinite;
      }

      /* Knowledge Base Section Styles */
      .knowledge-base-section {
        margin-top: 4rem;
        margin-bottom: 4rem;
      }

      .section-title {
        font-size: 2.2rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 3rem;
        color: #c9a8e8;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-family: 'Montserrat Alternates', sans-serif;
        position: relative;
        padding-bottom: 1.5rem;
      }

      .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #c9a8e8, transparent);
      }

      /* Arcana Grid */
      .arcana-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(208px, 208px));
        gap: 1rem;
        margin-top: 2rem;
        justify-content: center;
        justify-items: stretch;
      }

      /* Flip Card Styles */
      .arcana-card {
        cursor: pointer;
        display: block;
        width: 100%;
        max-width: 208px;
        height: auto;
        aspect-ratio: 2 / 3;
        position: relative;
        z-index: 1;
        perspective: 1200px;
      }
      
      .arcana-card.flipped {
        z-index: 100;
      }

      .flip-card-inner {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
      }

      .flip-card-front {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        border-radius: 12px;
        border: 1px solid rgba(201, 168, 232, 0.4);
        background: linear-gradient(135deg, rgba(73, 45, 125, 0.3) 0%, rgba(228, 123, 207, 0.2) 100%);
        overflow: hidden;
        margin: 0;
      }

      .flip-card-front:hover {
        border-color: rgba(201, 168, 232, 0.8);
        box-shadow: 0 0 20px rgba(201, 168, 232, 0.3);
      }

      .flip-card-back {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: none;
      }

      .arcana-card.flipped .flip-card-front {
        display: none;
      }

      .arcana-card.flipped .flip-card-back {
        display: block;
      }

      .arcana-front-image {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 0;
        left: 0;
        z-index: 1;
      }

      .arcana-card-info {
        text-align: center;
        position: relative;
        z-index: 2;
        padding: 1.35rem 1rem 0.95rem 1rem;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.9) 100%);
        width: 100%;
      }

      .flip-card-back:hover {
        border-color: rgba(201, 168, 232, 0.8);
        box-shadow: 0 0 20px rgba(201, 168, 232, 0.3);
      }

      .arcana-number {
        display: inline-block;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, rgba(201, 168, 232, 0.6) 0%, rgba(228, 123, 207, 0.5) 100%);
        border: 2px solid rgba(201, 168, 232, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #ffffff;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
      }

      .arcana-name {
        font-size: 1.02rem;
        font-weight: 700;
        color: #f0e6ff;
        text-align: center;
        font-family: 'Montserrat Alternates', sans-serif;
      }



      .arcana-description {
        font-size: 0.95rem;
        color: #d4d4d4;
        line-height: 1.6;
        display: none;
      }



      .learn-more-btn {
        padding: 0.8rem 2rem;
        background: rgba(30, 10, 50, 0.7);
        border: 2px solid rgba(201, 168, 232, 0.8);
        border-radius: 50px;
        color: #f0e6ff;
        font-weight: 600;
        cursor: pointer;
        font-family: 'Montserrat Alternates', sans-serif;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
        position: relative;
        z-index: 10;
      }

      .learn-more-btn:hover {
        border-color: rgba(201, 168, 232, 0.8);
        box-shadow: 0 0 20px rgba(201, 168, 232, 0.3);
        transform: translateY(-2px);
      }

      @media (max-width: 768px) {
        .arcana-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
          gap: 0.6rem;
        }

        .arcana-card {
          width: 100%;
          max-width: none;
          height: auto;
          aspect-ratio: 2 / 3;
        }

        .arcana-card-info {
          padding: 0.7rem 0.35rem 0.45rem 0.35rem;
        }

        .arcana-name {
          font-size: 0.72rem;
          line-height: 1.2;
        }
      }

      @media (max-width: 480px) {
        .section-title {
          font-size: 1.45rem;
        }

        .arcana-grid {
          gap: 0.45rem;
        }

        .arcana-card {
          width: 100%;
        }

        .arcana-name {
          font-size: 0.66rem;
          line-height: 1.15;
        }
      }

      @media screen and (max-width: 810px) {

        .hero-content > p:first-of-type {
          font-size: 2em !important;
          margin-bottom: 0.2em !important;
          margin-top: 0 !important;
        }

        .hero-content > p:nth-of-type(2) {
          font-size: 1.08em !important;
          margin-bottom: 0.6em !important;
          line-height: 1.5 !important;
        }

        .hero-subtitle {
          font-size: 1.08em !important;
          margin-top: 0.55rem !important;
          margin-bottom: 0 !important;
          line-height: 1.5 !important;
          padding: 0 0.5rem;
        }

      }
