/* RocketDriver Specific Styles */

/* Navigation */
.back-link {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #0056b3;
}

/* Navigation header */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 40px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: white;
    color: #1e3c72;
    border-color: white;
    font-weight: 600;
}

.lang-btn.active:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #764ba2 100%);
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    animation: twinkle 20s infinite linear;
}

@keyframes twinkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-20px) translateY(-20px); }
}

.app-icon-container {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin: 1rem 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #fff, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-text {
    font-size: 1.3rem;
    margin: 1.5rem auto;
    max-width: 700px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Download Buttons */
.download-buttons {
    margin: 2rem 0;
}

.app-store-button img {
    height: 60px;
    transition: transform 0.3s ease;
}

.app-store-button:hover img {
    transform: scale(1.05);
}

/* Video Section */
.video-preview {
    margin: 3rem 0;
    text-align: center;
}

.video-container {
    max-width: 400px; /* Adjusted for mobile game format */
    margin: 0 auto;
    position: relative;
    border-radius: 20px; /* More rounded for mobile feel */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #000; /* Black background for video */
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Screenshots Gallery */
.screenshots {
    margin: 3rem 0;
}

.screenshot-gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

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

.screenshot-gallery img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.screenshot-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Navigation buttons - hidden by default, shown on mobile */
.gallery-nav {
    display: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* Gallery indicators */
.gallery-indicators {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background: #1e3c72;
}

/* Game Description */
.game-description {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.game-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Features Grid */
.features {
    margin: 4rem 0;
    padding: 0 1rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

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

.feature {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #764ba2);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature p {
    line-height: 1.7;
    color: #555;
    font-size: 1rem;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: #1e3c72;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: #87ceeb;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .language-selector {
        justify-content: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .promo-text {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile screenshot gallery */
    .screenshot-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .screenshot-gallery::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .screenshot-gallery img {
        flex: 0 0 250px;
        scroll-snap-align: center;
    }
    
    .gallery-nav {
        display: block;
    }
    
    .gallery-indicators {
        display: flex;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    /* Adjust video container for mobile */
    .video-container {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    nav {
        text-align: center;
    }
    
    .back-link {
        width: 100%;
        text-align: center;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .screenshot-gallery img {
        flex: 0 0 200px;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .video-container {
        max-width: 250px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
}