::-webkit-scrollbar {
    width: 8px;
    background-color: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(180deg, #0f3460 0%, #16213e 100%);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #16213e 0%, #0f3460 100%);
}

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

body {
    background: #000000;
    background-attachment: fixed;
    color: #eaeaea;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.flex-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #0f3460 0%, #16213e 100%);
    width: 100%;
    padding: 15px 30px;
    justify-content: space-between;
    min-height: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.flex-navigation > div > a,
.flex-navigation > div > i {
    font-size: 24px;
    margin: 0 15px;
    text-decoration: none;
    color: #00d4ff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.flex-navigation > div > a:hover {
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

#searchForm {
    margin: 10px;
}

#searchInput {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px 0 0 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchSubmit {
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    border: none;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

#searchSubmit:hover {
    background: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 900;
    color: #00d4ff;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.4);
    margin-bottom: 20px;
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 
            0 0 10px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(0, 212, 255, 0.6);
    }
    20% {
        text-shadow: 
            -2px 0 10px rgba(255, 0, 0, 0.8),
            2px 0 10px rgba(0, 255, 0, 0.8);
    }
    40% {
        text-shadow: 
            0 0 10px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(0, 212, 255, 0.6);
    }
    60% {
        text-shadow: 
            2px 0 10px rgba(0, 0, 255, 0.8),
            -2px 0 10px rgba(255, 255, 0, 0.8);
    }
    100% {
        text-shadow: 
            0 0 10px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(0, 212, 255, 0.6);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.scroll-indicator {
    font-size: 2rem;
    color: #00d4ff;
    animation: bounce 2s infinite;
}

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

.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #00d4ff;
    letter-spacing: 4px;
    font-weight: 700;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    margin: 20px auto;
}

.searchLinks {
    padding: 40px 20px;
    min-height: 50vh;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.searchLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    color: #00d4ff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    opacity: 0;
    transform: translateY(50px);
}

.searchLink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.searchLink:hover::before {
    opacity: 1;
}

.searchLink:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #00d4ff;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    color: #00ffff;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.searchLink:hover .game-icon {
    transform: rotateY(360deg);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.searchLink span {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.game-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 212, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.5);
}

.footer {
    background: linear-gradient(90deg, #0f3460 0%, #16213e 100%);
    padding: 30px 20px;
    margin-top: 80px;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footerLinks {
    color: #00d4ff;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.footerLinks:hover {
    color: #00ffff;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .searchLink {
        height: 200px;
    }
    
    #searchInput {
        width: 150px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .flex-navigation {
        padding: 10px 15px;
    }
    
    .flex-navigation > div > a {
        font-size: 18px;
    }
}

/* Scroll Animation Classes */
.searchLink.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.searchLink:nth-child(1).animate-in { animation-delay: 0.1s; }
.searchLink:nth-child(2).animate-in { animation-delay: 0.2s; }
.searchLink:nth-child(3).animate-in { animation-delay: 0.3s; }
.searchLink:nth-child(4).animate-in { animation-delay: 0.4s; }
.searchLink:nth-child(5).animate-in { animation-delay: 0.5s; }
.searchLink:nth-child(6).animate-in { animation-delay: 0.6s; }
.searchLink:nth-child(7).animate-in { animation-delay: 0.7s; }
.searchLink:nth-child(8).animate-in { animation-delay: 0.8s; }
