* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #0a1628 0%, #1a2f4a 50%, #0a1628 100%);
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Efeito de partículas/circuitos de fundo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 204, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 51, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

nav {
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 204, 255, 0.2);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8em;
    background: linear-gradient(135deg, #66ccff 0%, #ff3399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 700;
}

.logo-icon {
    font-size: 2em;
    filter: drop-shadow(0 0 10px rgba(102, 204, 255, 0.5));
}

.tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid rgba(102, 204, 255, 0.3);
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #66ccff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.tab-icon {
    width: 24px;
    height: 24px;
    display: inline;
    object-fit: contain;
}

.tab-text {
    display: inline;
}

.tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 204, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.tab:hover::before {
    width: 300px;
    height: 300px;
}

.tab:hover {
    border-color: #66ccff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 204, 255, 0.3);
}

.tab.active {
    background: linear-gradient(135deg, #66ccff 0%, #ff3399 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 25px rgba(102, 204, 255, 0.5);
}

.content {
    display: none;
}

.content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.game-card {
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 204, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 204, 255, 0.1), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 204, 255, 0.3);
    border-color: #66ccff;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.game-info {
    padding: 25px;
}

.game-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #66ccff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(102, 204, 255, 0.5);
}

.game-author {
    color: #ff3399;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 51, 153, 0.5);
}

.game-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-play {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff3399 0%, #ff6bc4 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 51, 153, 0.3);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 51, 153, 0.5);
}

.btn-github {
    padding: 12px 20px;
    background: linear-gradient(135deg, #66ccff 0%, #3d8fb8 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(102, 204, 255, 0.3);
}

.btn-github:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 204, 255, 0.5);
}

.github-icon {
    width: 24px;
    height: 24px;
}

/* Efeito de grade tecnológica */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 204, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 204, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .logo h1 {
        font-size: 1.5em;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        width: 100%;
        justify-content: center;
    }

    .tab {
        flex: 1;
        min-width: 60px;
        padding: 12px 20px;
    }

    .tab-icon {
        display: inline;
    }

    .tab-text {
        display: none;
    }
}
