:root {
    --neon-green: #00ff7f;
    --acid-yellow: #fff36b;
    --hot-magenta: #ff2bd6;
    --electric-cyan: #00f0ff;
    --deep-space: #050015;
    --midnight: #0b0033;
    --card-ink: rgba(10, 6, 30, 0.7);
    --chrome: #c8c8c8;
    --hot-pink: #ff4bd6;
    --acid-lime: #9cff57;
    --blue-spark: #2b7bff;
}

body {
    font-family: 'VT323', 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    margin: 0;
    background-color: var(--deep-space);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='120' height='120' fill='none'/%3E%3Ctext x='10' y='60' font-size='28' fill='%23ffffff22' font-family='Arial'%3E★☆✦%3C/text%3E%3C/svg%3E"),
        radial-gradient(1200px 600px at 20% -10%, rgba(255, 255, 255, 0.25), transparent 60%),
        radial-gradient(800px 500px at 90% 20%, rgba(0, 240, 255, 0.25), transparent 60%),
        linear-gradient(120deg, rgba(5, 0, 21, 0.85), rgba(11, 0, 51, 0.85)),
        url('SUMO PICS/Windows Plus Wallpaper_result.webp');
    background-size: 140px 140px, cover, cover, cover, cover;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffff00' stroke='%23ff00ff' stroke-width='1' d='M12 0l3.09 8.91L24 12l-8.91 3.09L12 24l-3.09-8.91L0 12l8.91-3.09L12 0z'/%3E%3C/svg%3E") 12 12, auto;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: screen;
    opacity: 0.35;
}

body::after {
    background-image:
        radial-gradient(circle at 20% 10%, rgba(255, 43, 214, 0.2), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.15), transparent 55%);
    animation: nebulaDrift 18s ease-in-out infinite;
    opacity: 0.6;
}

.main-content-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    z-index: 1;
    padding-bottom: 2rem;
}

/* Ensure main content blocks sit on top of the nostalgia GIFs */
header, .bio-section, .gallery, footer {
    position: relative;
    z-index: 2;
}

.y2k-topbar {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00);
    color: #000;
    border: 3px ridge #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.1rem;
}

.myspace-menu {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #1f4fd6;
    color: #fff;
    border: 4px ridge #7fb0ff;
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 0.9fr;
    gap: 1rem;
    align-items: center;
    font-family: 'Verdana', 'Tahoma', sans-serif;
}

.menu-logo {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.5rem;
    row-gap: 0.1rem;
    align-items: center;
}

.logo-dot {
    grid-row: span 2;
    background: #fff;
    color: #1f4fd6;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: bold;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.95rem;
    opacity: 0.9;
}

.menu-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-search label {
    font-weight: bold;
}

.menu-search input {
    width: 220px;
    padding: 0.2rem 0.4rem;
    border: 2px inset #fff;
    font-family: 'Verdana', 'Tahoma', sans-serif;
}

.menu-search button {
    padding: 0.2rem 0.6rem;
    border: 2px outset #fff;
    background: #f2f2f2;
    cursor: pointer;
}

.menu-links {
    text-align: right;
    font-weight: bold;
}

.menu-links a {
    color: #fff;
    text-decoration: none;
}

.myspace-submenu {
    background: #5da0ff;
    border: 3px ridge #a8ccff;
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-family: 'Verdana', 'Tahoma', sans-serif;
    text-transform: capitalize;
}

.myspace-submenu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.y2k-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    align-items: start;
}

.y2k-sidebar {
    position: sticky;
    top: 1rem;
}

.y2k-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.6));
    border: 4px outset #fff;
    padding: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.y2k-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--acid-lime);
    text-shadow: 2px 2px var(--hot-magenta);
    font-size: 1.5rem;
}

.y2k-status-blink {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #000;
    color: var(--acid-yellow);
    border: 2px dashed #fff;
    animation: blink 0.8s steps(2, end) infinite;
    text-align: center;
}

.top-friends {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.friend {
    background: #000;
    border: 2px solid var(--electric-cyan);
    padding: 0.25rem;
    text-align: center;
    font-size: 1rem;
    position: relative;
}

.friend .reorder {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.9rem;
    color: #fff;
    background: #ff00ff;
    padding: 0 3px;
    border: 1px solid #fff;
}

.friend img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border: 2px inset #fff;
}

.friend span {
    display: block;
    margin-top: 0.25rem;
    color: var(--acid-yellow);
}

.y2k-stamps {
    font-size: 1.6rem;
    letter-spacing: 4px;
    text-align: center;
    color: var(--hot-pink);
    text-shadow: 1px 1px #000;
}

.y2k-main {
    min-width: 0;
}

.y2k-chaos {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.chaos-block {
    background: #000;
    border: 3px dotted #fff;
    padding: 0.75rem;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.35);
    color: #fff;
}

.chaos-block h3 {
    margin: 0 0 0.5rem 0;
    color: var(--acid-lime);
    text-shadow: 2px 2px var(--hot-magenta);
    text-transform: uppercase;
}

.guestbook p {
    margin: 0.35rem 0;
    color: var(--acid-yellow);
}

.webcam-frame {
    position: relative;
    border: 4px groove #fff;
    padding: 0.25rem;
    background: #111;
}

.webcam-frame img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.webcam-label {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: red;
    color: #fff;
    font-size: 0.9rem;
    padding: 2px 6px;
    border: 2px solid #fff;
}

.counter-box {
    border: 3px double #fff;
    padding: 0.5rem;
    text-align: center;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    color: #000;
}

.counter-number {
    font-size: 2.5rem;
    letter-spacing: 4px;
    text-shadow: 2px 2px #fff;
}

.counter-caption {
    font-size: 0.95rem;
}

.now-playing {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    background: #222;
    padding: 0.5rem;
    border: 2px inset #fff;
}

.song-title {
    color: var(--acid-yellow);
}

.mute-link {
    color: #00ffff;
    text-decoration: underline;
    font-size: 0.95rem;
}

.blink-warning {
    font-size: 1.2rem;
    color: #ff0000;
    background: #fff200;
    padding: 0.5rem;
    border: 2px solid #000;
    animation: blink 0.7s steps(2, end) infinite;
    text-align: center;
}

.webring {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border: 2px dashed #fff;
    background: #111;
}

.webring-link {
    color: var(--electric-cyan);
    text-decoration: underline;
}

.last-updated {
    margin-top: 0.5rem;
    color: var(--acid-yellow);
    text-align: center;
}

.spinning-text {
    text-align: center;
    font-size: 2rem;
    color: var(--hot-pink);
    text-shadow: 2px 2px #000;
    animation: spinText 6s linear infinite;
}

header {
    padding: 1.5rem;
    text-align: left; /* Shift text to the left for an asymmetrical feel */
    margin-top: 1rem;
    /* overflow: hidden;  We remove this so sparkles can pop out */
    background: rgba(6, 2, 28, 0.85);
    border: 4px groove var(--hot-pink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(6px);
}

.profile-pic {
    width: 150px;
    height: 150px;
    /* No more soft-radius, sharp corners! */
    float: left; /* Float the image to the left */
    margin-right: 1.5rem; /* Add space between image and text */
    border: 4px double #ffff00;
    border-radius: 50%; /* This makes the frame round */
    shape-outside: circle(50%); /* Helps text wrap nicely in supporting browsers */
}

header h1 {
    /* Use the new futuristic font, keeping Impact as a fallback */
    font-family: 'Orbitron', 'Impact', 'Arial Black', sans-serif;
    margin: 0;
    font-size: 4.5rem;
    color: var(--neon-green);
    /* Hard drop-shadow effect */
    /* Animate the text shadow for a rainbow effect! */
    animation: rainbowGlow 4s linear infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    color: var(--acid-yellow);
    text-shadow: 2px 2px rgba(0, 0, 0, 0.6);
}

marquee {
    display: block;
    margin-top: 0.75rem;
    padding: 0.35rem 0.5rem;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.25), rgba(255, 43, 214, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.sparkle-container, .sparkle-container > span {
    position: relative;
    display: inline-block;
}

.sparkle-container::before,
.sparkle-container::after,
.sparkle-container > span::before,
.sparkle-container > span::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='50,0 61,39 100,50 61,61 50,100 39,61 0,50 39,39' fill='%23ffff00'/%3E%3C/svg%3E");
    background-size: contain;
    animation: sparkle 2s linear infinite;
}

.sparkle-container::before { top: -15px; left: 10%; animation-delay: 0s; }
.sparkle-container::after { top: 80%; left: 0; animation-delay: -0.5s; }
.sparkle-container > span::before { top: 0; right: 0; animation-delay: -1s; }
.sparkle-container > span::after { top: 50%; right: -15px; animation-delay: -1.5s; }

.instagram-link {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.instagram-link a {
    color: var(--neon-green); /* Neon green to match the heading */
    text-decoration: underline;
    /* Make the link blink and change colors! */
    animation: linkBlink 2s linear infinite;
}

.donate-shortcut {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.donate-shortcut a {
    color: var(--acid-yellow); /* Bright yellow to stand out */
    text-decoration: underline;
    display: inline-block; /* Needed for transform to work */
    text-shadow: 2px 2px var(--hot-magenta);
    animation: commandPulse 1.5s ease-in-out infinite;
}

.bio-section {
    position: relative; /* Needed to position the image inside */
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.6), rgba(0, 255, 255, 0.6));
    border: 6px groove var(--acid-yellow);
    text-align: left;
    /* Add random, asymmetrical rounded corners for a messy look */
    border-radius: 25px 60px 30px 50px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.bio-section h2 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2.5rem;
    color: var(--acid-yellow);
    text-shadow: 2px 2px var(--hot-magenta);
    margin: 0 0 1rem 0;
}

.bio-section p {
    color: #ffffff;
    line-height: 1.6;
    font-size: 1.1rem;
}

.bio-image {
    position: absolute;
    top: -30px;
    right: 20px;
    width: 180px;
    transform: rotate(10deg);
    /* A drop-shadow looks better on transparent images than a border */
    filter: drop-shadow(3px 3px 0 var(--neon-green)) drop-shadow(-3px -3px 0 var(--hot-magenta));
}

.gallery {
    /* Ditching the modern grid for a simpler centered layout */
    text-align: center;
    padding: 0 1rem; /* Use padding to prevent content from touching edges */
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.55);
    border: 3px double var(--electric-cyan);
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.15);
    border-radius: 14px;
}

.gallery-item {
    /* Add a classic repeating pattern for more texture */
    background-image: repeating-linear-gradient(45deg, #ffb7ff, #ffb7ff 10px, #d6f1ff 10px, #d6f1ff 20px);
    border: 4px ridge #fff;
    display: inline-block;
    margin: 1.5rem;
    padding: 0.5rem;
    vertical-align: top;
    width: 350px;
    position: relative; /* Needed for z-index on hover */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    animation: floatIn 700ms ease-out both;
}

/* Add messy, overlapping rotations to gallery items */
.gallery-item:nth-child(odd) { transform: rotate(-3deg); }
.gallery-item:nth-child(even) { transform: rotate(2deg); }
.gallery-item:nth-child(3n) { transform: rotate(4deg); }
.gallery-item:nth-child(4n) { transform: rotate(-1deg); }

.gallery-item:hover {
    /* Add a yellow glow on hover */
    box-shadow: 0 0 15px var(--acid-yellow);
    border-color: var(--acid-yellow);
    /* Straighten out and bring to the front on hover */
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* Ensures all image containers are uniform */
    object-fit: cover;   /* Prevents images from being stretched or squished */
    display: block;
    border: 1px solid #333;
}

.caption {
    /* Captions are always visible now */
    /* Give the caption a cool gradient */
    background: linear-gradient(to right, #0000ff, #8a2be2);
    color: #ffffff;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    border: 6px ridge #fff;
    margin-top: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.35);
}

.donate-section {
    position: relative; /* Needed for positioning the SOS icon */
    background-color: #fff36b;
    color: #000000;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 3px dashed #ff00ff;
    animation: borderBlink 1s step-end infinite;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.6);
}

.donate-section h3 {
    color: #ff00ff; /* Magenta to match the header shadow */
    font-family: 'Impact', 'Arial Black', sans-serif;
    margin: 0 0 1rem 0;
    font-size: 2.5rem; /* Make the donation title bigger */
    text-shadow: 2px 2px #000;
}

.sos-icon {
    position: absolute;
    width: 70px;
    z-index: 10; /* Ensure they are on top */
}

.sos-icon.top-right {
    top: -25px;
    right: -20px;
    transform: rotate(15deg);
}

.sos-icon.top-left {
    top: -20px;
    left: -25px;
    transform: rotate(-20deg);
}

.sos-icon.bottom-right {
    bottom: -20px;
    right: -15px;
    transform: rotate(-10deg);
}

.sos-icon.bottom-left {
    bottom: -25px;
    left: -20px;
    transform: rotate(25deg);
}

.crypto-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Allows items to stack on small screens */
}

.qr-code {
    width: 150px;
    height: 150px;
    border: 2px solid #333;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.wallet-address p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.wallet-address code {
    background-color: #e0e0e0;
    /* A more period-appropriate border for better visual weight */
    border: 2px inset #999;
    padding: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem; /* Slightly larger for readability */
    color: #000;
    display: block;
    word-wrap: break-word; /* Ensures long address doesn't overflow */
    cursor: pointer;
    transition: background-color 0.2s;
}

.donate-section, .gallery, header, .bio-section, footer, .y2k-card {
    animation: wobble 8s ease-in-out infinite;
}

.wallet-address code:hover {
    background-color: #f0f0f0; /* A slightly different shade on hover */
}
.donation-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

.copy-popup {
    position: absolute;
    bottom: 100%; /* Position it directly above the wallet address */
    left: 0;
    right: 0;
    background-color: #00ff00;
    color: #000;
    padding: 8px 16px;
    border-radius: 5px;
    border: 2px solid #000;
    font-weight: bold;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    margin-bottom: 5px; /* Add a little space between the popup and the address */
}

.copy-popup.show {
    opacity: 1;
    visibility: visible;
}

.donation-proof {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.5rem;
    color: var(--acid-yellow);
    text-shadow: 2px 2px var(--hot-magenta);
    margin: 1.5rem 0;
}

.donation-proof a {
    color: #00ff00; /* Neon green for high contrast */
    text-decoration: underline;
    animation: linkBlink 2s linear infinite; /* Reuse the blinking animation */
}

.family-gallery {
    margin-top: 2.5rem;
    text-align: center;
    border-top: 3px dashed #ff00ff;
    padding-top: 1.5rem;
}

.family-gallery h4 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    color: var(--neon-green);
    font-size: 1.8rem;
    text-shadow: 2px 2px var(--hot-magenta);
    margin: 0 0 1rem 0;
}

.family-members-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.family-member {
    width: 100px;
}

.family-member img {
    width: 80px;
    height: auto;
}

.family-member .name {
    margin-top: 0.25rem;
    font-weight: bold;
}

.family-member .rip {
    opacity: 0.7;
    text-decoration: line-through;
}

.visitor-counter {
    margin-top: 1rem;
    border: 2px inset #c0c0c0;
}

.visitor-wrap {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #000;
    border: 3px double #fff;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
}

.visitor-label {
    font-size: 1.2rem;
    color: var(--acid-lime);
    text-shadow: 2px 2px var(--hot-magenta);
    margin-bottom: 0.35rem;
}

.visitor-fake {
    margin-top: 0.35rem;
    font-size: 1rem;
    color: var(--acid-yellow);
    text-shadow: 1px 1px #000;
}

.big-sumo-pic {
    display: block;
    margin: 2.5rem auto 1rem;
    width: 300px;
    border: 10px groove var(--hot-magenta); /* A classic, chunky Y2K border */
    padding: 10px;
    background-color: var(--electric-cyan); /* A cyan background for the padding area */
    transform: rotate(-5deg);
}

/* --- Nostalgia GIFs --- */

.nostalgia-gif {
    position: absolute;
    z-index: 1; /* Sit behind main content */
    border: 3px outset #c0c0c0;
}

#pikachu-gif {
    top: 150px;
    left: -50px;
    width: 100px;
    transform: rotate(-15deg);
}

#intel-gif {
    top: 800px;
    right: -60px;
    width: 120px;
}

#yahoo-gif {
    top: 1200px;
    left: 20px;
    width: 150px;
    transform: rotate(5deg);
    border: 5px groove #ff00ff;
    padding: 5px;
    background-color: #fff;
}

/* --- Animations --- */

@keyframes rainbowGlow {
    0%   { text-shadow: 4px 4px #ff00ff; } /* Magenta */
    25%  { text-shadow: 4px 4px #00ffff; } /* Cyan */
    50%  { text-shadow: 4px 4px #ffff00; } /* Yellow */
    75%  { text-shadow: 4px 4px #00ff00; } /* Green */
    100% { text-shadow: 4px 4px #ff00ff; } /* Back to Magenta */
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.7) rotate(180deg); opacity: 0.5; }
}

@keyframes borderBlink {
    50% {
        /* Blink between magenta and cyan */
        border-color: #00ffff;
    }
}

@keyframes linkBlink {
    50% {
        color: #ffff00;
        text-shadow: 1px 1px #00ffff;
    }
}

@keyframes commandPulse {
    0% {
        transform: scale(1);
        text-shadow: 2px 2px #ff00ff;
    }
    50% {
        transform: scale(1.05);
        text-shadow: 2px 2px #00ffff, 0 0 20px #ffff00; /* Add a glow */
    }
    100% {
        transform: scale(1);
        text-shadow: 2px 2px #ff00ff;
    }
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.96) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes nebulaDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-10px, 8px, 0) scale(1.02);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes wobble {
    0% { transform: rotate(-0.3deg); }
    50% { transform: rotate(0.3deg); }
    100% { transform: rotate(-0.3deg); }
}

@keyframes spinText {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

.glitter-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    pointer-events: none;
    z-index: 9999;
    animation: glitterPop 800ms ease-out forwards;
    filter: drop-shadow(0 0 6px currentColor);
}

.glitter-trail::before {
    content: '✦';
    font-size: 12px;
    line-height: 10px;
    display: block;
}

@keyframes glitterPop {
    0% {
        transform: scale(0.4) rotate(0deg);
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6) rotate(120deg);
        opacity: 0;
    }
}

.gallery-item:nth-child(1) { animation-delay: 80ms; }
.gallery-item:nth-child(2) { animation-delay: 160ms; }
.gallery-item:nth-child(3) { animation-delay: 240ms; }
.gallery-item:nth-child(4) { animation-delay: 320ms; }
.gallery-item:nth-child(5) { animation-delay: 400ms; }
.gallery-item:nth-child(6) { animation-delay: 480ms; }
.gallery-item:nth-child(7) { animation-delay: 560ms; }
.gallery-item:nth-child(8) { animation-delay: 640ms; }
.gallery-item:nth-child(9) { animation-delay: 720ms; }

@media (max-width: 900px) {
    .myspace-menu {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .menu-links {
        text-align: center;
    }

    .y2k-layout {
        grid-template-columns: 1fr;
    }

    .y2k-sidebar {
        position: static;
    }

    .y2k-chaos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .myspace-menu {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "links"
            "search";
        text-align: left;
        padding: 0.5rem 0.6rem;
        gap: 0.4rem;
        box-sizing: border-box;
    }

    .menu-logo {
        grid-area: logo;
        align-items: start;
    }

    .menu-links {
        grid-area: links;
        text-align: left;
        font-size: 0.9rem;
        white-space: normal;
    }

    .menu-search {
        grid-area: search;
        width: 100%;
        justify-content: flex-start;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .menu-search label {
        width: 100%;
        font-size: 0.95rem;
    }

    .menu-search input {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
    }

    .menu-search button {
        width: 100%;
        padding: 0.25rem 0.7rem;
    }

    .myspace-submenu {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3rem 0.4rem;
        padding: 0.35rem 0.4rem;
        text-align: center;
    }

    .myspace-submenu a {
        font-size: 0.82rem;
        padding: 0.15rem 0;
    }

    .y2k-topbar {
        display: none;
    }

    .y2k-layout {
        display: flex;
        flex-direction: column;
    }

    .y2k-main {
        order: 1;
    }

    .y2k-sidebar {
        order: 2;
    }

    header h1 {
        font-size: 3rem;
    }

    .donate-shortcut {
        font-size: 1.1rem;
    }

    .gallery-item {
        width: 95%;
        margin: 1rem auto;
    }

    .bio-section {
        padding: 1.25rem;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .logo-tagline {
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .myspace-submenu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .menu-links {
        font-size: 0.85rem;
    }
}

/* --- Responsive Styles --- */

/* For Tablets and smaller devices */
@media (max-width: 768px) {
    .main-content-wrapper {
        max-width: none;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    header h1 {
        font-size: 3.5rem; /* Make heading smaller */
        animation: none; /* Disable animation for smaller screens */
        text-shadow: 3px 3px #ff00ff;
    }

    .profile-pic {
        float: none; /* Un-float the profile picture on smaller screens */
        display: block;
        margin: 0 auto 1rem;
    }

    .gallery-item {
        width: 80%; /* Allow items to take more width */
        margin-left: auto;
        margin-right: auto;
        display: block; /* Stack them vertically */
    }

    .bio-image {
        /* On smaller screens, make the image static and centered */
        position: static;
        display: block;
        margin: 0 auto 1.5rem;
        transform: rotate(0deg);
    }

    .bio-section {
        text-align: center;
    }

    /* Hide the random GIFs on smaller screens to avoid clutter */
    .nostalgia-gif {
        display: none;
    }

}

/* For Mobile phones */
@media (max-width: 480px) {
    body {
        /* The background image can be distracting on small screens, let's remove it */
    }

    header, footer {
        margin: 0.5rem; /* Reduce outer margins */
        border-width: 3px;
    }

    .profile-pic {
        width: 100px; /* Smaller profile pic */
        height: 100px;
    }

    header h1 {
        font-size: 2.5rem; /* Even smaller heading */
        animation: none; /* Disable animation for mobile */
        text-shadow: 2px 2px #ff00ff;
    }

    .instagram-link a,
    .donate-shortcut a {
        animation: none; /* Disable blinking on mobile for readability */
        text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000; /* Add a dark outline */
    }

    .donate-shortcut {
        font-size: 1.2rem;
    }

    .gallery-item {
        width: 95%; /* Almost full width */
        margin: 1rem auto; /* Increase vertical spacing between stacked items */
        padding: 0.25rem;
    }

    .donate-section {
        padding: 0.5rem;
    }

    .donate-section p {
        font-size: 0.9rem;
    }

    .bio-section h2,
    .donate-section h3 {
        font-size: 2rem; /* Reduce heading sizes for mobile */
    }

    .donation-proof {
        font-size: 1.2rem; /* Make donation proof text smaller on mobile */
        margin: 1rem 0;
    }

    .sos-icon {
        width: 50px;
    }
    .sos-icon.top-right { top: -20px; right: -15px; }
    .sos-icon.top-left { top: -15px; left: -20px; }
    .sos-icon.bottom-right { bottom: -15px; right: -10px; }
    .sos-icon.bottom-left { bottom: -20px; left: -15px; }

    .big-sumo-pic {
        width: 200px; /* Make it smaller on mobile */
    }
}
