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

@import url('https://fonts.googleapis.com/css2?family=Coolvetica:wght@400;700&display=swap');

body {
    font-family: 'Coolvetica', Helvetica, Arial, sans-serif;
    background: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-content {
    font-family: 'Coolvetica', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 8vw;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

/* Gallery Container */
.gallery-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    overflow: hidden; /* user cannot scroll */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 0; /* oldschool */
    overflow: hidden;
    box-shadow: none; /* remove shadow for 90s vibe */
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: none;
}

.gallery-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    filter: brightness(1.1);
}

/* 6+ crazy flicker/jitter animations */
@keyframes flickerFast { 0%,100% { opacity: 1; } 10% { opacity: 0.6; } 20% { opacity: 0.2; } 30% { opacity: 0.9; } 40% { opacity: 0.4; } 50% { opacity: 1; } 60% { opacity: 0.5; } 70% { opacity: 1; } 80% { opacity: 0.3; } 90% { opacity: 1; } }
@keyframes jitter { 0% { transform: translate(0,0) rotate(0deg); } 20% { transform: translate(-2px, 2px) rotate(-1deg);} 40% { transform: translate(3px, -1px) rotate(1deg);} 60% { transform: translate(-1px, -3px) rotate(0deg);} 80% { transform: translate(2px,1px) rotate(1deg);} 100% { transform: translate(0,0) rotate(0deg);} }
@keyframes wiggle { 0% { transform: rotate(0deg) scale(1);} 25% { transform: rotate(2deg) scale(1.02);} 50% { transform: rotate(-2deg) scale(0.98);} 75% { transform: rotate(1deg) scale(1.01);} 100% { transform: rotate(0deg) scale(1);} }
@keyframes glitchX { 0%,100% { clip-path: inset(0 0 0 0);} 10% { clip-path: inset(10% 0 0 0);} 20% { clip-path: inset(0 0 12% 0);} 30% { clip-path: inset(20% 0 0 0);} 40% { clip-path: inset(0 0 22% 0);} 50% { clip-path: inset(15% 0 0 0);} 60% { clip-path: inset(0 0 18% 0);} 70% { clip-path: inset(12% 0 0 0);} 80% { clip-path: inset(0 0 8% 0);} 90% { clip-path: inset(5% 0 0 0);} }
@keyframes huePulse { 0% { filter: hue-rotate(0deg) saturate(1);} 50% { filter: hue-rotate(90deg) saturate(1.5);} 100% { filter: hue-rotate(0deg) saturate(1);} }
@keyframes zoomBlink { 0% { transform: scale(1);} 30% { transform: scale(1.1);} 31% { transform: scale(0.8);} 60% { transform: scale(1.05);} 100% { transform: scale(1);} }

.fx-flicker { animation: flickerFast var(--fx-dur, 0.9s) steps(10) infinite; }
.fx-jitter { animation: jitter var(--fx-dur, 0.6s) linear infinite; }
.fx-wiggle { animation: wiggle var(--fx-dur, 1.2s) ease-in-out infinite; }
.fx-glitch  { animation: glitchX var(--fx-dur, 0.8s) steps(8) infinite; }
.fx-hue     { animation: huePulse var(--fx-dur, 1.6s) ease-in-out infinite; }
.fx-zoom    { animation: zoomBlink var(--fx-dur, 1.1s) ease-in-out infinite; }

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* Animations */
@keyframes spiralExit {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Cue text overlay */
.cue-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* allow gallery below unless element has auto */
    z-index: 9998;
}

.cue-text {
    position: absolute;
    min-width: 160px;
    max-width: 260px;
    padding: 8px 10px;
    background: #ffff88; /* post-it vibe */
    color: #111;
    border: 1px solid #222;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: none;
    border-radius: 0;
    transform-origin: center;
    pointer-events: auto; /* so links work */
}

.cue-text a {
    color: inherit;
    text-decoration: underline;
}

/* Cue animations (6+) */
@keyframes cueSlideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes cueSlideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes cueFadeUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }
@keyframes cuePop { 0% { transform: scale(0.6); opacity: 0;} 60% { transform: scale(1.08); opacity: 1;} 100% { transform: scale(1);} }
@keyframes cueTiltIn { 0% { transform: rotate(-8deg) translateY(20px); opacity: 0;} 100% { transform: rotate(0deg) translateY(0); opacity: 1;} }
@keyframes cueBounceIn { 0% { transform: translateY(-30px); opacity: 0;} 60% { transform: translateY(8px); opacity: 1;} 100% { transform: translateY(0);} }

.cue-anim-left { animation: cueSlideInLeft 500ms ease-out both; }
.cue-anim-right { animation: cueSlideInRight 500ms ease-out both; }
.cue-anim-up { animation: cueFadeUp 500ms ease-out both; }
.cue-anim-pop { animation: cuePop 500ms ease-out both; }
.cue-anim-tilt { animation: cueTiltIn 500ms ease-out both; }
.cue-anim-bounce { animation: cueBounceIn 600ms cubic-bezier(.34,1.56,.64,1) both; }
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .text-content {
        font-size: 10vw;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .placeholder-image {
        height: 150px;
    }
    
}

@media (max-width: 480px) {
    .text-content {
        font-size: 12vw;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .placeholder-image {
        height: 120px;
    }
    
    .placeholder-icon {
        font-size: 32px;
    }
    
    .placeholder-text {
        font-size: 12px;
    }
}
