/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a8a4e6;
    --accent-color: #00d2d3;
    --text-color: #2d3436;
    --light-text: #ffffff;
    --gradient: linear-gradient(135deg, #6c5ce7, #00d2d3);
    --metallic-gradient: linear-gradient(135deg, #b8b8b8, #e0e0e0, #f5f5f5, #e0e0e0, #b8b8b8);
    --gold-gradient: linear-gradient(135deg, #ffd700, #ffcc00, #ffd700, #ffcc00);
    --gold-shine: linear-gradient(135deg, #ffd700, #ffcc00, #ffd700, #ffcc00, #ffd700);
    --silver-gradient: linear-gradient(135deg, #c0c0c0, #e0e0e0, #f5f5f5, #e0e0e0, #c0c0c0);
    --text-shadow: 2px 2px 4px rgba(65, 65, 68, 0.8);
    --text-shadow-light: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Particles.js container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Header and Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-nav {
    background-color: transparent;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 30px;
    height: 100%;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
    margin-right: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-download {
    background: var(--gold-gradient);
    background-size: 200% auto;
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: metallic-shine 3s ease infinite;
    letter-spacing: 0.5px;
}

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

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

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-language {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-language:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.btn-language i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-language:hover i {
    transform: rotate(180deg);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.mobile-menu:hover {
    color: var(--primary-color);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    overflow: hidden;
    margin-top: 80px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    animation: float 6s ease-in-out infinite;
    text-shadow: var(--text-shadow);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow);
    background: var(--gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallic-shine 3s ease infinite;
    position: relative;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.hero-content:hover h1::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-content p {
    font-size: 1.8rem;
    opacity: 0.95;
    text-shadow: var(--text-shadow-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

/* Metallic Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

@keyframes metallic-shine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Games Grid Section */
.games-grid {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.game-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.game-card:hover .game-stats {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    font-size: 0.9rem;
    margin: 5px 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .stat-item {
    transform: translateY(0);
    opacity: 1;
}

.game-card:hover .stat-item:nth-child(1) {
    transition-delay: 0.1s;
}

.game-card:hover .stat-item:nth-child(2) {
    transition-delay: 0.2s;
}

.game-card:hover .stat-item:nth-child(3) {
    transition-delay: 0.3s;
}

.game-card-content {
    padding: 1.2rem;
    background: white;
    text-align: center;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.platform-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.game-card:hover .platform-icons {
    opacity: 1;
    transform: translateY(0);
}

.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.platform-icon.android {
    background: rgba(61, 220, 132, 0.9);
    color: white;
}

.platform-icon.ios {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.platform-icon.switch {
    background: rgba(230, 0, 18, 0.9);
    color: white;
}

.platform-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.platform-icon i {
    font-size: 20px;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--light-text);
    padding: 4rem 5% 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-section a:hover {
    opacity: 1;
    color: #ffd700;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 16px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .logo img {
        height: 50px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .filters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .games-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-download {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        margin: 0 auto;
        max-width: 300px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav-links a::after {
        display: none;
    }
    
    .btn-download::before {
        display: none;
    }
    
    .game-card:hover {
        transform: none;
    }
    
    .game-card img {
        transform: none;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    animation: modalContentSlide 0.3s ease forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff0000;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-download-btn {
    background: var(--gold-gradient);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.modal-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile Download Buttons - Touch Optimized */
.download-section.mobile-download {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.download-btn {
    width: 100%;
    min-height: 56px; /* Touch-friendly minimum height */
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: inherit;
}

.download-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.download-btn.ios-btn {
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
}

.download-btn.ios-btn:hover {
    background: linear-gradient(135deg, #333333, #000000);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.download-btn.android-btn {
    background: linear-gradient(135deg, #3DDC84, #2ECC71);
    color: white;
}

.download-btn.android-btn:hover {
    background: linear-gradient(135deg, #2ECC71, #3DDC84);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 220, 132, 0.3);
}

.download-btn.downloading {
    background: linear-gradient(135deg, #6c5ce7, #a8a4e6);
    pointer-events: none;
}

.download-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: scale(1.1);
}

.download-btn span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Download Error Message */
.download-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-content i {
    font-size: 1.2rem;
    color: #fff;
}

.error-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.error-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.error-close:hover {
    opacity: 1;
}

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

/* Game Description */
.game-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0 1rem 0;
    opacity: 0.8;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .download-btn {
        min-height: 60px; /* Even larger on mobile */
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
    }
    
    .download-section.mobile-download {
        margin-top: 1.2rem;
    }
    
    .game-card-content {
        padding: 1.5rem;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-description {
        font-size: 0.95rem;
        margin: 0.8rem 0 1.2rem 0;
    }
}

/* Hide platform icons on mobile when showing download buttons */
@media (max-width: 768px) {
    .platform-icons {
        display: none !important;
    }
}

/* Show platform icons only on desktop */
@media (min-width: 769px) {
    .download-section.mobile-download {
        display: none !important;
    }
} 

/* Coming Soon Message */
.coming-soon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.coming-soon i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

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

/* Enhanced Download Button States */
.download-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Animation Enhancement */
.download-btn.downloading {
    background: linear-gradient(135deg, #6c5ce7, #a8a4e6);
    pointer-events: none;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Touch Feedback Enhancement */
@media (max-width: 768px) {
    .download-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .download-btn:active::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        animation: ripple 0.6s ease-out;
    }
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
} 