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

:root {
    --primary-blue: #44aaff;
    --primary-purple: #ff44aa;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #1a1a3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated background stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.3;
    z-index: -1;
    animation: twinkle 20s ease-in-out infinite;
}

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

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

/* Header */
header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
}

.logo {
    width: 337px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(68, 170, 255, 0.6));
}

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

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.tagline {
    font-size: 0.975rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0;
}

/* Main Content */
main {
    padding: 30px 20px 80px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Games Showcase - Two Panel Layout */
.games-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 50px;
    align-items: stretch;
}

/* Game Cards */
.game-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(68, 170, 255, 0.3);
    border-color: rgba(68, 170, 255, 0.5);
}

.game-card.featured {
    grid-column: span 1;
}

.game-thumbnail {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #1a1a3a, #2a2a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-thumbnail .game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(68, 170, 255, 0.1), rgba(255, 68, 170, 0.1));
}

.game-icon {
    font-size: 3.75rem;
    animation: pulse 2s ease-in-out infinite;
}

.game-icon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 162px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(68, 170, 255, 0.5));
    transform: translateY(25px);
}

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

.stars {
    position: absolute;
    font-size: 1.875rem;
    top: 12px;
    right: 12px;
    animation: rotate 10s linear infinite;
}

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

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Composite Scene - Alien Siege Card */
.composite-scene {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 120%, rgba(30, 60, 120, 0.6) 0%, transparent 60%),
                linear-gradient(180deg, #050515 0%, #0a1030 50%, #1a1040 100%);
}

.composite-scene .scene-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 45% 15%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 70% 35%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 85% 10%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 60% 60%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90% 75%, rgba(255,255,255,0.5), transparent);
    animation: twinkle 15s ease-in-out infinite;
}

.composite-scene .scene-title {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(68, 170, 255, 0.7));
    z-index: 3;
}

.composite-scene .scene-ship {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 100px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(68, 200, 255, 0.8))
           drop-shadow(0 0 20px rgba(68, 170, 255, 0.4));
    z-index: 3;
    animation: ship-hover 3s ease-in-out infinite;
}

.composite-scene .scene-player {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(68, 200, 255, 0.6));
    z-index: 4;
    animation: ship-hover 3s ease-in-out infinite;
}

@keyframes ship-hover {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.composite-scene .scene-enemy-buzz {
    position: absolute;
    top: 55px;
    right: 20px;
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 80, 80, 0.7));
    z-index: 2;
    animation: enemy-drift 4s ease-in-out infinite;
}

@keyframes enemy-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5px, 5px) rotate(3deg); }
}

.composite-scene .scene-enemy-spider {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 90px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(180, 50, 255, 0.6));
    z-index: 2;
    animation: spider-pulse 3.5s ease-in-out infinite;
}

@keyframes spider-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Extra scene elements scattered around the title */
.composite-scene .scene-extra {
    position: absolute;
    object-fit: contain;
    z-index: 2;
}

.composite-scene .scene-asteroid {
    width: 40px;
    top: 100px;
    left: 30%;
    filter: drop-shadow(0 0 5px rgba(200, 150, 50, 0.5));
    animation: enemy-drift 5s ease-in-out infinite;
}

.composite-scene .scene-blackhole {
    width: 45px;
    top: 70px;
    right: 28%;
    filter: drop-shadow(0 0 8px rgba(100, 0, 200, 0.7));
    animation: spider-pulse 4s ease-in-out infinite;
}

.composite-scene .scene-meteor {
    width: 35px;
    top: 90px;
    left: 45%;
    filter: drop-shadow(0 0 6px rgba(255, 100, 50, 0.6));
    animation: enemy-drift 3.5s ease-in-out infinite reverse;
}

.composite-scene .scene-redboss {
    width: 55px;
    top: 75px;
    right: 15%;
    filter: drop-shadow(0 0 8px rgba(255, 50, 50, 0.6));
    animation: spider-pulse 3s ease-in-out infinite;
}

.composite-scene .scene-crab {
    width: 45px;
    top: 35px;
    left: 28%;
    filter: drop-shadow(0 0 6px rgba(100, 200, 255, 0.5));
    animation: enemy-drift 4.5s ease-in-out infinite;
}



.game-badge {
    position: absolute;
    bottom: 12px;
    right: -25px;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    padding: 6px 50px;
    font-size: 0.6rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.4);
    transform: rotate(-35deg);
    z-index: 5;
    text-align: center;
    white-space: nowrap;
}
}

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

.game-info {
    padding: 14px;
}

.game-info h2 {
    font-size: 0.94rem;
    margin-bottom: 6px;
    color: var(--primary-blue);
    font-weight: 700;
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.875rem;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.feature {
    background: rgba(68, 170, 255, 0.1);
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 0.5rem;
    color: var(--text-secondary);
    border: 1px solid rgba(68, 170, 255, 0.2);
}

.game-meta {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
}

.tag {
    background: rgba(68, 170, 255, 0.15);
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.53rem;
    border: 1px solid rgba(68, 170, 255, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(68, 170, 255, 0.25);
    border-color: rgba(68, 170, 255, 0.5);
}

.tag.disabled {
    background: rgba(136, 136, 136, 0.15);
    color: var(--text-muted);
    border-color: rgba(136, 136, 136, 0.3);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-blue), #4488ff);
    color: white;
    padding: 8px 18px;
    border-radius: 19px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(68, 170, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    width: 100%;
    justify-content: center;
}

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

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

.btn-play:hover {
    background: linear-gradient(135deg, #5588ff, var(--primary-blue));
    box-shadow: 0 4px 15px rgba(68, 170, 255, 0.6);
    transform: translateY(-1px);
}

.btn-play:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 0.75rem;
}

/* Coming Soon Panel - Right Side */
.coming-soon-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.panel-title {
    display: none;
}

.mini-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

/* Mini Cards */
.mini-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 68, 170, 0.2);
    border-color: rgba(255, 68, 170, 0.4);
}

.mini-card-thumb {
    position: relative;
    width: 100%;
    flex: 1 1 50%;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d2b, #1a1a3a);
}

.mini-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.4s ease;
    mix-blend-mode: lighten;
}

.mini-card:hover .mini-card-thumb img {
    opacity: 1;
    transform: scale(1.05);
}

.coming-soon-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, rgba(255, 68, 170, 0.9), rgba(170, 68, 255, 0.9));
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 68, 170, 0.4);
    z-index: 3;
}

.mini-card-info {
    padding: 10px;
    flex: 1 1 50%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-card-info h4 {
    font-size: 0.75rem;
    color: var(--primary-purple);
    margin-bottom: 4px;
    font-weight: 700;
}

.mini-card-info p {
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.mini-card-info .game-meta {
    gap: 3px;
}

.mini-card-info .tag {
    font-size: 0.45rem;
    padding: 2px 6px;
    background: rgba(255, 68, 170, 0.12);
    color: var(--primary-purple);
    border-color: rgba(255, 68, 170, 0.25);
}

/* About Section */
.about {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.about h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about p {
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 2px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--primary-blue);
    text-decoration: none;
    margin: 0 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.social-links a:hover {
    color: #5588ff;
    transform: translateY(-2px);
}

.social-links .icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        width: 281px;
    }
    
    .tagline {
        font-size: 0.825rem;
    }
    
    .games-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mini-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .game-info h2 {
        font-size: 1.6rem;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .about p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .logo {
        width: 225px;
    }
    
    main {
        padding: 15px 20px 40px;
    }
    
    .game-thumbnail {
        height: 165px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .btn-play {
        width: 100%;
        justify-content: center;
    }
}
