/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scene 1: Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: color-glow 10s linear infinite;
}

@keyframes color-glow {
    0%   { text-shadow: 0 0 15px rgba(0, 123, 255, 0.7); } /* Blue */
    33%  { text-shadow: 0 0 15px rgba(240, 147, 251, 0.7); } /* Pink */
    66%  { text-shadow: 0 0 15px rgba(0, 255, 150, 0.7); } /* Green */
    100% { text-shadow: 0 0 15px rgba(0, 123, 255, 0.7); } /* Back to Blue */
}

.hero-content .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    cursor: pointer;
}

/* New Notice Style */
.hero-content .notice {
    font-size: 1.2rem;  /* Matches subtitle */
    font-weight: 500;
    opacity: 0.75;
    margin-top: 10px;
    color: #ffc107;   /* A high-end amber/yellow "notice" color */
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5); /* Subtle glow */
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-shapes div {
    position: absolute;
    background: rgba(0, 123, 255, 0.1);
    perspective: 800px;
    /* New animation rules */
    animation: ambient-drift 20s ease-in-out infinite alternate;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

@keyframes ambient-drift {
    0%   { transform: translate(0px, 0px) rotate(0deg); }
    25%  { transform: translate(15px, 20px) rotate(45deg); }
    50%  { transform: translate(-10px, -15px) rotate(90deg); }
    75%  { transform: translate(5px, -25px) rotate(135deg); }
    100% { transform: translate(0px, 0px) rotate(180deg); }
}

/* Base shape styles */
.hero-shapes div[class^="shape-"] {
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Circles */
.shape-1, .shape-4, .shape-7, .shape-10, .shape-13 { border-radius: 50%; }
/* Squares */
.shape-2, .shape-5, .shape-8, .shape-11, .shape-14 { border-radius: 0; }
/* 3D Cubes */
.shape-3, .shape-6, .shape-9, .shape-12, .shape-15 {
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    background: transparent;
}
.shape-3::before, .shape-3::after,
.shape-6::before, .shape-6::after,
.shape-9::before, .shape-9::after,
.shape-12::before, .shape-12::after,
.shape-15::before, .shape-15::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
}
.shape-3::before, .shape-6::before, .shape-9::before, .shape-12::before, .shape-15::before { transform: translateZ(-25px); }
.shape-3::after, .shape-6::after, .shape-9::after, .shape-12::after, .shape-15::after { transform: translateZ(25px); }


/* Unique positions, sizes, and animations */
.shape-1 { width: 80px; height: 80px; animation-duration: 25s; animation-delay: -5s; }
.shape-2 { width: 100px; height: 100px; animation-duration: 30s; animation-delay: -2s; }
.shape-3 { animation-duration: 18s; animation-delay: -10s; }
.shape-4 { width: 120px; height: 120px; animation-duration: 22s; animation-delay: -7s; }
.shape-5 { width: 60px; height: 60px; animation-duration: 28s; animation-delay: -1s; }
.shape-6 { animation-duration: 19s; animation-delay: -15s; }
.shape-7 { width: 90px; height: 90px; animation-duration: 26s; animation-delay: -3s; }
.shape-8 { width: 70px; height: 70px; animation-duration: 21s; animation-delay: -8s; }
.shape-9 { animation-duration: 24s; animation-delay: -12s; }
.shape-10 { width: 110px; height: 110px; animation-duration: 29s; animation-delay: -4s; }
.shape-11 { width: 40px; height: 40px; animation-duration: 17s; animation-delay: -18s; }
.shape-12 { animation-duration: 23s; animation-delay: -6s; }
.shape-13 { width: 75px; height: 75px; animation-duration: 27s; animation-delay: -11s; }
.shape-14 { width: 95px; height: 95px; animation-duration: 20s; animation-delay: -9s; }
.shape-15 { animation-duration: 25s; animation-delay: -14s; }

/* Floating Text */
.shape-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    background: transparent;
}

.shape-text:nth-of-type(1) { animation-duration: 22s; animation-delay: -7s; }
.shape-text:nth-of-type(2) { animation-duration: 26s; animation-delay: -12s; }
.shape-text:nth-of-type(3) { animation-duration: 20s; animation-delay: -3s; }
.shape-text:nth-of-type(4) { animation-duration: 28s; animation-delay: -8s; }
.shape-text:nth-of-type(5) { animation-duration: 24s; animation-delay: -5s; }

/* Tooltip from reference */
.subtitle[data-tooltip] {
    position: relative;
}

.subtitle[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.subtitle[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #667eea; /* Match the gradient start */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
}

.subtitle[data-tooltip]:hover::before,
.subtitle[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.subtitle[data-tooltip]:hover::before {
    bottom: calc(100% + 15px);
}

.subtitle[data-tooltip]:hover::after {
    bottom: calc(100% + 9px);
    transform: translateX(-50%) rotate(45deg);
}

/* 3D Builder Orb */
.builder-orb-container {
    position: absolute;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    z-index: 2;
}

.builder-orb {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-orb 30s linear infinite;
}

.orb-face {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
    border: 2px solid rgba(0, 123, 255, 0.5);
    background: rgba(0, 123, 255, 0.1);
    border-radius: 10%;
    opacity: 0.8;
}

/* Position each face to form a sphere-like shape */
.orb-face:nth-child(1) { transform: rotateY(0deg) translateZ(150px); }
.orb-face:nth-child(2) { transform: rotateY(60deg) translateZ(150px); }
.orb-face:nth-child(3) { transform: rotateY(120deg) translateZ(150px); }
.orb-face:nth-child(4) { transform: rotateY(180deg) translateZ(150px); }
.orb-face:nth-child(5) { transform: rotateY(240deg) translateZ(150px); }
.orb-face:nth-child(6) { transform: rotateY(300deg) translateZ(150px); }

.orb-face:nth-child(7) { transform: rotateX(60deg) rotateY(30deg) translateZ(150px); }
.orb-face:nth-child(8) { transform: rotateX(60deg) rotateY(90deg) translateZ(150px); }
.orb-face:nth-child(9) { transform: rotateX(60deg) rotateY(150deg) translateZ(150px); }

.orb-face:nth-child(10) { transform: rotateX(-60deg) rotateY(30deg) translateZ(150px); }
.orb-face:nth-child(11) { transform: rotateX(-60deg) rotateY(90deg) translateZ(150px); }
.orb-face:nth-child(12) { transform: rotateX(-60deg) rotateY(150deg) translateZ(150px); }


@keyframes rotate-orb {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }
    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* Scenes 2-5: Showcase Sections */
#showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.showcase-player {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-player:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 35px rgba(0, 123, 255, 0.5);
}

.showcase-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-player .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 1.5rem;
    color: white;
}

.showcase-player .overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.showcase-player .overlay p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Tooltip for showcase players */
.showcase-player[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.showcase-player[data-tooltip]::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #667eea; /* Match the gradient start */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
}

.showcase-player[data-tooltip]:hover::before,
.showcase-player[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.showcase-player[data-tooltip]:hover::before {
    top: -55px;
}

.showcase-player[data-tooltip]:hover::after {
    top: -18px;
    transform: translateX(-50%) rotate(45deg);
}

/* Scene 6: The Blueprint */
#blueprint {
    background-color: #111;
    padding: 4rem 2rem;
}

.blueprint-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blueprint-subsection h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007BFF; /* Electric Blue Accent */
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 3D Shapes */
.shape-container {
    perspective: 800px;
}
.shape {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s linear infinite;
}
.cube {
    transform: rotateX(25deg) rotateY(-25deg);
}
.cube::before, .cube::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid #007BFF;
    background: rgba(0, 123, 255, 0.2);
}
.cube::before { transform: translateZ(-20px); }
.cube::after { transform: translateZ(20px); }

.ring {
    border: 4px solid #007BFF;
    border-radius: 50%;
    animation-duration: 10s;
}

.icosahedron {
    animation-duration: 15s;
}
.icosahedron::before, .icosahedron::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent transparent #007BFF transparent;
    border-width: 0 15px 26px 15px;
    transform-origin: 50% 100%;
}
.icosahedron::before { transform: rotateX(63.4deg) translateZ(10px); }
.icosahedron::after { transform: rotateX(-63.4deg) translateZ(10px) rotate(180deg); }

@keyframes spin {
    from { transform: rotateY(0deg) rotateX(0deg); }
    to { transform: rotateY(360deg) rotateX(360deg); }
}

.blueprint-subsection p,
.blueprint-subsection li {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.blueprint-subsection ol {
    padding-left: 20px;
}

/* Scene 7: The Details */
#details {
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
    position: relative;
}

#stars, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#stars {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 752px 632px #FFF, 170px 334px #FFF, 532px 26px #FFF, 629px 404px #FFF, 595px 407px #FFF, 16px 472px #FFF, 617px 729px #FFF, 835px 98px #FFF, 493px 403px #FFF, 32px 339px #FFF, 808px 254px #FFF, 638px 452px #FFF, 740px 186px #FFF, 290px 486px #FFF, 882px 212px #FFF, 632px 308px #FFF, 486px 610px #FFF, 335px 43px #FFF, 326px 456px #FFF, 843px 25px #FFF, 65px 352px #FFF, 679px 653px #FFF, 158px 379px #FFF, 281px 718px #FFF, 82px 424px #FFF, 679px 197px #FFF, 72px 760px #FFF, 810px 658px #FFF, 169px 12px #FFF, 639px 759px #FFF, 218px 490px #FFF, 646px 639px #FFF, 203px 432px #FFF, 429px 15px #FFF, 545px 399px #FFF, 246px 34px #FFF, 411px 544px #FFF, 762px 283px #FFF, 442px 751px #FFF, 458px 127px #FFF, 731px 538px #FFF, 617px 229px #FFF, 277px 621px #FFF, 859px 37px #FFF, 508px 169px #FFF, 219px 233px #FFF, 221px 40px #FFF, 755px 589px #FFF, 230px 456px #FFF, 71px 558px #FFF, 56px 400px #FFF, 630px 216px #FFF, 431px 26px #FFF, 719px 577px #FFF, 627px 441px #FFF, 353px 412px #FFF, 187px 707px #FFF, 619px 543px #FFF, 129px 388px #FFF, 240px 172px #FFF, 11px 119px #FFF, 27px 113px #FFF, 421px 374px #FFF, 618px 648px #FFF, 584px 331px #FFF, 401px 644px #FFF, 41px 748px #FFF, 829px 522px #FFF, 27px 304px #FFF, 414px 446px #FFF, 439px 120px #FFF, 513px 414px #FFF, 210px 525px #FFF, 553px 567px #FFF, 691px 686px #FFF, 42px 141px #FFF, 399px 742px #FFF, 735px 505px #FFF, 185px 330px #FFF, 20px 480px #FFF, 776px 449px #FFF, 225px 63px #FFF, 497px 235px #FFF, 608px 28px #FFF, 586px 748px #FFF, 532px 225px #FFF, 269px 742px #FFF, 538px 290px #FFF, 192px 601px #FFF, 37px 11px #FFF, 706px 423px #FFF, 33px 404px #FFF, 405px 432px #FFF, 319px 127px #FFF, 48px 536px #FFF;
    animation: animStar 50s linear infinite;
}

#stars2 {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 197px 299px #FFF, 437px 274px #FFF, 269px 47px #FFF, 342px 199px #FFF, 529px 236px #FFF, 329px 381px #FFF, 214px 211px #FFF, 30px 118px #FFF, 371px 334px #FFF, 137px 321px #FFF, 477px 219px #FFF, 345px 322px #FFF, 530px 147px #FFF, 161px 370px #FFF, 506px 35px #FFF, 33px 308px #FFF, 182px 55px #FFF, 383px 144px #FFF, 126px 369px #FFF, 193px 25px #FFF, 335px 232px #FFF, 370px 156px #FFF, 429px 376px #FFF, 194px 388px #FFF, 44px 337px #FFF, 350px 248px #FFF, 375px 214px #FFF, 280px 283px #FFF, 203px 197px #FFF;
    animation: animStar 100s linear infinite;
}

#stars3 {
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 526px 447px #FFF, 544px 193px #FFF, 203px 292px #FFF, 461px 216px #FFF, 242px 421px #FFF, 126px 140px #FFF, 442px 356px #FFF, 335px 283px #FFF, 353px 219px #FFF, 200px 372px #FFF, 510px 343px #FFF, 552px 130px #FFF;
    animation: animStar 150s linear infinite;
}

@keyframes animStar {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px);
    }
}

.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(-45deg, rgba(147, 152, 242, 1), rgba(147, 152, 242, 0));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px rgba(147, 152, 242, 1));
    animation: tail 3s ease-in-out infinite, shooting 3s ease-in-out infinite;
}

@keyframes tail {
    0% {
        width: 0;
    }
    30% {
        width: 100px;
    }
    100% {
        width: 0;
    }
}

@keyframes shooting {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(300px);
    }
}

.shooting-star:nth-child(1) {
    top: calc(50% - -188px);
    left: calc(50% - 301px);
    animation-delay: 4.8s;
}

.shooting-star:nth-child(2) {
    top: calc(50% - -10px);
    left: calc(50% - 224px);
    animation-delay: 8.7s;
}

.shooting-star:nth-child(3) {
    top: calc(50% - -44px);
    left: calc(50% - 139px);
    animation-delay: 5.7s;
}

.shooting-star:nth-child(4) {
    top: calc(50% - -178px);
    left: calc(50% - 15px);
    animation-delay: 4.1s;
}

.shooting-star:nth-child(5) {
    top: calc(50% - 188px);
    left: calc(50% - 180px);
    animation-delay: 3s;
}

.shooting-star:nth-child(6) {
    top: calc(50% - -160px);
    left: calc(50% - 132px);
    animation-delay: 9.3s;
}

.shooting-star:nth-child(7) {
    top: calc(50% - -179px);
    left: calc(50% - 219px);
    animation-delay: 0.8s;
}

.shooting-star:nth-child(8) {
    top: calc(50% - -8px);
    left: calc(50% - 22px);
    animation-delay: 5.1s;
}

.shooting-star:nth-child(9) {
    top: calc(50% - 171px);
    left: calc(50% - 11px);
    animation-delay: 2.1s;
}

.shooting-star:nth-child(10) {
    top: calc(50% - -49px);
    left: calc(50% - 176px);
    animation-delay: 9.8s;
}

.shooting-star:nth-child(11) {
    top: calc(50% - 250px);
    left: calc(50% - 350px);
    animation-delay: 1.5s;
}

.shooting-star:nth-child(12) {
    top: calc(50% - -50px);
    left: calc(50% - 400px);
    animation-delay: 6.2s;
}

.shooting-star:nth-child(13) {
    top: calc(50% - 150px);
    left: calc(50% - 50px);
    animation-delay: 3.8s;
}

.shooting-star:nth-child(14) {
    top: calc(50% - -200px);
    left: calc(50% - 100px);
    animation-delay: 7.1s;
}

.shooting-star:nth-child(15) {
    top: calc(50% - 50px);
    left: calc(50% - 300px);
    animation-delay: 0.5s;
}

.shooting-star:nth-child(16) {
    top: calc(50% - -100px);
    left: calc(50% - 200px);
    animation-delay: 8.4s;
}

.shooting-star:nth-child(17) {
    top: calc(50% - 200px);
    left: calc(50% - 150px);
    animation-delay: 2.9s;
}

.shooting-star:nth-child(18) {
    top: calc(50% - -150px);
    left: calc(50% - 350px);
    animation-delay: 9.9s;
}

.shooting-star:nth-child(19) {
    top: calc(50% - 100px);
    left: calc(50% - 250px);
    animation-delay: 4.5s;
}

.shooting-star:nth-child(20) {
    top: calc(50% - -250px);
    left: calc(50% - 50px);
    animation-delay: 1.2s;
}

.details-subsection {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.details-subsection h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.details-subsection p, .details-subsection li {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.8;
    text-align: left;
    margin-bottom: 1rem;
}

.details-subsection ul {
    list-style-position: inside;
    text-align: left;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    margin-bottom: 2rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
}

/* Sparkle Toggle */
.toggle-cont {
    --primary: #f093fb;
    --secondary: #f5576c;
    --light: #ffffff;
    --dark: #1a1a2e;
    --gray: #414344;
    position: relative;
    z-index: 10;
    width: fit-content;
    height: 40px;
}

.toggle-cont .toggle-input {
    display: none;
}

.toggle-cont .toggle-label {
    --gap: 4px;
    --width: 40px;
    cursor: default;
    position: relative;
    display: inline-block;
    padding: 0.5rem;
    width: calc((var(--width) + var(--gap)) * 2);
    height: 100%;
    background: linear-gradient(145deg, #16213e, #0f1419);
    border: 1px solid #4a5568;
    border-radius: 9999px;
    box-sizing: content-box;
}

.cont-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    overflow: visible;
}

.sparkles-container {
    position: absolute;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: calc(var(--width) * 1px);
    height: calc(var(--width) * 1px);
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform-origin: center;
    opacity: 0;
    animation: sparkleFloat calc(var(--duration) * 1s) infinite ease-in-out;
    animation-delay: calc(var(--delay) * 0.1s);
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(calc(var(--deg) * 1deg)) translateY(0px) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(calc(var(--deg) * 1deg)) translateY(-40px) scale(1);
    }
}

.icon {
    width: 25px;
    height: 25px;
    fill: var(--light);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* FAQ Search Bar */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-wrapper .search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #4a5568;
    border-radius: 50px;
    background-color: #1a1a2e;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-wrapper .search-input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.3);
}

.search-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #999;
}

/* FAQ Accordion */
.faq-accordion {
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #4a5568;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Should be larger than any possible answer height */
    transition: max-height 1s ease-in-out;
}

.faq-answer p {
    padding: 0 1rem 1.5rem;
    opacity: 0.8;
}

/* 3D Social Tiles */
.social-tiles {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    padding: 0;
    perspective: 1500px;
}

.tile a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 85px;
    background: #1a1a2e;
    border: 1px solid #4a5568;
    text-decoration: none;
    padding-left: 25px;
    border-radius: 10px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-10deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -15px 15px 20px rgba(0, 0, 0, 0.3);
}

.tile a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tile a:hover::before {
    left: 100%;
}

.tile a i {
    font-size: 36px;
    color: white;
    transition: all 0.4s ease;
    z-index: 2;
    margin-right: 18px;
}

.tile a .platform-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    transition: all 0.4s ease;
    z-index: 2;
}

.tile a:hover {
    transform: rotateX(0deg) rotateY(0deg) translateY(-10px);
    box-shadow: -30px 30px 40px rgba(0, 0, 0, 0.4);
}

/* Email Tile */
.tile:nth-child(1) a:hover { background: #c71610; }
/* Twitter Tile */
.tile:nth-child(2) a:hover { background: #1DA1F2; }
/* Discord Tile */
.tile:nth-child(3) a:hover { background: #5865F2; }

/* Draggable Navigation */
#dragNav {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    z-index: 1000;
    cursor: move;
}

#dragNav.dragging {
    cursor: grabbing;
}

.nav-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toggle-btn {
    position: absolute;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.toggle-btn:hover {
    transform: scale(1.1);
}

.toggle-btn i {
    color: white;
    font-size: 30px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#dragNav.open .toggle-btn i {
    transform: rotate(135deg);
}

.nav-content span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition-delay: calc(0.05s * var(--i));
}

#dragNav.open span {
    opacity: 1;
    visibility: visible;
}

#dragNav.open span:nth-child(2) { transform: translate(-50%, -120px); }
#dragNav.open span:nth-child(3) { transform: translate(-120px, -70px); }
#dragNav.open span:nth-child(4) { transform: translate(-140px, 0px); }
#dragNav.open span:nth-child(5) { transform: translate(-120px, 70px); }

.nav-content span a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.nav-content span a:hover {
    transform: scale(1.15);
}

.nav-content span a i {
    font-size: 24px;
}

/* Responsiveness */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 5rem;
    }

    /* Enlarge Orb */
    .builder-orb-container {
        width: 450px;
        height: 450px;
    }
    .orb-face {
        width: 300px;
        height: 300px;
    }
    .orb-face:nth-child(1) { transform: rotateY(0deg) translateZ(225px); }
    .orb-face:nth-child(2) { transform: rotateY(60deg) translateZ(225px); }
    .orb-face:nth-child(3) { transform: rotateY(120deg) translateZ(225px); }
    .orb-face:nth-child(4) { transform: rotateY(180deg) translateZ(225px); }
    .orb-face:nth-child(5) { transform: rotateY(240deg) translateZ(225px); }
    .orb-face:nth-child(6) { transform: rotateY(300deg) translateZ(225px); }
    .orb-face:nth-child(7) { transform: rotateX(60deg) rotateY(30deg) translateZ(225px); }
    .orb-face:nth-child(8) { transform: rotateX(60deg) rotateY(90deg) translateZ(225px); }
    .orb-face:nth-child(9) { transform: rotateX(60deg) rotateY(150deg) translateZ(225px); }
    .orb-face:nth-child(10) { transform: rotateX(-60deg) rotateY(30deg) translateZ(225px); }
    .orb-face:nth-child(11) { transform: rotateX(-60deg) rotateY(90deg) translateZ(225px); }
    .orb-face:nth-child(12) { transform: rotateX(-60deg) rotateY(150deg) translateZ(225px); }
}

@media (max-width: 768px) {
    /* Hero */
    .hero-content h1 {
        font-size: 3rem;
    }
    .builder-orb-container {
        width: 200px;
        height: 200px;
    }
    .builder-orb, .orb-face {
        width: 150px;
        height: 150px;
    }

    /* Showcase */
    /* Blueprint & Details */
    .blueprint-subsection h2, .details-subsection h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .notice {
        font-size: 1rem;
    }

    /* Showcase */
    .showcase-player .overlay h2 {
        font-size: 1.5rem;
    }

    /* Details */
    .tile a {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Nav Fix */
    #dragNav.open span:nth-child(2) { transform: translate(-50%, -95px); }
    #dragNav.open span:nth-child(3) { transform: translate(-85px, -60px); }
    #dragNav.open span:nth-child(4) { transform: translate(-105px, 0px); }
    #dragNav.open span:nth-child(5) { transform: translate(-85px, 60px); }
}
