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

body {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    background: #0d0d1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 157, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 157, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridShift 20s linear infinite;
    z-index: 0;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Glow behind content */
body::after {
    content: '';
    position: fixed;
    top: 40%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(107, 157, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   CSS PARTICLES — floating dots, no JS needed
   ============================================ */
.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(150, 180, 255, 0.4);
    box-shadow: 0 0 6px rgba(107, 157, 255, 0.3);
}

.p1  { width: 4px; height: 4px; top: 8%;  left: 12%; animation: drift1 18s ease-in-out infinite; }
.p2  { width: 3px; height: 3px; top: 15%; left: 85%; animation: drift2 22s ease-in-out infinite; }
.p3  { width: 5px; height: 5px; top: 25%; left: 42%; animation: drift3 15s ease-in-out infinite; }
.p4  { width: 3px; height: 3px; top: 70%; left: 20%; animation: drift4 20s ease-in-out infinite; }
.p5  { width: 4px; height: 4px; top: 80%; left: 75%; animation: drift1 25s ease-in-out infinite reverse; }
.p6  { width: 6px; height: 6px; top: 45%; left: 90%; animation: drift2 17s ease-in-out infinite; }
.p7  { width: 3px; height: 3px; top: 55%; left: 5%;  animation: drift3 23s ease-in-out infinite; }
.p8  { width: 5px; height: 5px; top: 35%; left: 65%; animation: drift4 19s ease-in-out infinite; }
.p9  { width: 4px; height: 4px; top: 90%; left: 50%; animation: drift1 16s ease-in-out infinite; }
.p10 { width: 3px; height: 3px; top: 5%;  left: 55%; animation: drift2 21s ease-in-out infinite reverse; }
.p11 { width: 5px; height: 5px; top: 60%; left: 35%; animation: drift3 24s ease-in-out infinite; }
.p12 { width: 4px; height: 4px; top: 20%; left: 8%;  animation: drift4 18s ease-in-out infinite reverse; }
.p13 { width: 3px; height: 3px; top: 75%; left: 92%; animation: drift1 22s ease-in-out infinite; }
.p14 { width: 6px; height: 6px; top: 40%; left: 18%; animation: drift2 16s ease-in-out infinite; }
.p15 { width: 4px; height: 4px; top: 85%; left: 38%; animation: drift3 20s ease-in-out infinite reverse; }
.p16 { width: 3px; height: 3px; top: 12%; left: 72%; animation: drift4 25s ease-in-out infinite; }
.p17 { width: 5px; height: 5px; top: 50%; left: 58%; animation: drift1 19s ease-in-out infinite; }
.p18 { width: 4px; height: 4px; top: 30%; left: 28%; animation: drift2 23s ease-in-out infinite reverse; }
.p19 { width: 3px; height: 3px; top: 65%; left: 82%; animation: drift3 17s ease-in-out infinite; }
.p20 { width: 5px; height: 5px; top: 95%; left: 15%; animation: drift4 21s ease-in-out infinite; }
.p21 { width: 4px; height: 4px; top: 18%; left: 48%; animation: drift1 20s ease-in-out infinite reverse; }
.p22 { width: 3px; height: 3px; top: 42%; left: 3%;  animation: drift2 18s ease-in-out infinite; }
.p23 { width: 6px; height: 6px; top: 72%; left: 62%; animation: drift3 22s ease-in-out infinite reverse; }
.p24 { width: 4px; height: 4px; top: 88%; left: 88%; animation: drift4 16s ease-in-out infinite; }
.p25 { width: 3px; height: 3px; top: 3%;  left: 33%; animation: drift1 24s ease-in-out infinite; }

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25% { transform: translate(30px, -40px); opacity: 0.7; }
    50% { transform: translate(-20px, 20px); opacity: 0.4; }
    75% { transform: translate(15px, -10px); opacity: 0.8; }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    25% { transform: translate(-25px, 30px); opacity: 0.3; }
    50% { transform: translate(35px, -15px); opacity: 0.7; }
    75% { transform: translate(-10px, 25px); opacity: 0.4; }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    25% { transform: translate(20px, 35px); opacity: 0.8; }
    50% { transform: translate(-30px, -20px); opacity: 0.3; }
    75% { transform: translate(25px, 15px); opacity: 0.6; }
}

@keyframes drift4 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    25% { transform: translate(-35px, -25px); opacity: 0.4; }
    50% { transform: translate(15px, 30px); opacity: 0.8; }
    75% { transform: translate(-20px, -35px); opacity: 0.3; }
}

/* CRT Scanlines */
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 999;
}

.scanlines::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Container */
.container {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Mascot */
.mascot {
    width: 220px;
    margin: 0 auto 1.5rem;
    animation: mascotFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(107, 157, 255, 0.2));
    cursor: pointer;
    transition: filter 0.3s, transform 0.3s;
}

.mascot:hover {
    filter: drop-shadow(0 10px 40px rgba(255, 107, 157, 0.5))
           drop-shadow(0 0 20px rgba(107, 157, 255, 0.3));
    transform: scale(1.08) rotate(3deg);
}

.mascot:active {
    transform: scale(0.95) rotate(-5deg);
    transition: transform 0.1s;
}

.mascot img {
    width: 100%;
    height: auto;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(-4px) rotate(-1deg); }
}

/* Title with glitch/shimmer */
h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #6b9dff 50%, #ff6b9d 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    position: relative;
    cursor: default;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

h1.glitch:hover {
    animation: shimmer 4s linear infinite, glitchShake 0.3s ease infinite;
}

@keyframes glitchShake {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 2px); }
    100% { transform: translate(0); }
}

.tagline {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* Terminal */
.terminal {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(107, 157, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.8;
    max-width: 440px;
    width: 100%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
    margin-left: auto;
    font-size: 0.65rem;
    color: #444;
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 0.8rem 1.2rem 1rem;
    position: relative;
    z-index: 2;
}

.prompt { color: #ff6b9d; }
.cmd { color: #6b9dff; }
.output { color: #888; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #ff6b9d;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Links */
.links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.links a {
    color: #555;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
}

.links a:hover {
    color: #ff6b9d;
    border-bottom-color: rgba(255, 107, 157, 0.3);
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.3);
}

/* Mail envelope in pig's hand */
.mail-envelope {
    position: absolute;
    bottom: 12%;
    right: -5%;
    width: 52px;
    height: 36px;
    transform: rotate(-12deg);
    animation: envelopeFloat 5s ease-in-out infinite;
    z-index: 3;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: #f4f0e8;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(180, 170, 150, 0.4);
}

.envelope-flap {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 55%;
    background: #ece8df;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-bottom: 1px solid rgba(180, 170, 150, 0.3);
}

.envelope-line {
    position: absolute;
    bottom: 8px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: rgba(150, 140, 130, 0.25);
    border-radius: 1px;
}

.envelope-line.short {
    bottom: 14px;
    width: 45%;
}

@keyframes envelopeFloat {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    25% { transform: rotate(-10deg) translateY(-3px); }
    75% { transform: rotate(-13deg) translateY(-1px); }
}

/* Mascot speech bubble */
.mascot-bubble {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: #e0e0e0;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
}

.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.75);
}

.mascot-bubble.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Mascot click animations */
@keyframes mascotSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-10px); }
}

@keyframes mascotShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px) rotate(-5deg); }
    30% { transform: translateX(8px) rotate(5deg); }
    45% { transform: translateX(-6px) rotate(-3deg); }
    60% { transform: translateX(6px) rotate(3deg); }
    75% { transform: translateX(-3px); }
}

@keyframes mascotRainbow {
    0% { filter: hue-rotate(0deg) drop-shadow(0 0 15px rgba(255,0,0,0.5)); }
    25% { filter: hue-rotate(90deg) drop-shadow(0 0 15px rgba(0,255,0,0.5)); }
    50% { filter: hue-rotate(180deg) drop-shadow(0 0 15px rgba(0,0,255,0.5)); }
    75% { filter: hue-rotate(270deg) drop-shadow(0 0 15px rgba(255,0,255,0.5)); }
    100% { filter: hue-rotate(360deg) drop-shadow(0 0 15px rgba(255,0,0,0.5)); }
}

@keyframes mascotYeet {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(0.3) rotate(180deg) translateY(30px); }
    60% { transform: scale(1.2) rotate(360deg) translateY(-10px); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .mascot { width: 160px; }
    .terminal { font-size: 0.7rem; }
}
