/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: 
        radial-gradient(circle at 20% 50%, rgba(11, 117, 175, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 50, 100, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(11, 117, 175, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%);
    background-size: 100% 100%;
    background-attachment: fixed;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    color: white;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(11, 117, 175, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 50, 100, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
        opacity: 0.8;
    }
    50% {
        transform: translateX(5px) translateY(-10px);
        opacity: 1;
    }
    75% {
        transform: translateX(-5px) translateY(5px);
        opacity: 0.9;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: inline-block;
    color: #B0D4F1;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 5px;
}

.back-link:hover {
    color: white;
    transform: translateX(-5px);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #fff, #B0D4F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #B0D4F1;
    font-weight: 300;
}

/* Main Content */
.main-content {
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* App Info Section */
.app-info-section {
    background: 
        radial-gradient(circle at 20% 50%, rgba(11, 117, 175, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 50, 100, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(11, 117, 175, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%),
        rgba(0, 0, 0, 0.3);
    background-size: 100% 100%;
    background-attachment: fixed;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.app-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.app-icon {
    width: 125px;
    height: 125px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.download-btn img {
    height: 50px;
    width: auto;
}

/* Screenshots Section */
.screenshots-section {
    background: 
        radial-gradient(circle at 20% 50%, rgba(11, 117, 175, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 50, 100, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(11, 117, 175, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%),
        rgba(0, 0, 0, 0.3);
    background-size: 100% 100%;
    background-attachment: fixed;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.screenshots-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.screenshot-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* App Description */
.app-description .description-card {
    background: 
        radial-gradient(circle at 20% 50%, rgba(11, 117, 175, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 50, 100, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(11, 117, 175, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%),
        rgba(0, 0, 0, 0.3);
    background-size: 100% 100%;
    background-attachment: fixed;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.description-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #B0D4F1;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.feature-item p {
    color: #B0D4F1;
    line-height: 1.5;
}

.closing-message {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.closing-message p {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
}

/* Support Section */
.support-section  {
    background: 
        radial-gradient(circle at 20% 50%, rgba(11, 117, 175, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 50, 100, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(11, 117, 175, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%),
        rgba(0, 0, 0, 0.3);
    background-size: 100% 100%;
    background-attachment: fixed;
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 30px;
}

.support-section h2 {
    font-size: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 10px;
}

.footer-links {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-link {
    color: #B0D4F1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: white;
}

.signature {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        /* Fallback solid color */
        background-color: #1a1a2e;
        /* Simplified gradient for mobile */
        background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        background-size: cover;
        background-attachment: scroll; /* Retained for mobile */
    }

    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .app-info-section,
    .screenshots-section,
    .description-card,
    .support-card,
    .review-card {
        padding: 25px;
    }
    
    .download-buttons {
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .app-info-section,
    .screenshots-section,
    .description-card {
        padding: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation for smooth loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-info-section,
.screenshots-section,
.description-card,
.support-card,
.review-card {
    animation: fadeInUp 0.6s ease forwards;
}

.app-info-section { animation-delay: 0.1s; }
.screenshots-section { animation-delay: 0.2s; }
.description-card { animation-delay: 0.3s; }
.support-section { animation-delay: 0.4s; }