/* ============================================
   quirk.bar - Y2K Futurism / Hexagonal Honeycomb
   Colors: #F8F0FF, #C8C8D0, #2D1B4E, #FF69B4, #B388EB, #3DD6D0
   Fonts: Signika Negative, Lexend, Comfortaa
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.7;
    color: #2D1B4E;
    background: #F8F0FF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Signika Negative', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(28px, 4vw, 52px);
}

h3 {
    font-size: clamp(18px, 2.5vw, 28px);
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Parallax Background Layers --- */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#parallax-bg {
    background:
        radial-gradient(circle at 20% 30%, rgba(179, 136, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(61, 214, 208, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 105, 180, 0.06) 0%, transparent 60%);
    z-index: 0;
}

#parallax-mid {
    z-index: 1;
}

#parallax-mid::before,
#parallax-mid::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

#parallax-mid::before {
    width: 400px;
    height: 400px;
    background: #B388EB;
    top: 20%;
    left: -5%;
}

#parallax-mid::after {
    width: 300px;
    height: 300px;
    background: #3DD6D0;
    top: 60%;
    right: -3%;
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    color: #2D1B4E;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #B388EB, #3DD6D0);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ============================================
   SECTION 1: Hex Gateway (Hero)
   ============================================ */
#hex-gateway {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.gateway-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #B388EB 0%, #3DD6D0 50%, #B388EB 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hex Ring */
#hex-ring {
    position: absolute;
    width: 420px;
    height: 420px;
    z-index: 2;
    opacity: 0;
    animation: hexRingFadeIn 0.8s ease-out 0.3s forwards, hexRingSpin 30s linear 0.3s infinite;
}

@keyframes hexRingFadeIn {
    from { opacity: 0; transform: rotate(0deg) scale(0.8); }
    to { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes hexRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hex-cell {
    position: absolute;
    width: 90px;
    height: 104px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
}

.hex-cell[data-index="0"] { top: 0; left: 50%; transform: translateX(-50%); }
.hex-cell[data-index="1"] { top: 20%; right: 2%; }
.hex-cell[data-index="2"] { bottom: 20%; right: 2%; }
.hex-cell[data-index="3"] { bottom: 0; left: 50%; transform: translateX(-50%); }
.hex-cell[data-index="4"] { bottom: 20%; left: 2%; }
.hex-cell[data-index="5"] { top: 20%; left: 2%; }

.hex-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hex-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(179, 136, 235, 0.8), rgba(61, 214, 208, 0.8));
}

.hex-cell[data-index="0"] .hex-photo { background: linear-gradient(135deg, #B388EB, #FF69B4); }
.hex-cell[data-index="1"] .hex-photo { background: linear-gradient(135deg, #3DD6D0, #B388EB); }
.hex-cell[data-index="2"] .hex-photo { background: linear-gradient(135deg, #FF69B4, #3DD6D0); }
.hex-cell[data-index="3"] .hex-photo { background: linear-gradient(135deg, #B388EB, #3DD6D0); }
.hex-cell[data-index="4"] .hex-photo { background: linear-gradient(135deg, #3DD6D0, #FF69B4); }
.hex-cell[data-index="5"] .hex-photo { background: linear-gradient(135deg, #FF69B4, #B388EB); }

/* Wordmark */
#wordmark {
    position: relative;
    z-index: 3;
    font-family: 'Signika Negative', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 10vw, 120px);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: wordmarkBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
    text-shadow: 0 4px 30px rgba(45, 27, 78, 0.3);
}

.wordmark-quirk {
    color: #F8F0FF;
}

.wordmark-dot {
    color: #FF69B4;
}

.wordmark-bar {
    color: #2D1B4E;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 0 16px;
    margin-left: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

@keyframes wordmarkBounce {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#gateway-tagline {
    position: relative;
    z-index: 3;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
    color: rgba(248, 240, 255, 0.85);
    margin-top: 20px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.6s ease 1.4s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION 2: Honeycomb Grid
   ============================================ */
#honeycomb-section {
    position: relative;
    z-index: 2;
    padding: 100px 40px;
    background: #F8F0FF;
}

#honeycomb-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.honey-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: -30px;
}

.honey-row.offset {
    margin-left: 106px;
}

.honey-cell {
    width: 200px;
    height: 230px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.honey-cell:hover {
    transform: scale(1.08);
    z-index: 5;
}

.honey-cell.large {
    width: 280px;
    height: 322px;
}

.cell-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cell-duotone {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(179, 136, 235, 0.7), rgba(61, 214, 208, 0.7));
    transition: opacity 0.3s ease;
}

.honey-cell:nth-child(1) .cell-duotone { background: linear-gradient(135deg, #B388EB, #3DD6D0); }
.honey-cell:nth-child(2) .cell-duotone { background: linear-gradient(160deg, #3DD6D0, #FF69B4); }
.honey-cell:nth-child(3) .cell-duotone { background: linear-gradient(200deg, #FF69B4, #B388EB); }
.honey-cell:nth-child(4) .cell-duotone { background: linear-gradient(45deg, #B388EB, #FF69B4); }

.honey-row:nth-child(2) .honey-cell:nth-child(1) .cell-duotone { background: linear-gradient(135deg, #3DD6D0, #B388EB); }
.honey-row:nth-child(2) .honey-cell:nth-child(2) .cell-duotone { background: linear-gradient(180deg, #B388EB, #FF69B4); }
.honey-row:nth-child(2) .honey-cell:nth-child(3) .cell-duotone { background: linear-gradient(225deg, #FF69B4, #3DD6D0); }
.honey-row:nth-child(2) .honey-cell:nth-child(4) .cell-duotone { background: linear-gradient(270deg, #3DD6D0, #B388EB); }

.honey-row:nth-child(3) .honey-cell:nth-child(1) .cell-duotone { background: linear-gradient(90deg, #FF69B4, #B388EB); }
.honey-row:nth-child(3) .honey-cell:nth-child(2) .cell-duotone { background: linear-gradient(315deg, #B388EB, #3DD6D0); }
.honey-row:nth-child(3) .honey-cell:nth-child(3) .cell-duotone { background: linear-gradient(0deg, #3DD6D0, #FF69B4); }
.honey-row:nth-child(3) .honey-cell:nth-child(4) .cell-duotone { background: linear-gradient(60deg, #B388EB, #FF69B4); }

.cell-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 16px;
    color: #F8F0FF;
}

.cell-text h3 {
    font-family: 'Signika Negative', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(45, 27, 78, 0.4);
}

.cell-text p {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(45, 27, 78, 0.3);
}

.honey-cell.large .cell-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.honey-cell.large .cell-text p {
    font-size: 13px;
}

/* ============================================
   SECTION 3: Layered Depth Section
   ============================================ */
#depth-section {
    position: relative;
    z-index: 2;
    padding: 120px 40px;
    background: linear-gradient(180deg, #F8F0FF 0%, #2D1B4E 100%);
    overflow: hidden;
}

.depth-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 40px,
            rgba(179, 136, 235, 0.06) 40px,
            rgba(179, 136, 235, 0.06) 42px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent,
            transparent 40px,
            rgba(61, 214, 208, 0.06) 40px,
            rgba(61, 214, 208, 0.06) 42px
        );
    pointer-events: none;
}

.depth-mid-strip {
    position: absolute;
    top: 30%;
    left: -10%;
    width: 120%;
    height: 200px;
    background: linear-gradient(135deg, rgba(179, 136, 235, 0.15), rgba(61, 214, 208, 0.15));
    transform: rotate(-3deg);
    pointer-events: none;
}

.depth-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.plastic-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 8px 32px rgba(45, 27, 78, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plastic-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 16px 48px rgba(45, 27, 78, 0.2);
}

.plastic-card h2 {
    font-size: clamp(24px, 3vw, 38px);
    color: #2D1B4E;
    margin-bottom: 16px;
}

.plastic-card p {
    color: #2D1B4E;
    margin-bottom: 12px;
}

.plastic-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SECTION 4: Featured Quirks Gallery
   ============================================ */
#featured-section {
    position: relative;
    z-index: 2;
    padding: 100px 40px;
    background: #2D1B4E;
}

#featured-section .section-title {
    color: #F8F0FF;
}

#featured-section .section-title::after {
    background: linear-gradient(90deg, #FF69B4, #3DD6D0);
}

#featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.featured-item {
    text-align: center;
    color: #F8F0FF;
    transition: transform 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-8px);
}

.featured-hex {
    width: 160px;
    height: 184px;
    margin: 0 auto 24px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    position: relative;
}

.featured-duotone {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(179, 136, 235, 0.7), rgba(61, 214, 208, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-duotone svg {
    width: 80%;
    height: 80%;
}

.featured-item h3 {
    font-family: 'Signika Negative', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
    color: #FF69B4;
}

.featured-item p {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    color: #C8C8D0;
    line-height: 1.6;
}

/* ============================================
   SECTION 5: Retro Jukebox Footer
   ============================================ */
#jukebox-footer {
    position: relative;
    z-index: 2;
    background: #2D1B4E;
    border-radius: 24px 24px 0 0;
    padding: 40px;
    text-align: center;
    border-top: 3px solid #B388EB;
}

.jukebox-top {
    margin-bottom: 30px;
}

.jukebox-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px 40px;
    border: 2px solid rgba(179, 136, 235, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.jukebox-now-playing {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #3DD6D0;
    text-transform: uppercase;
}

.jukebox-track {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #FF69B4;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
}

.jukebox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.jukebox-btn {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
    color: #F8F0FF;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jukebox-btn:hover {
    background: rgba(255, 105, 180, 0.3);
    transform: scale(1.05);
}

.jukebox-btn:active {
    transform: scale(0.96);
}

.jukebox-btn.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 0;
}

.jukebox-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.jukebox-link {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
    color: #C8C8D0;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 12px;
    border: 1px solid rgba(200, 200, 208, 0.2);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.jukebox-link:hover {
    color: #FF69B4;
    background: rgba(255, 105, 180, 0.1);
    border-color: rgba(255, 105, 180, 0.3);
}

.jukebox-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(200, 200, 208, 0.15);
}

.jukebox-copyright {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    color: #C8C8D0;
    opacity: 0.6;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .honey-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .honey-row.offset {
        margin-left: 0;
    }

    .honey-cell {
        width: 150px;
        height: 173px;
    }

    .honey-cell.large {
        width: 200px;
        height: 230px;
    }

    #hex-ring {
        width: 300px;
        height: 300px;
    }

    .hex-cell {
        width: 65px;
        height: 75px;
    }
}

@media (max-width: 600px) {
    #honeycomb-section {
        padding: 60px 20px;
    }

    .honey-row {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        gap: 12px;
    }

    .honey-cell,
    .honey-cell.large {
        width: 200px;
        height: 230px;
    }

    #depth-section {
        padding: 80px 20px;
    }

    .plastic-card {
        padding: 24px;
    }

    #featured-section {
        padding: 60px 20px;
    }

    #featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .featured-hex {
        width: 120px;
        height: 138px;
    }

    #jukebox-footer {
        padding: 30px 20px;
    }

    .jukebox-nav {
        gap: 12px;
    }

    .jukebox-link {
        font-size: 12px;
        padding: 6px 14px;
    }

    #hex-ring {
        width: 240px;
        height: 240px;
    }

    .hex-cell {
        width: 50px;
        height: 58px;
    }
}

/* ============================================
   Scroll Animations (JS-driven classes)
   ============================================ */
.reveal-cell {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-cell.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-featured {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-featured.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee animation for jukebox track */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.jukebox-track.scrolling {
    animation: marquee 12s linear infinite;
}
