@font-face {
    font-family: 'Combe';
    src: url('fonts/Combe.ttf') format('truetype'),
         url('fonts/Combe.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Combe', sans-serif;
    background-color: #050505; /* Darker than before */
    color: #fff;
    text-align: center;
    overflow-x: hidden;
}

/* Background Vibes: Cinematic Noise & Glow Orbs */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* User clicking passes through */
    z-index: 100;
    opacity: 0.05;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px); /* Increased blur for smoother HD aurora */
    opacity: 0.6;
    mix-blend-mode: screen; /* Blends lights beautifully together like real aurora */
}

.orb-1 {
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, #f39c12 0%, #e67e22 100%); /* Depth with gradient */
    top: -10%;
    left: 0%;
    animation: orbMove 15s infinite alternate ease-in-out;
}

.orb-2 {
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, #e74c3c 0%, #ff0055 100%);
    bottom: -20%;
    right: -10%;
    animation: orbMove 18s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 60vw;
    height: 80vh;
    background: radial-gradient(circle, #8e44ad 0%, #4a00e0 100%);
    top: 20%;
    left: -20%;
    animation: orbMove 25s infinite alternate ease-in-out;
}

@keyframes orbMove {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(10vw, 15vh) scale(1.2) rotate(15deg); }
}

header {
    padding: 60px 20px;
    background: transparent; /* Made transparent to show glow */
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 250px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.4);
    animation: pulseLogo 3s infinite ease-in-out;
    margin-bottom: 20px;
}

h1 {
    font-size: 5rem;
    margin: 10px 0;
    color: #f39c12;
    text-shadow: 2px 2px 10px rgba(243, 156, 18, 0.5);
    letter-spacing: 3px;
}

p {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #ccc;
}

.buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    font-size: 1.3rem;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.twitter { background-color: #1DA1F2; }
.pumpfun { background-color: #ff4757; }
.dexscreener { background-color: #2ed573; }

.gallery {
    padding: 80px 20px;
    background-color: rgba(26, 26, 26, 0.4); /* Used rgba for transparency */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 50vh;
}

.title-with-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.decor-svg {
    width: 60px;
    height: 60px;
}

.decor-svg.heart {
    animation: heartBeatReal 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

.decor-svg.heart.delay {
    animation-delay: 1s;
}

.decor-svg.arrow {
    animation: arrowFloat 3s infinite ease-in-out;
}

.decor-svg.arrow.reverse {
    animation: arrowFloatReverse 3s infinite ease-in-out;
}

.gallery h2 {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 0; /* Override previous margin since container handles it */
}

@keyframes heartBeatReal {
    0% { transform: scale(1) rotate(-5deg); filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.4)) drop-shadow(0 5px 5px rgba(0,0,0,0.5)); }
    15% { transform: scale(1.25) rotate(5deg); filter: drop-shadow(0 0 25px rgba(255, 0, 85, 0.9)) drop-shadow(0 10px 10px rgba(0,0,0,0.5)); }
    30% { transform: scale(1) rotate(-5deg); filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.4)) drop-shadow(0 5px 5px rgba(0,0,0,0.5)); }
    45% { transform: scale(1.15) rotate(0deg); filter: drop-shadow(0 0 20px rgba(255, 0, 85, 0.7)) drop-shadow(0 8px 8px rgba(0,0,0,0.5)); }
    100% { transform: scale(1) rotate(-5deg); filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.4)) drop-shadow(0 5px 5px rgba(0,0,0,0.5)); }
}

@keyframes arrowFloat {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0); filter: drop-shadow(0 0 15px rgba(253, 160, 133, 0.5)) drop-shadow(0 5px 5px rgba(0,0,0,0.5)); }
    50% { transform: translateX(10px) translateY(-5px) rotate(5deg); filter: drop-shadow(0 0 20px rgba(253, 160, 133, 0.8)) drop-shadow(0 10px 10px rgba(0,0,0,0.3)); }
}

@keyframes arrowFloatReverse {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0); filter: drop-shadow(0 0 15px rgba(253, 160, 133, 0.5)) drop-shadow(0 5px 5px rgba(0,0,0,0.5)); }
    50% { transform: translateX(-10px) translateY(-5px) rotate(-5deg); filter: drop-shadow(0 0 20px rgba(253, 160, 133, 0.8)) drop-shadow(0 10px 10px rgba(0,0,0,0.3)); }
}

.about-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #ddd;
}

.anim-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.zigzag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.zigzag-item {
    width: 60%;
    display: flex;
    justify-content: center;
}

.zigzag-item:nth-child(even) {
    align-self: flex-start;
}

.zigzag-item:nth-child(odd) {
    align-self: flex-end;
}

.anim-img {
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.anim-img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations that activate when visible */
.visible.float { animation: floatAnim 4s ease-in-out infinite; }
.visible.bounce { animation: bounceAnim 2s infinite; }
.visible.pulse { animation: pulseAnim 2s infinite; }
.visible.shake { animation: shakeAnim 1.5s infinite; }

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(243, 156, 18, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(243, 156, 18, 0.8); }
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes bounceAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes pulseAnim {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shakeAnim {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.meme-gallery {
    padding: 80px 20px;
    background-color: rgba(17, 17, 17, 0.4); /* Used rgba for transparency */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 50vh;
}

.meme-gallery h2 {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 50px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.meme-card {
    background-color: #222;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.meme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.3);
    border-color: #f39c12;
}

.meme-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Footer Styles */
footer {
    background-color: rgba(10, 10, 10, 0.7); /* Used rgba for transparency */
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

footer p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 10px;
}

footer .disclaimer {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

/* Mini Game Styles */
.mini-game {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    max-width: 800px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    border: 2px solid #ff0055;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

#gameCanvas {
    background: #111;
    border: 2px solid #fff;
    border-radius: 10px;
    max-width: 100%;
}

.game-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.instruction {
    font-size: 0.9em;
    color: #aaa;
}

.leaderboard {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.leaderboard h3 {
    text-align: center;
    color: #f39c12;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#leaderboard-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
    color: #ddd;
}

#leaderboard-list li:last-child {
    border-bottom: none;
}

#leaderboard-list li span:last-child {
    font-weight: bold;
    color: #2ed573;
}