/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

/* Main Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Title Section */
.title-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* Retro Computer */
.retro-computer {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.screen {
    width: 320px;
    height: 200px;
    background: #000;
    border: 8px solid #333;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.1) 2px,
        rgba(0, 255, 0, 0.1) 4px
    );
    animation: scan 0.1s linear infinite;
}

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

.glitch-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.25rem;
    color: #00ff00;
    text-shadow: 
        2px 0 #ff0000,
        -2px 0 #0000ff;
    animation: glitch 2s infinite;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes glitch {
    0%, 100% { transform: translate(-50%, -50%); }
    20% { transform: translate(-52%, -50%); }
    40% { transform: translate(-48%, -50%); }
    60% { transform: translate(-50%, -52%); }
    80% { transform: translate(-50%, -48%); }
}

.subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: #00ff00;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: blink 1s infinite;
}

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

.keyboard {
    width: 250px;
    height: 20px;
    background: #333;
    margin: 10px auto 0;
    border-radius: 5px;
    position: relative;
}

.keyboard::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 10px;
    width: 230px;
    height: 16px;
    background: #555;
    border-radius: 3px;
}

/* Cute Robot */
.cute-robot {
    position: relative;
    animation: bounce 2s ease-in-out infinite;
}

.robot-face {
    width: 120px;
    height: 120px;
    background: #4a90e2;
    border-radius: 50%;
    position: relative;
    border: 4px solid #2c5aa0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.eyes {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.eye {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    animation: blink-eyes 3s infinite;
}

.eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    animation: look-around 4s infinite;
}

@keyframes blink-eyes {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

@keyframes look-around {
    0%, 25% { transform: translate(0, 0); }
    25%, 50% { transform: translate(2px, 0); }
    50%, 75% { transform: translate(-2px, 0); }
    75%, 100% { transform: translate(0, 0); }
}

.mouth {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    border: 3px solid #fff;
    border-top: none;
    border-radius: 0 0 30px 30px;
    animation: smile 2s ease-in-out infinite;
}

@keyframes smile {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.robot-body {
    width: 80px;
    height: 60px;
    background: #4a90e2;
    margin: 10px auto 0;
    border-radius: 10px;
    position: relative;
    border: 3px solid #2c5aa0;
}

.antenna {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #2c5aa0;
}

.antenna::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.chest-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 20px;
    background: #2c5aa0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chest-panel::before {
    content: '🤖';
    font-size: 12px;
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Game Section */
.game-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.game-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.progress-bar {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    height: 30px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
}

.progress-fill {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    height: 100%;
    width: 0%;
    border-radius: 25px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 1;
}

.achievement {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    display: none;
    animation: slideIn 0.5s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.achievement.show {
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-icon {
    font-size: 2rem;
    animation: rotate 2s linear infinite;
}

.achievement-text {
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

/* Navigation Grid */
.navigation-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

/* Search Container */
.search-container {
    margin: 20px 0;
}

.search-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #666;
    font-style: italic;
}

.search-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    border-radius: 25px;
    padding: 15px 20px;
    color: white;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.search-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.search-btn:nth-child(2) {
    background: linear-gradient(45deg, #4285f4, #34a853);
}

.search-btn:nth-child(3) {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.search-btn:nth-child(4) {
    background: linear-gradient(45deg, #0078d4, #106ebe);
}

.nav-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.nav-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-category h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 15px 20px;
    color: white;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.nav-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.nav-btn.primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.nav-btn.search {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.nav-btn.social {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    color: #333;
}

.nav-btn.community {
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    color: #333;
}

.nav-btn.popular {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.nav-btn.private {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: #ecf0f1;
    border: 2px solid #3498db;
}

.nav-btn.private:hover {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Hidden Section Animation */
.hidden-section {
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-icon {
    font-size: 1.2rem;
    animation: wiggle 2s ease-in-out infinite;
}

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

/* Easter Eggs */
.easter-eggs {
    margin: 40px 0;
}

.konami-code {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    margin: 20px 0;
    border: 2px solid #00ff00;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #00ff00; }
    to { box-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

.hidden-message {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-weight: bold;
    margin: 20px 0;
    display: none;
    animation: bounceIn 0.6s ease;
}

.hidden-message.show {
    display: block;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Fun Facts */
.fun-facts {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 40px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.fun-facts h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.fact {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .search-btn {
        min-width: auto;
    }
    
    .glitch-text {
        font-size: 2rem;
    }
    
    .nav-title {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.6rem;
    }
    
    .nav-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}