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

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #2d0a0a 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ff4500 0%, #ff6600 50%, transparent 100%);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(255, 69, 0, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff4500, #ff6600, #ff8c00, #ffa500);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.5);
    margin-bottom: 1rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.5rem;
    color: #ffaa44;
    margin-bottom: 2rem;
    font-weight: 300;
}

.phoenix-logo {
    font-size: 3rem;
    animation: phoenix-glow 2s ease-in-out infinite alternate;
}

@keyframes phoenix-glow {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.1); filter: brightness(1.5); }
}

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

.games-section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #ff6600;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    border: 2px solid rgba(255, 102, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: #ff6600;
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.3);
}

.game-card.featured {
    border-color: #ff4500;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);
}

.game-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ff6600, #ff8c00);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff0000, #ff4500);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    animation: newBadgePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.4);
}

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

.game-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.game-card:hover .game-thumbnail {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.game-card:hover .preview-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.preview-image {
    width: 80%;
    height: 60%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ff6600;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
    margin-bottom: 10px;
}

.preview-text {
    color: #ff6600;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    background: rgba(255, 102, 0, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 102, 0, 0.3);
}

/* Lazy loading styles */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.lazy-load.loading {
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0.2) 50%, rgba(255, 102, 0, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff8c00;
}

.game-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.play-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff4500, #ff6600);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.play-button:hover {
    background: linear-gradient(45deg, #ff6600, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.4);
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(255, 102, 0, 0.2);
    color: #ff6600;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #ff6600;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Dynamic Stats Section */
.stats-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(26, 5, 5, 0.6) 50%, rgba(45, 10, 10, 0.8) 100%);
    z-index: 1;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 102, 0, 0.08);
    border: 2px solid rgba(255, 102, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6600, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 102, 0, 0.12);
    border-color: rgba(255, 102, 0, 0.4);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.2);
}

.stat-card.highlight {
    background: rgba(255, 102, 0, 0.15);
    border-color: #ff4500;
    position: relative;
}

.stat-card.highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ff6600, #ff8c00);
    animation: pulse 2s ease-in-out infinite;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 102, 0, 0.3));
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #ff6600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
    transition: all 0.3s ease;
}

.stat-label {
    color: #cccccc;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 102, 0, 0.2);
}

.pulse-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #ff8c00;
    font-weight: 600;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #ff4500;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

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

.stats-subtitle {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

/* Developer Blog Section */
.blog-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(26, 5, 5, 0.3) 0%, rgba(45, 10, 10, 0.3) 100%);
    z-index: 1;
}

.blog-container {
    background: rgba(255, 102, 0, 0.05);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.blog-entries {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 2rem;
}

.blog-entries::-webkit-scrollbar {
    width: 8px;
}

.blog-entries::-webkit-scrollbar-track {
    background: rgba(255, 102, 0, 0.1);
    border-radius: 4px;
}

.blog-entries::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff4500, #ff6600);
    border-radius: 4px;
}

.blog-entries::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
}

.blog-entry {
    background: rgba(255, 102, 0, 0.08);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.blog-entry:hover {
    transform: translateX(5px);
    background: rgba(255, 102, 0, 0.12);
    border-color: rgba(255, 102, 0, 0.4);
}

.blog-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #ff4500, #ff6600);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-entry:hover::before {
    opacity: 1;
}

.blog-date {
    color: #ff8c00;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.blog-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #ff6600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: rgba(255, 102, 0, 0.15);
    color: #ff8c00;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.blog-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 102, 0, 0.2);
}

.read-more-btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff4500, #ff6600);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
}

.read-more-btn:hover {
    background: linear-gradient(45deg, #ff6600, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.4);
}

.blog-subtitle {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.footer {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 5, 5, 0.9) 100%);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 102, 0, 0.3);
    z-index: 1;
}

.footer p {
    color: #888;
    font-size: 1rem;
}

.visitor-counter {
    margin-bottom: 1.5rem;
}

.counter-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6600;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    color: #ff6600;
    font-size: 1.2rem;
    opacity: 0.6;
}

@keyframes clickBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(3) rotate(180deg);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        height: 80vh;
    }

    /* Blog responsive styles */
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-container {
        padding: 1.5rem;
    }
    
    .blog-entries {
        max-height: 400px;
        padding-right: 5px;
    }
    
    .blog-entry {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-content {
        font-size: 0.9rem;
    }
    
    .blog-tags {
        gap: 0.3rem;
    }
    
    .blog-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .read-more-btn {
        font-size: 0.9rem;
        padding: 10px 25px;
    }

    /* Stats responsive styles */
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .pulse-indicator {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .phoenix-logo {
        font-size: 2rem;
    }

    /* Stats mobile styles */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}