/* ============================================
 * styles.css
 * Modern Flat UI Theme System - Aleem Website
 * ============================================ */

/* --- 📋 CSS VARIABLES (Extracted from Flutter Theme) --- */
:root {
    /* Core Palette */
    --primary: #0041FF;
    /* Navy Blue */
    --primary-dark: #0020A3;
    /* Darker shade for gradient */
    --accent: #3ad8ff;
    /* Bright cyan for contrast */
    --secondary: #0077FF;
    /* Royal Blue */
    --background: var(--primary);
    /* Deep Blue Background */
    --error: #DC3545;
    /* Flat Red */
    --success: #28A745;
    /* Green */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-light: rgba(255, 255, 255, 0.4);

    /* Semantic Colors */
    --surface: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --white: #FFFFFF;
    --black: #0D1B2A;

    /* Design Tokens - Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 32px;
    --radius-bubble: 24px;
    --radius-pill: 100px;
}

/* --- 🌐 RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

body {
    background: radial-gradient(circle at top right, var(--primary), var(--primary-dark));
    background-attachment: fixed;
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- 🏗️ LAYOUT & STRUCTURE --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 🌟 HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem;
    background: transparent;
}

.hero-content {
    max-width: 800px;
    animation: slideUp 0.8s ease-out;
}

.app-icon {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.35rem;
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    color: var(--text-secondary);
}

.hero h1 span {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(13, 229, 255, 0.3);
}

/* --- 🕹️ CALL TO ACTION (CTA) BUTTONS --- */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    background-color: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.store-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.store-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background-color: #f8f9fa;
}

.store-btn.disabled,
.store-btn[disabled] {
    opacity: 0.8;
    cursor: wait;
}

/* --- ✨ FEATURES SECTION --- */
.features {
    padding: 6rem 0;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

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

/* Glass Badge Cards (Matching AppDecorations.bubbleGlass) */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    border-left: 1px solid var(--glass-border-light);
    border-radius: var(--radius-bubble);
    padding: 2.5rem 2rem;
    text-align: left;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, background 0.3s ease;
    /* Soft shadow mimicking AppShadows.bubble */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), inset 0 2px 5px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--glass-hover);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2), inset 0 2px 5px rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- 📝 TOAST NOTIFICATION --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.toast {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- 🦶 FOOTER --- */
footer {
    padding: 4rem 2rem 2rem 2rem;
    background: transparent;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 📱 RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* --- 🎬 KEYFRAMES --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}
