/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --background-gradient-start: #0f172a;
    --background-gradient-end: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-background: rgba(255, 255, 255, 0.1);
    --hover-transform: translateY(-2px);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.content {
    text-align: center;
    animation: fadeIn 0.8s ease-in;
}

/* Logo Section */
.logo-container {
    margin-bottom: 30px;
    animation: scaleIn 0.6s ease-out;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px var(--shadow-color));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Title Section */
.title-section {
    margin-bottom: 50px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.6s ease-out;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    animation: slideInDown 0.7s ease-out;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.9;
    animation: slideInDown 0.8s ease-out;
}

/* Buttons Container */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out;
}

/* Download Buttons */
.download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn:hover {
    transform: var(--hover-transform);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.download-btn:active {
    transform: scale(0.98);
}

/* App Store Button */
.app-store-btn {
    background: linear-gradient(135deg, #000000 0%, #2c3e50 100%);
}

.app-store-btn:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #34495e 100%);
}

/* Google Play Button */
.google-play-btn {
    background: linear-gradient(135deg, #01875f 0%, #34a853 100%);
}

.google-play-btn:hover {
    background: linear-gradient(135deg, #019968 0%, #3db862 100%);
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Web App Button */
.web-app-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
}

.web-app-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, var(--primary-color) 100%);
}

/* Button Content */
.btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.store-icon {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.small-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.large-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-in;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--text-primary);
}

.footer-links .separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .download-btn {
        padding: 12px 25px;
    }

    .store-icon {
        width: 28px;
        height: 28px;
    }

    .small-text {
        font-size: 0.7rem;
    }

    .large-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .buttons-container {
        gap: 15px;
    }

    .download-btn {
        padding: 10px 20px;
    }

    .btn-content {
        gap: 10px;
    }

    .store-icon {
        width: 24px;
        height: 24px;
    }

    .small-text {
        font-size: 0.65rem;
    }

    .large-text {
        font-size: 1rem;
    }

    .coming-soon-badge {
        font-size: 0.55rem;
        padding: 3px 8px;
        top: -6px;
        right: -6px;
    }
}

/* LTR Support for English text in buttons */
.download-btn .btn-text {
    direction: ltr;
}

/* Loading state for buttons */
.download-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.download-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.download-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .download-btn {
        border: 1px solid black;
        color: black;
    }
}
