/* ppzz.lu - Fairycore Enchanted Mosaic */

:root {
    --lavender-mist: #E8E0F0;
    --twilight: #A098B8;
    --void: #1A1028;
    --deep-plum: #2A1E3A;
    --gold: #C4A862;
    --dark-purple: #3D2E52;
    --berry: #8A4A6A;
    --forest: #3A7A5E;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void);
    color: var(--lavender-mist);
    font-family: 'Spectral', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Gradient Overlay */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, var(--void) 0%, var(--deep-plum) 50%, var(--dark-purple) 100%);
    opacity: 0.5;
}

/* Firefly Particles */
.fireflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: fireflyFloat linear infinite;
}

@keyframes fireflyFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    20% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
        transform: translateY(-30vh) translateX(20px);
    }
    80% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateY(-60vh) translateX(-15px);
    }
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 80px 40px;
}

/* Gate */
.gate {
    flex-direction: column;
    text-align: center;
}

.gate-content {
    position: relative;
}

.gate-mandala {
    margin-bottom: 24px;
    opacity: 0;
    animation: mandalaReveal 2s ease-out 0.3s forwards;
}

.gate-mandala svg {
    animation: mandalaSpin 60s linear infinite;
}

@keyframes mandalaSpin {
    to { transform: rotate(360deg); }
}

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

.wordmark {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.2em;
    color: var(--lavender-mist);
    opacity: 0;
    animation: gateReveal 1.5s ease-out 0.5s forwards;
}

.tld-mark {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.3em;
    color: var(--gold);
    display: block;
    margin-top: 4px;
    opacity: 0;
    animation: gateReveal 1.2s ease-out 0.9s forwards;
}

.gate-whisper {
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--twilight);
    letter-spacing: 0.1em;
    margin-top: 20px;
    opacity: 0;
    animation: gateReveal 1s ease-out 1.3s forwards;
}

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

/* Mosaic Wall */
.mosaic-wall {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Mosaic Tiles */
.mosaic-tile {
    background: rgba(42, 30, 58, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(160, 152, 184, 0.12);
    padding: 28px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.mosaic-tile.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mosaic-tile:hover {
    border-color: rgba(196, 168, 98, 0.25);
}

.tile-large {
    grid-column: span 2;
}

.tile-medium {
    grid-column: span 2;
}

.tile-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.tile-chamber {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

/* Tile Geometric Decorations */
.tile-geo {
    position: absolute;
    top: 12px;
    left: 12px;
    opacity: 0.5;
}

.tile-geo-right {
    left: auto;
    right: 12px;
}

.tile-title {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.08em;
    color: var(--lavender-mist);
    margin-bottom: 12px;
}

.tile-text {
    font-size: 14px;
    color: var(--twilight);
    line-height: 1.8;
}

/* Tree Art */
.tree-art {
    opacity: 0.6;
}

/* Chamber Mandala */
.chamber-mandala {
    opacity: 0.5;
    animation: chamberSpin 40s linear infinite;
}

@keyframes chamberSpin {
    to { transform: rotate(360deg); }
}

/* Project Gems */
.project-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.project-gem {
    padding: 16px;
    border: 1px solid rgba(196, 168, 98, 0.15);
    text-align: center;
}

.gem-name {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.gem-desc {
    font-size: 12px;
    color: var(--twilight);
    opacity: 0.7;
}

/* Seal Contact */
.seal-contact {
    margin-top: 20px;
    padding: 12px;
    border: 1px solid rgba(196, 168, 98, 0.2);
    text-align: center;
}

.seal-email {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 700px) {
    .mosaic-wall {
        grid-template-columns: 1fr;
    }
    .tile-large,
    .tile-medium {
        grid-column: span 1;
    }
    .project-tiles {
        grid-template-columns: 1fr;
    }
}
