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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #16213e 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    min-height: 100vh;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding: 40px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.tagline {
    font-size: 18px;
    color: #a0a0c0;
}

main {
    padding: 60px 0;
}

section {
    margin-bottom: 80px;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.intro {
    text-align: center;
    margin-bottom: 60px;
}

.intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #b0b0d0;
    max-width: 700px;
    margin: 0 auto;
}

.games-grid {
    margin-bottom: 80px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: rgba(30, 30, 60, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.game-card.coming-soon:hover {
    transform: none;
}

.game-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.pacman-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    gap: 20px;
    width: 100%;
    height: 100%;
    animation: float 3s ease-in-out infinite;
}

.pacman-icon {
    font-size: 80px;
    animation: bounce 0.5s ease-in-out infinite;
}

.pacman-preview .ghost {
    animation: drift 4s ease-in-out infinite;
}

.pacman-preview .ghost:nth-child(2) {
    animation-delay: 0.3s;
}

.pacman-preview .ghost:nth-child(3) {
    animation-delay: 0.6s;
}

.pacman-preview .ghost:nth-child(4) {
    animation-delay: 0.9s;
}

.flappy-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    height: 100%;
    font-size: 56px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.flappy-bird {
    font-size: 70px;
    animation: flap 0.6s ease-in-out infinite;
}

.flappy-pipe {
    font-size: 60px;
    color: #39d353;
    animation: pipeSlide 2.5s linear infinite;
}

.flappy-pipe:nth-child(3) {
    animation-delay: 0.8s;
}

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

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

@keyframes pipeSlide {
    0% { transform: translateX(30px); opacity: 0.6; }
    50% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-30px); opacity: 0.6; }
}

@keyframes drift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(-10px) translateY(0); }
    75% { transform: translateX(5px) translateY(5px); }
}

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

.placeholder {
    font-size: 80px;
    color: rgba(102, 126, 234, 0.3);
    font-weight: bold;
}

.game-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffffff;
}

.game-card p {
    font-size: 16px;
    color: #b0b0d0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.features {
    list-style: none;
    margin: 20px 0;
    flex-grow: 1;
}

.features li {
    padding: 8px 0;
    color: #a0a0c0;
    font-size: 14px;
}

.features li::before {
    content: '▸ ';
    color: #667eea;
    margin-right: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.btn-disabled {
    background: rgba(102, 126, 234, 0.2);
    color: #808080;
    cursor: not-allowed;
}

.coming-text {
    color: #808080;
    font-style: italic;
    font-size: 14px;
}

.about {
    background: rgba(30, 30, 60, 0.4);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 60px;
}

.about h3 {
    font-size: 20px;
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.about h3:first-of-type {
    margin-top: 0;
}

.about p {
    font-size: 16px;
    line-height: 1.8;
    color: #b0b0d0;
    margin-bottom: 20px;
}

.tech-stack,
.integration-list {
    list-style: none;
    margin-left: 0;
}

.tech-stack li,
.integration-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #a0a0c0;
    font-size: 15px;
    line-height: 1.6;
}

.tech-stack li::before,
.integration-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

footer {
    background: rgba(10, 10, 26, 0.9);
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    padding: 30px 0;
    text-align: center;
    color: #808080;
    margin-top: 60px;
}

footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #764ba2;
}

@media (max-width: 768px) {
    .logo {
        font-size: 24px;
    }

    .tagline {
        font-size: 14px;
    }

    h2 {
        font-size: 28px;
    }

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

    .pacman-preview {
        gap: 10px;
    }

    .pacman-icon {
        font-size: 50px;
    }

    .pacman-preview .ghost {
        font-size: 40px;
    }
}

/* Tetris Preview Animation */
.tetris-preview {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: tetrisFloat 3s ease-in-out infinite;
}

.tetris-block {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: tetrisRotate 4s ease-in-out infinite;
}

.tetris-block:nth-child(1) {
    animation-delay: 0s;
}

.tetris-block:nth-child(2) {
    animation-delay: 0.5s;
}

.tetris-block:nth-child(3) {
    animation-delay: 1s;
}

.tetris-block:nth-child(4) {
    animation-delay: 1.5s;
}

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

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

/* Tower Wars Preview */
.tower-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    animation: float 3s ease-in-out infinite;
}

.tower-icon {
    font-size: 64px;
    animation: towerPulse 2.5s ease-in-out infinite;
}

.tower-enemy {
    font-size: 46px;
    animation: enemyMarch 2s linear infinite;
}

.tower-arrow {
    font-size: 30px;
    color: #fbbf24;
    animation: arrowFly 1.6s ease-in-out infinite;
}

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

@keyframes enemyMarch {
    0% {
        transform: translateX(10px);
        opacity: 0.6;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-10px);
        opacity: 0.6;
    }
}

@keyframes arrowFly {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

