/* Almost! Specific Styles */

/* Base styles */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Background pattern for added visual interest */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

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

.back-link {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 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;
    backdrop-filter: blur(10px);
}

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

.lang-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.app-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.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;
}

.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);
}

/* Main content */
main {
    position: relative;
    z-index: 2;
}

/* Screenshots Section */
.screenshots {
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
    padding: 0 1rem;
}

.screenshots h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.screenshot-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.screenshot {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: block;
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.02);
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: 3rem auto;
    max-width: 900px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 3rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-store-button {
    transition: transform 0.3s ease;
    display: inline-block;
}

.app-store-button:hover {
    transform: scale(1.05) translateY(-2px);
}

.app-store-button img {
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav {
        padding: 0 0.5rem;
    }
    
    .hero-section {
        padding: 1.5rem 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .promo-text {
        font-size: 1.1rem;
    }
    
    .app-icon {
        width: 96px;
        height: 96px;
    }
    
    .features {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }
    
    .features h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .screenshots {
        margin: 2rem 0.5rem;
    }
    
    .screenshot-gallery-container {
        max-width: 250px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}
