:root {
    --primary-color: #fbbf24;
    /* Gold */
    --secondary-color: #1e293b;
    /* Dark Blue */
    --text-color: #ffffff;
    /* Deep elegant background matching the logo */
    --bg-gradient: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    --glass-bg: rgba(15, 23, 42, 0.6);
    /* Darker glass */
    --glass-border: rgba(251, 191, 36, 0.15);
    /* Subtle gold border */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent;
    /* Remove blue highlight on mobile tap */
}

body {
    background: #0f172a;
    /* Fallback */
    min-height: 100vh;
    min-height: 100dvh;
    /* New dynamic viewport unit */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Elegant Background Pattern */
.background-animation {
    position: fixed;
    /* Fixed to prevent scroll impact */
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 30%);
    background-size: 100% 100%;
    animation: pulseBackground 15s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulseBackground {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }

    /* Subtle pulse */
}

.container {
    position: relative;
    z-index: 10;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    margin: auto;
    /* Ensure centering */
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Removed movement animation */
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.logo-container {
    width: 140px;
    height: 140px;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    border: 2px solid rgba(251, 191, 36, 0.3);
    /* Gold border */
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.02);
    /* Reduced movement */
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: -0.5rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    /* Dark text for contrast */
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.android-btn {
    background: var(--gold-gradient);
    color: #3f2f00;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.android-btn:hover {
    filter: brightness(1.1);
    /* Removed unnecessary movement */
}

.ios-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.ios-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        max-width: 100%;
    }

    .glass-card {
        padding: 2rem 1.5rem;
        width: 100%;
        border-radius: 20px;
    }

    .app-title {
        font-size: 2rem;
    }

    .app-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .logo-container {
        width: 110px;
        height: 110px;
        border-radius: 28px;
    }

    .download-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .background-animation {
        background-size: cover;
    }

    /* Removed separate body alignment to keep it centered always */
}