/* ppuzzl.dev - Y2K Aurora Developer Portal */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #e8eef6;
    color: #1a1e3a;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Aurora Background */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.aurora-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.layer-1 {
    background: conic-gradient(from 0deg at 30% 40%, #7ca3cc, #a89cc8, #8ec4b8, #7ca3cc);
    opacity: 0.15;
    animation: aurora-rotate 40s linear infinite;
}

.layer-2 {
    background: radial-gradient(ellipse at 70% 60%, #c8a0b8 0%, transparent 60%);
    opacity: 0.12;
    animation: aurora-drift 30s ease-in-out infinite;
}

.layer-3 {
    background: radial-gradient(ellipse at 40% 80%, #8ec4b8 0%, transparent 50%);
    opacity: 0.1;
    animation: aurora-pulse 25s ease-in-out infinite;
}

@keyframes aurora-rotate {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.2); }
}

@keyframes aurora-drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5%, -3%); }
    50% { transform: translate(-3%, 5%); }
    75% { transform: translate(4%, 2%); }
}

@keyframes aurora-pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.15); opacity: 0.18; }
}

/* Y2K Bubbles */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 163, 204, 0.3), rgba(168, 156, 200, 0.2), rgba(142, 196, 184, 0.2));
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Void Sections */
.void {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-void {
    min-height: 120vh;
    padding: 0 20px;
    justify-content: center;
    align-items: flex-start;
    padding-top: 35vh;
    padding-left: 12%;
}

.title-main {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: clamp(4rem, 12vw, 12rem);
    letter-spacing: 0.08em;
    color: #1a1e3a;
    opacity: 0;
    transition: opacity 2s ease;
}

.title-main.visible {
    opacity: 1;
}

/* Island Voids */
.island-void {
    min-height: 80vh;
    padding: 15vh 20px;
}

/* Content Islands */
.island {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 600px;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s ease, transform 1.2s ease;
    box-shadow: 0 8px 32px rgba(26, 30, 58, 0.06);
}

.island.visible {
    opacity: 1;
    transform: scale(1);
}

.island-left {
    margin-right: auto;
    margin-left: 8%;
}

.island-right {
    margin-left: auto;
    margin-right: 8%;
}

.island-center {
    margin: 0 auto;
}

.island-label {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a89cc8;
    display: block;
    margin-bottom: 12px;
}

.island-heading {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.08em;
    color: #1a1e3a;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.island.visible .island-heading {
    opacity: 1;
    transform: translateY(0);
}

.island-para {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    max-width: 50ch;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.island-para.revealed {
    opacity: 1;
    transform: translateY(0);
}

.island-code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    background: rgba(26, 30, 58, 0.08);
    color: #1a1e3a;
    padding: 16px 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.island-code.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* c8a0b8 mauve used in aurora layer-2, also as subtle hover */
.island:hover {
    border-color: rgba(200, 160, 184, 0.4);
    box-shadow: 0 12px 40px rgba(26, 30, 58, 0.1);
}

/* Dissolution */
.dissolution-void {
    min-height: 60vh;
    padding: 10vh 20px;
    text-align: center;
}

.dissolution-text {
    position: relative;
    z-index: 2;
}

.dissolution-word {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 8rem);
    letter-spacing: 0.08em;
    color: #7ca3cc;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.dissolution-word.visible {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 700px) {
    .title-void {
        padding-left: 20px;
        padding-top: 25vh;
    }

    .island-left,
    .island-right {
        margin-left: auto;
        margin-right: auto;
    }

    .island {
        padding: 32px 24px;
        max-width: 90%;
    }
}
