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

@font-face {
    font-family: 'Comic Sans MS';
    src: local('Comic Sans MS');
}

@import url('https://fonts.googleapis.com/css2?family=Paprika&family=VT323&display=swap');

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: #000000;
    color: #ccc;
    overflow-x: hidden;
    position: relative;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%2300ff00" opacity="0.6"/></svg>'), auto;
}

a, button, .nav-button {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><text y="20" font-size="20">☠️</text></svg>'), pointer;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.06) 0px,
            rgba(0, 0, 0, 0.06) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 2px
        ),
        radial-gradient(circle at 20% 50%, rgba(0, 255, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 204, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

@keyframes matrixRain {
    0% { transform: translateY(-20vh); opacity: 0; }
    2% { opacity: 1; }
    98% { opacity: 1; }
    100% { transform: translateY(120vh); opacity: 0; }
}

.matrix-code {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: rgba(0, 255, 0, 0.4);
    line-height: 1.4;
    white-space: pre;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8), 0 0 16px rgba(0, 255, 0, 0.6), 0 0 24px rgba(0, 255, 0, 0.4);
    letter-spacing: 2px;
}

.matrix-column {
    position: absolute;
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.9), 0 0 16px rgba(0, 255, 0, 0.7), 0 0 24px rgba(0, 255, 0, 0.5);
    line-height: 1.4;
    white-space: pre;
    animation: matrixRain linear infinite;
    letter-spacing: 1px;
}


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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes tilt {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes wiggle {
    0%, 100% { transform: skewX(0deg); }
    25% { transform: skewX(2deg); }
    75% { transform: skewX(-2deg); }
}

@keyframes glitch {
    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); }
}

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

.floating-badge {
    position: fixed;
    animation: float 3s ease-in-out infinite;
    z-index: 999;
    opacity: 0.9;
    width: 80px;
    height: auto;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    filter: blur(0.5px) contrast(1.1);
    image-rendering: pixelated;
}

.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.096) 0px,
            rgba(0, 0, 0, 0.096) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.072) 0px,
            rgba(0, 0, 0, 0.072) 2px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    z-index: 999;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-family: 'Paprika', cursive;
    font-size: 4.5rem;
    color: #00ff00;
    text-shadow:
        3px 3px 0 #000,
        6px 6px 0 #001a00,
        9px 9px 0 #003300,
        12px 12px 20px rgba(0, 255, 0, 0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

h1:hover {
    animation: glitch 0.3s infinite;
    text-shadow:
        3px 3px 0 #00ff00,
        6px 6px 0 #00ccff,
        9px 9px 0 #00ff00,
        12px 12px 30px rgba(0, 255, 0, 0.8);
}

.blink {
}

.sparkle {
    display: inline-block;
    font-size: 1.2em;
}

.subtitle {
    font-size: 1.3rem;
    color: #00ccff;
    text-shadow: 2px 2px 4px rgba(0, 204, 255, 0.7);
}

.marquee {
    background: #0a0a0a;
    border: 3px solid #00ff00;
    padding: 15px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.marquee-text {
    color: #00ff00;
    font-size: 1.3rem;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    animation: marqueeScroll 15s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 12px 24px;
    font-family: 'Comic Sans MS', cursive;
    font-size: 1rem;
    font-weight: bold;
    border: 4px solid;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.nav-button:nth-child(1) {
    background: #1a1a1a;
    color: #00ff00;
    border-color: #00ff00;
}

.nav-button:nth-child(2) {
    background: #000;
    color: #00ccff;
    border-color: #00ccff;
}

.nav-button:nth-child(3) {
    background: #1a1a1a;
    color: #00ff00;
    border-color: #00ff00;
}

.nav-button:nth-child(4) {
    background: #000;
    color: #00ccff;
    border-color: #00ccff;
}

.nav-button:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 20px currentColor;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.box {
    background: #0a0a0a;
    border: 5px solid;
    padding: 20px;
    box-shadow: 8px 8px 0 rgba(0, 255, 0, 0.2), 16px 16px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #00ff00, #00ccff, #00ff00);
}

.box:nth-child(1) {
    border-color: #00ff00;
}

.box:nth-child(2) {
    border-color: #00ccff;
}

.box:nth-child(3) {
    border-color: #00ff00;
}

.box:nth-child(4) {
    border-color: #00ccff;
}

.box:hover {
    box-shadow: 0 0 30px currentColor, 16px 16px 30px rgba(0, 0, 0, 0.2);
}

.box h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.box:nth-child(1) h2 {
    color: #00ff00;
}

.box:nth-child(2) h2 {
    color: #00ccff;
}

.box:nth-child(3) h2 {
    color: #00ff00;
}

.box:nth-child(4) h2 {
    color: #00ccff;
}

.box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 8px 15px;
    background: linear-gradient(135deg, #000, #1a1a1a);
    color: #00ff00;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 255, 0, 0.3);
    border: 1px solid #00ff00;
    animation: bounce 2s ease-in-out infinite;
}

.badge:nth-of-type(2) { animation-delay: 0.1s; }
.badge:nth-of-type(3) { animation-delay: 0.2s; }

.visitor-counter {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: rgba(10, 10, 10, 0.9);
    border: 4px dashed #00ff00;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.visitor-counter h3 {
    color: #00ff00;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.counter-display {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    color: #00ff00;
    text-shadow: 2px 2px 4px rgba(0, 255, 0, 0.5);
    letter-spacing: 3px;
    animation: blink 1s steps(1) infinite;
}

.powered-by {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #00ff00;
}

.powered-by a {
    color: #00ccff;
    text-decoration: underline;
    font-weight: bold;
}

.under-construction {
    display: inline-block;
    margin: 10px 0;
}

.animated-gif {
    display: inline-block;
    margin: 10px 5px;
    width: 88px;
    height: 31px;
    background: linear-gradient(45deg, #000, #1a1a1a);
    border: 2px solid #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff00;
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    animation: spin 3s linear infinite;
}

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 5px dashed #00ff00;
    margin-top: 40px;
    background: rgba(10, 10, 10, 0.5);
}

footer p {
    color: #00ff00;
    font-size: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 255, 0, 0.5);
}

.rainbow-text {
    background: linear-gradient(90deg, #00ff00, #00ccff, #00ff00, #00ccff, #00ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #000, #1a1a1a);
    border: 3px solid #00ff00;
    padding: 12px 20px;
    color: #00ff00;
    font-family: 'Comic Sans MS', cursive;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.audio-control:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
}

.hack-progress-container {
    border: 2px solid #00ff00;
    background: #000;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.hack-progress-bar-bg {
    background: #001a00;
    height: 30px;
    border: 1px solid #00ff00;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.hack-progress-bar {
    background: linear-gradient(90deg, #00ff00, #00cc00);
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.trail-particle {
    position: fixed;
    pointer-events: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: trailFade 0.8s ease-out forwards;
    z-index: 9999;
}

@keyframes trailFade {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.trail-text {
    position: fixed;
    pointer-events: none;
    font-family: 'VT323', monospace;
    font-size: 14px;
    font-weight: bold;
    animation: trailTextFade 1s ease-out forwards;
    z-index: 9999;
    text-shadow: 0 0 5px currentColor;
}

@keyframes trailTextFade {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) scale(0.5);
        opacity: 0;
    }
}

/* Secret Portal */
.secret-portal {
    position: fixed;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.8), rgba(0, 204, 255, 0.4), transparent);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.8), inset 0 0 50px rgba(0, 255, 0, 0.5);
}

.secret-portal.active {
    width: 300px;
    height: 300px;
    opacity: 1;
    animation: portalSpin 3s linear infinite;
}

@keyframes portalSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Secret Message Overlay */
.secret-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.95);
    border: 5px solid #00ff00;
    padding: 40px;
    z-index: 10001;
    max-width: 600px;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.8), inset 0 0 30px rgba(0, 255, 0, 0.2);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.secret-message.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.secret-message h2 {
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    animation: blink 1s steps(1) infinite;
}

.secret-message p {
    color: #00ccff;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
}

.secret-message button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 30px;
    background: #00ff00;
    color: #000;
    border: none;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transition: all 0.3s ease;
}

.secret-message button:hover {
    background: #00ccff;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.8);
}

/* Clickable Secret Dots */
.secret-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: secretPulse 2s ease-in-out infinite;
}

.secret-dot:hover {
    background: rgba(0, 255, 0, 1);
    width: 16px;
    height: 16px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 1);
}

@keyframes secretPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

/* Matrix Glitch Effect */
.matrix-glitch {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.1) 0px,
        transparent 2px,
        transparent 4px,
        rgba(0, 255, 0, 0.1) 6px
    );
    animation: glitchSlide 0.1s infinite;
}

.matrix-glitch.active {
    opacity: 1;
}

@keyframes glitchSlide {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Secret Achievement Notification */
.achievement {
    position: fixed;
    top: -100px;
    right: 20px;
    background: linear-gradient(135deg, #000, #1a1a1a);
    border: 3px solid #00ff00;
    padding: 20px;
    z-index: 10002;
    min-width: 300px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.achievement.show {
    top: 20px;
}

.achievement h3 {
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.achievement p {
    color: #00ccff;
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

/* Hidden Image Overlay */
.hidden-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hidden-image-overlay.show {
    display: flex;
    opacity: 1;
}

.hidden-image-content {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid #00ff00;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.8);
    animation: float 3s ease-in-out infinite;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.loading-bar-container {
    width: 400px;
    height: 30px;
    border: 2px solid #00ff00;
    background: #000;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    transition: width 0.3s linear;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

/* Secret Counter */
.secret-counter {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 10px 15px;
    z-index: 1000;
    font-family: 'VT323', monospace;
    color: #00ff00;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.secret-counter:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .content {
        grid-template-columns: 1fr;
    }

    .subtitle {
        font-size: 1rem;
    }

    nav {
        gap: 10px;
    }

    .nav-button {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}
