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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow-x: hidden;
    cursor: none;
    position: relative;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glitch overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    animation: glitchScan 0.5s linear infinite;
    z-index: 1000;
}

@keyframes glitchScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.logo {
    font-size: 120px;
    font-weight: bold;
    color: #fff;
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #00ffff,
        0 0 30px #ffff00,
        0 0 40px #ff00ff,
        5px 5px 0 #ff0000,
        -5px -5px 0 #00ff00;
    letter-spacing: 10px;
    position: relative;
    display: inline-block;
    animation: logoGlitch 1s infinite;
}

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

.logo.glitch::before,
.logo.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitchAnim 5s infinite linear alternate-reverse;
}

.logo.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitchAnim 3s infinite linear alternate-reverse;
}

@keyframes glitchAnim {
    0% { clip: rect(10px, 9999px, 94px, 0); }
    25% { clip: rect(70px, 9999px, 33px, 0); }
    50% { clip: rect(40px, 9999px, 72px, 0); }
    75% { clip: rect(85px, 9999px, 15px, 0); }
    100% { clip: rect(25px, 9999px, 60px, 0); }
}

.tagline {
    font-size: 24px;
    color: #fff;
    margin-top: 20px;
    animation: colorChange 2s infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes colorChange {
    0% { color: #ff00ff; }
    25% { color: #00ffff; }
    50% { color: #ffff00; }
    75% { color: #00ff00; }
    100% { color: #ff00ff; }
}

/* Floating shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: shapeFloat 10s infinite ease-in-out;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: #ff00ff;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: #00ffff;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #ffff00;
    top: 40%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: #00ff00;
    top: 80%;
    left: 60%;
    animation-delay: 1s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: #ff0000;
    top: 20%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(50px, -50px) rotate(90deg) scale(1.2); }
    50% { transform: translate(-50px, 50px) rotate(180deg) scale(0.8); }
    75% { transform: translate(30px, 30px) rotate(270deg) scale(1.1); }
}

/* Content box */
.content-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3);
    border: 3px solid #fff;
    animation: boxPulse 2s infinite;
    text-align: center;
}

@keyframes boxPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(0, 255, 255, 0.6);
        transform: scale(1.02);
    }
}

#main-heading {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

#main-text {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* Button grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 20px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: none;
    transition: all 0.3s ease;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: buttonFloat 3s infinite ease-in-out;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.btn:active {
    transform: scale(0.95);
}

@keyframes buttonFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.btn-1 { 
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    animation-delay: 0s;
}
.btn-2 { 
    background: linear-gradient(135deg, #00ff80, #0080ff);
    animation-delay: 0.3s;
}
.btn-3 { 
    background: linear-gradient(135deg, #ff00ff, #8000ff);
    animation-delay: 0.6s;
}
.btn-4 { 
    background: linear-gradient(135deg, #ffff00, #ff0000);
    animation-delay: 0.9s;
}
.btn-5 { 
    background: linear-gradient(135deg, #00ffff, #0000ff);
    animation-delay: 1.2s;
}
.btn-6 { 
    background: linear-gradient(135deg, #ff0000, #ff00ff);
    animation-delay: 1.5s;
}
.btn-7 { 
    background: linear-gradient(135deg, #00ff00, #ffff00);
    animation-delay: 1.8s;
}
.btn-8 { 
    background: linear-gradient(135deg, #8000ff, #ff0080);
    animation-delay: 2.1s;
}
.btn-9 { 
    background: linear-gradient(135deg, #ff8c00, #00ffff);
    animation-delay: 2.4s;
}

/* Counter */
.counter-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    color: #fff;
}

.counter-container p {
    font-size: 20px;
    margin: 10px 0;
}

#click-count {
    font-size: 32px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

#status-message {
    color: #ff00ff;
    font-weight: bold;
    min-height: 30px;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup.active {
    display: flex;
    animation: popupGlitch 0.3s;
}

@keyframes popupGlitch {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.5; transform: translate(2px, 2px); }
    50% { opacity: 1; transform: translate(-2px, -2px); }
    75% { opacity: 0.7; transform: translate(2px, -2px); }
}

.popup-content {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.8);
    animation: contentShake 0.5s infinite;
}

@keyframes contentShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2px, 2px) rotate(1deg); }
    50% { transform: translate(-2px, 2px) rotate(-1deg); }
    75% { transform: translate(2px, -2px) rotate(1deg); }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: none;
    transition: all 0.3s;
}

.popup-close:hover {
    transform: rotate(90deg) scale(1.5);
    color: #ff0000;
}

#popup-text {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* Cursor follower */
.cursor-follower {
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
    animation: cursorPulse 1s infinite;
}

@keyframes cursorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 60px;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        font-size: 16px;
    }
    
    #main-heading {
        font-size: 28px;
    }
}

/* Special crazy effects */
.crazy-spin {
    animation: crazySpin 2s linear infinite !important;
}

@keyframes crazySpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.5); }
    100% { transform: rotate(360deg) scale(1); }
}

.rainbow-text {
    animation: rainbowText 1s linear infinite !important;
}

@keyframes rainbowText {
    0% { color: #ff0000; }
    17% { color: #ff8000; }
    34% { color: #ffff00; }
    51% { color: #00ff00; }
    68% { color: #0000ff; }
    85% { color: #8000ff; }
    100% { color: #ff0000; }
}

.shake {
    animation: shake 0.5s infinite !important;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-10px, -10px); }
    20% { transform: translate(10px, 10px); }
    30% { transform: translate(-10px, 10px); }
    40% { transform: translate(10px, -10px); }
    50% { transform: translate(-10px, -10px); }
    60% { transform: translate(10px, 10px); }
    70% { transform: translate(-10px, 10px); }
    80% { transform: translate(10px, -10px); }
    90% { transform: translate(-10px, -10px); }
}
